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-words=endianness Set endianness (big or little)"
17 --with-tuning=[arch] Enable special tuning for an architecture
18 (default i686 on IA-32 and 750 on PPC)"
20 --enable-release Activate extra optimizations (default disabled)"
22 --disable-mmx Disable MMX optimizations (default enabled for x86)"
24 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
26 --enable-debug Enable debug mode (default disabled)"
28 --enable-trace Enable trace mode (default disabled)"
30 --enable-gprof Enable gprof profiling (default disabled)"
32 --enable-cprof Enable cprof profiling (default disabled)"
34 --disable-optimizations Disable compiler optimizations (default enabled)"
36 --enable-pth Enable GNU Pth support (default disabled)"
38 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
39 or 'local-static', 'local-shared', or a path to
40 another libdvdcss such as '/usr/local'
41 (default 'local-static')"
43 --enable-dvdread Enable dvdread support (default disabled)"
45 --enable-vcd VCD support for Linux (default enabled)"
47 --disable-dummy dummy module (default enabled)"
49 --disable-null Null module (default enabled)"
51 --disable-rc rc module (default enabled)"
53 --disable-dsp Linux /dev/dsp support (default enabled)"
55 --enable-esd Esound library support (default disabled)"
57 --enable-arts aRts sound server (default disabled)"
59 --enable-macosx MacOS X support (default enabled on MacOS X)"
61 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
63 --enable-fb Linux framebuffer support (default disabled)"
65 --with-ggi[=name] GGI support (default disabled)"
67 --disable-sdl SDL support (default enabled)"
69 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
71 --disable-directx Windows DirectX support (default enabled on WIN32)"
73 --with-directx-path=path Windows DirectX headers and libraries"
75 --with-glide[=name] Glide (3dfx) support (default disabled)"
77 --enable-ncurses ncurses interface support (default disabled)"
79 --enable-qt Qt interface support (default disabled)"
81 --enable-kde KDE interface support (default disabled)"
83 --enable-gnome Gnome interface support (default disabled)"
85 --disable-gtk Gtk+ support (default enabled)"
87 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
89 --disable-x11 X11 support (default enabled)"
91 --disable-xvideo XVideo support (default enabled)"
93 --enable-alsa Alsa sound drivers support (Only for linux)
96 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
98 # Initialize some variables set by options.
99 # The variables have the same names as the options, with
100 # dashes changed to underlines.
102 cache_file=./config.cache
111 program_transform_name=s,x,x,
119 bindir='${exec_prefix}/bin'
120 sbindir='${exec_prefix}/sbin'
121 libexecdir='${exec_prefix}/libexec'
122 datadir='${prefix}/share'
123 sysconfdir='${prefix}/etc'
124 sharedstatedir='${prefix}/com'
125 localstatedir='${prefix}/var'
126 libdir='${exec_prefix}/lib'
127 includedir='${prefix}/include'
128 oldincludedir='/usr/include'
129 infodir='${prefix}/info'
130 mandir='${prefix}/man'
132 # Initialize some other variables.
135 SHELL=${CONFIG_SHELL-/bin/sh}
136 # Maximum number of lines to put in a shell here document.
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
151 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 # Accept the important Cygnus configure options, so we can diagnose typos.
159 -bindir | --bindir | --bindi | --bind | --bin | --bi)
161 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
162 bindir="$ac_optarg" ;;
164 -build | --build | --buil | --bui | --bu)
166 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
167 build="$ac_optarg" ;;
169 -cache-file | --cache-file | --cache-fil | --cache-fi \
170 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
171 ac_prev=cache_file ;;
172 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
173 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
174 cache_file="$ac_optarg" ;;
176 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
178 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
180 datadir="$ac_optarg" ;;
182 -disable-* | --disable-*)
183 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* | --enable-*)
192 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
206 | --exec | --exe | --ex)
207 ac_prev=exec_prefix ;;
208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
210 | --exec=* | --exe=* | --ex=*)
211 exec_prefix="$ac_optarg" ;;
213 -gas | --gas | --ga | --g)
214 # Obsolete; use --with-gas.
217 -help | --help | --hel | --he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host | --host | --hos | --ho)
274 -host=* | --host=* | --hos=* | --ho=*)
277 -includedir | --includedir | --includedi | --included | --include \
278 | --includ | --inclu | --incl | --inc)
279 ac_prev=includedir ;;
280 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
281 | --includ=* | --inclu=* | --incl=* | --inc=*)
282 includedir="$ac_optarg" ;;
284 -infodir | --infodir | --infodi | --infod | --info | --inf)
286 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
287 infodir="$ac_optarg" ;;
289 -libdir | --libdir | --libdi | --libd)
291 -libdir=* | --libdir=* | --libdi=* | --libd=*)
292 libdir="$ac_optarg" ;;
294 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
295 | --libexe | --libex | --libe)
296 ac_prev=libexecdir ;;
297 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
298 | --libexe=* | --libex=* | --libe=*)
299 libexecdir="$ac_optarg" ;;
301 -localstatedir | --localstatedir | --localstatedi | --localstated \
302 | --localstate | --localstat | --localsta | --localst \
303 | --locals | --local | --loca | --loc | --lo)
304 ac_prev=localstatedir ;;
305 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
306 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
307 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
308 localstatedir="$ac_optarg" ;;
310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
313 mandir="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
329 | --oldin | --oldi | --old | --ol | --o)
330 ac_prev=oldincludedir ;;
331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
334 oldincludedir="$ac_optarg" ;;
336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
339 prefix="$ac_optarg" ;;
341 -program-prefix | --program-prefix | --program-prefi | --program-pref \
342 | --program-pre | --program-pr | --program-p)
343 ac_prev=program_prefix ;;
344 -program-prefix=* | --program-prefix=* | --program-prefi=* \
345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
346 program_prefix="$ac_optarg" ;;
348 -program-suffix | --program-suffix | --program-suffi | --program-suff \
349 | --program-suf | --program-su | --program-s)
350 ac_prev=program_suffix ;;
351 -program-suffix=* | --program-suffix=* | --program-suffi=* \
352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
353 program_suffix="$ac_optarg" ;;
355 -program-transform-name | --program-transform-name \
356 | --program-transform-nam | --program-transform-na \
357 | --program-transform-n | --program-transform- \
358 | --program-transform | --program-transfor \
359 | --program-transfo | --program-transf \
360 | --program-trans | --program-tran \
361 | --progr-tra | --program-tr | --program-t)
362 ac_prev=program_transform_name ;;
363 -program-transform-name=* | --program-transform-name=* \
364 | --program-transform-nam=* | --program-transform-na=* \
365 | --program-transform-n=* | --program-transform-=* \
366 | --program-transform=* | --program-transfor=* \
367 | --program-transfo=* | --program-transf=* \
368 | --program-trans=* | --program-tran=* \
369 | --progr-tra=* | --program-tr=* | --program-t=*)
370 program_transform_name="$ac_optarg" ;;
372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
373 | -silent | --silent | --silen | --sile | --sil)
376 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380 sbindir="$ac_optarg" ;;
382 -sharedstatedir | --sharedstatedir | --sharedstatedi \
383 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
384 | --sharedst | --shareds | --shared | --share | --shar \
386 ac_prev=sharedstatedir ;;
387 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
388 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
389 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391 sharedstatedir="$ac_optarg" ;;
393 -site | --site | --sit)
395 -site=* | --site=* | --sit=*)
398 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
401 srcdir="$ac_optarg" ;;
403 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
404 | --syscon | --sysco | --sysc | --sys | --sy)
405 ac_prev=sysconfdir ;;
406 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
407 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
408 sysconfdir="$ac_optarg" ;;
410 -target | --target | --targe | --targ | --tar | --ta | --t)
412 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
413 target="$ac_optarg" ;;
415 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 -version | --version | --versio | --versi | --vers)
419 echo "configure generated by autoconf version 2.13"
423 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* | --without-*)
436 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449 | --x-incl | --x-inc | --x-in | --x-i)
450 ac_prev=x_includes ;;
451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
453 x_includes="$ac_optarg" ;;
455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457 ac_prev=x_libraries ;;
458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
460 x_libraries="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
511 | --no-cr | --no-c) ;;
512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file=include/common.h
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE; then
565 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
567 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp='$CPP $CPPFLAGS'
588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
603 ac_n= ac_c='\c' ac_t=
610 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
611 if test -f $ac_dir/install-sh; then
613 ac_install_sh="$ac_aux_dir/install-sh -c"
615 elif test -f $ac_dir/install.sh; then
617 ac_install_sh="$ac_aux_dir/install.sh -c"
621 if test -z "$ac_aux_dir"; then
622 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
624 ac_config_guess=$ac_aux_dir/config.guess
625 ac_config_sub=$ac_aux_dir/config.sub
626 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
629 # Do some error checking and defaulting for the host and target type.
631 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
634 # 1. You are not allowed to specify --host, --target, and nonopt at the
636 # 2. Host defaults to nonopt.
637 # 3. If nonopt is not specified, then host defaults to the current host,
638 # as determined by config.guess.
639 # 4. Target and build default to nonopt.
640 # 5. If nonopt is not specified, then target and build default to host.
642 # The aliases save the names the user supplied, while $host etc.
643 # will get canonicalized.
644 case $host---$target---$nonopt in
645 NONE---*---* | *---NONE---* | *---*---NONE) ;;
646 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 # Make sure we can run config.sub.
651 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
652 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
655 echo $ac_n "checking host system type""... $ac_c" 1>&6
656 echo "configure:657: checking host system type" >&5
659 case "$host_alias" in
663 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
664 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
666 *) host_alias=$nonopt ;;
670 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
671 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
672 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
673 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo "$ac_t""$host" 1>&6
676 echo $ac_n "checking target system type""... $ac_c" 1>&6
677 echo "configure:678: checking target system type" >&5
680 case "$target_alias" in
683 NONE) target_alias=$host_alias ;;
684 *) target_alias=$nonopt ;;
688 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
689 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$target" 1>&6
694 echo $ac_n "checking build system type""... $ac_c" 1>&6
695 echo "configure:696: checking build system type" >&5
698 case "$build_alias" in
701 NONE) build_alias=$host_alias ;;
702 *) build_alias=$nonopt ;;
706 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
707 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$build" 1>&6
712 test "$host_alias" != "$target_alias" &&
713 test "$program_prefix$program_suffix$program_transform_name" = \
715 program_prefix=${target_alias}-
719 if test -r src/interface/main.c; then
728 if test -r extras/libdvdcss/libdvdcss.c; then
730 LIBDVDCSS_VERSION=1.0.0
732 if test -r extras/libdvdcss/csskeys.h; then
733 cat >> confdefs.h <<\EOF
734 #define HAVE_CSSKEYS 1
740 save_CFLAGS="${CFLAGS}"
741 save_LDFLAGS="${LDFLAGS}"
743 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${MAKE-make} sets \${MAKE}" >&5
745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
746 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 cat > conftestmake <<\EOF
751 @echo 'ac_maketemp="${MAKE}"'
753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
754 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
755 if test -n "$ac_maketemp"; then
756 eval ac_cv_prog_make_${ac_make}_set=yes
758 eval ac_cv_prog_make_${ac_make}_set=no
762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
763 echo "$ac_t""yes" 1>&6
766 echo "$ac_t""no" 1>&6
767 SET_MAKE="MAKE=${MAKE-make}"
770 # Extract the first word of "gcc", so it can be a program name with args.
771 set dummy gcc; ac_word=$2
772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
773 echo "configure:774: checking for $ac_word" >&5
774 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 if test -n "$CC"; then
778 ac_cv_prog_CC="$CC" # Let the user override the test.
780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
782 for ac_dir in $ac_dummy; do
783 test -z "$ac_dir" && ac_dir=.
784 if test -f $ac_dir/$ac_word; then
793 if test -n "$CC"; then
794 echo "$ac_t""$CC" 1>&6
796 echo "$ac_t""no" 1>&6
799 if test -z "$CC"; then
800 # Extract the first word of "cc", so it can be a program name with args.
801 set dummy cc; ac_word=$2
802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
803 echo "configure:804: checking for $ac_word" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 if test -n "$CC"; then
808 ac_cv_prog_CC="$CC" # Let the user override the test.
810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
813 for ac_dir in $ac_dummy; do
814 test -z "$ac_dir" && ac_dir=.
815 if test -f $ac_dir/$ac_word; then
816 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
825 if test $ac_prog_rejected = yes; then
826 # We found a bogon in the path, so make sure we never use it.
827 set dummy $ac_cv_prog_CC
829 if test $# -gt 0; then
830 # We chose a different compiler from the bogus one.
831 # However, it has the same basename, so the bogon will be chosen
832 # first if we set CC to just the basename; use the full file name.
834 set dummy "$ac_dir/$ac_word" "$@"
842 if test -n "$CC"; then
843 echo "$ac_t""$CC" 1>&6
845 echo "$ac_t""no" 1>&6
848 if test -z "$CC"; then
851 # Extract the first word of "cl", so it can be a program name with args.
852 set dummy cl; ac_word=$2
853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
854 echo "configure:855: checking for $ac_word" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test.
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
863 for ac_dir in $ac_dummy; do
864 test -z "$ac_dir" && ac_dir=.
865 if test -f $ac_dir/$ac_word; then
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
877 echo "$ac_t""no" 1>&6
882 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
885 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
886 echo "configure:887: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
890 ac_cpp='$CPP $CPPFLAGS'
891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
893 cross_compiling=$ac_cv_prog_cc_cross
895 cat > conftest.$ac_ext << EOF
897 #line 898 "configure"
898 #include "confdefs.h"
902 if { (eval echo configure:903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
903 ac_cv_prog_cc_works=yes
904 # If we can't run a trivial program, we are probably using a cross compiler.
905 if (./conftest; exit) 2>/dev/null; then
906 ac_cv_prog_cc_cross=no
908 ac_cv_prog_cc_cross=yes
911 echo "configure: failed program was:" >&5
912 cat conftest.$ac_ext >&5
913 ac_cv_prog_cc_works=no
917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
918 ac_cpp='$CPP $CPPFLAGS'
919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
921 cross_compiling=$ac_cv_prog_cc_cross
923 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
924 if test $ac_cv_prog_cc_works = no; then
925 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
927 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
928 echo "configure:929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
929 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
930 cross_compiling=$ac_cv_prog_cc_cross
932 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
933 echo "configure:934: checking whether we are using GNU C" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 cat > conftest.c <<EOF
942 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
949 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
951 if test $ac_cv_prog_gcc = yes; then
957 ac_test_CFLAGS="${CFLAGS+set}"
958 ac_save_CFLAGS="$CFLAGS"
960 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
961 echo "configure:962: checking whether ${CC-cc} accepts -g" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 echo 'void f(){}' > conftest.c
966 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
975 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
976 if test "$ac_test_CFLAGS" = set; then
977 CFLAGS="$ac_save_CFLAGS"
978 elif test $ac_cv_prog_cc_g = yes; then
979 if test "$GCC" = yes; then
985 if test "$GCC" = yes; then
992 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
993 echo "configure:994: checking how to run the C preprocessor" >&5
994 # On Suns, sometimes $CPP names a directory.
995 if test -n "$CPP" && test -d "$CPP"; then
998 if test -z "$CPP"; then
999 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 # This must be in double quotes, not single quotes, because CPP may get
1003 # substituted into the Makefile and "${CC-cc}" will confuse make.
1005 # On the NeXT, cc -E runs the code through the compiler's parser,
1006 # not just through cpp.
1007 cat > conftest.$ac_ext <<EOF
1008 #line 1009 "configure"
1009 #include "confdefs.h"
1013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014 { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1016 if test -z "$ac_err"; then
1020 echo "configure: failed program was:" >&5
1021 cat conftest.$ac_ext >&5
1023 CPP="${CC-cc} -E -traditional-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} -nologo -E"
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
1064 ac_cv_prog_CPP="$CPP"
1066 CPP="$ac_cv_prog_CPP"
1068 ac_cv_prog_CPP="$CPP"
1070 echo "$ac_t""$CPP" 1>&6
1072 if test $host != $build; then
1073 ac_tool_prefix=${host_alias}-
1078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 if test -n "$RANLIB"; then
1086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 for ac_dir in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir=.
1092 if test -f $ac_dir/$ac_word; then
1093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1100 RANLIB="$ac_cv_prog_RANLIB"
1101 if test -n "$RANLIB"; then
1102 echo "$ac_t""$RANLIB" 1>&6
1104 echo "$ac_t""no" 1>&6
1108 if test -z "$ac_cv_prog_RANLIB"; then
1109 if test -n "$ac_tool_prefix"; then
1110 # Extract the first word of "ranlib", so it can be a program name with args.
1111 set dummy ranlib; ac_word=$2
1112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1113 echo "configure:1114: checking for $ac_word" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 if test -n "$RANLIB"; then
1118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1125 ac_cv_prog_RANLIB="ranlib"
1130 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1133 RANLIB="$ac_cv_prog_RANLIB"
1134 if test -n "$RANLIB"; then
1135 echo "$ac_t""$RANLIB" 1>&6
1137 echo "$ac_t""no" 1>&6
1146 # Find a good install program. We prefer a C program (faster),
1147 # so one script is as good as another. But avoid the broken or
1148 # incompatible versions:
1149 # SysV /etc/install, /usr/sbin/install
1150 # SunOS /usr/etc/install
1151 # IRIX /sbin/install
1153 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1154 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1155 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1156 # ./install, which can be erroneously created by make from ./install.sh.
1157 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1158 echo "configure:1159: checking for a BSD compatible install" >&5
1159 if test -z "$INSTALL"; then
1160 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1164 for ac_dir in $PATH; do
1165 # Account for people who put trailing slashes in PATH elements.
1167 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1169 # OSF1 and SCO ODT 3.0 have their own names for install.
1170 # Don't use installbsd from OSF since it installs stuff as root
1172 for ac_prog in ginstall scoinst install; do
1173 if test -f $ac_dir/$ac_prog; then
1174 if test $ac_prog = install &&
1175 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1176 # AIX install. It has an incompatible calling convention.
1179 ac_cv_path_install="$ac_dir/$ac_prog -c"
1190 if test "${ac_cv_path_install+set}" = set; then
1191 INSTALL="$ac_cv_path_install"
1193 # As a last resort, use the slow shell script. We don't cache a
1194 # path for INSTALL within a source directory, because that will
1195 # break other packages using the cache if that directory is
1196 # removed, or if the path is relative.
1197 INSTALL="$ac_install_sh"
1200 echo "$ac_t""$INSTALL" 1>&6
1202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1203 # It thinks the first close brace ends the variable substitution.
1204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1211 if test x${cross_compiling} != xyes; then
1212 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether byte ordering is bigendian" >&5
1214 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 ac_cv_c_bigendian=unknown
1218 # See if sys/param.h defines the BYTE_ORDER macro.
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 #include <sys/types.h>
1223 #include <sys/param.h>
1226 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1231 if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1233 # It does; now see whether it defined to BIG_ENDIAN or not.
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1237 #include <sys/types.h>
1238 #include <sys/param.h>
1241 #if BYTE_ORDER != BIG_ENDIAN
1246 if { (eval echo configure:1247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1248 ac_cv_c_bigendian=yes
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1253 ac_cv_c_bigendian=no
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1261 if test $ac_cv_c_bigendian = unknown; then
1262 if test "$cross_compiling" = yes; then
1263 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1269 /* Are we little or big endian? From Harbison&Steele. */
1273 char c[sizeof (long)];
1276 exit (u.c[sizeof (long) - 1] == 1);
1279 if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1281 ac_cv_c_bigendian=no
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 ac_cv_c_bigendian=yes
1294 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1295 if test $ac_cv_c_bigendian = yes; then
1296 cat >> confdefs.h <<\EOF
1297 #define WORDS_BIGENDIAN 1
1303 # Check whether --with-words or --without-words was given.
1304 if test "${with_words+set}" = set; then
1305 withval="$with_words"
1311 ac_cv_c_bigendian=yes
1314 ac_cv_c_bigendian=no
1317 ac_cv_c_bigendian=unknown
1318 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
1319 echo "configure:1320: checking what the byte order looks to be" >&5
1320 cat >conftest.c <<EOF
1321 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
1322 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
1323 void _a(void) { char*s = (char*)am; s = (char *)ai; }
1324 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
1325 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
1326 void _e(void) { char*s = (char*)em; s = (char*)ei; }
1327 int main(void) { _a(); _e(); return 0; }
1330 if test -f conftest.c
1332 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
1333 && test -f conftest.o
1335 if test `grep -l BIGenDianSyS conftest.o`
1337 echo "$ac_t"""big endian"" 1>&6
1338 ac_cv_c_bigendian=yes
1340 if test `grep -l LiTTleEnDian conftest.o`
1342 echo "$ac_t"""little endian"" 1>&6
1343 ac_cv_c_bigendian=no
1347 if test $ac_cv_c_bigendian = xunknown
1349 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
1351 if test $ac_cv_c_bigendian = yes
1353 cat >> confdefs.h <<\EOF
1354 #define WORDS_BIGENDIAN 1
1361 for ac_func in gettimeofday select strerror strtod strtol
1363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_func" >&5
1365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* System header to define __stub macros and hopefully few prototypes,
1372 which can conflict with char $ac_func(); below. */
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1381 /* The GNU C library defines this for functions which it implements
1382 to always fail with ENOSYS. Some functions are actually named
1383 something starting with __ and the normal name is an alias. */
1384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1394 eval "ac_cv_func_$ac_func=yes"
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1399 eval "ac_cv_func_$ac_func=no"
1404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1405 echo "$ac_t""yes" 1>&6
1406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1407 cat >> confdefs.h <<EOF
1408 #define $ac_tr_func 1
1412 echo "$ac_t""no" 1>&6
1416 for ac_func in setenv putenv
1418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_func" >&5
1420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426 /* System header to define __stub macros and hopefully few prototypes,
1427 which can conflict with char $ac_func(); below. */
1429 /* Override any gcc2 internal prototype to avoid an error. */
1430 /* We use char because int might match the return type of a gcc2
1431 builtin and then its argument prototype would still apply. */
1436 /* The GNU C library defines this for functions which it implements
1437 to always fail with ENOSYS. Some functions are actually named
1438 something starting with __ and the normal name is an alias. */
1439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1447 if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1449 eval "ac_cv_func_$ac_func=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1454 eval "ac_cv_func_$ac_func=no"
1459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1460 echo "$ac_t""yes" 1>&6
1461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1462 cat >> confdefs.h <<EOF
1463 #define $ac_tr_func 1
1467 echo "$ac_t""no" 1>&6
1471 echo $ac_n "checking for connect""... $ac_c" 1>&6
1472 echo "configure:1473: checking for connect" >&5
1473 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 /* System header to define __stub macros and hopefully few prototypes,
1480 which can conflict with char connect(); below. */
1482 /* Override any gcc2 internal prototype to avoid an error. */
1483 /* We use char because int might match the return type of a gcc2
1484 builtin and then its argument prototype would still apply. */
1489 /* The GNU C library defines this for functions which it implements
1490 to always fail with ENOSYS. Some functions are actually named
1491 something starting with __ and the normal name is an alias. */
1492 #if defined (__stub_connect) || defined (__stub___connect)
1500 if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1502 eval "ac_cv_func_connect=yes"
1504 echo "configure: failed program was:" >&5
1505 cat conftest.$ac_ext >&5
1507 eval "ac_cv_func_connect=no"
1512 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1516 echo "$ac_t""no" 1>&6
1518 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1519 echo "configure:1520: checking for connect in -lsocket" >&5
1520 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 ac_save_LIBS="$LIBS"
1525 LIBS="-lsocket $LIBS"
1526 cat > conftest.$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1529 /* Override any gcc2 internal prototype to avoid an error. */
1530 /* We use char because int might match the return type of a gcc2
1531 builtin and then its argument prototype would still apply. */
1538 if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1540 eval "ac_cv_lib_$ac_lib_var=yes"
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1545 eval "ac_cv_lib_$ac_lib_var=no"
1548 LIBS="$ac_save_LIBS"
1551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1552 echo "$ac_t""yes" 1>&6
1553 LIB="${LIB} -lsocket"
1555 echo "$ac_t""no" 1>&6
1561 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1562 echo "configure:1563: checking for gethostbyname" >&5
1563 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1569 /* System header to define __stub macros and hopefully few prototypes,
1570 which can conflict with char gethostbyname(); below. */
1572 /* Override any gcc2 internal prototype to avoid an error. */
1573 /* We use char because int might match the return type of a gcc2
1574 builtin and then its argument prototype would still apply. */
1575 char gethostbyname();
1579 /* The GNU C library defines this for functions which it implements
1580 to always fail with ENOSYS. Some functions are actually named
1581 something starting with __ and the normal name is an alias. */
1582 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1592 eval "ac_cv_func_gethostbyname=yes"
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1597 eval "ac_cv_func_gethostbyname=no"
1602 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1603 echo "$ac_t""yes" 1>&6
1606 echo "$ac_t""no" 1>&6
1608 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1609 echo "configure:1610: checking for gethostbyname in -lnsl" >&5
1610 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 ac_save_LIBS="$LIBS"
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 /* Override any gcc2 internal prototype to avoid an error. */
1620 /* We use char because int might match the return type of a gcc2
1621 builtin and then its argument prototype would still apply. */
1622 char gethostbyname();
1628 if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1630 eval "ac_cv_lib_$ac_lib_var=yes"
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1635 eval "ac_cv_lib_$ac_lib_var=no"
1638 LIBS="$ac_save_LIBS"
1641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1642 echo "$ac_t""yes" 1>&6
1645 echo "$ac_t""no" 1>&6
1651 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1652 echo "configure:1653: checking for nanosleep" >&5
1653 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 /* System header to define __stub macros and hopefully few prototypes,
1660 which can conflict with char nanosleep(); below. */
1662 /* Override any gcc2 internal prototype to avoid an error. */
1663 /* We use char because int might match the return type of a gcc2
1664 builtin and then its argument prototype would still apply. */
1669 /* The GNU C library defines this for functions which it implements
1670 to always fail with ENOSYS. Some functions are actually named
1671 something starting with __ and the normal name is an alias. */
1672 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1682 eval "ac_cv_func_nanosleep=yes"
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 eval "ac_cv_func_nanosleep=no"
1692 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1693 echo "$ac_t""yes" 1>&6
1696 echo "$ac_t""no" 1>&6
1698 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1699 echo "configure:1700: checking for nanosleep in -lrt" >&5
1700 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 ac_save_LIBS="$LIBS"
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 /* Override any gcc2 internal prototype to avoid an error. */
1710 /* We use char because int might match the return type of a gcc2
1711 builtin and then its argument prototype would still apply. */
1718 if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1720 eval "ac_cv_lib_$ac_lib_var=yes"
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1725 eval "ac_cv_lib_$ac_lib_var=no"
1728 LIBS="$ac_save_LIBS"
1731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1735 echo "$ac_t""no" 1>&6
1737 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1738 echo "configure:1739: checking for nanosleep in -lposix4" >&5
1739 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 ac_save_LIBS="$LIBS"
1744 LIBS="-lposix4 $LIBS"
1745 cat > conftest.$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1748 /* Override any gcc2 internal prototype to avoid an error. */
1749 /* We use char because int might match the return type of a gcc2
1750 builtin and then its argument prototype would still apply. */
1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759 eval "ac_cv_lib_$ac_lib_var=yes"
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1764 eval "ac_cv_lib_$ac_lib_var=no"
1767 LIBS="$ac_save_LIBS"
1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 LIB="${LIB} -lposix4"
1774 echo "$ac_t""no" 1>&6
1783 for ac_func in usleep
1785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $ac_func" >&5
1787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 /* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char $ac_func(); below. */
1796 /* Override any gcc2 internal prototype to avoid an error. */
1797 /* We use char because int might match the return type of a gcc2
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1814 if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1816 eval "ac_cv_func_$ac_func=yes"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.$ac_ext >&5
1821 eval "ac_cv_func_$ac_func=no"
1826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1829 cat >> confdefs.h <<EOF
1830 #define $ac_tr_func 1
1834 echo "$ac_t""no" 1>&6
1838 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1839 echo "configure:1840: checking for inet_aton" >&5
1840 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char inet_aton(); below. */
1849 /* Override any gcc2 internal prototype to avoid an error. */
1850 /* We use char because int might match the return type of a gcc2
1851 builtin and then its argument prototype would still apply. */
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1869 eval "ac_cv_func_inet_aton=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 eval "ac_cv_func_inet_aton=no"
1879 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1883 echo "$ac_t""no" 1>&6
1885 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1886 echo "configure:1887: checking for inet_aton in -lresolv" >&5
1887 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 ac_save_LIBS="$LIBS"
1892 LIBS="-lresolv $LIBS"
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896 /* Override any gcc2 internal prototype to avoid an error. */
1897 /* We use char because int might match the return type of a gcc2
1898 builtin and then its argument prototype would still apply. */
1905 if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1907 eval "ac_cv_lib_$ac_lib_var=yes"
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 eval "ac_cv_lib_$ac_lib_var=no"
1915 LIBS="$ac_save_LIBS"
1918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 LIB="${LIB} -lresolv"
1922 echo "$ac_t""no" 1>&6
1928 for ac_func in vasprintf
1930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_func" >&5
1932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $ac_func(); below. */
1941 /* Override any gcc2 internal prototype to avoid an error. */
1942 /* We use char because int might match the return type of a gcc2
1943 builtin and then its argument prototype would still apply. */
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1961 eval "ac_cv_func_$ac_func=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_func_$ac_func=no"
1971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_func 1
1979 echo "$ac_t""no" 1>&6
1985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_func" >&5
1987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 cat > conftest.$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1993 /* System header to define __stub macros and hopefully few prototypes,
1994 which can conflict with char $ac_func(); below. */
1996 /* Override any gcc2 internal prototype to avoid an error. */
1997 /* We use char because int might match the return type of a gcc2
1998 builtin and then its argument prototype would still apply. */
2003 /* The GNU C library defines this for functions which it implements
2004 to always fail with ENOSYS. Some functions are actually named
2005 something starting with __ and the normal name is an alias. */
2006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2014 if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2016 eval "ac_cv_func_$ac_func=yes"
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 eval "ac_cv_func_$ac_func=no"
2026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2029 cat >> confdefs.h <<EOF
2030 #define $ac_tr_func 1
2034 echo "$ac_t""no" 1>&6
2038 for ac_func in memalign valloc
2040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_func" >&5
2042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 /* System header to define __stub macros and hopefully few prototypes,
2049 which can conflict with char $ac_func(); below. */
2051 /* Override any gcc2 internal prototype to avoid an error. */
2052 /* We use char because int might match the return type of a gcc2
2053 builtin and then its argument prototype would still apply. */
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2071 eval "ac_cv_func_$ac_func=yes"
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 eval "ac_cv_func_$ac_func=no"
2081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2082 echo "$ac_t""yes" 1>&6
2083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2084 cat >> confdefs.h <<EOF
2085 #define $ac_tr_func 1
2089 echo "$ac_t""no" 1>&6
2094 for ac_func in sigrelse
2096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_func" >&5
2098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $ac_func(); below. */
2107 /* Override any gcc2 internal prototype to avoid an error. */
2108 /* We use char because int might match the return type of a gcc2
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2127 eval "ac_cv_func_$ac_func=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 eval "ac_cv_func_$ac_func=no"
2137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2138 echo "$ac_t""yes" 1>&6
2139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2140 cat >> confdefs.h <<EOF
2141 #define $ac_tr_func 1
2145 echo "$ac_t""no" 1>&6
2151 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2152 echo "configure:2153: checking for getopt_long" >&5
2153 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 cat > conftest.$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2159 /* System header to define __stub macros and hopefully few prototypes,
2160 which can conflict with char getopt_long(); below. */
2162 /* Override any gcc2 internal prototype to avoid an error. */
2163 /* We use char because int might match the return type of a gcc2
2164 builtin and then its argument prototype would still apply. */
2169 /* The GNU C library defines this for functions which it implements
2170 to always fail with ENOSYS. Some functions are actually named
2171 something starting with __ and the normal name is an alias. */
2172 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2180 if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2182 eval "ac_cv_func_getopt_long=yes"
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 eval "ac_cv_func_getopt_long=no"
2192 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2193 echo "$ac_t""yes" 1>&6
2194 cat >> confdefs.h <<\EOF
2195 #define HAVE_GETOPT_LONG 1
2199 echo "$ac_t""no" 1>&6
2200 # FreeBSD has a gnugetopt library for this:
2201 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2202 echo "configure:2203: checking for getopt_long in -lgnugetopt" >&5
2203 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 ac_save_LIBS="$LIBS"
2208 LIBS="-lgnugetopt $LIBS"
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 /* Override any gcc2 internal prototype to avoid an error. */
2213 /* We use char because int might match the return type of a gcc2
2214 builtin and then its argument prototype would still apply. */
2221 if { (eval echo configure:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2223 eval "ac_cv_lib_$ac_lib_var=yes"
2225 echo "configure: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2228 eval "ac_cv_lib_$ac_lib_var=no"
2231 LIBS="$ac_save_LIBS"
2234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2235 echo "$ac_t""yes" 1>&6
2236 cat >> confdefs.h <<\EOF
2237 #define HAVE_GETOPT_LONG 1
2239 LIB="${LIB} -lgnugetopt"
2241 echo "$ac_t""no" 1>&6
2248 for ac_hdr in unistd.h
2250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_hdr" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2264 if test -z "$ac_err"; then
2266 eval "ac_cv_header_$ac_safe=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 eval "ac_cv_header_$ac_safe=no"
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2279 cat >> confdefs.h <<EOF
2280 #define $ac_tr_hdr 1
2284 echo "$ac_t""no" 1>&6
2288 for ac_func in getpagesize
2290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2291 echo "configure:2292: checking for $ac_func" >&5
2292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 /* System header to define __stub macros and hopefully few prototypes,
2299 which can conflict with char $ac_func(); below. */
2301 /* Override any gcc2 internal prototype to avoid an error. */
2302 /* We use char because int might match the return type of a gcc2
2303 builtin and then its argument prototype would still apply. */
2308 /* The GNU C library defines this for functions which it implements
2309 to always fail with ENOSYS. Some functions are actually named
2310 something starting with __ and the normal name is an alias. */
2311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2319 if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2321 eval "ac_cv_func_$ac_func=yes"
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2326 eval "ac_cv_func_$ac_func=no"
2331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2332 echo "$ac_t""yes" 1>&6
2333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2334 cat >> confdefs.h <<EOF
2335 #define $ac_tr_func 1
2339 echo "$ac_t""no" 1>&6
2343 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2344 echo "configure:2345: checking for working mmap" >&5
2345 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 if test "$cross_compiling" = yes; then
2349 ac_cv_func_mmap_fixed_mapped=no
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2355 /* Thanks to Mike Haertel and Jim Avera for this test.
2356 Here is a matrix of mmap possibilities:
2357 mmap private not fixed
2358 mmap private fixed at somewhere currently unmapped
2359 mmap private fixed at somewhere already mapped
2360 mmap shared not fixed
2361 mmap shared fixed at somewhere currently unmapped
2362 mmap shared fixed at somewhere already mapped
2363 For private mappings, we should verify that changes cannot be read()
2364 back from the file, nor mmap's back from the file at a different
2365 address. (There have been systems where private was not correctly
2366 implemented like the infamous i386 svr4.0, and systems where the
2367 VM page cache was not coherent with the filesystem buffer cache
2368 like early versions of FreeBSD and possibly contemporary NetBSD.)
2369 For shared mappings, we should conversely verify that changes get
2370 propogated back to all the places they're supposed to be.
2372 Grep wants private fixed already mapped.
2373 The main things grep needs to know about mmap are:
2374 * does it exist and is it safe to write into the mmap'd area
2375 * how to use it (BSD variants) */
2376 #include <sys/types.h>
2378 #include <sys/mman.h>
2380 #include <sys/stat.h>
2382 #ifdef HAVE_UNISTD_H
2383 # include <unistd.h>
2386 /* This mess was copied from the GNU getpagesize.h. */
2387 #ifndef HAVE_GETPAGESIZE
2389 /* Assume that all systems that can run configure have sys/param.h. */
2390 # ifndef HAVE_SYS_PARAM_H
2391 # define HAVE_SYS_PARAM_H 1
2394 # ifdef _SC_PAGESIZE
2395 # define getpagesize() sysconf(_SC_PAGESIZE)
2396 # else /* no _SC_PAGESIZE */
2397 # ifdef HAVE_SYS_PARAM_H
2398 # include <sys/param.h>
2399 # ifdef EXEC_PAGESIZE
2400 # define getpagesize() EXEC_PAGESIZE
2401 # else /* no EXEC_PAGESIZE */
2403 # define getpagesize() NBPG * CLSIZE
2406 # endif /* no CLSIZE */
2407 # else /* no NBPG */
2409 # define getpagesize() NBPC
2410 # else /* no NBPC */
2412 # define getpagesize() PAGESIZE
2413 # endif /* PAGESIZE */
2414 # endif /* no NBPC */
2415 # endif /* no NBPG */
2416 # endif /* no EXEC_PAGESIZE */
2417 # else /* no HAVE_SYS_PARAM_H */
2418 # define getpagesize() 8192 /* punt totally */
2419 # endif /* no HAVE_SYS_PARAM_H */
2420 # endif /* no _SC_PAGESIZE */
2422 #endif /* no HAVE_GETPAGESIZE */
2425 extern "C" { void *malloc(unsigned); }
2433 char *data, *data2, *data3;
2437 pagesize = getpagesize();
2440 * First, make a file with some known garbage in it.
2442 data = (char*)malloc(pagesize);
2445 for (i = 0; i < pagesize; ++i)
2446 *(data + i) = rand();
2448 fd = creat("conftestmmap", 0600);
2451 if (write(fd, data, pagesize) != pagesize)
2456 * Next, try to mmap the file at a fixed address which
2457 * already has something else allocated at it. If we can,
2458 * also make sure that we see the same garbage.
2460 fd = open("conftestmmap", O_RDWR);
2463 data2 = (char*)malloc(2 * pagesize);
2466 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2467 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2468 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2470 for (i = 0; i < pagesize; ++i)
2471 if (*(data + i) != *(data2 + i))
2475 * Finally, make sure that changes to the mapped area
2476 * do not percolate back to the file as seen by read().
2477 * (This is a bug on some variants of i386 svr4.0.)
2479 for (i = 0; i < pagesize; ++i)
2480 *(data2 + i) = *(data2 + i) + 1;
2481 data3 = (char*)malloc(pagesize);
2484 if (read(fd, data3, pagesize) != pagesize)
2486 for (i = 0; i < pagesize; ++i)
2487 if (*(data + i) != *(data3 + i))
2490 unlink("conftestmmap");
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2497 ac_cv_func_mmap_fixed_mapped=yes
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 ac_cv_func_mmap_fixed_mapped=no
2509 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2510 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2511 cat >> confdefs.h <<\EOF
2517 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2518 echo "configure:2519: checking return type of signal handlers" >&5
2519 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 #include <sys/types.h>
2531 extern "C" void (*signal (int, void (*)(int)))(int);
2533 void (*signal ()) ();
2540 if { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2542 ac_cv_type_signal=void
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2547 ac_cv_type_signal=int
2552 echo "$ac_t""$ac_cv_type_signal" 1>&6
2553 cat >> confdefs.h <<EOF
2554 #define RETSIGTYPE $ac_cv_type_signal
2558 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2559 echo "configure:2560: checking for dlopen in -ldl" >&5
2560 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_save_LIBS="$LIBS"
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2580 eval "ac_cv_lib_$ac_lib_var=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 eval "ac_cv_lib_$ac_lib_var=no"
2588 LIBS="$ac_save_LIBS"
2591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2595 echo "$ac_t""no" 1>&6
2598 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2599 echo "configure:2600: checking for pow in -lm" >&5
2600 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 ac_save_LIBS="$LIBS"
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 /* Override any gcc2 internal prototype to avoid an error. */
2610 /* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2620 eval "ac_cv_lib_$ac_lib_var=yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2625 eval "ac_cv_lib_$ac_lib_var=no"
2628 LIBS="$ac_save_LIBS"
2631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 LIB_YUV="${LIB_YUV} -lm"
2635 echo "$ac_t""no" 1>&6
2640 if test "x${THREAD_LIB}" = xerror; then
2641 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2642 echo "configure:2643: checking for pthread_attr_init in -lpthread" >&5
2643 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_save_LIBS="$LIBS"
2648 LIBS="-lpthread $LIBS"
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* Override any gcc2 internal prototype to avoid an error. */
2653 /* We use char because int might match the return type of a gcc2
2654 builtin and then its argument prototype would still apply. */
2655 char pthread_attr_init();
2661 if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2663 eval "ac_cv_lib_$ac_lib_var=yes"
2665 echo "configure: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2668 eval "ac_cv_lib_$ac_lib_var=no"
2671 LIBS="$ac_save_LIBS"
2674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2676 THREAD_LIB="-lpthread"
2678 echo "$ac_t""no" 1>&6
2682 if test "x${THREAD_LIB}" = xerror; then
2683 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2684 echo "configure:2685: checking for pthread_attr_init in -lpthreads" >&5
2685 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 ac_save_LIBS="$LIBS"
2690 LIBS="-lpthreads $LIBS"
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 /* Override any gcc2 internal prototype to avoid an error. */
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697 char pthread_attr_init();
2703 if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2705 eval "ac_cv_lib_$ac_lib_var=yes"
2707 echo "configure: failed program was:" >&5
2708 cat conftest.$ac_ext >&5
2710 eval "ac_cv_lib_$ac_lib_var=no"
2713 LIBS="$ac_save_LIBS"
2716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2718 THREAD_LIB="-lpthreads"
2720 echo "$ac_t""no" 1>&6
2724 if test "x${THREAD_LIB}" = xerror; then
2725 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2726 echo "configure:2727: checking for pthread_attr_init in -lc_r" >&5
2727 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 ac_save_LIBS="$LIBS"
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2739 char pthread_attr_init();
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2747 eval "ac_cv_lib_$ac_lib_var=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 eval "ac_cv_lib_$ac_lib_var=no"
2755 LIBS="$ac_save_LIBS"
2758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2762 echo "$ac_t""no" 1>&6
2766 if test "x${THREAD_LIB}" = xerror; then
2767 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2768 echo "configure:2769: checking for pthread_attr_init" >&5
2769 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 /* System header to define __stub macros and hopefully few prototypes,
2776 which can conflict with char pthread_attr_init(); below. */
2778 /* Override any gcc2 internal prototype to avoid an error. */
2779 /* We use char because int might match the return type of a gcc2
2780 builtin and then its argument prototype would still apply. */
2781 char pthread_attr_init();
2785 /* The GNU C library defines this for functions which it implements
2786 to always fail with ENOSYS. Some functions are actually named
2787 something starting with __ and the normal name is an alias. */
2788 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2791 pthread_attr_init();
2796 if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2798 eval "ac_cv_func_pthread_attr_init=yes"
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2803 eval "ac_cv_func_pthread_attr_init=no"
2808 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2812 echo "$ac_t""no" 1>&6
2818 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2819 echo "configure:2820: checking for cthread_fork in -lthreads" >&5
2820 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 ac_save_LIBS="$LIBS"
2825 LIBS="-lthreads $LIBS"
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2832 char cthread_fork();
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2840 eval "ac_cv_lib_$ac_lib_var=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 eval "ac_cv_lib_$ac_lib_var=no"
2848 LIBS="$ac_save_LIBS"
2851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 THREAD_LIB="-lthreads"
2855 echo "$ac_t""no" 1>&6
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 #include <pthread.h>
2864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2865 egrep "pthread_cond_t" >/dev/null 2>&1; then
2868 cat >> confdefs.h <<\EOF
2869 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 #include <strings.h>
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881 egrep "strncasecmp" >/dev/null 2>&1; then
2884 cat >> confdefs.h <<\EOF
2885 #define STRNCASECMP_IN_STRINGS_H 1
2892 for ac_hdr in stddef.h getopt.h strings.h
2894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2896 echo "configure:2897: checking for $ac_hdr" >&5
2897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2906 { (eval echo configure:2907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2908 if test -z "$ac_err"; then
2910 eval "ac_cv_header_$ac_safe=yes"
2913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2916 eval "ac_cv_header_$ac_safe=no"
2920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2921 echo "$ac_t""yes" 1>&6
2922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2923 cat >> confdefs.h <<EOF
2924 #define $ac_tr_hdr 1
2928 echo "$ac_t""no" 1>&6
2932 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_hdr" >&5
2937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2946 { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2948 if test -z "$ac_err"; then
2950 eval "ac_cv_header_$ac_safe=yes"
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 eval "ac_cv_header_$ac_safe=no"
2960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2963 cat >> confdefs.h <<EOF
2964 #define $ac_tr_hdr 1
2968 echo "$ac_t""no" 1>&6
2972 for ac_hdr in sys/soundcard.h machine/soundcard.h
2974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_hdr" >&5
2977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2986 { (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2988 if test -z "$ac_err"; then
2990 eval "ac_cv_header_$ac_safe=yes"
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2996 eval "ac_cv_header_$ac_safe=no"
3000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3003 cat >> confdefs.h <<EOF
3004 #define $ac_tr_hdr 1
3008 echo "$ac_t""no" 1>&6
3012 for ac_hdr in dlfcn.h image.h
3014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_hdr" >&5
3017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3026 { (eval echo configure:3027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3028 if test -z "$ac_err"; then
3030 eval "ac_cv_header_$ac_safe=yes"
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3036 eval "ac_cv_header_$ac_safe=no"
3040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3041 echo "$ac_t""yes" 1>&6
3042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3043 cat >> confdefs.h <<EOF
3044 #define $ac_tr_hdr 1
3048 echo "$ac_t""no" 1>&6
3052 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
3054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3056 echo "configure:3057: checking for $ac_hdr" >&5
3057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3066 { (eval echo configure:3067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3068 if test -z "$ac_err"; then
3070 eval "ac_cv_header_$ac_safe=yes"
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3076 eval "ac_cv_header_$ac_safe=no"
3080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3081 echo "$ac_t""yes" 1>&6
3082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3083 cat >> confdefs.h <<EOF
3084 #define $ac_tr_hdr 1
3088 echo "$ac_t""no" 1>&6
3092 for ac_hdr in machine/param.h
3094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3096 echo "configure:3097: checking for $ac_hdr" >&5
3097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3106 { (eval echo configure:3107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3108 if test -z "$ac_err"; then
3110 eval "ac_cv_header_$ac_safe=yes"
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3116 eval "ac_cv_header_$ac_safe=no"
3120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3121 echo "$ac_t""yes" 1>&6
3122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3123 cat >> confdefs.h <<EOF
3124 #define $ac_tr_hdr 1
3128 echo "$ac_t""no" 1>&6
3133 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_hdr" >&5
3138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3147 { (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3149 if test -z "$ac_err"; then
3151 eval "ac_cv_header_$ac_safe=yes"
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3157 eval "ac_cv_header_$ac_safe=no"
3161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3164 cat >> confdefs.h <<EOF
3165 #define $ac_tr_hdr 1
3169 echo "$ac_t""no" 1>&6
3174 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3175 echo "configure:3176: checking for ntohl in sys/param.h" >&5
3176 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 CFLAGS="${save_CFLAGS} -Wall -Werror"
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 #include <sys/param.h>
3185 void foo() { int meuh; ntohl(meuh); }
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 ac_cv_c_ntohl_sys_param_h=yes
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3195 ac_cv_c_ntohl_sys_param_h=no
3200 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3201 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3202 cat >> confdefs.h <<\EOF
3203 #define NTOHL_IN_SYS_PARAM_H 1
3208 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3209 echo "configure:3210: checking if \$CC accepts -finline-limit" >&5
3210 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 CFLAGS="${save_CFLAGS} -finline-limit-30000"
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3222 if { (eval echo configure:3223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224 ac_cv_c_inline_limit=yes
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 ac_cv_c_inline_limit=no
3234 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3235 if test x"$ac_cv_c_inline_limit" != x"no"; then
3236 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3239 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3240 echo "configure:3241: checking if \$CC accepts -bundle -undefined error" >&5
3241 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 CFLAGS="${save_CFLAGS} -bundle -undefined error"
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3265 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3266 if test x"$ac_cv_ld_darwin" != x"no"; then
3267 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3270 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3271 echo "configure:3272: checking if \$CC accepts -shared" >&5
3272 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 CFLAGS="${save_CFLAGS} -shared"
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3284 if { (eval echo configure:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3286 ac_cv_ld_plugins=yes
3288 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3296 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3297 if test x"$ac_cv_ld_plugins" != x"no"; then
3298 PLCFLAGS="${PLCFLAGS} -shared"
3301 if test x"${SOFLAGS}" = x; then
3302 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3303 echo "configure:3304: checking for soname setting" >&5
3304 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3309 try_SOFLAGS="-Wl,-soname -Wl,"
3310 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3319 if { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3321 ac_cv_ld_soname="${try_SOFLAGS}"
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3328 try_SOFLAGS="-Wl,-h -Wl,"
3329 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3330 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3338 if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3340 ac_cv_ld_soname="${try_SOFLAGS}"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3345 ac_cv_ld_soname=none
3353 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3354 if test x"$ac_cv_ld_soname" != x"none"; then
3355 SOFLAGS=$ac_cv_ld_soname
3359 Your system doesn't seem to have support for dynamic linking. You may
3360 have problems using libdvdcss.
3366 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3367 echo "configure:3368: checking __attribute__ ((aligned ())) support" >&5
3368 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 ac_cv_c_attribute_aligned=0
3372 CFLAGS="${save_CFLAGS} -Werror"
3373 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3379 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3382 if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3386 echo "configure: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3393 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3394 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3395 cat >> confdefs.h <<EOF
3396 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3401 CFLAGS="${save_CFLAGS}"
3402 LDFLAGS="${save_LDFLAGS}"
3404 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3405 echo "configure:3406: checking for boolean_t in sys/types.h" >&5
3406 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <sys/types.h>
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419 ac_cv_c_boolean_t_sys_types_h=yes
3421 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3424 ac_cv_c_boolean_t_sys_types_h=no
3429 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3430 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3431 cat >> confdefs.h <<\EOF
3432 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3437 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3438 echo "configure:3439: checking for boolean_t in pthread.h" >&5
3439 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 #include <pthread.h>
3450 if { (eval echo configure:3451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3452 ac_cv_c_boolean_t_pthread_h=yes
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3457 ac_cv_c_boolean_t_pthread_h=no
3462 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3463 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3464 cat >> confdefs.h <<\EOF
3465 #define BOOLEAN_T_IN_PTHREAD_H 1
3470 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3471 echo "configure:3472: checking for boolean_t in cthreads.h" >&5
3472 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #include <cthreads.h>
3483 if { (eval echo configure:3484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3485 ac_cv_c_boolean_t_cthreads_h=yes
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 ac_cv_c_boolean_t_cthreads_h=no
3495 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3496 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3497 cat >> confdefs.h <<\EOF
3498 #define BOOLEAN_T_IN_CTHREADS_H 1
3503 echo $ac_n "checking for working const""... $ac_c" 1>&6
3504 echo "configure:3505: checking for working const" >&5
3505 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3514 /* Ultrix mips cc rejects this. */
3515 typedef int charset[2]; const charset x = {0,0};
3516 /* SunOS 4.1.1 cc rejects this. */
3517 char const *const *ccp;
3519 /* NEC SVR4.0.2 mips cc rejects this. */
3520 struct point {int x, y;};
3521 static struct point const zero = {0,0};
3522 /* AIX XL C 1.02.0.0 rejects this.
3523 It does not let you subtract one const X* pointer from another in an arm
3524 of an if-expression whose if-part is not a constant expression */
3525 const char *g = "string";
3526 ccp = &g + (g ? g-g : 0);
3527 /* HPUX 7.0 cc rejects these. */
3530 ccp = (char const *const *) p;
3531 { /* SCO 3.2v4 cc rejects this. */
3533 char const *s = 0 ? (char *) 0 : (char const *) 0;
3537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3539 const int *foo = &x[0];
3542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3543 typedef const int *iptr;
3547 { /* AIX XL C 1.02.0.0 rejects this saying
3548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3549 struct s { int j; const int *ap[3]; };
3550 struct s *b; b->j = 5;
3552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3558 if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 echo "configure: failed program was:" >&5
3563 cat conftest.$ac_ext >&5
3570 echo "$ac_t""$ac_cv_c_const" 1>&6
3571 if test $ac_cv_c_const = no; then
3572 cat >> confdefs.h <<\EOF
3578 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3579 echo "configure:3580: checking for ANSI C header files" >&5
3580 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3592 { (eval echo configure:3593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3594 if test -z "$ac_err"; then
3596 ac_cv_header_stdc=yes
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3602 ac_cv_header_stdc=no
3606 if test $ac_cv_header_stdc = yes; then
3607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 egrep "memchr" >/dev/null 2>&1; then
3618 ac_cv_header_stdc=no
3624 if test $ac_cv_header_stdc = yes; then
3625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 egrep "free" >/dev/null 2>&1; then
3636 ac_cv_header_stdc=no
3642 if test $ac_cv_header_stdc = yes; then
3643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3644 if test "$cross_compiling" = yes; then
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3651 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3652 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3654 int main () { int i; for (i = 0; i < 256; i++)
3655 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 ac_cv_header_stdc=no
3674 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3675 if test $ac_cv_header_stdc = yes; then
3676 cat >> confdefs.h <<\EOF
3677 #define STDC_HEADERS 1
3682 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3683 echo "configure:3684: checking for size_t" >&5
3684 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <sys/types.h>
3696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3697 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3699 ac_cv_type_size_t=yes
3702 ac_cv_type_size_t=no
3707 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3708 if test $ac_cv_type_size_t = no; then
3709 cat >> confdefs.h <<\EOF
3710 #define size_t unsigned
3715 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3716 echo "configure:3717: checking whether time.h and sys/time.h may both be included" >&5
3717 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 #include <sys/types.h>
3724 #include <sys/time.h>
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3732 ac_cv_header_time=yes
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3737 ac_cv_header_time=no
3742 echo "$ac_t""$ac_cv_header_time" 1>&6
3743 if test $ac_cv_header_time = yes; then
3744 cat >> confdefs.h <<\EOF
3745 #define TIME_WITH_SYS_TIME 1
3754 BUILTINS="${BUILTINS} es ps ts memcpy yuv idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
3755 PLUGINS="${PLUGINS} ac3_spdif spu_dec"
3757 MMX_MODULES="memcpymmx yuvmmx idctmmx motionmmx"
3758 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
3759 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
3760 SSE_MODULES="imdctsse downmixsse"
3761 ALTIVEC_MODULES="idctaltivec motionaltivec"
3763 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3764 echo "configure:3765: checking if \$CC groks MMX inline assembly" >&5
3765 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3773 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
3776 if { (eval echo configure:3777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3778 ac_cv_mmx_inline=yes
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3788 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3789 if test x"$ac_cv_mmx_inline" != x"no"; then
3790 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3793 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3794 echo "configure:3795: checking if \$CC groks MMX EXT inline assembly" >&5
3795 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3803 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
3806 if { (eval echo configure:3807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3808 ac_cv_mmxext_inline=yes
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3813 ac_cv_mmxext_inline=no
3818 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3819 if test x"$ac_cv_mmxext_inline" != x"no"; then
3820 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3823 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3824 echo "configure:3825: checking if \$CC groks 3D Now! inline assembly" >&5
3825 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3833 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
3836 if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838 ac_cv_3dnow_inline=yes
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3843 ac_cv_3dnow_inline=no
3848 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3849 if test x"$ac_cv_3dnow_inline" != x"no"; then
3850 cat >> confdefs.h <<\EOF
3851 #define CAN_COMPILE_3DNOW 1
3854 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3857 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3858 echo "configure:3859: checking if \$CC groks SSE inline assembly" >&5
3859 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3867 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
3870 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3872 ac_cv_sse_inline=yes
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3882 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3883 if test x"$ac_cv_sse_inline" != x"no"; then
3884 cat >> confdefs.h <<\EOF
3885 #define CAN_COMPILE_SSE 1
3888 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3891 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3892 echo "configure:3893: checking if \$CC groks Altivec inline assembly" >&5
3893 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3901 asm volatile("vperm 0,1,2,3");
3904 if { (eval echo configure:3905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3906 ac_cv_altivec_inline=yes
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3912 CFLAGS="$CFLAGS -Wa,-m7400"
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3918 asm volatile("vperm 0,1,2,3");
3921 if { (eval echo configure:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3928 ac_cv_altivec_inline=no
3937 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3938 if test x"$ac_cv_altivec_inline" != x"no"; then
3939 cat >> confdefs.h <<\EOF
3940 #define CAN_COMPILE_ALTIVEC 1
3943 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3946 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3947 echo "configure:3948: checking if \$CC groks Altivec C extensions" >&5
3948 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 CFLAGS="$CFLAGS -faltivec"
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3959 vec_mtvscr((vector unsigned int)(0));
3962 if { (eval echo configure:3963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3964 ac_cv_c_altivec=-faltivec
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3971 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3977 vec_mtvscr((vector unsigned int)(0));
3980 if { (eval echo configure:3981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3982 ac_cv_c_altivec="-fvec"
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3997 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3998 if test x"$ac_cv_c_altivec" != x"no"; then
3999 cat >> confdefs.h <<\EOF
4000 #define CAN_COMPILE_C_ALTIVEC 1
4003 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
4004 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
4007 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
4008 echo "configure:4009: checking if linker needs -framework vecLib" >&5
4009 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 save_LDFLAGS=$LDFLAGS
4013 LDFLAGS="$LDFLAGS -framework vecLib"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4024 ac_cv_ld_altivec=yes
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4032 LDFLAGS=$save_LDFLAGS
4036 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
4037 if test x"$ac_cv_ld_altivec" != x"no"; then
4038 LIB_ALTIVEC="-framework vecLib"
4041 case ${target_os} in
4059 if test $SYS = mingw32; then
4060 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4061 set dummy ${ac_tool_prefix}windres; ac_word=$2
4062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_word" >&5
4064 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 if test -n "$WINDRES"; then
4068 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4072 for ac_dir in $ac_dummy; do
4073 test -z "$ac_dir" && ac_dir=.
4074 if test -f $ac_dir/$ac_word; then
4075 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4082 WINDRES="$ac_cv_prog_WINDRES"
4083 if test -n "$WINDRES"; then
4084 echo "$ac_t""$WINDRES" 1>&6
4086 echo "$ac_t""no" 1>&6
4090 if test -z "$ac_cv_prog_WINDRES"; then
4091 if test -n "$ac_tool_prefix"; then
4092 # Extract the first word of "windres", so it can be a program name with args.
4093 set dummy windres; ac_word=$2
4094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_word" >&5
4096 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 if test -n "$WINDRES"; then
4100 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4104 for ac_dir in $ac_dummy; do
4105 test -z "$ac_dir" && ac_dir=.
4106 if test -f $ac_dir/$ac_word; then
4107 ac_cv_prog_WINDRES="windres"
4112 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
4115 WINDRES="$ac_cv_prog_WINDRES"
4116 if test -n "$WINDRES"; then
4117 echo "$ac_t""$WINDRES" 1>&6
4119 echo "$ac_t""no" 1>&6
4132 CAN_BUILD_LIBDVDCSS=0
4134 for ac_hdr in winioctl.h
4136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4138 echo "configure:4139: checking for $ac_hdr" >&5
4139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4148 { (eval echo configure:4149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4150 if test -z "$ac_err"; then
4152 eval "ac_cv_header_$ac_safe=yes"
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4158 eval "ac_cv_header_$ac_safe=no"
4162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4163 echo "$ac_t""yes" 1>&6
4164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4165 cat >> confdefs.h <<EOF
4166 #define $ac_tr_hdr 1
4169 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4172 echo "$ac_t""no" 1>&6
4177 for ac_hdr in sys/ioctl.h
4179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4180 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_hdr" >&5
4182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4191 { (eval echo configure:4192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4193 if test -z "$ac_err"; then
4195 eval "ac_cv_header_$ac_safe=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 eval "ac_cv_header_$ac_safe=no"
4205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4208 cat >> confdefs.h <<EOF
4209 #define $ac_tr_hdr 1
4212 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4213 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_hdr" >&5
4218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4227 { (eval echo configure:4228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4229 if test -z "$ac_err"; then
4231 eval "ac_cv_header_$ac_safe=yes"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 eval "ac_cv_header_$ac_safe=no"
4241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4244 cat >> confdefs.h <<EOF
4245 #define $ac_tr_hdr 1
4249 echo "$ac_t""no" 1>&6
4255 OPENBSD_DVD_STRUCT=0
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4259 #include <sys/cdio.h>
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262 egrep "dvd_struct" >/dev/null 2>&1; then
4265 cat >> confdefs.h <<\EOF
4266 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4269 cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure"
4271 #include "confdefs.h"
4272 #include <sys/cdio.h>
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 egrep "struct dvd_struct" >/dev/null 2>&1; then
4281 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 #include <sys/dvdio.h>
4294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4295 egrep "dvd_struct" >/dev/null 2>&1; then
4298 cat >> confdefs.h <<\EOF
4299 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 #include <sys/dvdio.h>
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 egrep "struct dvd_struct" >/dev/null 2>&1; then
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 #include <linux/cdrom.h>
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 egrep "dvd_struct" >/dev/null 2>&1; then
4331 cat >> confdefs.h <<\EOF
4332 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 egrep "dvd_struct" >/dev/null 2>&1; then
4350 cat >> confdefs.h <<\EOF
4351 #define DVD_STRUCT_IN_DVD_H 1
4354 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4360 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_hdr" >&5
4365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4374 { (eval echo configure:4375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4376 if test -z "$ac_err"; then
4378 eval "ac_cv_header_$ac_safe=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_header_$ac_safe=no"
4388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4391 cat >> confdefs.h <<EOF
4392 #define $ac_tr_hdr 1
4396 cat >> confdefs.h <<\EOF
4397 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4400 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4404 echo "$ac_t""no" 1>&6
4412 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4413 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4414 echo "configure:4415: checking for sys/scsi/scsi_types.h" >&5
4415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 #include <sys/scsi/scsi_types.h>
4423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4424 { (eval echo configure:4425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4426 if test -z "$ac_err"; then
4428 eval "ac_cv_header_$ac_safe=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_header_$ac_safe=no"
4438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4441 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4442 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4443 echo "configure:4444: checking for sys/scsi/impl/uscsi.h" >&5
4444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 #include <sys/scsi/impl/uscsi.h>
4452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4453 { (eval echo configure:4454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4455 if test -z "$ac_err"; then
4457 eval "ac_cv_header_$ac_safe=yes"
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 eval "ac_cv_header_$ac_safe=no"
4467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4470 cat >> confdefs.h <<\EOF
4471 #define SOLARIS_USCSI 1
4476 echo "$ac_t""no" 1>&6
4481 echo "$ac_t""no" 1>&6
4484 if test x$LINUX_DVD_STRUCT = x1; then
4485 cat >> confdefs.h <<\EOF
4486 #define HAVE_LINUX_DVD_STRUCT 1
4489 if test x$OPENBSD_DVD_STRUCT = x1; then
4490 cat >> confdefs.h <<\EOF
4491 #define HAVE_OPENBSD_DVD_STRUCT 1
4496 if test x$BSD_DVD_STRUCT = x1; then
4497 cat >> confdefs.h <<\EOF
4498 #define HAVE_BSD_DVD_STRUCT 1
4505 echo "$ac_t""no" 1>&6
4510 # Check whether --with-tuning or --without-tuning was given.
4511 if test "${with_tuning+set}" = set; then
4512 withval="$with_tuning"
4516 if test "x$withval" != "x"; then
4519 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4521 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4525 # Check whether --enable-release or --disable-release was given.
4526 if test "${enable_release+set}" = set; then
4527 enableval="$enable_release"
4528 if test x$enableval = xyes; then RELEASE=1; fi
4530 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
4531 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
4535 # Check whether --enable-mmx or --disable-mmx was given.
4536 if test "${enable_mmx+set}" = set; then
4537 enableval="$enable_mmx"
4538 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4539 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4541 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386; then ARCH="${ARCH} mmx";
4542 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4546 # Check whether --enable-altivec or --disable-altivec was given.
4547 if test "${enable_altivec+set}" = set; then
4548 enableval="$enable_altivec"
4549 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4550 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4552 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4553 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4558 # Check whether --enable-debug or --disable-debug was given.
4559 if test "${enable_debug+set}" = set; then
4560 enableval="$enable_debug"
4561 if test x$enableval = xyes; then DEBUG=1; fi
4566 # Check whether --enable-trace or --disable-trace was given.
4567 if test "${enable_trace+set}" = set; then
4568 enableval="$enable_trace"
4569 if test x$enableval = xyes; then TRACE=1; fi
4574 # Check whether --enable-gprof or --disable-gprof was given.
4575 if test "${enable_gprof+set}" = set; then
4576 enableval="$enable_gprof"
4577 if test x$enableval = xyes; then GPROF=1; fi
4582 # Check whether --enable-cprof or --disable-cprof was given.
4583 if test "${enable_cprof+set}" = set; then
4584 enableval="$enable_cprof"
4585 if test x$enableval = xyes;
4587 LIB="${LIB} -lcprof"
4594 # Check whether --enable-optimizations or --disable-optimizations was given.
4595 if test "${enable_optimizations+set}" = set; then
4596 enableval="$enable_optimizations"
4597 if test x$enableval = xno; then OPTIMS=0; fi
4603 # Check whether --enable-pth or --disable-pth was given.
4604 if test "${enable_pth+set}" = set; then
4605 enableval="$enable_pth"
4606 if test x$enableval = xyes; then
4607 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4608 echo "configure:4609: checking for pth_init in -lpth" >&5
4609 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 ac_save_LIBS="$LIBS"
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4629 eval "ac_cv_lib_$ac_lib_var=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_lib_$ac_lib_var=no"
4637 LIBS="$ac_save_LIBS"
4640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4644 cat >> confdefs.h <<EOF
4645 #define $ac_tr_lib 1
4651 echo "$ac_t""no" 1>&6
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660 egrep "pth_init" >/dev/null 2>&1; then
4663 cat >> confdefs.h <<\EOF
4664 #define PTH_INIT_IN_PTH_H 1
4676 LIB="${LIB} ${THREAD_LIB}"
4681 # Check whether --with-dvdcss or --without-dvdcss was given.
4682 if test "${with_dvdcss+set}" = set; then
4683 withval="$with_dvdcss"
4684 case "x${withval}" in
4686 # local libdvdcss, statically linked
4687 if test x${CAN_BUILD_LIBDVDCSS} = x1
4691 BUILTINS="${BUILTINS} dvd"
4692 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4693 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4694 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4698 # local libdvdcss, dynamically linked
4699 if test x${CAN_BUILD_LIBDVDCSS} = x1
4702 BUILTINS="${BUILTINS} dvd"
4703 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4704 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4705 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4709 # don't use libdvdcss at all, build a DVD module that can dlopen() it
4711 BUILTINS="${BUILTINS} dvd"
4712 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4713 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4714 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4715 LIB_DVD="${LIB_DVD} -ldl"
4716 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4719 # existing libdvdcss
4720 BUILTINS="${BUILTINS} dvd"
4721 if test "x$withval" != "xyes"
4723 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4724 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4726 LIB_DVD="${LIB_DVD} -ldvdcss"
4727 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4730 # user didn't decide, we choose to use local libdvdcss and link statically
4731 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4732 if test x${CAN_BUILD_LIBDVDCSS} = x1
4736 BUILTINS="${BUILTINS} dvd"
4737 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4738 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4739 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4741 # XXX: no check for libdl is done, don't try this at home !
4743 BUILTINS="${BUILTINS} dvd"
4744 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4745 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4746 LIB_DVD="${LIB_DVD} -ldl"
4747 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4752 # Check whether --enable-dvdread or --disable-dvdread was given.
4753 if test "${enable_dvdread+set}" = set; then
4754 enableval="$enable_dvdread"
4755 if test x$enableval = xyes
4759 BUILTINS="${BUILTINS} dvdread"
4760 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
4761 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
4766 # Check whether --enable-vcd or --disable-vcd was given.
4767 if test "${enable_vcd+set}" = set; then
4768 enableval="$enable_vcd"
4773 if test x$enable_vcd != xno
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 #include <linux/cdrom.h>
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 egrep "cdrom_msf0" >/dev/null 2>&1; then
4784 BUILTINS="${BUILTINS} vcd"
4791 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
4793 BUILTINS="${BUILTINS} vcd"
4796 # Check whether --enable-dummy or --disable-dummy was given.
4797 if test "${enable_dummy+set}" = set; then
4798 enableval="$enable_dummy"
4803 if test x$enable_dummy != xno
4805 BUILTINS="${BUILTINS} dummy"
4808 # Check whether --enable-null or --disable-null was given.
4809 if test "${enable_null+set}" = set; then
4810 enableval="$enable_null"
4815 if test x$enable_null != xno
4817 BUILTINS="${BUILTINS} null"
4820 # Check whether --enable-rc or --disable-rc was given.
4821 if test "${enable_rc+set}" = set; then
4822 enableval="$enable_rc"
4827 if test x$enable_rc != xno
4829 BUILTINS="${BUILTINS} rc"
4832 if test x$SYS = xbeos
4834 BUILTINS="${BUILTINS} beos"
4835 LIB_BEOS="-lbe -lgame -lroot -ltracker"
4836 PLCFLAGS="${PLCFLAGS} -nostart"
4840 # Check whether --enable-dsp or --disable-dsp was given.
4841 if test "${enable_dsp+set}" = set; then
4842 enableval="$enable_dsp"
4847 if test x$enable_dsp != xno &&
4848 (test $SYS != mingw32 || test x$enable_dsp = xyes)
4852 PLUGINS="${PLUGINS} dsp"
4856 # Check whether --enable-esd or --disable-esd was given.
4857 if test "${enable_esd+set}" = set; then
4858 enableval="$enable_esd"
4859 if test x$enable_esd = xyes
4861 # Extract the first word of "esd-config", so it can be a program name with args.
4862 set dummy esd-config; ac_word=$2
4863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4864 echo "configure:4865: checking for $ac_word" >&5
4865 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 case "$ESD_CONFIG" in
4870 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4873 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4878 for ac_dir in $ac_dummy; do
4879 test -z "$ac_dir" && ac_dir=.
4880 if test -f $ac_dir/$ac_word; then
4881 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4886 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4890 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4891 if test -n "$ESD_CONFIG"; then
4892 echo "$ac_t""$ESD_CONFIG" 1>&6
4894 echo "$ac_t""no" 1>&6
4897 if test x${ESD_CONFIG} != xno
4899 PLUGINS="${PLUGINS} esd"
4900 CFLAGS_ESD="`${ESD_CONFIG} --cflags`"
4901 LIB_ESD="`${ESD_CONFIG} --libs`"
4907 # Check whether --enable-arts or --disable-arts was given.
4908 if test "${enable_arts+set}" = set; then
4909 enableval="$enable_arts"
4910 if test x$enable_arts = xyes
4912 # Extract the first word of "artsc-config", so it can be a program name with args.
4913 set dummy artsc-config; ac_word=$2
4914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $ac_word" >&5
4916 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 case "$ARTS_CONFIG" in
4921 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
4924 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
4927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4929 for ac_dir in $ac_dummy; do
4930 test -z "$ac_dir" && ac_dir=.
4931 if test -f $ac_dir/$ac_word; then
4932 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
4937 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
4941 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
4942 if test -n "$ARTS_CONFIG"; then
4943 echo "$ac_t""$ARTS_CONFIG" 1>&6
4945 echo "$ac_t""no" 1>&6
4948 if test x${ARTS_CONFIG} != xno
4950 PLUGINS="${PLUGINS} arts"
4951 CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`"
4952 LIB_ARTS="`${ARTS_CONFIG} --libs `"
4958 # Check whether --enable-macosx or --disable-macosx was given.
4959 if test "${enable_macosx+set}" = set; then
4960 enableval="$enable_macosx"
4961 if test x$enable_macosx = xyes
4963 BUILTINS="${BUILTINS} macosx"
4964 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4968 for ac_hdr in Cocoa/Cocoa.h
4970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $ac_hdr" >&5
4973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4982 { (eval echo configure:4983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4984 if test -z "$ac_err"; then
4986 eval "ac_cv_header_$ac_safe=yes"
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4992 eval "ac_cv_header_$ac_safe=no"
4996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4997 echo "$ac_t""yes" 1>&6
4998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4999 cat >> confdefs.h <<EOF
5000 #define $ac_tr_hdr 1
5002 BUILTINS="${BUILTINS} macosx"
5003 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
5007 echo "$ac_t""no" 1>&6
5014 # Check whether --enable-qnx or --disable-qnx was given.
5015 if test "${enable_qnx+set}" = set; then
5016 enableval="$enable_qnx"
5020 if test x$enable_qnx != xno
5024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5026 echo "configure:5027: checking for $ac_hdr" >&5
5027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5036 { (eval echo configure:5037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5038 if test -z "$ac_err"; then
5040 eval "ac_cv_header_$ac_safe=yes"
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 eval "ac_cv_header_$ac_safe=no"
5050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5051 echo "$ac_t""yes" 1>&6
5052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5053 cat >> confdefs.h <<EOF
5054 #define $ac_tr_hdr 1
5057 PLUGINS="${PLUGINS} qnx"
5058 LIB_QNX="-lasound -lph"
5061 echo "$ac_t""no" 1>&6
5067 # Check whether --enable-fb or --disable-fb was given.
5068 if test "${enable_fb+set}" = set; then
5069 enableval="$enable_fb"
5070 if test x$enable_fb = xyes
5072 PLUGINS="${PLUGINS} fb"
5077 # Check whether --with-ggi or --without-ggi was given.
5078 if test "${with_ggi+set}" = set; then
5080 if test "x$withval" != "xno"
5082 PLUGINS="${PLUGINS} ggi"
5083 if test "x$withval" != "xyes"
5085 LIB_GGI="-l"$withval
5093 # Check whether --enable-sdl or --disable-sdl was given.
5094 if test "${enable_sdl+set}" = set; then
5095 enableval="$enable_sdl"
5099 if test "x$enable_sdl" != "xno"
5102 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
5103 if test "${with_sdl_config_path+set}" = set; then
5104 withval="$with_sdl_config_path"
5105 if test "x$withval" != "xno"
5107 SDL_PATH=$withval:$PATH
5111 # Extract the first word of "sdl12-config", so it can be a program name with args.
5112 set dummy sdl12-config; ac_word=$2
5113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_word" >&5
5115 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 case "$SDL12_CONFIG" in
5120 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
5123 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
5126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5127 ac_dummy="$SDL_PATH"
5128 for ac_dir in $ac_dummy; do
5129 test -z "$ac_dir" && ac_dir=.
5130 if test -f $ac_dir/$ac_word; then
5131 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
5136 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
5140 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
5141 if test -n "$SDL12_CONFIG"; then
5142 echo "$ac_t""$SDL12_CONFIG" 1>&6
5144 echo "$ac_t""no" 1>&6
5147 SDL_CONFIG=${SDL12_CONFIG}
5148 SDL_HEADER="SDL12/SDL.h"
5149 if test x${SDL_CONFIG} = xno
5151 # Extract the first word of "sdl11-config", so it can be a program name with args.
5152 set dummy sdl11-config; ac_word=$2
5153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_word" >&5
5155 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 case "$SDL11_CONFIG" in
5160 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
5163 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
5166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5167 ac_dummy="$SDL_PATH"
5168 for ac_dir in $ac_dummy; do
5169 test -z "$ac_dir" && ac_dir=.
5170 if test -f $ac_dir/$ac_word; then
5171 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
5176 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
5180 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
5181 if test -n "$SDL11_CONFIG"; then
5182 echo "$ac_t""$SDL11_CONFIG" 1>&6
5184 echo "$ac_t""no" 1>&6
5187 SDL_CONFIG=${SDL11_CONFIG}
5188 SDL_HEADER="SDL11/SDL.h"
5190 if test x${SDL_CONFIG} = xno
5192 # Extract the first word of "sdl-config", so it can be a program name with args.
5193 set dummy sdl-config; ac_word=$2
5194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5195 echo "configure:5196: checking for $ac_word" >&5
5196 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 case "$SDL_CONFIG" in
5201 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
5204 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
5207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5208 ac_dummy="$SDL_PATH"
5209 for ac_dir in $ac_dummy; do
5210 test -z "$ac_dir" && ac_dir=.
5211 if test -f $ac_dir/$ac_word; then
5212 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5217 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5221 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5222 if test -n "$SDL_CONFIG"; then
5223 echo "$ac_t""$SDL_CONFIG" 1>&6
5225 echo "$ac_t""no" 1>&6
5228 SDL_HEADER="SDL/SDL.h"
5230 if test x${SDL_CONFIG} != xno
5232 PLUGINS="${PLUGINS} sdl"
5233 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5234 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5235 save_CPPFLAGS=$CPPFLAGS
5236 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5237 for ac_hdr in ${SDL_HEADER}
5239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5241 echo "configure:5242: checking for $ac_hdr" >&5
5242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5251 { (eval echo configure:5252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5253 if test -z "$ac_err"; then
5255 eval "ac_cv_header_$ac_safe=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 eval "ac_cv_header_$ac_safe=no"
5265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5268 cat >> confdefs.h <<EOF
5269 #define $ac_tr_hdr 1
5271 cat >> confdefs.h <<EOF
5272 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5276 echo "$ac_t""no" 1>&6
5277 { echo "configure: error: The development package for SDL is not installed.
5278 Please install it and try again. Alternatively you can also configure with
5279 --disable-sdl." 1>&2; exit 1; }
5284 CPPFLAGS=$save_CPPFLAGS
5285 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5287 { echo "configure: error: The development package for SDL is not installed.
5288 Please install it and try again. Alternatively you can also configure with
5289 --disable-sdl." 1>&2; exit 1; }
5291 elif test "x$enable_sdl" = "xyes"
5293 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5294 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5299 # Check whether --enable-directx or --disable-directx was given.
5300 if test "${enable_directx+set}" = set; then
5301 enableval="$enable_directx"
5305 if test "x$enableval" != "xno"
5307 if test $SYS = mingw32
5309 # Check whether --with-directx-path or --without-directx-path was given.
5310 if test "${with_directx_path+set}" = set; then
5311 withval="$with_directx_path"
5315 if test "x$with_directx_path" = "x"
5317 for ac_hdr in directx.h
5319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5321 echo "configure:5322: checking for $ac_hdr" >&5
5322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5331 { (eval echo configure:5332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5333 if test -z "$ac_err"; then
5335 eval "ac_cv_header_$ac_safe=yes"
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 eval "ac_cv_header_$ac_safe=no"
5345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5346 echo "$ac_t""yes" 1>&6
5347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5348 cat >> confdefs.h <<EOF
5349 #define $ac_tr_hdr 1
5351 PLUGINS="${PLUGINS} directx"
5352 LIB_DIRECTX="-lgdi32 -ldxguid"
5354 echo "$ac_t""no" 1>&6
5359 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
5360 echo "configure:5361: checking for directX headers in ${withval}" >&5
5361 if test -f ${withval}/include/directx.h
5363 PLUGINS="${PLUGINS} directx"
5364 LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
5365 INCLUDE="${INCLUDE} -I${withval}/include"
5366 echo "$ac_t""yes" 1>&6
5368 echo "$ac_t""no" 1>&6
5369 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
5375 # Check whether --with-glide or --without-glide was given.
5376 if test "${with_glide+set}" = set; then
5377 withval="$with_glide"
5378 if test "x$withval" != "xno"
5380 PLUGINS="${PLUGINS} glide"
5381 if test "x$withval" != "xyes"
5383 LIB_GLIDE="-l"$withval" -lm"
5385 LIB_GLIDE="-lglide2x -lm"
5391 # Check whether --enable-ncurses or --disable-ncurses was given.
5392 if test "${enable_ncurses+set}" = set; then
5393 enableval="$enable_ncurses"
5394 if test x$enable_ncurses = xyes; then
5395 PLUGINS="${PLUGINS} ncurses"
5396 LIB_NCURSES="-lncurses"
5401 # Check whether --enable-qt or --disable-qt was given.
5402 if test "${enable_qt+set}" = set; then
5403 enableval="$enable_qt"
5404 if test x$enable_qt = xyes; then
5405 PLUGINS="${PLUGINS} qt"
5406 ALIASES="${ALIASES} qvlc"
5407 LIB_QT="-lqt -L${QTDIR}/lib"
5408 if test -x ${QTDIR}/bin/moc
5410 MOC=${QTDIR}/bin/moc
5418 # Check whether --enable-kde or --disable-kde was given.
5419 if test "${enable_kde+set}" = set; then
5420 enableval="$enable_kde"
5421 if test x$enable_kde = xyes; then
5422 PLUGINS="${PLUGINS} kde"
5423 ALIASES="${ALIASES} kvlc"
5424 LIB_KDE="-L${KDEDIR}/lib -lkfile"
5425 if test -x ${QTDIR}/bin/moc
5427 MOC=${QTDIR}/bin/moc
5435 # Check whether --enable-gnome or --disable-gnome was given.
5436 if test "${enable_gnome+set}" = set; then
5437 enableval="$enable_gnome"
5438 if test x$enable_gnome = xyes; then
5439 # look for gnome-config
5440 # Extract the first word of "gnome-config", so it can be a program name with args.
5441 set dummy gnome-config; ac_word=$2
5442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5443 echo "configure:5444: checking for $ac_word" >&5
5444 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 case "$GNOME_CONFIG" in
5449 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5452 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5457 for ac_dir in $ac_dummy; do
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f $ac_dir/$ac_word; then
5460 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5465 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5469 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5470 if test -n "$GNOME_CONFIG"; then
5471 echo "$ac_t""$GNOME_CONFIG" 1>&6
5473 echo "$ac_t""no" 1>&6
5476 if test -x ${GNOME_CONFIG}
5478 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5479 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5481 # now look for the gnome.h header
5482 saved_CPPFLAGS=$CPPFLAGS
5483 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5484 for ac_hdr in gnome.h
5486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5488 echo "configure:5489: checking for $ac_hdr" >&5
5489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5498 { (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5500 if test -z "$ac_err"; then
5502 eval "ac_cv_header_$ac_safe=yes"
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5508 eval "ac_cv_header_$ac_safe=no"
5512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5515 cat >> confdefs.h <<EOF
5516 #define $ac_tr_hdr 1
5519 PLUGINS="${PLUGINS} gnome"
5520 ALIASES="${ALIASES} gnome-vlc"
5523 echo "$ac_t""no" 1>&6
5524 { echo "configure: error: Can't find gnome headers. Please install the gnome
5525 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5531 CPPFLAGS=$saved_CPPFLAGS
5536 # Check whether --enable-gtk or --disable-gtk was given.
5537 if test "${enable_gtk+set}" = set; then
5538 enableval="$enable_gtk"
5542 if test x$enable_gtk != xno
5545 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
5546 if test "${with_gtk_config_path+set}" = set; then
5547 withval="$with_gtk_config_path"
5548 if test "x$withval" != "xno"
5550 GTK_PATH=$withval:$PATH
5554 # look for gtk-config
5555 # Extract the first word of "gtk-config", so it can be a program name with args.
5556 set dummy gtk-config; ac_word=$2
5557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5558 echo "configure:5559: checking for $ac_word" >&5
5559 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 case "$GTK_CONFIG" in
5564 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5567 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5571 ac_dummy="$GTK_PATH"
5572 for ac_dir in $ac_dummy; do
5573 test -z "$ac_dir" && ac_dir=.
5574 if test -f $ac_dir/$ac_word; then
5575 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5580 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5584 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5585 if test -n "$GTK_CONFIG"; then
5586 echo "$ac_t""$GTK_CONFIG" 1>&6
5588 echo "$ac_t""no" 1>&6
5591 if test -x ${GTK_CONFIG}
5593 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5594 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5596 # now look for the gtk.h header
5597 saved_CPPFLAGS=$CPPFLAGS
5598 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5600 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
5602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5604 echo "configure:5605: checking for $ac_hdr" >&5
5605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5614 { (eval echo configure:5615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5616 if test -z "$ac_err"; then
5618 eval "ac_cv_header_$ac_safe=yes"
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5624 eval "ac_cv_header_$ac_safe=no"
5628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5631 cat >> confdefs.h <<EOF
5632 #define $ac_tr_hdr 1
5636 echo "$ac_t""no" 1>&6
5638 echo "Cannot find gtk development headers."
5643 if test -z $FOUND; then
5644 PLUGINS="${PLUGINS} gtk"
5645 ALIASES="${ALIASES} gvlc"
5647 CPPFLAGS=$saved_CPPFLAGS
5650 # Check whether --enable-x11 or --disable-x11 was given.
5651 if test "${enable_x11+set}" = set; then
5652 enableval="$enable_x11"
5656 if test x$enable_x11 != xno &&
5657 (test $SYS != mingw32 || test x$enable_x11 = xyes); then
5658 if test x$x_includes = xNONE; then
5659 x_includes=/usr/X11R6/include
5661 if test x$x_libraries = xNONE; then
5662 x_libraries=/usr/X11R6/lib
5664 saved_CPPFLAGS=$CPPFLAGS
5665 CPPFLAGS="$CPPFLAGS -I$x_includes"
5666 for ac_hdr in X11/Xlib.h
5668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5670 echo "configure:5671: checking for $ac_hdr" >&5
5671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5674 cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5680 { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5682 if test -z "$ac_err"; then
5684 eval "ac_cv_header_$ac_safe=yes"
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5690 eval "ac_cv_header_$ac_safe=no"
5694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_hdr 1
5701 PLUGINS="${PLUGINS} x11"
5702 LIB_X11="-L$x_libraries -lX11 -lXext"
5703 CFLAGS_X11="-I$x_includes"
5705 CPPFLAGS=$saved_CPPFLAGS
5707 echo "$ac_t""no" 1>&6
5713 # Check whether --enable-xvideo or --disable-xvideo was given.
5714 if test "${enable_xvideo+set}" = set; then
5715 enableval="$enable_xvideo"
5719 if test x$enable_xvideo != xno &&
5720 (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
5721 if test x$x_includes = xNONE; then
5722 x_includes=/usr/X11R6/include
5724 if test x$x_libraries = xNONE; then
5725 x_libraries=/usr/X11R6/lib
5727 saved_CPPFLAGS=$CPPFLAGS
5728 CPPFLAGS="$CPPFLAGS -I$x_includes"
5729 for ac_hdr in X11/extensions/Xv.h
5731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5733 echo "configure:5734: checking for $ac_hdr" >&5
5734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5743 { (eval echo configure:5744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5745 if test -z "$ac_err"; then
5747 eval "ac_cv_header_$ac_safe=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 eval "ac_cv_header_$ac_safe=no"
5757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5758 echo "$ac_t""yes" 1>&6
5759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5760 cat >> confdefs.h <<EOF
5761 #define $ac_tr_hdr 1
5764 BUILTINS="${BUILTINS} xvideo"
5765 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5766 CFLAGS_X11="-I$x_includes"
5768 CPPFLAGS=$saved_CPPFLAGS
5770 echo "$ac_t""no" 1>&6
5776 # Check whether --enable-alsa or --disable-alsa was given.
5777 if test "${enable_alsa+set}" = set; then
5778 enableval="$enable_alsa"
5779 if test x$enable_alsa = xyes
5781 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
5782 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
5783 echo "configure:5784: checking for alsa/asoundlib.h" >&5
5784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5790 #include <alsa/asoundlib.h>
5792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5793 { (eval echo configure:5794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5795 if test -z "$ac_err"; then
5797 eval "ac_cv_header_$ac_safe=yes"
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 eval "ac_cv_header_$ac_safe=no"
5807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5808 echo "$ac_t""yes" 1>&6
5809 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5810 echo "configure:5811: checking for main in -lasound" >&5
5811 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 ac_save_LIBS="$LIBS"
5816 LIBS="-lasound $LIBS"
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 eval "ac_cv_lib_$ac_lib_var=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_lib_$ac_lib_var=no"
5835 LIBS="$ac_save_LIBS"
5838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5839 echo "$ac_t""yes" 1>&6
5842 echo "$ac_t""no" 1>&6
5847 echo "$ac_t""no" 1>&6
5851 if test x$have_alsa = xtrue
5853 PLUGINS="${PLUGINS} alsa"
5862 # Check whether --enable-plugins or --disable-plugins was given.
5863 if test "${enable_plugins+set}" = set; then
5864 enableval="$enable_plugins"
5865 if test x$enable_plugins = xno
5867 BUILTINS="${BUILTINS} ${PLUGINS}"
5943 cat > confcache <<\EOF
5944 # This file is a shell script that caches the results of configure
5945 # tests run on this system so they can be shared between configure
5946 # scripts and configure runs. It is not useful on other systems.
5947 # If it contains results you don't want to keep, you may remove or edit it.
5949 # By default, configure uses ./config.cache as the cache file,
5950 # creating it if it does not exist already. You can give configure
5951 # the --cache-file=FILE option to use a different cache file; that is
5952 # what configure does when it calls configure scripts in
5953 # subdirectories, so they share the cache.
5954 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5955 # config.status only pays attention to the cache file if you give it the
5956 # --recheck option to rerun configure.
5959 # The following way of writing the cache mishandles newlines in values,
5960 # but we know of no workaround that is simple, portable, and efficient.
5961 # So, don't put newlines in cache variables' values.
5962 # Ultrix sh set writes to stderr and can't be redirected directly,
5963 # and sets the high bit in the cache file unless we assign to the vars.
5965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5967 # `set' does not quote correctly, so add quotes (double-quote substitution
5968 # turns \\\\ into \\, and sed turns \\ into \).
5970 -e "s/'/'\\\\''/g" \
5971 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5974 # `set' quotes correctly as required by POSIX, so do not add quotes.
5975 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5978 if cmp -s $cache_file confcache; then
5981 if test -w $cache_file; then
5982 echo "updating cache $cache_file"
5983 cat confcache > $cache_file
5985 echo "not updating unwritable cache $cache_file"
5990 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5993 # Let make expand exec_prefix.
5994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5996 # Any assignment to VPATH causes Sun make to only execute
5997 # the first set of double-colon rules, so remove it if not needed.
5998 # If there is a colon in the path, we need to keep it.
5999 if test "x$srcdir" = x.; then
6000 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6003 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6005 DEFS=-DHAVE_CONFIG_H
6007 # Without the "./", some shells look in PATH for config.status.
6008 : ${CONFIG_STATUS=./config.status}
6010 echo creating $CONFIG_STATUS
6011 rm -f $CONFIG_STATUS
6012 cat > $CONFIG_STATUS <<EOF
6014 # Generated automatically by configure.
6015 # Run this file to recreate the current configuration.
6016 # This directory was configured as follows,
6017 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6019 # $0 $ac_configure_args
6021 # Compiler output produced by configure, useful for debugging
6022 # configure, is in ./config.log if it exists.
6024 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6027 case "\$ac_option" in
6028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6029 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6030 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6031 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6032 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6034 -help | --help | --hel | --he | --h)
6035 echo "\$ac_cs_usage"; exit 0 ;;
6036 *) echo "\$ac_cs_usage"; exit 1 ;;
6040 ac_given_srcdir=$srcdir
6041 ac_given_INSTALL="$INSTALL"
6043 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6045 cat >> $CONFIG_STATUS <<EOF
6047 # Protect against being on the right side of a sed subst in config.status.
6048 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6053 s%@CFLAGS@%$CFLAGS%g
6054 s%@CPPFLAGS@%$CPPFLAGS%g
6055 s%@CXXFLAGS@%$CXXFLAGS%g
6056 s%@FFLAGS@%$FFLAGS%g
6058 s%@LDFLAGS@%$LDFLAGS%g
6060 s%@exec_prefix@%$exec_prefix%g
6061 s%@prefix@%$prefix%g
6062 s%@program_transform_name@%$program_transform_name%g
6063 s%@bindir@%$bindir%g
6064 s%@sbindir@%$sbindir%g
6065 s%@libexecdir@%$libexecdir%g
6066 s%@datadir@%$datadir%g
6067 s%@sysconfdir@%$sysconfdir%g
6068 s%@sharedstatedir@%$sharedstatedir%g
6069 s%@localstatedir@%$localstatedir%g
6070 s%@libdir@%$libdir%g
6071 s%@includedir@%$includedir%g
6072 s%@oldincludedir@%$oldincludedir%g
6073 s%@infodir@%$infodir%g
6074 s%@mandir@%$mandir%g
6076 s%@host_alias@%$host_alias%g
6077 s%@host_cpu@%$host_cpu%g
6078 s%@host_vendor@%$host_vendor%g
6079 s%@host_os@%$host_os%g
6080 s%@target@%$target%g
6081 s%@target_alias@%$target_alias%g
6082 s%@target_cpu@%$target_cpu%g
6083 s%@target_vendor@%$target_vendor%g
6084 s%@target_os@%$target_os%g
6086 s%@build_alias@%$build_alias%g
6087 s%@build_cpu@%$build_cpu%g
6088 s%@build_vendor@%$build_vendor%g
6089 s%@build_os@%$build_os%g
6090 s%@VLC_VERSION@%$VLC_VERSION%g
6091 s%@VLC_CODENAME@%$VLC_CODENAME%g
6092 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
6093 s%@SET_MAKE@%$SET_MAKE%g
6096 s%@RANLIB@%$RANLIB%g
6097 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6098 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6099 s%@INSTALL_DATA@%$INSTALL_DATA%g
6100 s%@WINDRES@%$WINDRES%g
6101 s%@ESD_CONFIG@%$ESD_CONFIG%g
6102 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
6103 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
6104 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
6105 s%@SDL_CONFIG@%$SDL_CONFIG%g
6106 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
6107 s%@GTK_CONFIG@%$GTK_CONFIG%g
6110 s%@PLUGINS@%$PLUGINS%g
6111 s%@BUILTINS@%$BUILTINS%g
6112 s%@ALIASES@%$ALIASES%g
6113 s%@DEFINE@%$DEFINE%g
6114 s%@INCLUDE@%$INCLUDE%g
6120 s%@OPTIMS@%$OPTIMS%g
6121 s%@TUNING@%$TUNING%g
6122 s%@RELEASE@%$RELEASE%g
6123 s%@NEED_GETOPT@%$NEED_GETOPT%g
6125 s%@LCFLAGS@%$LCFLAGS%g
6126 s%@PLCFLAGS@%$PLCFLAGS%g
6127 s%@SOFLAGS@%$SOFLAGS%g
6129 s%@LIB_ALSA@%$LIB_ALSA%g
6130 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
6131 s%@LIB_ARTS@%$LIB_ARTS%g
6132 s%@LIB_BEOS@%$LIB_BEOS%g
6133 s%@LIB_DARWIN@%$LIB_DARWIN%g
6134 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
6135 s%@LIB_DVD@%$LIB_DVD%g
6136 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
6137 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
6138 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
6139 s%@LIB_ESD@%$LIB_ESD%g
6140 s%@LIB_GGI@%$LIB_GGI%g
6141 s%@LIB_GLIDE@%$LIB_GLIDE%g
6142 s%@LIB_GNOME@%$LIB_GNOME%g
6143 s%@LIB_GTK@%$LIB_GTK%g
6144 s%@LIB_KDE@%$LIB_KDE%g
6145 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
6146 s%@LIB_MACOSX@%$LIB_MACOSX%g
6147 s%@LIB_NCURSES@%$LIB_NCURSES%g
6148 s%@LIB_QNX@%$LIB_QNX%g
6149 s%@LIB_QT@%$LIB_QT%g
6150 s%@LIB_RC@%$LIB_RC%g
6151 s%@LIB_SDL@%$LIB_SDL%g
6152 s%@LIB_TS@%$LIB_TS%g
6153 s%@LIB_X11@%$LIB_X11%g
6154 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
6155 s%@LIB_YUV@%$LIB_YUV%g
6156 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
6157 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
6158 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
6159 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
6160 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
6161 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
6162 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
6163 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
6164 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
6165 s%@CFLAGS_X11@%$CFLAGS_X11%g
6166 s%@OBJ_DVD@%$OBJ_DVD%g
6167 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
6168 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
6173 cat >> $CONFIG_STATUS <<\EOF
6175 # Split the substitutions into bite-sized pieces for seds with
6176 # small command number limits, like on Digital OSF/1 and HP-UX.
6177 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6178 ac_file=1 # Number of current file.
6179 ac_beg=1 # First line for current file.
6180 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6183 while $ac_more_lines; do
6184 if test $ac_beg -gt 1; then
6185 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6187 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6189 if test ! -s conftest.s$ac_file; then
6191 rm -f conftest.s$ac_file
6193 if test -z "$ac_sed_cmds"; then
6194 ac_sed_cmds="sed -f conftest.s$ac_file"
6196 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6198 ac_file=`expr $ac_file + 1`
6200 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6203 if test -z "$ac_sed_cmds"; then
6208 cat >> $CONFIG_STATUS <<EOF
6210 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
6212 cat >> $CONFIG_STATUS <<\EOF
6213 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6214 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6216 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6217 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6218 *) ac_file_in="${ac_file}.in" ;;
6221 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6223 # Remove last slash and all that follows it. Not all systems have dirname.
6224 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6225 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6226 # The file is in a subdirectory.
6227 test ! -d "$ac_dir" && mkdir "$ac_dir"
6228 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6229 # A "../" for each directory in $ac_dir_suffix.
6230 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6232 ac_dir_suffix= ac_dots=
6235 case "$ac_given_srcdir" in
6237 if test -z "$ac_dots"; then top_srcdir=.
6238 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6239 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6241 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6242 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6245 case "$ac_given_INSTALL" in
6246 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6247 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6250 echo creating "$ac_file"
6252 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6254 *Makefile*) ac_comsub="1i\\
6255 # $configure_input" ;;
6259 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6261 s%@configure_input@%$configure_input%g
6262 s%@srcdir@%$srcdir%g
6263 s%@top_srcdir@%$top_srcdir%g
6264 s%@INSTALL@%$INSTALL%g
6265 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6269 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6270 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6272 # ac_d sets the value in "#define NAME VALUE" lines.
6273 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6274 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6277 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6278 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6279 ac_uB='\([ ]\)%\1#\2define\3'
6282 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6283 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6284 ac_eB='$%\1#\2define\3'
6288 if test "${CONFIG_HEADERS+set}" != set; then
6290 cat >> $CONFIG_STATUS <<EOF
6291 CONFIG_HEADERS="include/defs.h"
6293 cat >> $CONFIG_STATUS <<\EOF
6295 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6298 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6299 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6300 *) ac_file_in="${ac_file}.in" ;;
6303 echo creating $ac_file
6305 rm -f conftest.frag conftest.in conftest.out
6306 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6307 cat $ac_file_inputs > conftest.in
6311 # Transform confdefs.h into a sed script conftest.vals that substitutes
6312 # the proper values into config.h.in to produce config.h. And first:
6313 # Protect against being on the right side of a sed subst in config.status.
6314 # Protect against being in an unquoted here document in config.status.
6316 cat > conftest.hdr <<\EOF
6319 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6323 sed -n -f conftest.hdr confdefs.h > conftest.vals
6326 # This sed command replaces #undef with comments. This is necessary, for
6327 # example, in the case of _POSIX_SOURCE, which is predefined and required
6328 # on some systems where configure will not decide to define it.
6329 cat >> conftest.vals <<\EOF
6330 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6333 # Break up conftest.vals because some shells have a limit on
6334 # the size of here documents, and old seds have small limits too.
6339 ac_lines=`grep -c . conftest.vals`
6340 # grep -c gives empty output for an empty file on some AIX systems.
6341 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6342 # Write a limited-size here document to conftest.frag.
6343 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6344 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6346 sed -f conftest.frag conftest.in > conftest.out
6348 mv conftest.out conftest.in
6350 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6352 mv conftest.tail conftest.vals
6356 cat >> $CONFIG_STATUS <<\EOF
6357 rm -f conftest.frag conftest.h
6358 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6359 cat conftest.in >> conftest.h
6361 if cmp -s $ac_file conftest.h 2>/dev/null; then
6362 echo "$ac_file is unchanged"
6365 # Remove last slash and all that follows it. Not all systems have dirname.
6366 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6367 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6368 # The file is in a subdirectory.
6369 test ! -d "$ac_dir" && mkdir "$ac_dir"
6372 mv conftest.h $ac_file
6377 cat >> $CONFIG_STATUS <<EOF
6380 cat >> $CONFIG_STATUS <<\EOF
6384 chmod +x $CONFIG_STATUS
6385 rm -fr confdefs* $ac_clean_files
6386 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6390 global configuration
6391 --------------------
6393 architecture : ${ARCH}
6394 optimizations : ${OPTIMS}
6396 release: : ${RELEASE}"
6398 if test x${HAVE_VLC} = x1
6403 vlc version : ${VLC_VERSION}
6404 debug mode : ${DEBUG}
6405 trace mode : ${TRACE}
6406 cprof/gprof support : ${CPROF}/${GPROF}
6407 need builtin getopt : ${NEED_GETOPT}
6408 built-in modules :${BUILTINS}
6409 plug-in modules :${PLUGINS}
6410 vlc aliases :${ALIASES}"
6414 libdvdcss configuration
6415 -----------------------
6416 can be built : ${CAN_BUILD_LIBDVDCSS}
6417 will be built : ${NEED_LIBDVDCSS}"
6418 if test x${NEED_LIBDVDCSS} = x1
6420 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
6421 echo "link statically : ${STATIC_LIBDVDCSS}"
6423 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6427 You may now tune Makefile.opts at your convenience, for instance to choose
6428 which modules get compiled as plugins.
6430 if test x${HAVE_VLC} = x1
6432 echo "To build vlc and its plugins, type \`make vlc'."
6434 if test x${HAVE_LIBDVDCSS} = x1
6436 echo "To build libdvdcss only, type \`make libdvdcss'."