3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
30 --enable-debug Enable debug mode (default disabled)"
32 --enable-gprof Enable gprof profiling (default disabled)"
34 --enable-cprof Enable cprof profiling (default disabled)"
36 --disable-optimizations Disable compiler optimizations (default enabled)"
38 --enable-pth Enable GNU Pth support (default disabled)"
40 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
41 or 'local-static', 'local-shared', or a path to
42 another libdvdcss such as '/usr/local'
43 (default 'local-static')"
45 --with-dvdread[=name] way to use libdvdread,
46 same options as --with-dvdcss (default no)"
48 --enable-vcd VCD support for Linux (default enabled)"
50 --disable-dummy dummy module (default enabled)"
52 --disable-logger file logger module (default enabled)"
54 --disable-null Null module (default enabled)"
56 --disable-rc Remote Control module (default enabled)"
58 --with-mad[=PATH] libmad module (default disabled)"
60 --disable-dsp Linux /dev/dsp support (default enabled)"
62 --enable-esd Esound library support (default disabled)"
64 --enable-arts aRts sound server (default disabled)"
66 --enable-macosx MacOS X support (default enabled on MacOS X)"
68 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
70 --disable-a52 AC3 support with liba52 (default enabled)"
72 --enable-fb Linux framebuffer support (default disabled)"
74 --enable-mga Linux kernel Matrox support (default disabled)"
76 --with-ggi[=name] GGI support (default disabled)"
78 --disable-sdl SDL support (default enabled)"
80 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
82 --disable-directx Win32 DirectX support (default enabled on Win32)"
84 --with-directx-path=path Win32 DirectX headers and libraries"
86 --disable-waveout Win32 waveOut module (default enabled on Win32)"
88 --enable-win32 Win32 interface support (default disabled)"
90 --with-glide[=name] Glide (3dfx) support (default disabled)"
92 --enable-ncurses ncurses interface support (default disabled)"
94 --enable-qt Qt interface support (default disabled)"
96 --enable-kde KDE interface support (default disabled)"
98 --enable-gnome Gnome interface support (default disabled)"
100 --disable-gtk Gtk+ support (default enabled)"
102 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
104 --disable-x11 X11 support (default enabled)"
106 --disable-xvideo XVideo support (default enabled)"
108 --enable-lirc lirc support (default disabled)"
110 --enable-alsa Alsa sound drivers support (Only for linux)
113 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
115 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
117 # Initialize some variables set by options.
118 # The variables have the same names as the options, with
119 # dashes changed to underlines.
121 cache_file=./config.cache
130 program_transform_name=s,x,x,
138 bindir='${exec_prefix}/bin'
139 sbindir='${exec_prefix}/sbin'
140 libexecdir='${exec_prefix}/libexec'
141 datadir='${prefix}/share'
142 sysconfdir='${prefix}/etc'
143 sharedstatedir='${prefix}/com'
144 localstatedir='${prefix}/var'
145 libdir='${exec_prefix}/lib'
146 includedir='${prefix}/include'
147 oldincludedir='/usr/include'
148 infodir='${prefix}/info'
149 mandir='${prefix}/man'
151 # Initialize some other variables.
154 SHELL=${CONFIG_SHELL-/bin/sh}
155 # Maximum number of lines to put in a shell here document.
162 # If the previous option needs an argument, assign it.
163 if test -n "$ac_prev"; then
164 eval "$ac_prev=\$ac_option"
170 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
174 # Accept the important Cygnus configure options, so we can diagnose typos.
178 -bindir | --bindir | --bindi | --bind | --bin | --bi)
180 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
181 bindir="$ac_optarg" ;;
183 -build | --build | --buil | --bui | --bu)
185 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
186 build="$ac_optarg" ;;
188 -cache-file | --cache-file | --cache-fil | --cache-fi \
189 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
190 ac_prev=cache_file ;;
191 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
192 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
193 cache_file="$ac_optarg" ;;
195 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
197 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
199 datadir="$ac_optarg" ;;
201 -disable-* | --disable-*)
202 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
208 eval "enable_${ac_feature}=no" ;;
210 -enable-* | --enable-*)
211 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
212 # Reject names that are not valid shell variable names.
213 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
214 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
216 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
221 eval "enable_${ac_feature}='$ac_optarg'" ;;
223 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
224 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
225 | --exec | --exe | --ex)
226 ac_prev=exec_prefix ;;
227 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
228 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
229 | --exec=* | --exe=* | --ex=*)
230 exec_prefix="$ac_optarg" ;;
232 -gas | --gas | --ga | --g)
233 # Obsolete; use --with-gas.
236 -help | --help | --hel | --he)
237 # Omit some internal or obsolete options to make the list less imposing.
238 # This message is too long to be a string in the A/UX 3.1 sh.
240 Usage: configure [options] [host]
241 Options: [defaults in brackets after descriptions]
243 --cache-file=FILE cache test results in FILE
244 --help print this message
245 --no-create do not create output files
246 --quiet, --silent do not print \`checking...' messages
247 --version print the version of autoconf that created configure
248 Directory and file names:
249 --prefix=PREFIX install architecture-independent files in PREFIX
251 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
253 --bindir=DIR user executables in DIR [EPREFIX/bin]
254 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
255 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
256 --datadir=DIR read-only architecture-independent data in DIR
258 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
259 --sharedstatedir=DIR modifiable architecture-independent data in DIR
261 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
262 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
263 --includedir=DIR C header files in DIR [PREFIX/include]
264 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
265 --infodir=DIR info documentation in DIR [PREFIX/info]
266 --mandir=DIR man documentation in DIR [PREFIX/man]
267 --srcdir=DIR find the sources in DIR [configure dir or ..]
268 --program-prefix=PREFIX prepend PREFIX to installed program names
269 --program-suffix=SUFFIX append SUFFIX to installed program names
270 --program-transform-name=PROGRAM
271 run sed PROGRAM on installed program names
275 --build=BUILD configure for building on BUILD [BUILD=HOST]
276 --host=HOST configure for HOST [guessed]
277 --target=TARGET configure for TARGET [TARGET=HOST]
278 Features and packages:
279 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
280 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
281 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
282 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
283 --x-includes=DIR X include files are in DIR
284 --x-libraries=DIR X library files are in DIR
286 if test -n "$ac_help"; then
287 echo "--enable and --with options recognized:$ac_help"
291 -host | --host | --hos | --ho)
293 -host=* | --host=* | --hos=* | --ho=*)
296 -includedir | --includedir | --includedi | --included | --include \
297 | --includ | --inclu | --incl | --inc)
298 ac_prev=includedir ;;
299 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
300 | --includ=* | --inclu=* | --incl=* | --inc=*)
301 includedir="$ac_optarg" ;;
303 -infodir | --infodir | --infodi | --infod | --info | --inf)
305 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
306 infodir="$ac_optarg" ;;
308 -libdir | --libdir | --libdi | --libd)
310 -libdir=* | --libdir=* | --libdi=* | --libd=*)
311 libdir="$ac_optarg" ;;
313 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
314 | --libexe | --libex | --libe)
315 ac_prev=libexecdir ;;
316 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
317 | --libexe=* | --libex=* | --libe=*)
318 libexecdir="$ac_optarg" ;;
320 -localstatedir | --localstatedir | --localstatedi | --localstated \
321 | --localstate | --localstat | --localsta | --localst \
322 | --locals | --local | --loca | --loc | --lo)
323 ac_prev=localstatedir ;;
324 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
325 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
326 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
327 localstatedir="$ac_optarg" ;;
329 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
331 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
332 mandir="$ac_optarg" ;;
335 # Obsolete; use --without-fp.
338 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
342 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
343 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
346 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
347 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
348 | --oldin | --oldi | --old | --ol | --o)
349 ac_prev=oldincludedir ;;
350 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
351 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
352 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
353 oldincludedir="$ac_optarg" ;;
355 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
357 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
358 prefix="$ac_optarg" ;;
360 -program-prefix | --program-prefix | --program-prefi | --program-pref \
361 | --program-pre | --program-pr | --program-p)
362 ac_prev=program_prefix ;;
363 -program-prefix=* | --program-prefix=* | --program-prefi=* \
364 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
365 program_prefix="$ac_optarg" ;;
367 -program-suffix | --program-suffix | --program-suffi | --program-suff \
368 | --program-suf | --program-su | --program-s)
369 ac_prev=program_suffix ;;
370 -program-suffix=* | --program-suffix=* | --program-suffi=* \
371 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
372 program_suffix="$ac_optarg" ;;
374 -program-transform-name | --program-transform-name \
375 | --program-transform-nam | --program-transform-na \
376 | --program-transform-n | --program-transform- \
377 | --program-transform | --program-transfor \
378 | --program-transfo | --program-transf \
379 | --program-trans | --program-tran \
380 | --progr-tra | --program-tr | --program-t)
381 ac_prev=program_transform_name ;;
382 -program-transform-name=* | --program-transform-name=* \
383 | --program-transform-nam=* | --program-transform-na=* \
384 | --program-transform-n=* | --program-transform-=* \
385 | --program-transform=* | --program-transfor=* \
386 | --program-transfo=* | --program-transf=* \
387 | --program-trans=* | --program-tran=* \
388 | --progr-tra=* | --program-tr=* | --program-t=*)
389 program_transform_name="$ac_optarg" ;;
391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
392 | -silent | --silent | --silen | --sile | --sil)
395 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
397 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
399 sbindir="$ac_optarg" ;;
401 -sharedstatedir | --sharedstatedir | --sharedstatedi \
402 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
403 | --sharedst | --shareds | --shared | --share | --shar \
405 ac_prev=sharedstatedir ;;
406 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
407 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
408 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
410 sharedstatedir="$ac_optarg" ;;
412 -site | --site | --sit)
414 -site=* | --site=* | --sit=*)
417 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
419 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
420 srcdir="$ac_optarg" ;;
422 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
423 | --syscon | --sysco | --sysc | --sys | --sy)
424 ac_prev=sysconfdir ;;
425 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
426 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
427 sysconfdir="$ac_optarg" ;;
429 -target | --target | --targe | --targ | --tar | --ta | --t)
431 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
432 target="$ac_optarg" ;;
434 -v | -verbose | --verbose | --verbos | --verbo | --verb)
437 -version | --version | --versio | --versi | --vers)
438 echo "configure generated by autoconf version 2.13"
442 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
443 # Reject names that are not valid shell variable names.
444 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
445 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
447 ac_package=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}='$ac_optarg'" ;;
454 -without-* | --without-*)
455 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
456 # Reject names that are not valid shell variable names.
457 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
458 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
460 ac_package=`echo $ac_package| sed 's/-/_/g'`
461 eval "with_${ac_package}=no" ;;
464 # Obsolete; use --with-x.
467 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
468 | --x-incl | --x-inc | --x-in | --x-i)
469 ac_prev=x_includes ;;
470 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
471 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
472 x_includes="$ac_optarg" ;;
474 -x-libraries | --x-libraries | --x-librarie | --x-librari \
475 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
476 ac_prev=x_libraries ;;
477 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
478 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
479 x_libraries="$ac_optarg" ;;
481 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
485 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
486 echo "configure: warning: $ac_option: invalid host type" 1>&2
488 if test "x$nonopt" != xNONE; then
489 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
497 if test -n "$ac_prev"; then
498 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
501 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
503 # File descriptor usage:
506 # 2 errors and warnings
507 # 3 some systems may open it to /dev/tty
508 # 4 used on the Kubota Titan
509 # 6 checking for... messages and results
510 # 5 compiler messages saved in config.log
511 if test "$silent" = yes; then
519 This file contains any messages produced by compilers while
520 running configure, to aid debugging if configure makes a mistake.
523 # Strip out --no-create and --no-recursion so they do not pile up.
524 # Also quote any args containing shell metacharacters.
529 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
530 | --no-cr | --no-c) ;;
531 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
532 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
533 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
534 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
535 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
540 # Only set these to C if already set. These must not be set unconditionally
541 # because not all systems understand e.g. LANG=C (notably SCO).
542 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
543 # Non-C LC_CTYPE values break the ctype check.
544 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
545 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
546 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
547 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
550 rm -rf conftest* confdefs.h
551 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
554 # A filename unique to this package, relative to the directory that
555 # configure is in, which we can look for to find out if srcdir is correct.
556 ac_unique_file=include/main.h
558 # Find the source files, if location was not specified.
559 if test -z "$srcdir"; then
560 ac_srcdir_defaulted=yes
561 # Try the directory containing this script, then its parent.
563 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
564 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
566 if test ! -r $srcdir/$ac_unique_file; then
570 ac_srcdir_defaulted=no
572 if test ! -r $srcdir/$ac_unique_file; then
573 if test "$ac_srcdir_defaulted" = yes; then
574 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
576 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
579 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
581 # Prefer explicitly selected file to automatically selected ones.
582 if test -z "$CONFIG_SITE"; then
583 if test "x$prefix" != xNONE; then
584 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
586 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
589 for ac_site_file in $CONFIG_SITE; do
590 if test -r "$ac_site_file"; then
591 echo "loading site script $ac_site_file"
596 if test -r "$cache_file"; then
597 echo "loading cache $cache_file"
600 echo "creating cache $cache_file"
605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
606 ac_cpp='$CPP $CPPFLAGS'
607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
609 cross_compiling=$ac_cv_prog_cc_cross
613 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
614 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
615 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
622 ac_n= ac_c='\c' ac_t=
629 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
630 if test -f $ac_dir/install-sh; then
632 ac_install_sh="$ac_aux_dir/install-sh -c"
634 elif test -f $ac_dir/install.sh; then
636 ac_install_sh="$ac_aux_dir/install.sh -c"
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
648 # Do some error checking and defaulting for the host and target type.
650 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
653 # 1. You are not allowed to specify --host, --target, and nonopt at the
655 # 2. Host defaults to nonopt.
656 # 3. If nonopt is not specified, then host defaults to the current host,
657 # as determined by config.guess.
658 # 4. Target and build default to nonopt.
659 # 5. If nonopt is not specified, then target and build default to host.
661 # The aliases save the names the user supplied, while $host etc.
662 # will get canonicalized.
663 case $host---$target---$nonopt in
664 NONE---*---* | *---NONE---* | *---*---NONE) ;;
665 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
669 # Make sure we can run config.sub.
670 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
671 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:676: checking host system type" >&5
678 case "$host_alias" in
682 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
683 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
685 *) host_alias=$nonopt ;;
689 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
690 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
691 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
692 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
693 echo "$ac_t""$host" 1>&6
695 echo $ac_n "checking target system type""... $ac_c" 1>&6
696 echo "configure:697: checking target system type" >&5
699 case "$target_alias" in
702 NONE) target_alias=$host_alias ;;
703 *) target_alias=$nonopt ;;
707 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
708 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
711 echo "$ac_t""$target" 1>&6
713 echo $ac_n "checking build system type""... $ac_c" 1>&6
714 echo "configure:715: checking build system type" >&5
717 case "$build_alias" in
720 NONE) build_alias=$host_alias ;;
721 *) build_alias=$nonopt ;;
725 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
726 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$build" 1>&6
731 test "$host_alias" != "$target_alias" &&
732 test "$program_prefix$program_suffix$program_transform_name" = \
734 program_prefix=${target_alias}-
738 if test -r src/interface/main.c; then
740 VLC_VERSION="0.2.92-dev"
745 if test -r extras/libdvdcss/libdvdcss.c; then
747 LIBDVDCSS_VERSION="1.0.1-dev"
749 if test -r extras/libdvdcss/csskeys.h; then
750 cat >> confdefs.h <<\EOF
751 #define HAVE_CSSKEYS 1
757 save_CFLAGS="${CFLAGS}"
758 save_LDFLAGS="${LDFLAGS}"
760 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
761 echo "configure:762: checking whether ${MAKE-make} sets \${MAKE}" >&5
762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
763 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 cat > conftestmake <<\EOF
768 @echo 'ac_maketemp="${MAKE}"'
770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
771 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
772 if test -n "$ac_maketemp"; then
773 eval ac_cv_prog_make_${ac_make}_set=yes
775 eval ac_cv_prog_make_${ac_make}_set=no
779 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
780 echo "$ac_t""yes" 1>&6
783 echo "$ac_t""no" 1>&6
784 SET_MAKE="MAKE=${MAKE-make}"
787 # Extract the first word of "gcc", so it can be a program name with args.
788 set dummy gcc; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 if test -n "$CC"; then
795 ac_cv_prog_CC="$CC" # Let the user override the test.
797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
799 for ac_dir in $ac_dummy; do
800 test -z "$ac_dir" && ac_dir=.
801 if test -f $ac_dir/$ac_word; then
810 if test -n "$CC"; then
811 echo "$ac_t""$CC" 1>&6
813 echo "$ac_t""no" 1>&6
816 if test -z "$CC"; then
817 # Extract the first word of "cc", so it can be a program name with args.
818 set dummy cc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 if test -n "$CC"; then
825 ac_cv_prog_CC="$CC" # Let the user override the test.
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
842 if test $ac_prog_rejected = yes; then
843 # We found a bogon in the path, so make sure we never use it.
844 set dummy $ac_cv_prog_CC
846 if test $# -gt 0; then
847 # We chose a different compiler from the bogus one.
848 # However, it has the same basename, so the bogon will be chosen
849 # first if we set CC to just the basename; use the full file name.
851 set dummy "$ac_dir/$ac_word" "$@"
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
868 # Extract the first word of "cl", so it can be a program name with args.
869 set dummy cl; ac_word=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
880 for ac_dir in $ac_dummy; do
881 test -z "$ac_dir" && ac_dir=.
882 if test -f $ac_dir/$ac_word; then
891 if test -n "$CC"; then
892 echo "$ac_t""$CC" 1>&6
894 echo "$ac_t""no" 1>&6
899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
910 cross_compiling=$ac_cv_prog_cc_cross
912 cat > conftest.$ac_ext << EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
920 ac_cv_prog_cc_works=yes
921 # If we can't run a trivial program, we are probably using a cross compiler.
922 if (./conftest; exit) 2>/dev/null; then
923 ac_cv_prog_cc_cross=no
925 ac_cv_prog_cc_cross=yes
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
930 ac_cv_prog_cc_works=no
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
940 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
941 if test $ac_cv_prog_cc_works = no; then
942 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
945 echo "configure:946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
946 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
947 cross_compiling=$ac_cv_prog_cc_cross
949 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
950 echo "configure:951: checking whether we are using GNU C" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 cat > conftest.c <<EOF
959 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
966 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
968 if test $ac_cv_prog_gcc = yes; then
974 ac_test_CFLAGS="${CFLAGS+set}"
975 ac_save_CFLAGS="$CFLAGS"
977 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
978 echo "configure:979: checking whether ${CC-cc} accepts -g" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 echo 'void f(){}' > conftest.c
983 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
992 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
993 if test "$ac_test_CFLAGS" = set; then
994 CFLAGS="$ac_save_CFLAGS"
995 elif test $ac_cv_prog_cc_g = yes; then
996 if test "$GCC" = yes; then
1002 if test "$GCC" = yes; then
1009 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010 echo "configure:1011: checking how to run the C preprocessor" >&5
1011 # On Suns, sometimes $CPP names a directory.
1012 if test -n "$CPP" && test -d "$CPP"; then
1015 if test -z "$CPP"; then
1016 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 # This must be in double quotes, not single quotes, because CPP may get
1020 # substituted into the Makefile and "${CC-cc}" will confuse make.
1022 # On the NeXT, cc -E runs the code through the compiler's parser,
1023 # not just through cpp.
1024 cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031 { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1033 if test -z "$ac_err"; then
1037 echo "configure: failed program was:" >&5
1038 cat conftest.$ac_ext >&5
1040 CPP="${CC-cc} -E -traditional-cpp"
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1057 CPP="${CC-cc} -nologo -E"
1058 cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1081 ac_cv_prog_CPP="$CPP"
1083 CPP="$ac_cv_prog_CPP"
1085 ac_cv_prog_CPP="$CPP"
1087 echo "$ac_t""$CPP" 1>&6
1090 if test $host != $build; then
1091 ac_tool_prefix=${host_alias}-
1096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 if test -n "$RANLIB"; then
1104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 for ac_dir in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1118 RANLIB="$ac_cv_prog_RANLIB"
1119 if test -n "$RANLIB"; then
1120 echo "$ac_t""$RANLIB" 1>&6
1122 echo "$ac_t""no" 1>&6
1126 if test -z "$ac_cv_prog_RANLIB"; then
1127 if test -n "$ac_tool_prefix"; then
1128 # Extract the first word of "ranlib", so it can be a program name with args.
1129 set dummy ranlib; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 if test -n "$RANLIB"; then
1136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1140 for ac_dir in $ac_dummy; do
1141 test -z "$ac_dir" && ac_dir=.
1142 if test -f $ac_dir/$ac_word; then
1143 ac_cv_prog_RANLIB="ranlib"
1148 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1151 RANLIB="$ac_cv_prog_RANLIB"
1152 if test -n "$RANLIB"; then
1153 echo "$ac_t""$RANLIB" 1>&6
1155 echo "$ac_t""no" 1>&6
1164 ALL_LINGUAS="de fr ru"
1166 cat >> confdefs.h <<EOF
1167 #define PACKAGE "vlc"
1170 cat >> confdefs.h <<EOF
1171 #define VERSION "$VLC_VERSION"
1174 # Extract the first word of "ranlib", so it can be a program name with args.
1175 set dummy ranlib; ac_word=$2
1176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1177 echo "configure:1178: checking for $ac_word" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 if test -n "$RANLIB"; then
1182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1186 for ac_dir in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir=.
1188 if test -f $ac_dir/$ac_word; then
1189 ac_cv_prog_RANLIB="ranlib"
1194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1197 RANLIB="$ac_cv_prog_RANLIB"
1198 if test -n "$RANLIB"; then
1199 echo "$ac_t""$RANLIB" 1>&6
1201 echo "$ac_t""no" 1>&6
1205 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1206 echo "configure:1207: checking for strerror in -lcposix" >&5
1207 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 ac_save_LIBS="$LIBS"
1212 LIBS="-lcposix $LIBS"
1213 cat > conftest.$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1216 /* Override any gcc2 internal prototype to avoid an error. */
1217 /* We use char because int might match the return type of a gcc2
1218 builtin and then its argument prototype would still apply. */
1225 if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1227 eval "ac_cv_lib_$ac_lib_var=yes"
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1232 eval "ac_cv_lib_$ac_lib_var=no"
1235 LIBS="$ac_save_LIBS"
1238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1239 echo "$ac_t""yes" 1>&6
1240 LIBS="$LIBS -lcposix"
1242 echo "$ac_t""no" 1>&6
1247 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1248 echo "configure:1249: checking for ANSI C header files" >&5
1249 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 cat > conftest.$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1263 if test -z "$ac_err"; then
1265 ac_cv_header_stdc=yes
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1271 ac_cv_header_stdc=no
1275 if test $ac_cv_header_stdc = yes; then
1276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1277 cat > conftest.$ac_ext <<EOF
1278 #line 1279 "configure"
1279 #include "confdefs.h"
1282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1283 egrep "memchr" >/dev/null 2>&1; then
1287 ac_cv_header_stdc=no
1293 if test $ac_cv_header_stdc = yes; then
1294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1301 egrep "free" >/dev/null 2>&1; then
1305 ac_cv_header_stdc=no
1311 if test $ac_cv_header_stdc = yes; then
1312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1313 if test "$cross_compiling" = yes; then
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1320 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1321 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1323 int main () { int i; for (i = 0; i < 256; i++)
1324 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1335 ac_cv_header_stdc=no
1343 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1344 if test $ac_cv_header_stdc = yes; then
1345 cat >> confdefs.h <<\EOF
1346 #define STDC_HEADERS 1
1351 echo $ac_n "checking for working const""... $ac_c" 1>&6
1352 echo "configure:1353: checking for working const" >&5
1353 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1362 /* Ultrix mips cc rejects this. */
1363 typedef int charset[2]; const charset x;
1364 /* SunOS 4.1.1 cc rejects this. */
1365 char const *const *ccp;
1367 /* NEC SVR4.0.2 mips cc rejects this. */
1368 struct point {int x, y;};
1369 static struct point const zero = {0,0};
1370 /* AIX XL C 1.02.0.0 rejects this.
1371 It does not let you subtract one const X* pointer from another in an arm
1372 of an if-expression whose if-part is not a constant expression */
1373 const char *g = "string";
1374 ccp = &g + (g ? g-g : 0);
1375 /* HPUX 7.0 cc rejects these. */
1378 ccp = (char const *const *) p;
1379 { /* SCO 3.2v4 cc rejects this. */
1381 char const *s = 0 ? (char *) 0 : (char const *) 0;
1385 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1387 const int *foo = &x[0];
1390 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1391 typedef const int *iptr;
1395 { /* AIX XL C 1.02.0.0 rejects this saying
1396 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1397 struct s { int j; const int *ap[3]; };
1398 struct s *b; b->j = 5;
1400 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1406 if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1418 echo "$ac_t""$ac_cv_c_const" 1>&6
1419 if test $ac_cv_c_const = no; then
1420 cat >> confdefs.h <<\EOF
1426 echo $ac_n "checking for inline""... $ac_c" 1>&6
1427 echo "configure:1428: checking for inline" >&5
1428 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1432 for ac_kw in inline __inline__ __inline; do
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1441 if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1443 ac_cv_c_inline=$ac_kw; break
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1453 echo "$ac_t""$ac_cv_c_inline" 1>&6
1454 case "$ac_cv_c_inline" in
1456 no) cat >> confdefs.h <<\EOF
1460 *) cat >> confdefs.h <<EOF
1461 #define inline $ac_cv_c_inline
1466 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1467 echo "configure:1468: checking for off_t" >&5
1468 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 #include <sys/types.h>
1480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1481 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1483 ac_cv_type_off_t=yes
1491 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1492 if test $ac_cv_type_off_t = no; then
1493 cat >> confdefs.h <<\EOF
1499 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1500 echo "configure:1501: checking for size_t" >&5
1501 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 #include <sys/types.h>
1513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1514 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1516 ac_cv_type_size_t=yes
1519 ac_cv_type_size_t=no
1524 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1525 if test $ac_cv_type_size_t = no; then
1526 cat >> confdefs.h <<\EOF
1527 #define size_t unsigned
1532 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1533 # for constant arguments. Useless!
1534 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1535 echo "configure:1536: checking for working alloca.h" >&5
1536 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1544 char *p = alloca(2 * sizeof(int));
1547 if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1549 ac_cv_header_alloca_h=yes
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1554 ac_cv_header_alloca_h=no
1559 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1560 if test $ac_cv_header_alloca_h = yes; then
1561 cat >> confdefs.h <<\EOF
1562 #define HAVE_ALLOCA_H 1
1567 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1568 echo "configure:1569: checking for alloca" >&5
1569 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1577 # define alloca __builtin_alloca
1580 # include <malloc.h>
1581 # define alloca _alloca
1584 # include <alloca.h>
1589 # ifndef alloca /* predefined by HP cc +Olibcalls */
1598 char *p = (char *) alloca(1);
1601 if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1603 ac_cv_func_alloca_works=yes
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1608 ac_cv_func_alloca_works=no
1613 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1614 if test $ac_cv_func_alloca_works = yes; then
1615 cat >> confdefs.h <<\EOF
1616 #define HAVE_ALLOCA 1
1621 if test $ac_cv_func_alloca_works = no; then
1622 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1623 # that cause trouble. Some versions do not even contain alloca or
1624 # contain a buggy version. If you still want to use their alloca,
1625 # use ar to extract alloca.o from them instead of compiling alloca.c.
1626 ALLOCA=alloca.${ac_objext}
1627 cat >> confdefs.h <<\EOF
1632 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1633 echo "configure:1634: checking whether alloca needs Cray hooks" >&5
1634 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 #if defined(CRAY) && ! defined(CRAY2)
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "webecray" >/dev/null 2>&1; then
1659 echo "$ac_t""$ac_cv_os_cray" 1>&6
1660 if test $ac_cv_os_cray = yes; then
1661 for ac_func in _getb67 GETB67 getb67; do
1662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_func" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char $ac_func(); below. */
1673 /* Override any gcc2 internal prototype to avoid an error. */
1674 /* We use char because int might match the return type of a gcc2
1675 builtin and then its argument prototype would still apply. */
1680 /* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 eval "ac_cv_func_$ac_func=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 eval "ac_cv_func_$ac_func=no"
1703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1705 cat >> confdefs.h <<EOF
1706 #define CRAY_STACKSEG_END $ac_func
1711 echo "$ac_t""no" 1>&6
1717 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1718 echo "configure:1719: checking stack direction for C alloca" >&5
1719 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 if test "$cross_compiling" = yes; then
1723 ac_cv_c_stack_direction=0
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 find_stack_direction ()
1730 static char *addr = 0;
1735 return find_stack_direction ();
1738 return (&dummy > addr) ? 1 : -1;
1742 exit (find_stack_direction() < 0);
1745 if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1747 ac_cv_c_stack_direction=1
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1752 ac_cv_c_stack_direction=-1
1759 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1760 cat >> confdefs.h <<EOF
1761 #define STACK_DIRECTION $ac_cv_c_stack_direction
1766 for ac_hdr in unistd.h
1768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_hdr" >&5
1771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1780 { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1782 if test -z "$ac_err"; then
1784 eval "ac_cv_header_$ac_safe=yes"
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 eval "ac_cv_header_$ac_safe=no"
1794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1795 echo "$ac_t""yes" 1>&6
1796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1797 cat >> confdefs.h <<EOF
1798 #define $ac_tr_hdr 1
1802 echo "$ac_t""no" 1>&6
1806 for ac_func in getpagesize
1808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_func" >&5
1810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $ac_func(); below. */
1819 /* Override any gcc2 internal prototype to avoid an error. */
1820 /* We use char because int might match the return type of a gcc2
1821 builtin and then its argument prototype would still apply. */
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1839 eval "ac_cv_func_$ac_func=yes"
1841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1844 eval "ac_cv_func_$ac_func=no"
1849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1850 echo "$ac_t""yes" 1>&6
1851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1852 cat >> confdefs.h <<EOF
1853 #define $ac_tr_func 1
1857 echo "$ac_t""no" 1>&6
1861 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1862 echo "configure:1863: checking for working mmap" >&5
1863 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 if test "$cross_compiling" = yes; then
1867 ac_cv_func_mmap_fixed_mapped=no
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1873 /* Thanks to Mike Haertel and Jim Avera for this test.
1874 Here is a matrix of mmap possibilities:
1875 mmap private not fixed
1876 mmap private fixed at somewhere currently unmapped
1877 mmap private fixed at somewhere already mapped
1878 mmap shared not fixed
1879 mmap shared fixed at somewhere currently unmapped
1880 mmap shared fixed at somewhere already mapped
1881 For private mappings, we should verify that changes cannot be read()
1882 back from the file, nor mmap's back from the file at a different
1883 address. (There have been systems where private was not correctly
1884 implemented like the infamous i386 svr4.0, and systems where the
1885 VM page cache was not coherent with the filesystem buffer cache
1886 like early versions of FreeBSD and possibly contemporary NetBSD.)
1887 For shared mappings, we should conversely verify that changes get
1888 propogated back to all the places they're supposed to be.
1890 Grep wants private fixed already mapped.
1891 The main things grep needs to know about mmap are:
1892 * does it exist and is it safe to write into the mmap'd area
1893 * how to use it (BSD variants) */
1894 #include <sys/types.h>
1896 #include <sys/mman.h>
1898 /* This mess was copied from the GNU getpagesize.h. */
1899 #ifndef HAVE_GETPAGESIZE
1900 # ifdef HAVE_UNISTD_H
1901 # include <unistd.h>
1904 /* Assume that all systems that can run configure have sys/param.h. */
1905 # ifndef HAVE_SYS_PARAM_H
1906 # define HAVE_SYS_PARAM_H 1
1909 # ifdef _SC_PAGESIZE
1910 # define getpagesize() sysconf(_SC_PAGESIZE)
1911 # else /* no _SC_PAGESIZE */
1912 # ifdef HAVE_SYS_PARAM_H
1913 # include <sys/param.h>
1914 # ifdef EXEC_PAGESIZE
1915 # define getpagesize() EXEC_PAGESIZE
1916 # else /* no EXEC_PAGESIZE */
1918 # define getpagesize() NBPG * CLSIZE
1921 # endif /* no CLSIZE */
1922 # else /* no NBPG */
1924 # define getpagesize() NBPC
1925 # else /* no NBPC */
1927 # define getpagesize() PAGESIZE
1928 # endif /* PAGESIZE */
1929 # endif /* no NBPC */
1930 # endif /* no NBPG */
1931 # endif /* no EXEC_PAGESIZE */
1932 # else /* no HAVE_SYS_PARAM_H */
1933 # define getpagesize() 8192 /* punt totally */
1934 # endif /* no HAVE_SYS_PARAM_H */
1935 # endif /* no _SC_PAGESIZE */
1937 #endif /* no HAVE_GETPAGESIZE */
1940 extern "C" { void *malloc(unsigned); }
1948 char *data, *data2, *data3;
1952 pagesize = getpagesize();
1955 * First, make a file with some known garbage in it.
1957 data = malloc(pagesize);
1960 for (i = 0; i < pagesize; ++i)
1961 *(data + i) = rand();
1963 fd = creat("conftestmmap", 0600);
1966 if (write(fd, data, pagesize) != pagesize)
1971 * Next, try to mmap the file at a fixed address which
1972 * already has something else allocated at it. If we can,
1973 * also make sure that we see the same garbage.
1975 fd = open("conftestmmap", O_RDWR);
1978 data2 = malloc(2 * pagesize);
1981 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1982 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1983 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1985 for (i = 0; i < pagesize; ++i)
1986 if (*(data + i) != *(data2 + i))
1990 * Finally, make sure that changes to the mapped area
1991 * do not percolate back to the file as seen by read().
1992 * (This is a bug on some variants of i386 svr4.0.)
1994 for (i = 0; i < pagesize; ++i)
1995 *(data2 + i) = *(data2 + i) + 1;
1996 data3 = malloc(pagesize);
1999 if (read(fd, data3, pagesize) != pagesize)
2001 for (i = 0; i < pagesize; ++i)
2002 if (*(data + i) != *(data3 + i))
2005 unlink("conftestmmap");
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2012 ac_cv_func_mmap_fixed_mapped=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 ac_cv_func_mmap_fixed_mapped=no
2024 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2025 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2026 cat >> confdefs.h <<\EOF
2033 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether we are using the GNU C Library 2.1 or newer" >&5
2035 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2042 #include <features.h>
2043 #ifdef __GNU_LIBRARY__
2044 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2051 egrep "Lucky GNU user" >/dev/null 2>&1; then
2053 ac_cv_gnu_library_2_1=yes
2056 ac_cv_gnu_library_2_1=no
2064 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2066 GLIBC21="$ac_cv_gnu_library_2_1"
2070 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2071 stdlib.h string.h unistd.h sys/param.h
2073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2075 echo "configure:2076: checking for $ac_hdr" >&5
2076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2085 { (eval echo configure:2086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2087 if test -z "$ac_err"; then
2089 eval "ac_cv_header_$ac_safe=yes"
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 eval "ac_cv_header_$ac_safe=no"
2099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2100 echo "$ac_t""yes" 1>&6
2101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2102 cat >> confdefs.h <<EOF
2103 #define $ac_tr_hdr 1
2107 echo "$ac_t""no" 1>&6
2111 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2112 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2113 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2116 echo "configure:2117: checking for $ac_func" >&5
2117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 /* System header to define __stub macros and hopefully few prototypes,
2124 which can conflict with char $ac_func(); below. */
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2133 /* The GNU C library defines this for functions which it implements
2134 to always fail with ENOSYS. Some functions are actually named
2135 something starting with __ and the normal name is an alias. */
2136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2144 if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2146 eval "ac_cv_func_$ac_func=yes"
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2151 eval "ac_cv_func_$ac_func=no"
2156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2159 cat >> confdefs.h <<EOF
2160 #define $ac_tr_func 1
2164 echo "$ac_t""no" 1>&6
2171 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2172 if test "${with_libiconv_prefix+set}" = set; then
2173 withval="$with_libiconv_prefix"
2175 for dir in `echo "$withval" | tr : ' '`; do
2176 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2177 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2183 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2184 echo "configure:2185: checking for iconv" >&5
2185 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2189 am_cv_func_iconv="no, consider installing GNU libiconv"
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2197 iconv_t cd = iconv_open("","");
2198 iconv(cd,NULL,NULL,NULL,NULL);
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2204 am_cv_func_iconv=yes
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2210 if test "$am_cv_func_iconv" != yes; then
2211 am_save_LIBS="$LIBS"
2212 LIBS="$LIBS -liconv"
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2219 iconv_t cd = iconv_open("","");
2220 iconv(cd,NULL,NULL,NULL,NULL);
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2227 am_cv_func_iconv=yes
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2233 LIBS="$am_save_LIBS"
2238 echo "$ac_t""$am_cv_func_iconv" 1>&6
2239 if test "$am_cv_func_iconv" = yes; then
2240 cat >> confdefs.h <<\EOF
2241 #define HAVE_ICONV 1
2244 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2245 echo "configure:2246: checking for iconv declaration" >&5
2246 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2260 #if defined(__STDC__) || defined(__cplusplus)
2261 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2270 if { (eval echo configure:2271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2272 am_cv_proto_iconv_arg1=""
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2277 am_cv_proto_iconv_arg1="const"
2280 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);"
2283 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2284 echo "$ac_t""${ac_t:-
2285 }$am_cv_proto_iconv" 1>&6
2286 cat >> confdefs.h <<EOF
2287 #define ICONV_CONST $am_cv_proto_iconv_arg1
2292 if test "$am_cv_lib_iconv" = yes; then
2298 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2299 echo "configure:2300: checking for nl_langinfo and CODESET" >&5
2300 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <langinfo.h>
2308 char* cs = nl_langinfo(CODESET);
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313 am_cv_langinfo_codeset=yes
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 am_cv_langinfo_codeset=no
2324 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2325 if test $am_cv_langinfo_codeset = yes; then
2326 cat >> confdefs.h <<\EOF
2327 #define HAVE_LANGINFO_CODESET 1
2332 if test $ac_cv_header_locale_h = yes; then
2333 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2334 echo "configure:2335: checking for LC_MESSAGES" >&5
2335 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2348 am_cv_val_LC_MESSAGES=yes
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2353 am_cv_val_LC_MESSAGES=no
2358 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2359 if test $am_cv_val_LC_MESSAGES = yes; then
2360 cat >> confdefs.h <<\EOF
2361 #define HAVE_LC_MESSAGES 1
2366 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2367 echo "configure:2368: checking whether NLS is requested" >&5
2368 # Check whether --enable-nls or --disable-nls was given.
2369 if test "${enable_nls+set}" = set; then
2370 enableval="$enable_nls"
2376 echo "$ac_t""$USE_NLS" 1>&6
2379 BUILD_INCLUDED_LIBINTL=no
2380 USE_INCLUDED_LIBINTL=no
2383 if test "$USE_NLS" = "yes"; then
2384 cat >> confdefs.h <<\EOF
2385 #define ENABLE_NLS 1
2388 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2389 echo "configure:2390: checking whether included gettext is requested" >&5
2390 # Check whether --with-included-gettext or --without-included-gettext was given.
2391 if test "${with_included_gettext+set}" = set; then
2392 withval="$with_included_gettext"
2393 nls_cv_force_use_gnu_gettext=$withval
2395 nls_cv_force_use_gnu_gettext=no
2398 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2400 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2401 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2407 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2408 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2409 echo "configure:2410: checking for libintl.h" >&5
2410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 #include <libintl.h>
2418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2419 { (eval echo configure:2420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2421 if test -z "$ac_err"; then
2423 eval "ac_cv_header_$ac_safe=yes"
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 eval "ac_cv_header_$ac_safe=no"
2433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2436 echo "configure:2437: checking for GNU gettext in libc" >&5
2437 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 #include <libintl.h>
2444 extern int _nl_msg_cat_cntr;
2446 bindtextdomain ("", "");
2447 return (int) gettext ("") + _nl_msg_cat_cntr
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2452 gt_cv_func_gnugettext1_libc=yes
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2457 gt_cv_func_gnugettext1_libc=no
2462 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2464 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2465 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2466 echo "configure:2467: checking for GNU gettext in libintl" >&5
2467 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 gt_save_LIBS="$LIBS"
2471 LIBS="$LIBS -lintl $LIBICONV"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <libintl.h>
2476 extern int _nl_msg_cat_cntr;
2478 bindtextdomain ("", "");
2479 return (int) gettext ("") + _nl_msg_cat_cntr
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484 gt_cv_func_gnugettext1_libintl=yes
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 gt_cv_func_gnugettext1_libintl=no
2492 LIBS="$gt_save_LIBS"
2495 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2498 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2499 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2500 && test "$PACKAGE" != gettext; }; then
2501 cat >> confdefs.h <<\EOF
2502 #define HAVE_GETTEXT 1
2506 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2507 INTLLIBS="-lintl $LIBICONV"
2510 gt_save_LIBS="$LIBS"
2511 LIBS="$LIBS $INTLLIBS"
2512 for ac_func in dcgettext
2514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2515 echo "configure:2516: checking for $ac_func" >&5
2516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 /* System header to define __stub macros and hopefully few prototypes,
2523 which can conflict with char $ac_func(); below. */
2525 /* Override any gcc2 internal prototype to avoid an error. */
2526 /* We use char because int might match the return type of a gcc2
2527 builtin and then its argument prototype would still apply. */
2532 /* The GNU C library defines this for functions which it implements
2533 to always fail with ENOSYS. Some functions are actually named
2534 something starting with __ and the normal name is an alias. */
2535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2543 if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2545 eval "ac_cv_func_$ac_func=yes"
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2550 eval "ac_cv_func_$ac_func=no"
2555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2558 cat >> confdefs.h <<EOF
2559 #define $ac_tr_func 1
2563 echo "$ac_t""no" 1>&6
2567 LIBS="$gt_save_LIBS"
2569 # Extract the first word of "msgfmt", so it can be a program name with args.
2570 set dummy msgfmt; ac_word=$2
2571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_word" >&5
2573 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2578 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2582 for ac_dir in $PATH; do
2583 test -z "$ac_dir" && ac_dir=.
2584 if test -f $ac_dir/$ac_word; then
2585 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2586 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2592 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2596 MSGFMT="$ac_cv_path_MSGFMT"
2597 if test "$MSGFMT" != ":"; then
2598 echo "$ac_t""$MSGFMT" 1>&6
2600 echo "$ac_t""no" 1>&6
2603 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2604 set dummy gmsgfmt; ac_word=$2
2605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2606 echo "configure:2607: checking for $ac_word" >&5
2607 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2612 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2615 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2620 for ac_dir in $ac_dummy; do
2621 test -z "$ac_dir" && ac_dir=.
2622 if test -f $ac_dir/$ac_word; then
2623 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2628 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2632 GMSGFMT="$ac_cv_path_GMSGFMT"
2633 if test -n "$GMSGFMT"; then
2634 echo "$ac_t""$GMSGFMT" 1>&6
2636 echo "$ac_t""no" 1>&6
2640 # Extract the first word of "xgettext", so it can be a program name with args.
2641 set dummy xgettext; ac_word=$2
2642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2643 echo "configure:2644: checking for $ac_word" >&5
2644 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2649 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2653 for ac_dir in $PATH; do
2654 test -z "$ac_dir" && ac_dir=.
2655 if test -f $ac_dir/$ac_word; then
2656 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2657 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2663 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2667 XGETTEXT="$ac_cv_path_XGETTEXT"
2668 if test "$XGETTEXT" != ":"; then
2669 echo "$ac_t""$XGETTEXT" 1>&6
2671 echo "$ac_t""no" 1>&6
2679 echo "$ac_t""no" 1>&6
2683 if test "$CATOBJEXT" = "NONE"; then
2684 nls_cv_use_gnu_gettext=yes
2688 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2689 INTLOBJS="\$(GETTOBJS)"
2690 # Extract the first word of "msgfmt", so it can be a program name with args.
2691 set dummy msgfmt; ac_word=$2
2692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_word" >&5
2694 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2699 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2703 for ac_dir in $PATH; do
2704 test -z "$ac_dir" && ac_dir=.
2705 if test -f $ac_dir/$ac_word; then
2706 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2707 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2713 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2717 MSGFMT="$ac_cv_path_MSGFMT"
2718 if test "$MSGFMT" != ":"; then
2719 echo "$ac_t""$MSGFMT" 1>&6
2721 echo "$ac_t""no" 1>&6
2724 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2725 set dummy gmsgfmt; ac_word=$2
2726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_word" >&5
2728 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2733 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2736 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2741 for ac_dir in $ac_dummy; do
2742 test -z "$ac_dir" && ac_dir=.
2743 if test -f $ac_dir/$ac_word; then
2744 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2749 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2753 GMSGFMT="$ac_cv_path_GMSGFMT"
2754 if test -n "$GMSGFMT"; then
2755 echo "$ac_t""$GMSGFMT" 1>&6
2757 echo "$ac_t""no" 1>&6
2760 # Extract the first word of "xgettext", so it can be a program name with args.
2761 set dummy xgettext; ac_word=$2
2762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_word" >&5
2764 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2769 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2773 for ac_dir in $PATH; do
2774 test -z "$ac_dir" && ac_dir=.
2775 if test -f $ac_dir/$ac_word; then
2776 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2777 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2783 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2787 XGETTEXT="$ac_cv_path_XGETTEXT"
2788 if test "$XGETTEXT" != ":"; then
2789 echo "$ac_t""$XGETTEXT" 1>&6
2791 echo "$ac_t""no" 1>&6
2795 BUILD_INCLUDED_LIBINTL=yes
2796 USE_INCLUDED_LIBINTL=yes
2798 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2799 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2802 if test "$GMSGFMT" != ":"; then
2803 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2806 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2811 if test "$XGETTEXT" != ":"; then
2812 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2815 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2825 if test "$PACKAGE" = gettext; then
2826 BUILD_INCLUDED_LIBINTL=yes
2829 for ac_prog in bison
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_word" >&5
2835 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 if test -n "$INTLBISON"; then
2839 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2843 for ac_dir in $ac_dummy; do
2844 test -z "$ac_dir" && ac_dir=.
2845 if test -f $ac_dir/$ac_word; then
2846 ac_cv_prog_INTLBISON="$ac_prog"
2853 INTLBISON="$ac_cv_prog_INTLBISON"
2854 if test -n "$INTLBISON"; then
2855 echo "$ac_t""$INTLBISON" 1>&6
2857 echo "$ac_t""no" 1>&6
2860 test -n "$INTLBISON" && break
2863 if test -z "$INTLBISON"; then
2866 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2867 echo "configure:2868: checking version of bison" >&5
2868 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2869 case $ac_prog_version in
2870 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2871 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2872 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2873 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2875 echo "$ac_t""$ac_prog_version" 1>&6
2877 if test $ac_verc_fail = yes; then
2881 for lang in $ALL_LINGUAS; do
2882 GMOFILES="$GMOFILES $lang.gmo"
2883 POFILES="$POFILES $lang.po"
2897 nls_cv_header_libgt=
2909 if test "x$CATOBJEXT" != "x"; then
2910 if test "x$ALL_LINGUAS" = "x"; then
2913 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2914 echo "configure:2915: checking for catalogs to be installed" >&5
2916 for presentlang in $ALL_LINGUAS; do
2918 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2919 # Use the presentlang catalog if desiredlang is
2920 # a. equal to presentlang, or
2921 # b. a variant of presentlang (because in this case,
2922 # presentlang can be used as a fallback for messages
2923 # which are not translated in the desiredlang catalog).
2924 case "$desiredlang" in
2925 "$presentlang"*) useit=yes;;
2928 if test $useit = yes; then
2929 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2932 LINGUAS=$NEW_LINGUAS
2933 echo "$ac_t""$LINGUAS" 1>&6
2936 if test -n "$LINGUAS"; then
2937 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2942 if test -n "$ac_aux_dir"; then
2943 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2945 if test -z "$MKINSTALLDIRS"; then
2946 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2950 INTL_LIBTOOL_SUFFIX_PREFIX=
2954 # Find a good install program. We prefer a C program (faster),
2955 # so one script is as good as another. But avoid the broken or
2956 # incompatible versions:
2957 # SysV /etc/install, /usr/sbin/install
2958 # SunOS /usr/etc/install
2959 # IRIX /sbin/install
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # ./install, which can be erroneously created by make from ./install.sh.
2965 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2966 echo "configure:2967: checking for a BSD compatible install" >&5
2967 if test -z "$INSTALL"; then
2968 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2972 for ac_dir in $PATH; do
2973 # Account for people who put trailing slashes in PATH elements.
2975 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2977 # OSF1 and SCO ODT 3.0 have their own names for install.
2978 # Don't use installbsd from OSF since it installs stuff as root
2980 for ac_prog in ginstall scoinst install; do
2981 if test -f $ac_dir/$ac_prog; then
2982 if test $ac_prog = install &&
2983 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2984 # AIX install. It has an incompatible calling convention.
2987 ac_cv_path_install="$ac_dir/$ac_prog -c"
2998 if test "${ac_cv_path_install+set}" = set; then
2999 INSTALL="$ac_cv_path_install"
3001 # As a last resort, use the slow shell script. We don't cache a
3002 # path for INSTALL within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the path is relative.
3005 INSTALL="$ac_install_sh"
3008 echo "$ac_t""$INSTALL" 1>&6
3010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3011 # It thinks the first close brace ends the variable substitution.
3012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3019 # Check whether --with-words or --without-words was given.
3020 if test "${with_words+set}" = set; then
3021 withval="$with_words"
3027 ac_cv_c_bigendian=yes
3030 ac_cv_c_bigendian=no
3033 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
3034 echo "configure:3035: checking whether the byte order is big-endian" >&5
3035 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 ac_cv_c_bigendian=unknown
3039 cat >conftest.c <<EOF
3040 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
3041 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
3042 void _a(void) { char*s = (char*)am; s = (char *)ai; }
3043 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
3044 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
3045 void _e(void) { char*s = (char*)em; s = (char*)ei; }
3046 int main(void) { _a(); _e(); return 0; }
3049 if test -f conftest.c
3051 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
3052 && test -f conftest.o
3054 if test `grep -l BIGenDianSyS conftest.o`
3056 ac_cv_c_bigendian=yes
3058 if test `grep -l LiTTleEnDian conftest.o`
3060 ac_cv_c_bigendian=no
3067 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3068 if test $ac_cv_c_bigendian = xunknown
3070 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
3074 if test $ac_cv_c_bigendian = yes
3076 cat >> confdefs.h <<\EOF
3077 #define WORDS_BIGENDIAN 1
3082 for ac_func in gettimeofday select strerror strtod strtol isatty
3084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_func" >&5
3086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* System header to define __stub macros and hopefully few prototypes,
3093 which can conflict with char $ac_func(); below. */
3095 /* Override any gcc2 internal prototype to avoid an error. */
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3102 /* The GNU C library defines this for functions which it implements
3103 to always fail with ENOSYS. Some functions are actually named
3104 something starting with __ and the normal name is an alias. */
3105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3115 eval "ac_cv_func_$ac_func=yes"
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 eval "ac_cv_func_$ac_func=no"
3125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3126 echo "$ac_t""yes" 1>&6
3127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3128 cat >> confdefs.h <<EOF
3129 #define $ac_tr_func 1
3133 echo "$ac_t""no" 1>&6
3137 echo $ac_n "checking for connect""... $ac_c" 1>&6
3138 echo "configure:3139: checking for connect" >&5
3139 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 /* System header to define __stub macros and hopefully few prototypes,
3146 which can conflict with char connect(); below. */
3148 /* Override any gcc2 internal prototype to avoid an error. */
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3155 /* The GNU C library defines this for functions which it implements
3156 to always fail with ENOSYS. Some functions are actually named
3157 something starting with __ and the normal name is an alias. */
3158 #if defined (__stub_connect) || defined (__stub___connect)
3166 if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3168 eval "ac_cv_func_connect=yes"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3173 eval "ac_cv_func_connect=no"
3178 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3179 echo "$ac_t""yes" 1>&6
3182 echo "$ac_t""no" 1>&6
3184 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3185 echo "configure:3186: checking for connect in -lsocket" >&5
3186 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 ac_save_LIBS="$LIBS"
3191 LIBS="-lsocket $LIBS"
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 /* Override any gcc2 internal prototype to avoid an error. */
3196 /* We use char because int might match the return type of a gcc2
3197 builtin and then its argument prototype would still apply. */
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3206 eval "ac_cv_lib_$ac_lib_var=yes"
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3211 eval "ac_cv_lib_$ac_lib_var=no"
3214 LIBS="$ac_save_LIBS"
3217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 LIB="${LIB} -lsocket"
3221 echo "$ac_t""no" 1>&6
3227 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3228 echo "configure:3229: checking for gethostbyname" >&5
3229 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 /* System header to define __stub macros and hopefully few prototypes,
3236 which can conflict with char gethostbyname(); below. */
3238 /* Override any gcc2 internal prototype to avoid an error. */
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3241 char gethostbyname();
3245 /* The GNU C library defines this for functions which it implements
3246 to always fail with ENOSYS. Some functions are actually named
3247 something starting with __ and the normal name is an alias. */
3248 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3258 eval "ac_cv_func_gethostbyname=yes"
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3263 eval "ac_cv_func_gethostbyname=no"
3268 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3272 echo "$ac_t""no" 1>&6
3274 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3275 echo "configure:3276: checking for gethostbyname in -lnsl" >&5
3276 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 ac_save_LIBS="$LIBS"
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3285 /* Override any gcc2 internal prototype to avoid an error. */
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3288 char gethostbyname();
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296 eval "ac_cv_lib_$ac_lib_var=yes"
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 eval "ac_cv_lib_$ac_lib_var=no"
3304 LIBS="$ac_save_LIBS"
3307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3311 echo "$ac_t""no" 1>&6
3317 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3318 echo "configure:3319: checking for nanosleep" >&5
3319 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* System header to define __stub macros and hopefully few prototypes,
3326 which can conflict with char nanosleep(); below. */
3328 /* Override any gcc2 internal prototype to avoid an error. */
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3335 /* The GNU C library defines this for functions which it implements
3336 to always fail with ENOSYS. Some functions are actually named
3337 something starting with __ and the normal name is an alias. */
3338 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3348 eval "ac_cv_func_nanosleep=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 eval "ac_cv_func_nanosleep=no"
3358 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3362 echo "$ac_t""no" 1>&6
3364 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3365 echo "configure:3366: checking for nanosleep in -lrt" >&5
3366 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 ac_save_LIBS="$LIBS"
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 /* Override any gcc2 internal prototype to avoid an error. */
3376 /* We use char because int might match the return type of a gcc2
3377 builtin and then its argument prototype would still apply. */
3384 if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3386 eval "ac_cv_lib_$ac_lib_var=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3391 eval "ac_cv_lib_$ac_lib_var=no"
3394 LIBS="$ac_save_LIBS"
3397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3398 echo "$ac_t""yes" 1>&6
3401 echo "$ac_t""no" 1>&6
3403 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3404 echo "configure:3405: checking for nanosleep in -lposix4" >&5
3405 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 ac_save_LIBS="$LIBS"
3410 LIBS="-lposix4 $LIBS"
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 /* Override any gcc2 internal prototype to avoid an error. */
3415 /* We use char because int might match the return type of a gcc2
3416 builtin and then its argument prototype would still apply. */
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3425 eval "ac_cv_lib_$ac_lib_var=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 eval "ac_cv_lib_$ac_lib_var=no"
3433 LIBS="$ac_save_LIBS"
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 LIB="${LIB} -lposix4"
3440 echo "$ac_t""no" 1>&6
3449 for ac_func in usleep
3451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3452 echo "configure:3453: checking for $ac_func" >&5
3453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 /* System header to define __stub macros and hopefully few prototypes,
3460 which can conflict with char $ac_func(); below. */
3462 /* Override any gcc2 internal prototype to avoid an error. */
3463 /* We use char because int might match the return type of a gcc2
3464 builtin and then its argument prototype would still apply. */
3469 /* The GNU C library defines this for functions which it implements
3470 to always fail with ENOSYS. Some functions are actually named
3471 something starting with __ and the normal name is an alias. */
3472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3482 eval "ac_cv_func_$ac_func=yes"
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3487 eval "ac_cv_func_$ac_func=no"
3492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3495 cat >> confdefs.h <<EOF
3496 #define $ac_tr_func 1
3500 echo "$ac_t""no" 1>&6
3504 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3505 echo "configure:3506: checking for inet_aton" >&5
3506 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char inet_aton(); below. */
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3522 /* The GNU C library defines this for functions which it implements
3523 to always fail with ENOSYS. Some functions are actually named
3524 something starting with __ and the normal name is an alias. */
3525 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3533 if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3535 eval "ac_cv_func_inet_aton=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 eval "ac_cv_func_inet_aton=no"
3545 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3549 echo "$ac_t""no" 1>&6
3551 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3552 echo "configure:3553: checking for inet_aton in -lresolv" >&5
3553 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_save_LIBS="$LIBS"
3558 LIBS="-lresolv $LIBS"
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* Override any gcc2 internal prototype to avoid an error. */
3563 /* We use char because int might match the return type of a gcc2
3564 builtin and then its argument prototype would still apply. */
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_lib_$ac_lib_var=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_lib_$ac_lib_var=no"
3581 LIBS="$ac_save_LIBS"
3584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 LIB="${LIB} -lresolv"
3588 echo "$ac_t""no" 1>&6
3594 for ac_func in vasprintf
3596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3597 echo "configure:3598: checking for $ac_func" >&5
3598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 /* System header to define __stub macros and hopefully few prototypes,
3605 which can conflict with char $ac_func(); below. */
3607 /* Override any gcc2 internal prototype to avoid an error. */
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3614 /* The GNU C library defines this for functions which it implements
3615 to always fail with ENOSYS. Some functions are actually named
3616 something starting with __ and the normal name is an alias. */
3617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3625 if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3627 eval "ac_cv_func_$ac_func=yes"
3629 echo "configure: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3632 eval "ac_cv_func_$ac_func=no"
3637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3640 cat >> confdefs.h <<EOF
3641 #define $ac_tr_func 1
3645 echo "$ac_t""no" 1>&6
3651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3652 echo "configure:3653: checking for $ac_func" >&5
3653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 /* System header to define __stub macros and hopefully few prototypes,
3660 which can conflict with char $ac_func(); below. */
3662 /* Override any gcc2 internal prototype to avoid an error. */
3663 /* We use char because int might match the return type of a gcc2
3664 builtin and then its argument prototype would still apply. */
3669 /* The GNU C library defines this for functions which it implements
3670 to always fail with ENOSYS. Some functions are actually named
3671 something starting with __ and the normal name is an alias. */
3672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3682 eval "ac_cv_func_$ac_func=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 eval "ac_cv_func_$ac_func=no"
3692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3695 cat >> confdefs.h <<EOF
3696 #define $ac_tr_func 1
3700 echo "$ac_t""no" 1>&6
3704 for ac_func in memalign valloc
3706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3707 echo "configure:3708: checking for $ac_func" >&5
3708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 /* System header to define __stub macros and hopefully few prototypes,
3715 which can conflict with char $ac_func(); below. */
3717 /* Override any gcc2 internal prototype to avoid an error. */
3718 /* We use char because int might match the return type of a gcc2
3719 builtin and then its argument prototype would still apply. */
3724 /* The GNU C library defines this for functions which it implements
3725 to always fail with ENOSYS. Some functions are actually named
3726 something starting with __ and the normal name is an alias. */
3727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3735 if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3737 eval "ac_cv_func_$ac_func=yes"
3739 echo "configure: failed program was:" >&5
3740 cat conftest.$ac_ext >&5
3742 eval "ac_cv_func_$ac_func=no"
3747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3750 cat >> confdefs.h <<EOF
3751 #define $ac_tr_func 1
3755 echo "$ac_t""no" 1>&6
3760 for ac_func in sigrelse
3762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3763 echo "configure:3764: checking for $ac_func" >&5
3764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* System header to define __stub macros and hopefully few prototypes,
3771 which can conflict with char $ac_func(); below. */
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3780 /* The GNU C library defines this for functions which it implements
3781 to always fail with ENOSYS. Some functions are actually named
3782 something starting with __ and the normal name is an alias. */
3783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3793 eval "ac_cv_func_$ac_func=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 eval "ac_cv_func_$ac_func=no"
3803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3806 cat >> confdefs.h <<EOF
3807 #define $ac_tr_func 1
3811 echo "$ac_t""no" 1>&6
3817 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3818 echo "configure:3819: checking for getopt_long" >&5
3819 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* System header to define __stub macros and hopefully few prototypes,
3826 which can conflict with char getopt_long(); below. */
3828 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3835 /* The GNU C library defines this for functions which it implements
3836 to always fail with ENOSYS. Some functions are actually named
3837 something starting with __ and the normal name is an alias. */
3838 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3846 if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3848 eval "ac_cv_func_getopt_long=yes"
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3853 eval "ac_cv_func_getopt_long=no"
3858 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3859 echo "$ac_t""yes" 1>&6
3860 cat >> confdefs.h <<\EOF
3861 #define HAVE_GETOPT_LONG 1
3865 echo "$ac_t""no" 1>&6
3866 # FreeBSD has a gnugetopt library for this:
3867 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3868 echo "configure:3869: checking for getopt_long in -lgnugetopt" >&5
3869 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 ac_save_LIBS="$LIBS"
3874 LIBS="-lgnugetopt $LIBS"
3875 cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 /* Override any gcc2 internal prototype to avoid an error. */
3879 /* We use char because int might match the return type of a gcc2
3880 builtin and then its argument prototype would still apply. */
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3889 eval "ac_cv_lib_$ac_lib_var=yes"
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3894 eval "ac_cv_lib_$ac_lib_var=no"
3897 LIBS="$ac_save_LIBS"
3900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3901 echo "$ac_t""yes" 1>&6
3902 cat >> confdefs.h <<\EOF
3903 #define HAVE_GETOPT_LONG 1
3905 LIB="${LIB} -lgnugetopt"
3907 echo "$ac_t""no" 1>&6
3914 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3915 echo "configure:3916: checking return type of signal handlers" >&5
3916 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 #include <sys/types.h>
3928 extern "C" void (*signal (int, void (*)(int)))(int);
3930 void (*signal ()) ();
3937 if { (eval echo configure:3938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3939 ac_cv_type_signal=void
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 ac_cv_type_signal=int
3949 echo "$ac_t""$ac_cv_type_signal" 1>&6
3950 cat >> confdefs.h <<EOF
3951 #define RETSIGTYPE $ac_cv_type_signal
3955 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3956 echo "configure:3957: checking for dlopen in -ldl" >&5
3957 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 ac_save_LIBS="$LIBS"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3982 eval "ac_cv_lib_$ac_lib_var=no"
3985 LIBS="$ac_save_LIBS"
3988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3992 echo "$ac_t""no" 1>&6
3995 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3996 echo "configure:3997: checking for cos in -lm" >&5
3997 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
3998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4001 ac_save_LIBS="$LIBS"
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 /* Override any gcc2 internal prototype to avoid an error. */
4007 /* We use char because int might match the return type of a gcc2
4008 builtin and then its argument prototype would still apply. */
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4017 eval "ac_cv_lib_$ac_lib_var=yes"
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4022 eval "ac_cv_lib_$ac_lib_var=no"
4025 LIBS="$ac_save_LIBS"
4028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 LIB_IMDCT="${LIB_IMDCT} -lm"
4031 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4033 echo "$ac_t""no" 1>&6
4036 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4037 echo "configure:4038: checking for pow in -lm" >&5
4038 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 ac_save_LIBS="$LIBS"
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4056 if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4058 eval "ac_cv_lib_$ac_lib_var=yes"
4060 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4063 eval "ac_cv_lib_$ac_lib_var=no"
4066 LIBS="$ac_save_LIBS"
4069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4070 echo "$ac_t""yes" 1>&6
4071 LIB_IMDCT="${LIB_IMDCT} -lm"
4072 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4073 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4076 echo "$ac_t""no" 1>&6
4081 if test "x${THREAD_LIB}" = xerror; then
4082 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4083 echo "configure:4084: checking for pthread_attr_init in -lpthread" >&5
4084 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 ac_save_LIBS="$LIBS"
4089 LIBS="-lpthread $LIBS"
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4096 char pthread_attr_init();
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4104 eval "ac_cv_lib_$ac_lib_var=yes"
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4109 eval "ac_cv_lib_$ac_lib_var=no"
4112 LIBS="$ac_save_LIBS"
4115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4116 echo "$ac_t""yes" 1>&6
4117 THREAD_LIB="-lpthread"
4119 echo "$ac_t""no" 1>&6
4123 if test "x${THREAD_LIB}" = xerror; then
4124 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4125 echo "configure:4126: checking for pthread_attr_init in -lpthreads" >&5
4126 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 ac_save_LIBS="$LIBS"
4131 LIBS="-lpthreads $LIBS"
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* Override any gcc2 internal prototype to avoid an error. */
4136 /* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4138 char pthread_attr_init();
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 eval "ac_cv_lib_$ac_lib_var=yes"
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 eval "ac_cv_lib_$ac_lib_var=no"
4154 LIBS="$ac_save_LIBS"
4157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 THREAD_LIB="-lpthreads"
4161 echo "$ac_t""no" 1>&6
4165 if test "x${THREAD_LIB}" = xerror; then
4166 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4167 echo "configure:4168: checking for pthread_attr_init in -lc_r" >&5
4168 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 ac_save_LIBS="$LIBS"
4174 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4180 char pthread_attr_init();
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4188 eval "ac_cv_lib_$ac_lib_var=yes"
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4193 eval "ac_cv_lib_$ac_lib_var=no"
4196 LIBS="$ac_save_LIBS"
4199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4200 echo "$ac_t""yes" 1>&6
4203 echo "$ac_t""no" 1>&6
4207 if test "x${THREAD_LIB}" = xerror; then
4208 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4209 echo "configure:4210: checking for pthread_attr_init" >&5
4210 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* System header to define __stub macros and hopefully few prototypes,
4217 which can conflict with char pthread_attr_init(); below. */
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char pthread_attr_init();
4226 /* The GNU C library defines this for functions which it implements
4227 to always fail with ENOSYS. Some functions are actually named
4228 something starting with __ and the normal name is an alias. */
4229 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4232 pthread_attr_init();
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 eval "ac_cv_func_pthread_attr_init=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4244 eval "ac_cv_func_pthread_attr_init=no"
4249 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4253 echo "$ac_t""no" 1>&6
4259 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4260 echo "configure:4261: checking for cthread_fork in -lthreads" >&5
4261 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 ac_save_LIBS="$LIBS"
4266 LIBS="-lthreads $LIBS"
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4273 char cthread_fork();
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 eval "ac_cv_lib_$ac_lib_var=yes"
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4286 eval "ac_cv_lib_$ac_lib_var=no"
4289 LIBS="$ac_save_LIBS"
4292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4293 echo "$ac_t""yes" 1>&6
4294 THREAD_LIB="-lthreads"
4296 echo "$ac_t""no" 1>&6
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 #include <pthread.h>
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 egrep "pthread_cond_t" >/dev/null 2>&1; then
4309 cat >> confdefs.h <<\EOF
4310 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 #include <strings.h>
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 egrep "strncasecmp" >/dev/null 2>&1; then
4325 cat >> confdefs.h <<\EOF
4326 #define STRNCASECMP_IN_STRINGS_H 1
4333 for ac_hdr in getopt.h strings.h
4335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4337 echo "configure:4338: checking for $ac_hdr" >&5
4338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4347 { (eval echo configure:4348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4349 if test -z "$ac_err"; then
4351 eval "ac_cv_header_$ac_safe=yes"
4354 echo "configure: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4357 eval "ac_cv_header_$ac_safe=no"
4361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4362 echo "$ac_t""yes" 1>&6
4363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4364 cat >> confdefs.h <<EOF
4365 #define $ac_tr_hdr 1
4369 echo "$ac_t""no" 1>&6
4373 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_hdr" >&5
4378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4387 { (eval echo configure:4388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4389 if test -z "$ac_err"; then
4391 eval "ac_cv_header_$ac_safe=yes"
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 eval "ac_cv_header_$ac_safe=no"
4401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4404 cat >> confdefs.h <<EOF
4405 #define $ac_tr_hdr 1
4409 echo "$ac_t""no" 1>&6
4413 for ac_hdr in sys/soundcard.h machine/soundcard.h
4415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_hdr" >&5
4418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4427 { (eval echo configure:4428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4429 if test -z "$ac_err"; then
4431 eval "ac_cv_header_$ac_safe=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 eval "ac_cv_header_$ac_safe=no"
4441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4442 echo "$ac_t""yes" 1>&6
4443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4444 cat >> confdefs.h <<EOF
4445 #define $ac_tr_hdr 1
4449 echo "$ac_t""no" 1>&6
4453 for ac_hdr in dlfcn.h image.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 arpa/inet.h net/if.h netinet/in.h sys/socket.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 machine/param.h sys/shm.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
4574 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4575 echo "configure:4576: checking whether time.h and sys/time.h may both be included" >&5
4576 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 #include <sys/types.h>
4583 #include <sys/time.h>
4589 if { (eval echo configure:4590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4591 ac_cv_header_time=yes
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4596 ac_cv_header_time=no
4601 echo "$ac_t""$ac_cv_header_time" 1>&6
4602 if test $ac_cv_header_time = yes; then
4603 cat >> confdefs.h <<\EOF
4604 #define TIME_WITH_SYS_TIME 1
4610 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4628 eval "ac_cv_header_$ac_safe=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_header_$ac_safe=no"
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_hdr 1
4646 echo "$ac_t""no" 1>&6
4651 if test x$SYS != xmingw32
4653 if test x$x_includes = xNONE; then
4654 x_includes=/usr/X11R6/include
4656 if test x$x_libraries = xNONE; then
4657 x_libraries=/usr/X11R6/lib
4659 saved_CPPFLAGS=$CPPFLAGS
4660 CPPFLAGS="$CPPFLAGS -I$x_includes"
4661 for ac_hdr in X11/extensions/dpms.h
4663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_hdr" >&5
4666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 eval "ac_cv_header_$ac_safe=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 eval "ac_cv_header_$ac_safe=no"
4689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_hdr 1
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 #include <X11/extensions/dpms.h>
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702 egrep "DPMSInfo" >/dev/null 2>&1; then
4705 cat >> confdefs.h <<\EOF
4706 #define DPMSINFO_IN_DPMS_H 1
4715 echo "$ac_t""no" 1>&6
4719 CPPFLAGS=$saved_CPPFLAGS
4722 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4723 echo "configure:4724: checking for ntohl in sys/param.h" >&5
4724 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 CFLAGS="${save_CFLAGS} -Wall -Werror"
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <sys/param.h>
4733 void foo() { int meuh; ntohl(meuh); }
4736 if { (eval echo configure:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4738 ac_cv_c_ntohl_sys_param_h=yes
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 ac_cv_c_ntohl_sys_param_h=no
4748 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4749 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4750 cat >> confdefs.h <<\EOF
4751 #define NTOHL_IN_SYS_PARAM_H 1
4756 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4757 echo "configure:4758: checking if \$CC accepts -finline-limit" >&5
4758 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4770 if { (eval echo configure:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4772 ac_cv_c_inline_limit=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4777 ac_cv_c_inline_limit=no
4782 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4783 if test x"$ac_cv_c_inline_limit" != x"no"; then
4784 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4787 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4788 echo "configure:4789: checking if \$CC accepts -Wall -Winline" >&5
4789 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 CFLAGS="${save_CFLAGS} -Wall -Winline"
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4801 if { (eval echo configure:4802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4803 ac_cv_c_Wall_Winline=yes
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4808 ac_cv_c_Wall_Winline=no
4813 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4814 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4815 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4817 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4818 echo "configure:4819: checking if \$CC accepts -wall -winline" >&5
4819 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 CFLAGS="${save_CFLAGS} -wall -winline"
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4831 if { (eval echo configure:4832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4833 ac_cv_c_wall_winline=yes
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 ac_cv_c_wall_winline=no
4843 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4844 if test x"$ac_cv_c_wall_winline" != x"no"; then
4845 save_CFLAGS="${save_CFLAGS} -wall -winline"
4849 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4850 echo "configure:4851: checking if \$CC accepts -pipe" >&5
4851 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 CFLAGS="${save_CFLAGS} -pipe"
4855 cat > conftest.$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4863 if { (eval echo configure:4864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4875 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4876 if test x"$ac_cv_c_pipe" != x"no"; then
4877 save_CFLAGS="${save_CFLAGS} -pipe"
4880 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4881 echo "configure:4882: checking if \$CC accepts -O3" >&5
4882 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 CFLAGS="${save_CFLAGS} -O3"
4886 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4894 if { (eval echo configure:4895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4898 echo "configure: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4906 echo "$ac_t""$ac_cv_c_o3" 1>&6
4907 if test x"$ac_cv_c_o3" != x"no"; then
4908 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4910 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4911 echo "configure:4912: checking if \$CC accepts -O2" >&5
4912 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 CFLAGS="${save_CFLAGS} -O2"
4916 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4924 if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4936 echo "$ac_t""$ac_cv_c_o2" 1>&6
4937 if test x"$ac_cv_c_o2" != x"no"; then
4938 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
4940 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
4941 echo "configure:4942: checking if \$CC accepts -O" >&5
4942 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 CFLAGS="${save_CFLAGS} -O"
4946 cat > conftest.$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4954 if { (eval echo configure:4955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4966 echo "$ac_t""$ac_cv_c_o" 1>&6
4967 if test x"$ac_cv_c_o" != x"no"; then
4968 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
4973 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
4974 echo "configure:4975: checking if \$CC accepts -ffast-math" >&5
4975 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 CFLAGS="${save_CFLAGS} -ffast-math"
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4987 if { (eval echo configure:4988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4989 ac_cv_c_fast_math=yes
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 ac_cv_c_fast_math=no
4999 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5000 if test x"$ac_cv_c_fast_math" != x"no"; then
5001 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5004 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5005 echo "configure:5006: checking if \$CC accepts -funroll-loops" >&5
5006 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 CFLAGS="${save_CFLAGS} -funroll-loops"
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
5020 ac_cv_c_unroll_loops=yes
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5025 ac_cv_c_unroll_loops=no
5030 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5031 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5032 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5035 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5036 echo "configure:5037: checking if \$CC accepts -fomit-frame-pointer" >&5
5037 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
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
5051 ac_cv_c_omit_frame_pointer=yes
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5056 ac_cv_c_omit_frame_pointer=no
5061 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5062 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5063 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5066 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5067 echo "configure:5068: checking if \$CC accepts -bundle -undefined error" >&5
5068 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 CFLAGS="${save_CFLAGS} -bundle -undefined error"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5092 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5093 if test x"$ac_cv_ld_darwin" != x"no"; then
5094 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5097 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5098 echo "configure:5099: checking if \$CC accepts -shared" >&5
5099 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 CFLAGS="${save_CFLAGS} -shared"
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5111 if { (eval echo configure:5112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5113 ac_cv_ld_plugins=yes
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5123 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5124 if test x"$ac_cv_ld_plugins" != x"no"; then
5125 PLDFLAGS="${PLDFLAGS} -shared"
5128 if test x"${SOFLAGS}" = x; then
5129 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5130 echo "configure:5131: checking for soname setting" >&5
5131 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5136 try_SOFLAGS="-Wl,-soname -Wl,"
5137 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 ac_cv_ld_soname="${try_SOFLAGS}"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5155 try_SOFLAGS="-Wl,-h -Wl,"
5156 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167 ac_cv_ld_soname="${try_SOFLAGS}"
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5172 ac_cv_ld_soname=none
5180 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5181 if test x"$ac_cv_ld_soname" != x"none"; then
5182 SOFLAGS=$ac_cv_ld_soname
5186 Your system doesn't seem to have support for dynamic linking. You may
5187 have problems using libdvdcss.
5193 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5194 echo "configure:5195: checking __attribute__ ((aligned ())) support" >&5
5195 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 ac_cv_c_attribute_aligned=0
5199 CFLAGS="${save_CFLAGS} -Werror"
5200 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5206 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5209 if { (eval echo configure:5210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5211 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5220 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5221 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5222 cat >> confdefs.h <<EOF
5223 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5228 CFLAGS="${save_CFLAGS}"
5229 LDFLAGS="${save_LDFLAGS}"
5231 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5232 echo "configure:5233: checking for boolean_t in sys/types.h" >&5
5233 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5239 #include <sys/types.h>
5244 if { (eval echo configure:5245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5246 ac_cv_c_boolean_t_sys_types_h=yes
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5251 ac_cv_c_boolean_t_sys_types_h=no
5256 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5257 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5258 cat >> confdefs.h <<\EOF
5259 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5264 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5265 echo "configure:5266: checking for boolean_t in pthread.h" >&5
5266 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 #include <pthread.h>
5277 if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 ac_cv_c_boolean_t_pthread_h=yes
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5284 ac_cv_c_boolean_t_pthread_h=no
5289 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5290 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5291 cat >> confdefs.h <<\EOF
5292 #define BOOLEAN_T_IN_PTHREAD_H 1
5297 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5298 echo "configure:5299: checking for boolean_t in cthreads.h" >&5
5299 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <cthreads.h>
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 ac_cv_c_boolean_t_cthreads_h=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5317 ac_cv_c_boolean_t_cthreads_h=no
5322 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5323 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5324 cat >> confdefs.h <<\EOF
5325 #define BOOLEAN_T_IN_CTHREADS_H 1
5330 case x"${target_cpu}" in
5339 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5340 PLUGINS="${PLUGINS} lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
5342 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5343 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5344 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5345 SSE_MODULES="imdctsse downmixsse"
5346 ALTIVEC_MODULES="idctaltivec motionaltivec"
5348 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5349 echo "configure:5350: checking if \$CC groks MMX inline assembly" >&5
5350 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5358 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5361 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363 ac_cv_mmx_inline=yes
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5373 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5374 if test x"$ac_cv_mmx_inline" != x"no"; then
5375 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5378 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5379 echo "configure:5380: checking if \$CC groks MMX EXT inline assembly" >&5
5380 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5388 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5391 if { (eval echo configure:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5393 ac_cv_mmxext_inline=yes
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5398 ac_cv_mmxext_inline=no
5403 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5404 if test x"$ac_cv_mmxext_inline" != x"no"; then
5405 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5408 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5409 echo "configure:5410: checking if \$CC groks 3D Now! inline assembly" >&5
5410 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5418 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5421 if { (eval echo configure:5422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5423 ac_cv_3dnow_inline=yes
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5428 ac_cv_3dnow_inline=no
5433 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5434 if test x"$ac_cv_3dnow_inline" != x"no"; then
5435 cat >> confdefs.h <<\EOF
5436 #define CAN_COMPILE_3DNOW 1
5439 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5442 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5443 echo "configure:5444: checking if \$CC groks SSE inline assembly" >&5
5444 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5452 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5455 if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5457 ac_cv_sse_inline=yes
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5467 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5468 if test x"$ac_cv_sse_inline" != x"no"; then
5469 cat >> confdefs.h <<\EOF
5470 #define CAN_COMPILE_SSE 1
5473 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5476 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5477 echo "configure:5478: checking if \$CC groks Altivec inline assembly" >&5
5478 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5486 asm volatile("vperm 0,1,2,3");
5489 if { (eval echo configure:5490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5491 ac_cv_altivec_inline=yes
5493 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5497 CFLAGS="$CFLAGS -Wa,-m7400"
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5503 asm volatile("vperm 0,1,2,3");
5506 if { (eval echo configure:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5508 ac_cv_altivec_inline="-Wa,-m7400"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 ac_cv_altivec_inline=no
5522 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5523 if test x"$ac_cv_altivec_inline" != x"no"; then
5524 cat >> confdefs.h <<\EOF
5525 #define CAN_COMPILE_ALTIVEC 1
5528 if test x"$ac_cv_altivec_inline" != x"yes"; then
5529 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5530 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5531 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5533 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5536 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5537 echo "configure:5538: checking if \$CC groks Altivec C extensions" >&5
5538 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5542 CFLAGS="$CFLAGS -faltivec"
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5549 vec_mtvscr((vector unsigned int)(0));
5552 if { (eval echo configure:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5554 ac_cv_c_altivec=-faltivec
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5561 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5562 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5567 vec_mtvscr((vector unsigned int)(0));
5570 if { (eval echo configure:5571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5572 ac_cv_c_altivec="-fvec"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5587 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5588 if test x"$ac_cv_c_altivec" != x"no"; then
5589 cat >> confdefs.h <<\EOF
5590 #define CAN_COMPILE_C_ALTIVEC 1
5593 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5594 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5595 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5596 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5599 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5600 echo "configure:5601: checking if linker needs -framework vecLib" >&5
5601 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 save_LDFLAGS=$LDFLAGS
5605 LDFLAGS="$LDFLAGS -framework vecLib"
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 ac_cv_ld_altivec=yes
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5624 LDFLAGS=$save_LDFLAGS
5628 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5629 if test x"$ac_cv_ld_altivec" != x"no"; then
5630 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5631 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5632 LIB="${LIB} -framework vecLib"
5635 case x"${target_os}" in
5650 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5651 set dummy ${ac_tool_prefix}windres; ac_word=$2
5652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5653 echo "configure:5654: checking for $ac_word" >&5
5654 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5655 echo $ac_n "(cached) $ac_c" 1>&6
5657 if test -n "$WINDRES"; then
5658 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5662 for ac_dir in $ac_dummy; do
5663 test -z "$ac_dir" && ac_dir=.
5664 if test -f $ac_dir/$ac_word; then
5665 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5672 WINDRES="$ac_cv_prog_WINDRES"
5673 if test -n "$WINDRES"; then
5674 echo "$ac_t""$WINDRES" 1>&6
5676 echo "$ac_t""no" 1>&6
5680 if test -z "$ac_cv_prog_WINDRES"; then
5681 if test -n "$ac_tool_prefix"; then
5682 # Extract the first word of "windres", so it can be a program name with args.
5683 set dummy windres; ac_word=$2
5684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5685 echo "configure:5686: checking for $ac_word" >&5
5686 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 if test -n "$WINDRES"; then
5690 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5694 for ac_dir in $ac_dummy; do
5695 test -z "$ac_dir" && ac_dir=.
5696 if test -f $ac_dir/$ac_word; then
5697 ac_cv_prog_WINDRES="windres"
5702 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5705 WINDRES="$ac_cv_prog_WINDRES"
5706 if test -n "$WINDRES"; then
5707 echo "$ac_t""$WINDRES" 1>&6
5709 echo "$ac_t""no" 1>&6
5717 LIB_MPEG_TS="${LIB_MPEG_TS} -lws2_32"
5718 LIB_RC="${LIB_RC} -lws2_32"
5722 LIB_X11="${LIB_X11} -lsocket"
5723 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5728 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
5729 PLDFLAGS="${PLDFLAGS} -nostart"
5742 DVD_DEVICE="/dev/dvd"
5743 VCD_DEVICE="/dev/cdrom"
5747 cat >> confdefs.h <<EOF
5748 #define DVD_DEVICE "$DVD_DEVICE"
5751 cat >> confdefs.h <<EOF
5752 #define VCD_DEVICE "$VCD_DEVICE"
5758 CAN_BUILD_LIBDVDCSS=0
5760 for ac_hdr in winioctl.h
5762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_hdr" >&5
5765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774 { (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5776 if test -z "$ac_err"; then
5778 eval "ac_cv_header_$ac_safe=yes"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5784 eval "ac_cv_header_$ac_safe=no"
5788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5791 cat >> confdefs.h <<EOF
5792 #define $ac_tr_hdr 1
5795 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5798 echo "$ac_t""no" 1>&6
5803 for ac_hdr in sys/ioctl.h
5805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5807 echo "configure:5808: checking for $ac_hdr" >&5
5808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5811 cat > conftest.$ac_ext <<EOF
5812 #line 5813 "configure"
5813 #include "confdefs.h"
5816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5817 { (eval echo configure:5818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5819 if test -z "$ac_err"; then
5821 eval "ac_cv_header_$ac_safe=yes"
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5827 eval "ac_cv_header_$ac_safe=no"
5831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5832 echo "$ac_t""yes" 1>&6
5833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5834 cat >> confdefs.h <<EOF
5835 #define $ac_tr_hdr 1
5838 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5839 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5843 echo "configure:5844: checking for $ac_hdr" >&5
5844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5853 { (eval echo configure:5854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5855 if test -z "$ac_err"; then
5857 eval "ac_cv_header_$ac_safe=yes"
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5863 eval "ac_cv_header_$ac_safe=no"
5867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5868 echo "$ac_t""yes" 1>&6
5869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5870 cat >> confdefs.h <<EOF
5871 #define $ac_tr_hdr 1
5875 echo "$ac_t""no" 1>&6
5881 OPENBSD_DVD_STRUCT=0
5882 cat > conftest.$ac_ext <<EOF
5883 #line 5884 "configure"
5884 #include "confdefs.h"
5885 #include <sys/cdio.h>
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 egrep "dvd_struct" >/dev/null 2>&1; then
5891 cat >> confdefs.h <<\EOF
5892 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5898 #include <sys/cdio.h>
5900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5901 egrep "struct dvd_struct" >/dev/null 2>&1; then
5907 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 #include <sys/dvdio.h>
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921 egrep "dvd_struct" >/dev/null 2>&1; then
5924 cat >> confdefs.h <<\EOF
5925 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 #include <sys/dvdio.h>
5933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5934 egrep "struct dvd_struct" >/dev/null 2>&1; then
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 #include <linux/cdrom.h>
5953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5954 egrep "dvd_struct" >/dev/null 2>&1; then
5957 cat >> confdefs.h <<\EOF
5958 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5967 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 egrep "dvd_struct" >/dev/null 2>&1; then
5976 cat >> confdefs.h <<\EOF
5977 #define DVD_STRUCT_IN_DVD_H 1
5980 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5986 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_hdr" >&5
5991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000 { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6002 if test -z "$ac_err"; then
6004 eval "ac_cv_header_$ac_safe=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 eval "ac_cv_header_$ac_safe=no"
6014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6017 cat >> confdefs.h <<EOF
6018 #define $ac_tr_hdr 1
6022 cat >> confdefs.h <<\EOF
6023 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6026 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6030 echo "$ac_t""no" 1>&6
6038 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6039 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6040 echo "configure:6041: checking for sys/scsi/scsi_types.h" >&5
6041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <sys/scsi/scsi_types.h>
6049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050 { (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6052 if test -z "$ac_err"; then
6054 eval "ac_cv_header_$ac_safe=yes"
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6060 eval "ac_cv_header_$ac_safe=no"
6064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6065 echo "$ac_t""yes" 1>&6
6067 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6068 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6069 echo "configure:6070: checking for sys/scsi/impl/uscsi.h" >&5
6070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <sys/scsi/impl/uscsi.h>
6078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6079 { (eval echo configure:6080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6081 if test -z "$ac_err"; then
6083 eval "ac_cv_header_$ac_safe=yes"
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6089 eval "ac_cv_header_$ac_safe=no"
6093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6096 cat >> confdefs.h <<\EOF
6097 #define SOLARIS_USCSI 1
6102 echo "$ac_t""no" 1>&6
6107 echo "$ac_t""no" 1>&6
6110 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6111 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6112 echo "configure:6113: checking for sys/scsi.h" >&5
6113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6114 echo $ac_n "(cached) $ac_c" 1>&6
6116 cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6119 #include <sys/scsi.h>
6121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6122 { (eval echo configure:6123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6124 if test -z "$ac_err"; then
6126 eval "ac_cv_header_$ac_safe=yes"
6129 echo "configure: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6132 eval "ac_cv_header_$ac_safe=no"
6136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6137 echo "$ac_t""yes" 1>&6
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 #include <sys/scsi.h>
6144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6145 egrep "sctl_io" >/dev/null 2>&1; then
6148 cat >> confdefs.h <<\EOF
6149 #define HPUX_SCTL_IO 1
6158 echo "$ac_t""no" 1>&6
6161 if test x$LINUX_DVD_STRUCT = x1; then
6162 cat >> confdefs.h <<\EOF
6163 #define HAVE_LINUX_DVD_STRUCT 1
6166 if test x$OPENBSD_DVD_STRUCT = x1; then
6167 cat >> confdefs.h <<\EOF
6168 #define HAVE_OPENBSD_DVD_STRUCT 1
6173 if test x$BSD_DVD_STRUCT = x1; then
6174 cat >> confdefs.h <<\EOF
6175 #define HAVE_BSD_DVD_STRUCT 1
6182 echo "$ac_t""no" 1>&6
6187 # Check whether --with-tuning or --without-tuning was given.
6188 if test "${with_tuning+set}" = set; then
6189 withval="$with_tuning"
6193 if test "x$withval" != "x"; then
6196 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6198 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6202 # Check whether --enable-release or --disable-release was given.
6203 if test "${enable_release+set}" = set; then
6204 enableval="$enable_release"
6205 if test x$enableval = xyes; then RELEASE=1; fi
6207 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6208 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6212 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6215 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6218 # Check whether --enable-altivec or --disable-altivec was given.
6219 if test "${enable_altivec+set}" = set; then
6220 enableval="$enable_altivec"
6221 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6222 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6224 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6225 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6230 # Check whether --enable-debug or --disable-debug was given.
6231 if test "${enable_debug+set}" = set; then
6232 enableval="$enable_debug"
6233 if test x$enableval = xyes; then DEBUG=1; fi
6238 # Check whether --enable-gprof or --disable-gprof was given.
6239 if test "${enable_gprof+set}" = set; then
6240 enableval="$enable_gprof"
6241 if test x$enableval = xyes; then GPROF=1; fi
6246 # Check whether --enable-cprof or --disable-cprof was given.
6247 if test "${enable_cprof+set}" = set; then
6248 enableval="$enable_cprof"
6249 if test x$enableval = xyes;
6251 LIB="${LIB} -lcprof"
6258 # Check whether --enable-optimizations or --disable-optimizations was given.
6259 if test "${enable_optimizations+set}" = set; then
6260 enableval="$enable_optimizations"
6261 if test x$enableval = xno; then OPTIMS=0; fi
6267 # Check whether --enable-pth or --disable-pth was given.
6268 if test "${enable_pth+set}" = set; then
6269 enableval="$enable_pth"
6270 if test x$enableval = xyes; then
6271 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6272 echo "configure:6273: checking for pth_init in -lpth" >&5
6273 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
6274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 ac_save_LIBS="$LIBS"
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6293 eval "ac_cv_lib_$ac_lib_var=yes"
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 eval "ac_cv_lib_$ac_lib_var=no"
6301 LIBS="$ac_save_LIBS"
6304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6305 echo "$ac_t""yes" 1>&6
6306 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6308 cat >> confdefs.h <<EOF
6309 #define $ac_tr_lib 1
6315 echo "$ac_t""no" 1>&6
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324 egrep "pth_init" >/dev/null 2>&1; then
6327 cat >> confdefs.h <<\EOF
6328 #define PTH_INIT_IN_PTH_H 1
6340 LIB="${LIB} ${THREAD_LIB}"
6345 # Check whether --with-dvdcss or --without-dvdcss was given.
6346 if test "${with_dvdcss+set}" = set; then
6347 withval="$with_dvdcss"
6348 case "x${withval}" in
6350 # local libdvdcss, statically linked
6351 BUILTINS="${BUILTINS} dvd"
6352 if test x${CAN_BUILD_LIBDVDCSS} = x1
6356 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6357 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6361 # local libdvdcss, dynamically linked
6362 PLUGINS="${PLUGINS} dvd"
6363 if test x${CAN_BUILD_LIBDVDCSS} = x1
6366 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6367 LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6371 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6372 BUILTINS="${BUILTINS} dvd"
6374 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6375 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6376 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6377 LIB_DVD="${LIB_DVD} -ldl"
6380 # existing libdvdcss
6381 PLUGINS="${PLUGINS} dvd"
6382 if test "x$withval" != "xyes"
6384 LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6385 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6387 LIB_DVD="${LIB_DVD} -ldvdcss"
6390 # user didn't decide, we choose to use local libdvdcss and link statically
6391 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6392 if test x${CAN_BUILD_LIBDVDCSS} = x1
6394 BUILTINS="${BUILTINS} dvd"
6397 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6398 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6400 # XXX: no check for libdl is done, don't try this at home !
6401 BUILTINS="${BUILTINS} dvd"
6403 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6404 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6405 LIB_DVD="${LIB_DVD} -ldl"
6410 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6411 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6412 # Check whether --with-dvdread or --without-dvdread was given.
6413 if test "${with_dvdread+set}" = set; then
6414 withval="$with_dvdread"
6415 case "x${withval}" in
6417 if test x${STATIC_LIBDVDREAD} = x1
6419 BUILTINS="${BUILTINS} dvdread"
6420 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6421 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6423 { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6429 if test x${STATIC_LIBDVDREAD} = x1
6431 BUILTINS="${BUILTINS} dvdread"
6432 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6433 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6435 PLUGINS="${PLUGINS} dvdread"
6436 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread ${CFLAGS_DVD}"
6437 LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6441 if test "x$withval" != "xlocal-shared"
6443 LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6444 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6446 LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6447 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6449 if test x${STATIC_LIBDVDCSS} = x1
6451 { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6453 PLUGINS="${PLUGINS} dvdread"
6454 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6455 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6458 if test x${DUMMY_LIBDVDCSS} = x1
6460 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6462 LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6467 # Check whether --enable-vcd or --disable-vcd was given.
6468 if test "${enable_vcd+set}" = set; then
6469 enableval="$enable_vcd"
6474 if test x$enable_vcd != xno
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 #include <linux/cdrom.h>
6481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6482 egrep "cdrom_msf0" >/dev/null 2>&1; then
6485 BUILTINS="${BUILTINS} vcd"
6492 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6494 BUILTINS="${BUILTINS} vcd"
6497 if test x$enable_vcd != xno -a "${SYS}" = "darwin"
6499 BUILTINS="${BUILTINS} vcd"
6500 LIB_VCD="${LIB_VCD} -framework IOKit"
6503 # Check whether --enable-dummy or --disable-dummy was given.
6504 if test "${enable_dummy+set}" = set; then
6505 enableval="$enable_dummy"
6510 if test x$enable_dummy != xno
6512 PLUGINS="${PLUGINS} dummy"
6515 # Check whether --enable-logger or --disable-logger was given.
6516 if test "${enable_logger+set}" = set; then
6517 enableval="$enable_logger"
6522 if test x$enable_logger != xno
6524 PLUGINS="${PLUGINS} logger"
6527 # Check whether --enable-null or --disable-null was given.
6528 if test "${enable_null+set}" = set; then
6529 enableval="$enable_null"
6534 if test x$enable_null != xno
6536 PLUGINS="${PLUGINS} null"
6539 # Check whether --enable-rc or --disable-rc was given.
6540 if test "${enable_rc+set}" = set; then
6541 enableval="$enable_rc"
6546 if test x$enable_rc != xno
6548 PLUGINS="${PLUGINS} rc"
6551 # Check whether --with-mad or --without-mad was given.
6552 if test "${with_mad+set}" = set; then
6554 if test "x$with_val" != "xno"; then
6555 if test -n $with_val; then
6556 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6557 LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
6559 LIB_MAD="${LIB_MAD} -lmad"
6562 save_LDFLAGS=$LDFLAGS
6563 CFLAGS="$CFLAGS $CFLAGS_MAD"
6564 LDFLAGS="$LDFLAGS $LIB_MAD"
6567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6569 echo "configure:6570: checking for $ac_hdr" >&5
6570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6579 { (eval echo configure:6580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6581 if test -z "$ac_err"; then
6583 eval "ac_cv_header_$ac_safe=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6589 eval "ac_cv_header_$ac_safe=no"
6593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6596 cat >> confdefs.h <<EOF
6597 #define $ac_tr_hdr 1
6601 echo "$ac_t""no" 1>&6
6602 echo "Cannot find development headers for libmad..."
6608 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6609 echo "configure:6610: checking for mad_bit_init in -lmad" >&5
6610 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 ac_save_LIBS="$LIBS"
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 /* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6622 char mad_bit_init();
6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6630 eval "ac_cv_lib_$ac_lib_var=yes"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 eval "ac_cv_lib_$ac_lib_var=no"
6638 LIBS="$ac_save_LIBS"
6641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6643 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6645 cat >> confdefs.h <<EOF
6646 #define $ac_tr_lib 1
6652 echo "$ac_t""no" 1>&6
6653 echo "Cannot find libmad library..."
6659 LDFLAGS=$save_LDFLAGS
6660 PLUGINS="${PLUGINS} mad"
6665 if test x$SYS = xbeos
6667 PLUGINS="${PLUGINS} beos"
6671 # Check whether --enable-dsp or --disable-dsp was given.
6672 if test "${enable_dsp+set}" = set; then
6673 enableval="$enable_dsp"
6678 if test x$enable_dsp != xno &&
6679 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6681 for ac_hdr in sys/soundcard.h machine/soundcard.h
6683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6685 echo "configure:6686: checking for $ac_hdr" >&5
6686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6687 echo $ac_n "(cached) $ac_c" 1>&6
6689 cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6695 { (eval echo configure:6696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6697 if test -z "$ac_err"; then
6699 eval "ac_cv_header_$ac_safe=yes"
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 eval "ac_cv_header_$ac_safe=no"
6709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6712 cat >> confdefs.h <<EOF
6713 #define $ac_tr_hdr 1
6716 PLUGINS="${PLUGINS} dsp"
6719 echo "$ac_t""no" 1>&6
6725 # Check whether --enable-esd or --disable-esd was given.
6726 if test "${enable_esd+set}" = set; then
6727 enableval="$enable_esd"
6728 if test x$enable_esd = xyes
6730 # Extract the first word of "esd-config", so it can be a program name with args.
6731 set dummy esd-config; ac_word=$2
6732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6733 echo "configure:6734: checking for $ac_word" >&5
6734 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6737 case "$ESD_CONFIG" in
6739 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6742 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6747 for ac_dir in $ac_dummy; do
6748 test -z "$ac_dir" && ac_dir=.
6749 if test -f $ac_dir/$ac_word; then
6750 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6755 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6759 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6760 if test -n "$ESD_CONFIG"; then
6761 echo "$ac_t""$ESD_CONFIG" 1>&6
6763 echo "$ac_t""no" 1>&6
6766 if test x${ESD_CONFIG} != xno
6768 PLUGINS="${PLUGINS} esd"
6769 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6770 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6776 # Check whether --enable-arts or --disable-arts was given.
6777 if test "${enable_arts+set}" = set; then
6778 enableval="$enable_arts"
6779 if test x$enable_arts = xyes
6781 # Extract the first word of "artsc-config", so it can be a program name with args.
6782 set dummy artsc-config; ac_word=$2
6783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6784 echo "configure:6785: checking for $ac_word" >&5
6785 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6788 case "$ARTS_CONFIG" in
6790 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6793 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6798 for ac_dir in $ac_dummy; do
6799 test -z "$ac_dir" && ac_dir=.
6800 if test -f $ac_dir/$ac_word; then
6801 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6806 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6810 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6811 if test -n "$ARTS_CONFIG"; then
6812 echo "$ac_t""$ARTS_CONFIG" 1>&6
6814 echo "$ac_t""no" 1>&6
6817 if test x${ARTS_CONFIG} != xno
6819 PLUGINS="${PLUGINS} arts"
6820 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
6821 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
6827 # Check whether --enable-macosx or --disable-macosx was given.
6828 if test "${enable_macosx+set}" = set; then
6829 enableval="$enable_macosx"
6830 if test x$enable_macosx = xyes
6832 BUILTINS="${BUILTINS} macosx"
6833 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6834 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6838 for ac_hdr in Cocoa/Cocoa.h
6840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_hdr" >&5
6843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6852 { (eval echo configure:6853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6854 if test -z "$ac_err"; then
6856 eval "ac_cv_header_$ac_safe=yes"
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6862 eval "ac_cv_header_$ac_safe=no"
6866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6867 echo "$ac_t""yes" 1>&6
6868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6869 cat >> confdefs.h <<EOF
6870 #define $ac_tr_hdr 1
6872 BUILTINS="${BUILTINS} macosx"
6873 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6874 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6878 echo "$ac_t""no" 1>&6
6885 # Check whether --enable-qnx or --disable-qnx was given.
6886 if test "${enable_qnx+set}" = set; then
6887 enableval="$enable_qnx"
6891 if test x$enable_qnx != xno
6895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6897 echo "configure:6898: checking for $ac_hdr" >&5
6898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6907 { (eval echo configure:6908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6909 if test -z "$ac_err"; then
6911 eval "ac_cv_header_$ac_safe=yes"
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 eval "ac_cv_header_$ac_safe=no"
6921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6922 echo "$ac_t""yes" 1>&6
6923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6924 cat >> confdefs.h <<EOF
6925 #define $ac_tr_hdr 1
6928 PLUGINS="${PLUGINS} qnx"
6929 LIB_QNX="${LIB_QNX} -lasound -lph"
6932 echo "$ac_t""no" 1>&6
6938 # Check whether --enable-a52 or --disable-a52 was given.
6939 if test "${enable_a52+set}" = set; then
6940 enableval="$enable_a52"
6944 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6946 for ac_hdr in a52dec/a52.h
6948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6950 echo "configure:6951: checking for $ac_hdr" >&5
6951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6960 { (eval echo configure:6961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6962 if test -z "$ac_err"; then
6964 eval "ac_cv_header_$ac_safe=yes"
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6970 eval "ac_cv_header_$ac_safe=no"
6974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6975 echo "$ac_t""yes" 1>&6
6976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6977 cat >> confdefs.h <<EOF
6978 #define $ac_tr_hdr 1
6981 BUILTINS="${BUILTINS} a52"
6982 LIB_A52="${LIB_A52} -la52"
6985 echo "$ac_t""no" 1>&6
6991 # Check whether --enable-fb or --disable-fb was given.
6992 if test "${enable_fb+set}" = set; then
6993 enableval="$enable_fb"
6994 if test x$enable_fb = xyes
6996 PLUGINS="${PLUGINS} fb"
7001 # Check whether --enable-mga or --disable-mga was given.
7002 if test "${enable_mga+set}" = set; then
7003 enableval="$enable_mga"
7004 if test x$enable_mga = xyes
7006 PLUGINS="${PLUGINS} mga xmga"
7011 # Check whether --with-ggi or --without-ggi was given.
7012 if test "${with_ggi+set}" = set; then
7014 if test "x$withval" != "xno"
7016 PLUGINS="${PLUGINS} ggi"
7017 if test "x$withval" != "xyes"
7019 LIB_GGI="${LIB_GGI} -l$withval"
7021 LIB_GGI="${LIB_GGI} -lggi"
7027 # Check whether --enable-sdl or --disable-sdl was given.
7028 if test "${enable_sdl+set}" = set; then
7029 enableval="$enable_sdl"
7033 if test "x$enable_sdl" != "xno"
7036 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7037 if test "${with_sdl_config_path+set}" = set; then
7038 withval="$with_sdl_config_path"
7039 if test "x$withval" != "xno"
7041 SDL_PATH=$withval:$PATH
7045 # Extract the first word of "sdl12-config", so it can be a program name with args.
7046 set dummy sdl12-config; ac_word=$2
7047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7048 echo "configure:7049: checking for $ac_word" >&5
7049 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 case "$SDL12_CONFIG" in
7054 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7057 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7061 ac_dummy="$SDL_PATH"
7062 for ac_dir in $ac_dummy; do
7063 test -z "$ac_dir" && ac_dir=.
7064 if test -f $ac_dir/$ac_word; then
7065 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7070 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7074 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7075 if test -n "$SDL12_CONFIG"; then
7076 echo "$ac_t""$SDL12_CONFIG" 1>&6
7078 echo "$ac_t""no" 1>&6
7081 SDL_CONFIG=${SDL12_CONFIG}
7082 SDL_HEADER="SDL12/SDL.h"
7083 if test x${SDL_CONFIG} = xno
7085 # Extract the first word of "sdl11-config", so it can be a program name with args.
7086 set dummy sdl11-config; ac_word=$2
7087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7088 echo "configure:7089: checking for $ac_word" >&5
7089 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 case "$SDL11_CONFIG" in
7094 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7097 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7101 ac_dummy="$SDL_PATH"
7102 for ac_dir in $ac_dummy; do
7103 test -z "$ac_dir" && ac_dir=.
7104 if test -f $ac_dir/$ac_word; then
7105 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7110 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7114 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7115 if test -n "$SDL11_CONFIG"; then
7116 echo "$ac_t""$SDL11_CONFIG" 1>&6
7118 echo "$ac_t""no" 1>&6
7121 SDL_CONFIG=${SDL11_CONFIG}
7122 SDL_HEADER="SDL11/SDL.h"
7124 if test x${SDL_CONFIG} = xno
7126 # Extract the first word of "sdl-config", so it can be a program name with args.
7127 set dummy sdl-config; ac_word=$2
7128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7129 echo "configure:7130: checking for $ac_word" >&5
7130 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7131 echo $ac_n "(cached) $ac_c" 1>&6
7133 case "$SDL_CONFIG" in
7135 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7138 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7142 ac_dummy="$SDL_PATH"
7143 for ac_dir in $ac_dummy; do
7144 test -z "$ac_dir" && ac_dir=.
7145 if test -f $ac_dir/$ac_word; then
7146 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7151 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7155 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7156 if test -n "$SDL_CONFIG"; then
7157 echo "$ac_t""$SDL_CONFIG" 1>&6
7159 echo "$ac_t""no" 1>&6
7162 SDL_HEADER="SDL/SDL.h"
7164 if test x${SDL_CONFIG} != xno
7166 PLUGINS="${PLUGINS} sdl"
7167 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7168 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7169 save_CPPFLAGS=$CPPFLAGS
7170 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7171 for ac_hdr in ${SDL_HEADER}
7173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7175 echo "configure:7176: checking for $ac_hdr" >&5
7176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7177 echo $ac_n "(cached) $ac_c" 1>&6
7179 cat > conftest.$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7185 { (eval echo configure:7186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7187 if test -z "$ac_err"; then
7189 eval "ac_cv_header_$ac_safe=yes"
7192 echo "configure: failed program was:" >&5
7193 cat conftest.$ac_ext >&5
7195 eval "ac_cv_header_$ac_safe=no"
7199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7200 echo "$ac_t""yes" 1>&6
7201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7202 cat >> confdefs.h <<EOF
7203 #define $ac_tr_hdr 1
7205 cat >> confdefs.h <<EOF
7206 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7210 echo "$ac_t""no" 1>&6
7211 { echo "configure: error: The development package for SDL is not installed.
7212 Please install it and try again. Alternatively you can also configure with
7213 --disable-sdl." 1>&2; exit 1; }
7218 CPPFLAGS=$save_CPPFLAGS
7219 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7221 { echo "configure: error: The development package for SDL is not installed.
7222 Please install it and try again. Alternatively you can also configure with
7223 --disable-sdl." 1>&2; exit 1; }
7225 elif test "x$enable_sdl" = "xyes"
7227 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7228 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7233 # Check whether --enable-directx or --disable-directx was given.
7234 if test "${enable_directx+set}" = set; then
7235 enableval="$enable_directx"
7239 if test "x$enableval" != "xno"
7241 if test x$SYS = xmingw32
7243 # Check whether --with-directx-path or --without-directx-path was given.
7244 if test "${with_directx_path+set}" = set; then
7245 withval="$with_directx_path"
7249 if test "x$with_directx_path" = "x"
7251 for ac_hdr in ddraw.h
7253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7255 echo "configure:7256: checking for $ac_hdr" >&5
7256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7257 echo $ac_n "(cached) $ac_c" 1>&6
7259 cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7265 { (eval echo configure:7266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7267 if test -z "$ac_err"; then
7269 eval "ac_cv_header_$ac_safe=yes"
7272 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7275 eval "ac_cv_header_$ac_safe=no"
7279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7280 echo "$ac_t""yes" 1>&6
7281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7282 cat >> confdefs.h <<EOF
7283 #define $ac_tr_hdr 1
7285 PLUGINS="${PLUGINS} directx"
7286 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7288 echo "$ac_t""no" 1>&6
7293 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7294 echo "configure:7295: checking for directX headers in ${withval}" >&5
7295 if test -f ${withval}/include/ddraw.h
7297 PLUGINS="${PLUGINS} directx"
7298 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7299 INCLUDE="${INCLUDE} -I${withval}/include"
7300 echo "$ac_t""yes" 1>&6
7302 echo "$ac_t""no" 1>&6
7303 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
7309 # Check whether --enable-waveout or --disable-waveout was given.
7310 if test "${enable_waveout+set}" = set; then
7311 enableval="$enable_waveout"
7315 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7317 PLUGINS="${PLUGINS} waveout"
7318 LIB_WAVEOUT="-lwinmm"
7321 # Check whether --enable-win32 or --disable-win32 was given.
7322 if test "${enable_win32+set}" = set; then
7323 enableval="$enable_win32"
7324 if test "x$enableval" != "xno"
7326 PLUGINS="${PLUGINS} win32"
7331 # Check whether --with-glide or --without-glide was given.
7332 if test "${with_glide+set}" = set; then
7333 withval="$with_glide"
7334 if test "x$withval" != "xno"
7336 PLUGINS="${PLUGINS} glide"
7337 if test "x$withval" != "xyes"
7339 LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
7341 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7343 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7348 # Check whether --enable-ncurses or --disable-ncurses was given.
7349 if test "${enable_ncurses+set}" = set; then
7350 enableval="$enable_ncurses"
7351 if test x$enable_ncurses = xyes; then
7352 PLUGINS="${PLUGINS} ncurses"
7353 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7358 # Check whether --enable-qt or --disable-qt was given.
7359 if test "${enable_qt+set}" = set; then
7360 enableval="$enable_qt"
7361 if test x$enable_qt = xyes; then
7362 PLUGINS="${PLUGINS} qt"
7363 ALIASES="${ALIASES} qvlc"
7364 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7365 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7366 if test -x ${QTDIR}/bin/moc
7368 MOC=${QTDIR}/bin/moc
7376 # Check whether --enable-kde or --disable-kde was given.
7377 if test "${enable_kde+set}" = set; then
7378 enableval="$enable_kde"
7379 if test x$enable_kde = xyes; then
7380 PLUGINS="${PLUGINS} kde"
7381 ALIASES="${ALIASES} kvlc"
7382 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7383 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7384 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7385 if test -x ${QTDIR}/bin/moc
7387 MOC=${QTDIR}/bin/moc
7395 # Check whether --enable-gnome or --disable-gnome was given.
7396 if test "${enable_gnome+set}" = set; then
7397 enableval="$enable_gnome"
7398 if test x$enable_gnome = xyes; then
7399 # look for gnome-config
7400 # Extract the first word of "gnome-config", so it can be a program name with args.
7401 set dummy gnome-config; ac_word=$2
7402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7403 echo "configure:7404: checking for $ac_word" >&5
7404 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 case "$GNOME_CONFIG" in
7409 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7412 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7417 for ac_dir in $ac_dummy; do
7418 test -z "$ac_dir" && ac_dir=.
7419 if test -f $ac_dir/$ac_word; then
7420 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7425 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7429 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7430 if test -n "$GNOME_CONFIG"; then
7431 echo "$ac_t""$GNOME_CONFIG" 1>&6
7433 echo "$ac_t""no" 1>&6
7436 if test -x ${GNOME_CONFIG}
7438 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7439 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7441 # now look for the gnome.h header
7442 saved_CPPFLAGS=$CPPFLAGS
7443 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7444 for ac_hdr in gnome.h
7446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_hdr" >&5
7449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7458 { (eval echo configure:7459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7460 if test -z "$ac_err"; then
7462 eval "ac_cv_header_$ac_safe=yes"
7465 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7468 eval "ac_cv_header_$ac_safe=no"
7472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7473 echo "$ac_t""yes" 1>&6
7474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7475 cat >> confdefs.h <<EOF
7476 #define $ac_tr_hdr 1
7479 PLUGINS="${PLUGINS} gnome"
7480 ALIASES="${ALIASES} gnome-vlc"
7483 echo "$ac_t""no" 1>&6
7484 { echo "configure: error: Can't find gnome headers. Please install the gnome
7485 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7491 CPPFLAGS=$saved_CPPFLAGS
7496 # Check whether --enable-gtk or --disable-gtk was given.
7497 if test "${enable_gtk+set}" = set; then
7498 enableval="$enable_gtk"
7502 if test x$enable_gtk != xno
7505 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7506 if test "${with_gtk_config_path+set}" = set; then
7507 withval="$with_gtk_config_path"
7508 if test "x$withval" != "xno"
7510 GTK_PATH=$withval:$PATH
7514 # look for gtk-config
7515 # Extract the first word of "gtk12-config", so it can be a program name with args.
7516 set dummy gtk12-config; ac_word=$2
7517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7518 echo "configure:7519: checking for $ac_word" >&5
7519 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7522 case "$GTK12_CONFIG" in
7524 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7527 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7531 ac_dummy="$GTK_PATH"
7532 for ac_dir in $ac_dummy; do
7533 test -z "$ac_dir" && ac_dir=.
7534 if test -f $ac_dir/$ac_word; then
7535 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7540 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7544 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7545 if test -n "$GTK12_CONFIG"; then
7546 echo "$ac_t""$GTK12_CONFIG" 1>&6
7548 echo "$ac_t""no" 1>&6
7551 GTK_CONFIG=${GTK12_CONFIG}
7552 if test x${GTK_CONFIG} = xno
7554 # Extract the first word of "gtk-config", so it can be a program name with args.
7555 set dummy gtk-config; ac_word=$2
7556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_word" >&5
7558 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7561 case "$GTK_CONFIG" in
7563 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7566 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7570 ac_dummy="$GTK_PATH"
7571 for ac_dir in $ac_dummy; do
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/$ac_word; then
7574 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7579 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7583 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7584 if test -n "$GTK_CONFIG"; then
7585 echo "$ac_t""$GTK_CONFIG" 1>&6
7587 echo "$ac_t""no" 1>&6
7591 if test x${GTK_CONFIG} != xno
7593 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7595 { 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; }
7597 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7598 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7599 # now look for the gtk.h header
7600 saved_CPPFLAGS=$CPPFLAGS
7601 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7602 ac_cv_gtk_headers=yes
7603 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7607 echo "configure:7608: checking for $ac_hdr" >&5
7608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7617 { (eval echo configure:7618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7619 if test -z "$ac_err"; then
7621 eval "ac_cv_header_$ac_safe=yes"
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7627 eval "ac_cv_header_$ac_safe=no"
7631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7632 echo "$ac_t""yes" 1>&6
7633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7634 cat >> confdefs.h <<EOF
7635 #define $ac_tr_hdr 1
7639 echo "$ac_t""no" 1>&6
7640 ac_cv_gtk_headers=no
7641 echo "Cannot find gtk development headers."
7646 if test "x$ac_cv_gtk_headers" = xyes
7648 PLUGINS="${PLUGINS} gtk"
7649 ALIASES="${ALIASES} gvlc"
7651 CPPFLAGS=$saved_CPPFLAGS
7655 # Check whether --enable-x11 or --disable-x11 was given.
7656 if test "${enable_x11+set}" = set; then
7657 enableval="$enable_x11"
7661 if test x$enable_x11 != xno &&
7662 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
7663 if test x$x_includes = xNONE; then
7664 x_includes=/usr/X11R6/include
7666 if test x$x_libraries = xNONE; then
7667 x_libraries=/usr/X11R6/lib
7669 saved_CPPFLAGS=$CPPFLAGS
7670 CPPFLAGS="$CPPFLAGS -I$x_includes"
7671 for ac_hdr in X11/Xlib.h
7673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7675 echo "configure:7676: checking for $ac_hdr" >&5
7676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7685 { (eval echo configure:7686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7687 if test -z "$ac_err"; then
7689 eval "ac_cv_header_$ac_safe=yes"
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 eval "ac_cv_header_$ac_safe=no"
7699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7702 cat >> confdefs.h <<EOF
7703 #define $ac_tr_hdr 1
7706 PLUGINS="${PLUGINS} x11"
7707 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7708 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7711 echo "$ac_t""no" 1>&6
7715 CPPFLAGS=$saved_CPPFLAGS
7718 # Check whether --enable-xvideo or --disable-xvideo was given.
7719 if test "${enable_xvideo+set}" = set; then
7720 enableval="$enable_xvideo"
7724 if test x$enable_xvideo != xno &&
7725 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7726 if test x$x_includes = xNONE; then
7727 x_includes=/usr/X11R6/include
7729 if test x$x_libraries = xNONE; then
7730 x_libraries=/usr/X11R6/lib
7732 saved_CPPFLAGS=$CPPFLAGS
7733 CPPFLAGS="$CPPFLAGS -I$x_includes"
7734 for ac_hdr in X11/extensions/Xv.h
7736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7738 echo "configure:7739: checking for $ac_hdr" >&5
7739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7748 { (eval echo configure:7749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7750 if test -z "$ac_err"; then
7752 eval "ac_cv_header_$ac_safe=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7758 eval "ac_cv_header_$ac_safe=no"
7762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7765 cat >> confdefs.h <<EOF
7766 #define $ac_tr_hdr 1
7769 saved_CFLAGS=$CFLAGS
7770 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7771 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7772 echo "configure:7773: checking for XvSetPortAttribute in -lXv_pic" >&5
7773 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 ac_save_LIBS="$LIBS"
7778 LIBS="-lXv_pic $LIBS"
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 /* Override any gcc2 internal prototype to avoid an error. */
7783 /* We use char because int might match the return type of a gcc2
7784 builtin and then its argument prototype would still apply. */
7785 char XvSetPortAttribute();
7788 XvSetPortAttribute()
7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7793 eval "ac_cv_lib_$ac_lib_var=yes"
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7798 eval "ac_cv_lib_$ac_lib_var=no"
7801 LIBS="$ac_save_LIBS"
7804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7805 echo "$ac_t""yes" 1>&6
7806 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7807 PLUGINS="${PLUGINS} xvideo"
7808 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
7809 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7811 echo "$ac_t""no" 1>&6
7812 # We don't have Xv_pic, let's make xvideo.a as builtin
7813 BUILTINS="${BUILTINS} xvideo"
7814 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7815 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7818 CFLAGS=$saved_CFLAGS
7820 CPPFLAGS=$saved_CPPFLAGS
7822 echo "$ac_t""no" 1>&6
7828 # Check whether --enable-lirc or --disable-lirc was given.
7829 if test "${enable_lirc+set}" = set; then
7830 enableval="$enable_lirc"
7834 if test x$enable_lirc = xyes
7836 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7837 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7838 echo "configure:7839: checking for lirc/lirc_client.h" >&5
7839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 #include <lirc/lirc_client.h>
7847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7848 { (eval echo configure:7849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7850 if test -z "$ac_err"; then
7852 eval "ac_cv_header_$ac_safe=yes"
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7858 eval "ac_cv_header_$ac_safe=no"
7862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7865 echo "configure:7866: checking for lirc_init in -llirc_client" >&5
7866 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7870 ac_save_LIBS="$LIBS"
7871 LIBS="-llirc_client $LIBS"
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7875 /* Override any gcc2 internal prototype to avoid an error. */
7876 /* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7884 if { (eval echo configure:7885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7886 eval "ac_cv_lib_$ac_lib_var=yes"
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 eval "ac_cv_lib_$ac_lib_var=no"
7894 LIBS="$ac_save_LIBS"
7897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7901 echo "$ac_t""no" 1>&6
7906 echo "$ac_t""no" 1>&6
7910 if test x$have_lirc = xtrue
7912 PLUGINS="${PLUGINS} lirc"
7913 LIB_LIRC="${LIB_LIRC} -llirc_client"
7917 # Check whether --enable-alsa or --disable-alsa was given.
7918 if test "${enable_alsa+set}" = set; then
7919 enableval="$enable_alsa"
7920 if test x$enable_alsa = xyes
7922 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7923 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7924 echo "configure:7925: checking for alsa/asoundlib.h" >&5
7925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 #include <alsa/asoundlib.h>
7933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7934 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7936 if test -z "$ac_err"; then
7938 eval "ac_cv_header_$ac_safe=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 eval "ac_cv_header_$ac_safe=no"
7948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7951 echo "configure:7952: checking for main in -lasound" >&5
7952 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7956 ac_save_LIBS="$LIBS"
7957 LIBS="-lasound $LIBS"
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7968 eval "ac_cv_lib_$ac_lib_var=yes"
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 eval "ac_cv_lib_$ac_lib_var=no"
7976 LIBS="$ac_save_LIBS"
7979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7980 echo "$ac_t""yes" 1>&6
7983 echo "$ac_t""no" 1>&6
7988 echo "$ac_t""no" 1>&6
7992 if test x$have_alsa = xtrue
7994 PLUGINS="${PLUGINS} alsa"
7995 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
8003 # Check whether --enable-plugins or --disable-plugins was given.
8004 if test "${enable_plugins+set}" = set; then
8005 enableval="$enable_plugins"
8006 if test x$enable_plugins = xno
8008 BUILTINS="${BUILTINS} ${PLUGINS}"
8015 # Check whether --with-dll-path or --without-dll-path was given.
8016 if test "${with_dll_path+set}" = set; then
8017 withval="$with_dll_path"
8018 if test "x$withval" != "xno"
8025 cat >> confdefs.h <<EOF
8026 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8029 cat >> confdefs.h <<EOF
8030 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8034 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8035 cat >> confdefs.h <<EOF
8036 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8039 cat >> confdefs.h <<EOF
8040 #define MODULE_SYMBOL $VLC_SYMBOL
8044 DATA_PATH="${ac_tool_prefix}/share/videolan"
8046 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8141 cat > confcache <<\EOF
8142 # This file is a shell script that caches the results of configure
8143 # tests run on this system so they can be shared between configure
8144 # scripts and configure runs. It is not useful on other systems.
8145 # If it contains results you don't want to keep, you may remove or edit it.
8147 # By default, configure uses ./config.cache as the cache file,
8148 # creating it if it does not exist already. You can give configure
8149 # the --cache-file=FILE option to use a different cache file; that is
8150 # what configure does when it calls configure scripts in
8151 # subdirectories, so they share the cache.
8152 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8153 # config.status only pays attention to the cache file if you give it the
8154 # --recheck option to rerun configure.
8157 # The following way of writing the cache mishandles newlines in values,
8158 # but we know of no workaround that is simple, portable, and efficient.
8159 # So, don't put newlines in cache variables' values.
8160 # Ultrix sh set writes to stderr and can't be redirected directly,
8161 # and sets the high bit in the cache file unless we assign to the vars.
8163 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8165 # `set' does not quote correctly, so add quotes (double-quote substitution
8166 # turns \\\\ into \\, and sed turns \\ into \).
8168 -e "s/'/'\\\\''/g" \
8169 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8172 # `set' quotes correctly as required by POSIX, so do not add quotes.
8173 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8176 if cmp -s $cache_file confcache; then
8179 if test -w $cache_file; then
8180 echo "updating cache $cache_file"
8181 cat confcache > $cache_file
8183 echo "not updating unwritable cache $cache_file"
8188 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8191 # Let make expand exec_prefix.
8192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8194 # Any assignment to VPATH causes Sun make to only execute
8195 # the first set of double-colon rules, so remove it if not needed.
8196 # If there is a colon in the path, we need to keep it.
8197 if test "x$srcdir" = x.; then
8198 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8201 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8203 DEFS=-DHAVE_CONFIG_H
8205 # Without the "./", some shells look in PATH for config.status.
8206 : ${CONFIG_STATUS=./config.status}
8208 echo creating $CONFIG_STATUS
8209 rm -f $CONFIG_STATUS
8210 cat > $CONFIG_STATUS <<EOF
8212 # Generated automatically by configure.
8213 # Run this file to recreate the current configuration.
8214 # This directory was configured as follows,
8215 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8217 # $0 $ac_configure_args
8219 # Compiler output produced by configure, useful for debugging
8220 # configure, is in ./config.log if it exists.
8222 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8225 case "\$ac_option" in
8226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8227 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8228 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8229 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8230 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8232 -help | --help | --hel | --he | --h)
8233 echo "\$ac_cs_usage"; exit 0 ;;
8234 *) echo "\$ac_cs_usage"; exit 1 ;;
8238 ac_given_srcdir=$srcdir
8239 ac_given_INSTALL="$INSTALL"
8241 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8243 cat >> $CONFIG_STATUS <<EOF
8245 # Protect against being on the right side of a sed subst in config.status.
8246 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8247 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8251 s%@CFLAGS@%$CFLAGS%g
8252 s%@CPPFLAGS@%$CPPFLAGS%g
8253 s%@CXXFLAGS@%$CXXFLAGS%g
8254 s%@FFLAGS@%$FFLAGS%g
8256 s%@LDFLAGS@%$LDFLAGS%g
8258 s%@exec_prefix@%$exec_prefix%g
8259 s%@prefix@%$prefix%g
8260 s%@program_transform_name@%$program_transform_name%g
8261 s%@bindir@%$bindir%g
8262 s%@sbindir@%$sbindir%g
8263 s%@libexecdir@%$libexecdir%g
8264 s%@datadir@%$datadir%g
8265 s%@sysconfdir@%$sysconfdir%g
8266 s%@sharedstatedir@%$sharedstatedir%g
8267 s%@localstatedir@%$localstatedir%g
8268 s%@libdir@%$libdir%g
8269 s%@includedir@%$includedir%g
8270 s%@oldincludedir@%$oldincludedir%g
8271 s%@infodir@%$infodir%g
8272 s%@mandir@%$mandir%g
8274 s%@host_alias@%$host_alias%g
8275 s%@host_cpu@%$host_cpu%g
8276 s%@host_vendor@%$host_vendor%g
8277 s%@host_os@%$host_os%g
8278 s%@target@%$target%g
8279 s%@target_alias@%$target_alias%g
8280 s%@target_cpu@%$target_cpu%g
8281 s%@target_vendor@%$target_vendor%g
8282 s%@target_os@%$target_os%g
8284 s%@build_alias@%$build_alias%g
8285 s%@build_cpu@%$build_cpu%g
8286 s%@build_vendor@%$build_vendor%g
8287 s%@build_os@%$build_os%g
8288 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8289 s%@SET_MAKE@%$SET_MAKE%g
8292 s%@RANLIB@%$RANLIB%g
8293 s%@ALLOCA@%$ALLOCA%g
8294 s%@GLIBC21@%$GLIBC21%g
8295 s%@LIBICONV@%$LIBICONV%g
8296 s%@USE_NLS@%$USE_NLS%g
8297 s%@MSGFMT@%$MSGFMT%g
8298 s%@GMSGFMT@%$GMSGFMT%g
8299 s%@XGETTEXT@%$XGETTEXT%g
8300 s%@INTLBISON@%$INTLBISON%g
8301 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8302 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8303 s%@CATALOGS@%$CATALOGS%g
8304 s%@CATOBJEXT@%$CATOBJEXT%g
8305 s%@GMOFILES@%$GMOFILES%g
8306 s%@INTLLIBS@%$INTLLIBS%g
8307 s%@INTLOBJS@%$INTLOBJS%g
8308 s%@POFILES@%$POFILES%g
8310 s%@DATADIRNAME@%$DATADIRNAME%g
8311 s%@INSTOBJEXT@%$INSTOBJEXT%g
8312 s%@GENCAT@%$GENCAT%g
8313 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8314 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8315 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8316 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8317 s%@INSTALL_DATA@%$INSTALL_DATA%g
8318 s%@WINDRES@%$WINDRES%g
8319 s%@ESD_CONFIG@%$ESD_CONFIG%g
8320 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8321 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8322 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8323 s%@SDL_CONFIG@%$SDL_CONFIG%g
8324 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8325 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8326 s%@GTK_CONFIG@%$GTK_CONFIG%g
8327 s%@DATA_PATH@%$DATA_PATH%g
8328 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8331 s%@PLUGINS@%$PLUGINS%g
8332 s%@BUILTINS@%$BUILTINS%g
8333 s%@ALIASES@%$ALIASES%g
8334 s%@INCLUDE@%$INCLUDE%g
8339 s%@OPTIMS@%$OPTIMS%g
8340 s%@TUNING@%$TUNING%g
8341 s%@RELEASE@%$RELEASE%g
8343 s%@DLL_PATH@%$DLL_PATH%g
8344 s%@PACKAGE@%$PACKAGE%g
8345 s%@VERSION@%$VERSION%g
8346 s%@VCD_DEVICE@%$VCD_DEVICE%g
8347 s%@DVD_DEVICE@%$DVD_DEVICE%g
8348 s%@PLDFLAGS@%$PLDFLAGS%g
8349 s%@SOFLAGS@%$SOFLAGS%g
8351 s%@LIB_ALSA@%$LIB_ALSA%g
8352 s%@LIB_ARTS@%$LIB_ARTS%g
8353 s%@LIB_BEOS@%$LIB_BEOS%g
8354 s%@LIB_DARWIN@%$LIB_DARWIN%g
8355 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8356 s%@LIB_DVD@%$LIB_DVD%g
8357 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8358 s%@LIB_ESD@%$LIB_ESD%g
8359 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8360 s%@LIB_GGI@%$LIB_GGI%g
8361 s%@LIB_GLIDE@%$LIB_GLIDE%g
8362 s%@LIB_GNOME@%$LIB_GNOME%g
8363 s%@LIB_GTK@%$LIB_GTK%g
8364 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8365 s%@LIB_IMDCT@%$LIB_IMDCT%g
8366 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8367 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8368 s%@LIB_KDE@%$LIB_KDE%g
8369 s%@LIB_A52@%$LIB_A52%g
8370 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8371 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8372 s%@LIB_LIRC@%$LIB_LIRC%g
8373 s%@LIB_MACOSX@%$LIB_MACOSX%g
8374 s%@LIB_MAD@%$LIB_MAD%g
8375 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8376 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8377 s%@LIB_NCURSES@%$LIB_NCURSES%g
8378 s%@LIB_QNX@%$LIB_QNX%g
8379 s%@LIB_QT@%$LIB_QT%g
8380 s%@LIB_RC@%$LIB_RC%g
8381 s%@LIB_SDL@%$LIB_SDL%g
8382 s%@LIB_VCD@%$LIB_VCD%g
8383 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8384 s%@LIB_WIN32@%$LIB_WIN32%g
8385 s%@LIB_X11@%$LIB_X11%g
8386 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8387 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8388 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8389 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8390 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8391 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8392 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8393 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8394 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8395 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8396 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8397 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8398 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8399 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8400 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8401 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8402 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8403 s%@CFLAGS_QT@%$CFLAGS_QT%g
8404 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8405 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8406 s%@CFLAGS_X11@%$CFLAGS_X11%g
8407 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8408 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8409 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8410 s%@NEED_GETOPT@%$NEED_GETOPT%g
8411 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8416 cat >> $CONFIG_STATUS <<\EOF
8418 # Split the substitutions into bite-sized pieces for seds with
8419 # small command number limits, like on Digital OSF/1 and HP-UX.
8420 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8421 ac_file=1 # Number of current file.
8422 ac_beg=1 # First line for current file.
8423 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8426 while $ac_more_lines; do
8427 if test $ac_beg -gt 1; then
8428 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8430 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8432 if test ! -s conftest.s$ac_file; then
8434 rm -f conftest.s$ac_file
8436 if test -z "$ac_sed_cmds"; then
8437 ac_sed_cmds="sed -f conftest.s$ac_file"
8439 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8441 ac_file=`expr $ac_file + 1`
8443 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8446 if test -z "$ac_sed_cmds"; then
8451 cat >> $CONFIG_STATUS <<EOF
8453 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8455 cat >> $CONFIG_STATUS <<\EOF
8456 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8459 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8460 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8461 *) ac_file_in="${ac_file}.in" ;;
8464 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8466 # Remove last slash and all that follows it. Not all systems have dirname.
8467 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8468 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8469 # The file is in a subdirectory.
8470 test ! -d "$ac_dir" && mkdir "$ac_dir"
8471 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8472 # A "../" for each directory in $ac_dir_suffix.
8473 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8475 ac_dir_suffix= ac_dots=
8478 case "$ac_given_srcdir" in
8480 if test -z "$ac_dots"; then top_srcdir=.
8481 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8482 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8484 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8485 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8488 case "$ac_given_INSTALL" in
8489 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8490 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8493 echo creating "$ac_file"
8495 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8497 *Makefile*) ac_comsub="1i\\
8498 # $configure_input" ;;
8502 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8504 s%@configure_input@%$configure_input%g
8505 s%@srcdir@%$srcdir%g
8506 s%@top_srcdir@%$top_srcdir%g
8507 s%@INSTALL@%$INSTALL%g
8508 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8512 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8513 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8515 # ac_d sets the value in "#define NAME VALUE" lines.
8516 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8517 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8520 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8521 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8522 ac_uB='\([ ]\)%\1#\2define\3'
8525 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8526 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8527 ac_eB='$%\1#\2define\3'
8531 if test "${CONFIG_HEADERS+set}" != set; then
8533 cat >> $CONFIG_STATUS <<EOF
8534 CONFIG_HEADERS="include/defs.h"
8536 cat >> $CONFIG_STATUS <<\EOF
8538 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8541 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8542 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8543 *) ac_file_in="${ac_file}.in" ;;
8546 echo creating $ac_file
8548 rm -f conftest.frag conftest.in conftest.out
8549 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8550 cat $ac_file_inputs > conftest.in
8554 # Transform confdefs.h into a sed script conftest.vals that substitutes
8555 # the proper values into config.h.in to produce config.h. And first:
8556 # Protect against being on the right side of a sed subst in config.status.
8557 # Protect against being in an unquoted here document in config.status.
8559 cat > conftest.hdr <<\EOF
8562 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8566 sed -n -f conftest.hdr confdefs.h > conftest.vals
8569 # This sed command replaces #undef with comments. This is necessary, for
8570 # example, in the case of _POSIX_SOURCE, which is predefined and required
8571 # on some systems where configure will not decide to define it.
8572 cat >> conftest.vals <<\EOF
8573 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8576 # Break up conftest.vals because some shells have a limit on
8577 # the size of here documents, and old seds have small limits too.
8582 ac_lines=`grep -c . conftest.vals`
8583 # grep -c gives empty output for an empty file on some AIX systems.
8584 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8585 # Write a limited-size here document to conftest.frag.
8586 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8587 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8589 sed -f conftest.frag conftest.in > conftest.out
8591 mv conftest.out conftest.in
8593 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8595 mv conftest.tail conftest.vals
8599 cat >> $CONFIG_STATUS <<\EOF
8600 rm -f conftest.frag conftest.h
8601 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8602 cat conftest.in >> conftest.h
8604 if cmp -s $ac_file conftest.h 2>/dev/null; then
8605 echo "$ac_file is unchanged"
8608 # Remove last slash and all that follows it. Not all systems have dirname.
8609 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8610 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8611 # The file is in a subdirectory.
8612 test ! -d "$ac_dir" && mkdir "$ac_dir"
8615 mv conftest.h $ac_file
8620 cat >> $CONFIG_STATUS <<EOF
8624 cat >> $CONFIG_STATUS <<\EOF
8625 for ac_file in $CONFIG_FILES; do
8626 # Support "outfile[:infile[:infile...]]"
8628 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8630 # PO directories have a Makefile.in generated from Makefile.in.in.
8631 case "$ac_file" in */Makefile.in)
8632 # Adjust a relative srcdir.
8633 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8634 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8635 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8636 # In autoconf-2.13 it is called $ac_given_srcdir.
8637 # In autoconf-2.50 it is called $srcdir.
8638 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8639 case "$ac_given_srcdir" in
8640 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8641 /*) top_srcdir="$ac_given_srcdir" ;;
8642 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8644 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8645 rm -f "$ac_dir/POTFILES"
8646 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8647 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8648 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8649 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8657 chmod +x $CONFIG_STATUS
8658 rm -fr confdefs* $ac_clean_files
8659 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8663 global configuration
8664 --------------------
8666 architecture : ${ARCH}
8667 optimizations : ${OPTIMS}
8669 release: : ${RELEASE}"
8671 if test x${HAVE_VLC} = x1
8676 vlc version : ${VLC_VERSION}
8677 debug mode : ${DEBUG}
8678 cprof/gprof support : ${CPROF}/${GPROF}
8679 need builtin getopt : ${NEED_GETOPT}
8680 built-in modules :${BUILTINS}
8681 plug-in modules :${PLUGINS}
8682 vlc aliases :${ALIASES}"
8686 libdvdcss configuration
8687 -----------------------
8688 can be built : ${CAN_BUILD_LIBDVDCSS}
8689 will be built : ${NEED_LIBDVDCSS}"
8690 if test x${NEED_LIBDVDCSS} = x1
8692 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8693 echo "link statically : ${STATIC_LIBDVDCSS}"
8695 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8699 You may now tune Makefile.opts at your convenience, for instance to choose
8700 which modules get compiled as plugins.
8702 if test x${HAVE_VLC} = x1
8704 echo "To build vlc and its plugins, type \`make vlc plugins'."
8706 if test x${HAVE_LIBDVDCSS} = x1
8708 echo "To build libdvdcss only, type \`make libdvdcss'."