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 --disable-mmx Disable MMX optimizations (default enabled for x86)"
22 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
24 --enable-debug Enable debug mode (default disabled)"
26 --enable-trace Enable trace mode (default disabled)"
28 --enable-gprof Enable gprof profiling (default disabled)"
30 --enable-cprof Enable cprof profiling (default disabled)"
32 --disable-optimizations Disable compiler optimizations (default enabled)"
34 --enable-pth Enable GNU Pth support (default disabled)"
36 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
37 or 'local-static', 'local-shared', or a path to
38 another libdvdcss such as '/usr/local'
39 (default 'local-static')"
41 --enable-vcd VCD support for Linux (default enabled)"
43 --disable-dummy dummy module (default enabled)"
45 --disable-null Null module (default enabled)"
47 --disable-rc rc module (default enabled)"
49 --disable-dsp Linux /dev/dsp support (default enabled)"
51 --enable-esd Esound library support (default disabled)"
53 --enable-darwin Darwin sound support (default enabled on MacOS X)"
55 --enable-macosx MacOS X support (default enabled on MacOS X)"
57 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
59 --enable-fb Linux framebuffer support (default disabled)"
61 --with-ggi[=name] GGI support (default disabled)"
63 --disable-sdl SDL support (default enabled)"
65 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
67 --with-directx[=name] Windows DirectX support (default enabled)"
69 --with-glide[=name] Glide (3dfx) support (default disabled)"
71 --enable-ncurses ncurses interface support (default disabled)"
73 --enable-qt Qt interface support (default disabled)"
75 --enable-kde KDE interface support (default disabled)"
77 --enable-gnome Gnome interface support (default disabled)"
79 --disable-gtk Gtk+ support (default enabled)"
81 --disable-x11 X11 support (default enabled)"
83 --disable-xvideo XVideo support (default enabled)"
85 --enable-alsa Alsa sound drivers support (Only for linux)
88 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
94 cache_file=./config.cache
103 program_transform_name=s,x,x,
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
264 -host | --host | --hos | --ho)
266 -host=* | --host=* | --hos=* | --ho=*)
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir="$ac_optarg" ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir="$ac_optarg" ;;
281 -libdir | --libdir | --libdi | --libd)
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir="$ac_optarg" ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir="$ac_optarg" ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir="$ac_optarg" ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir="$ac_optarg" ;;
308 # Obsolete; use --without-fp.
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir="$ac_optarg" ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix="$ac_optarg" ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix="$ac_optarg" ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix="$ac_optarg" ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
372 sbindir="$ac_optarg" ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
383 sharedstatedir="$ac_optarg" ;;
385 -site | --site | --sit)
387 -site=* | --site=* | --sit=*)
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=include/common.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
573 echo "creating cache $cache_file"
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
595 ac_n= ac_c='\c' ac_t=
602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
603 if test -f $ac_dir/install-sh; then
605 ac_install_sh="$ac_aux_dir/install-sh -c"
607 elif test -f $ac_dir/install.sh; then
609 ac_install_sh="$ac_aux_dir/install.sh -c"
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # Do some error checking and defaulting for the host and target type.
623 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
626 # 1. You are not allowed to specify --host, --target, and nonopt at the
628 # 2. Host defaults to nonopt.
629 # 3. If nonopt is not specified, then host defaults to the current host,
630 # as determined by config.guess.
631 # 4. Target and build default to nonopt.
632 # 5. If nonopt is not specified, then target and build default to host.
634 # The aliases save the names the user supplied, while $host etc.
635 # will get canonicalized.
636 case $host---$target---$nonopt in
637 NONE---*---* | *---NONE---* | *---*---NONE) ;;
638 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
642 # Make sure we can run config.sub.
643 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
644 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
647 echo $ac_n "checking host system type""... $ac_c" 1>&6
648 echo "configure:649: checking host system type" >&5
651 case "$host_alias" in
655 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
656 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
658 *) host_alias=$nonopt ;;
662 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
663 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$host" 1>&6
668 echo $ac_n "checking target system type""... $ac_c" 1>&6
669 echo "configure:670: checking target system type" >&5
672 case "$target_alias" in
675 NONE) target_alias=$host_alias ;;
676 *) target_alias=$nonopt ;;
680 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$target" 1>&6
686 echo $ac_n "checking build system type""... $ac_c" 1>&6
687 echo "configure:688: checking build system type" >&5
690 case "$build_alias" in
693 NONE) build_alias=$host_alias ;;
694 *) build_alias=$nonopt ;;
698 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
699 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$build" 1>&6
704 test "$host_alias" != "$target_alias" &&
705 test "$program_prefix$program_suffix$program_transform_name" = \
707 program_prefix=${target_alias}-
711 if test -r src/interface/main.c; then
720 if test -r extras/libdvdcss/libdvdcss.c; then
722 LIBDVDCSS_VERSION=0.0.3
724 if test -r extras/libdvdcss/csskeys.h; then
725 cat >> confdefs.h <<\EOF
726 #define HAVE_CSSKEYS 1
732 save_CFLAGS="${CFLAGS}"
733 save_LDFLAGS="${LDFLAGS}"
735 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${MAKE-make} sets \${MAKE}" >&5
737 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
738 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 cat > conftestmake <<\EOF
743 @echo 'ac_maketemp="${MAKE}"'
745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
746 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
747 if test -n "$ac_maketemp"; then
748 eval ac_cv_prog_make_${ac_make}_set=yes
750 eval ac_cv_prog_make_${ac_make}_set=no
754 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
755 echo "$ac_t""yes" 1>&6
758 echo "$ac_t""no" 1>&6
759 SET_MAKE="MAKE=${MAKE-make}"
762 # Extract the first word of "gcc", so it can be a program name with args.
763 set dummy gcc; ac_word=$2
764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
765 echo "configure:766: checking for $ac_word" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 if test -n "$CC"; then
770 ac_cv_prog_CC="$CC" # Let the user override the test.
772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
774 for ac_dir in $ac_dummy; do
775 test -z "$ac_dir" && ac_dir=.
776 if test -f $ac_dir/$ac_word; then
785 if test -n "$CC"; then
786 echo "$ac_t""$CC" 1>&6
788 echo "$ac_t""no" 1>&6
791 if test -z "$CC"; then
792 # Extract the first word of "cc", so it can be a program name with args.
793 set dummy cc; ac_word=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 if test -n "$CC"; then
800 ac_cv_prog_CC="$CC" # Let the user override the test.
802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
805 for ac_dir in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir=.
807 if test -f $ac_dir/$ac_word; then
808 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
817 if test $ac_prog_rejected = yes; then
818 # We found a bogon in the path, so make sure we never use it.
819 set dummy $ac_cv_prog_CC
821 if test $# -gt 0; then
822 # We chose a different compiler from the bogus one.
823 # However, it has the same basename, so the bogon will be chosen
824 # first if we set CC to just the basename; use the full file name.
826 set dummy "$ac_dir/$ac_word" "$@"
834 if test -n "$CC"; then
835 echo "$ac_t""$CC" 1>&6
837 echo "$ac_t""no" 1>&6
840 if test -z "$CC"; then
843 # Extract the first word of "cl", so it can be a program name with args.
844 set dummy cl; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 if test -n "$CC"; then
851 ac_cv_prog_CC="$CC" # Let the user override the test.
853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
855 for ac_dir in $ac_dummy; do
856 test -z "$ac_dir" && ac_dir=.
857 if test -f $ac_dir/$ac_word; then
866 if test -n "$CC"; then
867 echo "$ac_t""$CC" 1>&6
869 echo "$ac_t""no" 1>&6
874 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
877 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
878 echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
882 ac_cpp='$CPP $CPPFLAGS'
883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
885 cross_compiling=$ac_cv_prog_cc_cross
887 cat > conftest.$ac_ext << EOF
889 #line 890 "configure"
890 #include "confdefs.h"
894 if { (eval echo configure:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
895 ac_cv_prog_cc_works=yes
896 # If we can't run a trivial program, we are probably using a cross compiler.
897 if (./conftest; exit) 2>/dev/null; then
898 ac_cv_prog_cc_cross=no
900 ac_cv_prog_cc_cross=yes
903 echo "configure: failed program was:" >&5
904 cat conftest.$ac_ext >&5
905 ac_cv_prog_cc_works=no
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
915 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
916 if test $ac_cv_prog_cc_works = no; then
917 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
921 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
922 cross_compiling=$ac_cv_prog_cc_cross
924 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
925 echo "configure:926: checking whether we are using GNU C" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 cat > conftest.c <<EOF
934 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
941 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
943 if test $ac_cv_prog_gcc = yes; then
949 ac_test_CFLAGS="${CFLAGS+set}"
950 ac_save_CFLAGS="$CFLAGS"
952 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
953 echo "configure:954: checking whether ${CC-cc} accepts -g" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 echo 'void f(){}' > conftest.c
958 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
967 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
968 if test "$ac_test_CFLAGS" = set; then
969 CFLAGS="$ac_save_CFLAGS"
970 elif test $ac_cv_prog_cc_g = yes; then
971 if test "$GCC" = yes; then
977 if test "$GCC" = yes; then
984 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
985 echo "configure:986: checking how to run the C preprocessor" >&5
986 # On Suns, sometimes $CPP names a directory.
987 if test -n "$CPP" && test -d "$CPP"; then
990 if test -z "$CPP"; then
991 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 # This must be in double quotes, not single quotes, because CPP may get
995 # substituted into the Makefile and "${CC-cc}" will confuse make.
997 # On the NeXT, cc -E runs the code through the compiler's parser,
998 # not just through cpp.
999 cat > conftest.$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1006 { (eval echo configure:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1008 if test -z "$ac_err"; then
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1015 CPP="${CC-cc} -E -traditional-cpp"
1016 cat > conftest.$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1023 { (eval echo configure:1024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1025 if test -z "$ac_err"; then
1029 echo "configure: failed program was:" >&5
1030 cat conftest.$ac_ext >&5
1032 CPP="${CC-cc} -nologo -E"
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1042 if test -z "$ac_err"; then
1046 echo "configure: failed program was:" >&5
1047 cat conftest.$ac_ext >&5
1056 ac_cv_prog_CPP="$CPP"
1058 CPP="$ac_cv_prog_CPP"
1060 ac_cv_prog_CPP="$CPP"
1062 echo "$ac_t""$CPP" 1>&6
1064 # Extract the first word of "ranlib", so it can be a program name with args.
1065 set dummy ranlib; ac_word=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$RANLIB"; then
1072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 for ac_dir in $ac_dummy; do
1077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1079 ac_cv_prog_RANLIB="ranlib"
1084 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1087 RANLIB="$ac_cv_prog_RANLIB"
1088 if test -n "$RANLIB"; then
1089 echo "$ac_t""$RANLIB" 1>&6
1091 echo "$ac_t""no" 1>&6
1095 # Find a good install program. We prefer a C program (faster),
1096 # so one script is as good as another. But avoid the broken or
1097 # incompatible versions:
1098 # SysV /etc/install, /usr/sbin/install
1099 # SunOS /usr/etc/install
1100 # IRIX /sbin/install
1102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1105 # ./install, which can be erroneously created by make from ./install.sh.
1106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1107 echo "configure:1108: checking for a BSD compatible install" >&5
1108 if test -z "$INSTALL"; then
1109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1113 for ac_dir in $PATH; do
1114 # Account for people who put trailing slashes in PATH elements.
1116 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1118 # OSF1 and SCO ODT 3.0 have their own names for install.
1119 # Don't use installbsd from OSF since it installs stuff as root
1121 for ac_prog in ginstall scoinst install; do
1122 if test -f $ac_dir/$ac_prog; then
1123 if test $ac_prog = install &&
1124 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1125 # AIX install. It has an incompatible calling convention.
1128 ac_cv_path_install="$ac_dir/$ac_prog -c"
1139 if test "${ac_cv_path_install+set}" = set; then
1140 INSTALL="$ac_cv_path_install"
1142 # As a last resort, use the slow shell script. We don't cache a
1143 # path for INSTALL within a source directory, because that will
1144 # break other packages using the cache if that directory is
1145 # removed, or if the path is relative.
1146 INSTALL="$ac_install_sh"
1149 echo "$ac_t""$INSTALL" 1>&6
1151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1152 # It thinks the first close brace ends the variable substitution.
1153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1160 if test x${cross_compiling} != xyes; then
1161 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether byte ordering is bigendian" >&5
1163 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 ac_cv_c_bigendian=unknown
1167 # See if sys/param.h defines the BYTE_ORDER macro.
1168 cat > conftest.$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1171 #include <sys/types.h>
1172 #include <sys/param.h>
1175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1182 # It does; now see whether it defined to BIG_ENDIAN or not.
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 #include <sys/types.h>
1187 #include <sys/param.h>
1190 #if BYTE_ORDER != BIG_ENDIAN
1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1197 ac_cv_c_bigendian=yes
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1202 ac_cv_c_bigendian=no
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1210 if test $ac_cv_c_bigendian = unknown; then
1211 if test "$cross_compiling" = yes; then
1212 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1218 /* Are we little or big endian? From Harbison&Steele. */
1222 char c[sizeof (long)];
1225 exit (u.c[sizeof (long) - 1] == 1);
1228 if { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1230 ac_cv_c_bigendian=no
1232 echo "configure: failed program was:" >&5
1233 cat conftest.$ac_ext >&5
1235 ac_cv_c_bigendian=yes
1243 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1244 if test $ac_cv_c_bigendian = yes; then
1245 cat >> confdefs.h <<\EOF
1246 #define WORDS_BIGENDIAN 1
1252 # Check whether --with-words or --without-words was given.
1253 if test "${with_words+set}" = set; then
1254 withval="$with_words"
1260 ac_cv_c_bigendian=yes
1263 ac_cv_c_bigendian=no
1266 ac_cv_c_bigendian=unknown
1267 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
1268 echo "configure:1269: checking what the byte order looks to be" >&5
1269 cat >conftest.c <<EOF
1270 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
1271 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
1272 void _a(void) { char*s = (char*)am; s = (char *)ai; }
1273 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
1274 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
1275 void _e(void) { char*s = (char*)em; s = (char*)ei; }
1276 int main(void) { _a(); _e(); return 0; }
1279 if test -f conftest.c
1281 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
1282 && test -f conftest.o
1284 if test `grep -l BIGenDianSyS conftest.o`
1286 echo "$ac_t"""big endian"" 1>&6
1287 ac_cv_c_bigendian=yes
1289 if test `grep -l LiTTleEnDian conftest.o`
1291 echo "$ac_t"""little endian"" 1>&6
1292 ac_cv_c_bigendian=no
1296 if test $ac_cv_c_bigendian = xunknown
1298 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
1300 if test $ac_cv_c_bigendian = yes
1302 cat >> confdefs.h <<\EOF
1303 #define WORDS_BIGENDIAN 1
1310 for ac_func in gettimeofday select strerror strtod strtol
1312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1313 echo "configure:1314: checking for $ac_func" >&5
1314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1320 /* System header to define __stub macros and hopefully few prototypes,
1321 which can conflict with char $ac_func(); below. */
1323 /* Override any gcc2 internal prototype to avoid an error. */
1324 /* We use char because int might match the return type of a gcc2
1325 builtin and then its argument prototype would still apply. */
1330 /* The GNU C library defines this for functions which it implements
1331 to always fail with ENOSYS. Some functions are actually named
1332 something starting with __ and the normal name is an alias. */
1333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1343 eval "ac_cv_func_$ac_func=yes"
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 eval "ac_cv_func_$ac_func=no"
1353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1356 cat >> confdefs.h <<EOF
1357 #define $ac_tr_func 1
1361 echo "$ac_t""no" 1>&6
1365 for ac_func in setenv putenv
1367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_func" >&5
1369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* System header to define __stub macros and hopefully few prototypes,
1376 which can conflict with char $ac_func(); below. */
1378 /* Override any gcc2 internal prototype to avoid an error. */
1379 /* We use char because int might match the return type of a gcc2
1380 builtin and then its argument prototype would still apply. */
1385 /* The GNU C library defines this for functions which it implements
1386 to always fail with ENOSYS. Some functions are actually named
1387 something starting with __ and the normal name is an alias. */
1388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398 eval "ac_cv_func_$ac_func=yes"
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 eval "ac_cv_func_$ac_func=no"
1408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1411 cat >> confdefs.h <<EOF
1412 #define $ac_tr_func 1
1416 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking for connect""... $ac_c" 1>&6
1421 echo "configure:1422: checking for connect" >&5
1422 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* System header to define __stub macros and hopefully few prototypes,
1429 which can conflict with char connect(); below. */
1431 /* Override any gcc2 internal prototype to avoid an error. */
1432 /* We use char because int might match the return type of a gcc2
1433 builtin and then its argument prototype would still apply. */
1438 /* The GNU C library defines this for functions which it implements
1439 to always fail with ENOSYS. Some functions are actually named
1440 something starting with __ and the normal name is an alias. */
1441 #if defined (__stub_connect) || defined (__stub___connect)
1449 if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1451 eval "ac_cv_func_connect=yes"
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1456 eval "ac_cv_func_connect=no"
1461 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1462 echo "$ac_t""yes" 1>&6
1465 echo "$ac_t""no" 1>&6
1467 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1468 echo "configure:1469: checking for connect in -lsocket" >&5
1469 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 ac_save_LIBS="$LIBS"
1474 LIBS="-lsocket $LIBS"
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478 /* Override any gcc2 internal prototype to avoid an error. */
1479 /* We use char because int might match the return type of a gcc2
1480 builtin and then its argument prototype would still apply. */
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1489 eval "ac_cv_lib_$ac_lib_var=yes"
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 eval "ac_cv_lib_$ac_lib_var=no"
1497 LIBS="$ac_save_LIBS"
1500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1501 echo "$ac_t""yes" 1>&6
1502 LIB="${LIB} -lsocket"
1504 echo "$ac_t""no" 1>&6
1510 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1511 echo "configure:1512: checking for gethostbyname" >&5
1512 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1518 /* System header to define __stub macros and hopefully few prototypes,
1519 which can conflict with char gethostbyname(); below. */
1521 /* Override any gcc2 internal prototype to avoid an error. */
1522 /* We use char because int might match the return type of a gcc2
1523 builtin and then its argument prototype would still apply. */
1524 char gethostbyname();
1528 /* The GNU C library defines this for functions which it implements
1529 to always fail with ENOSYS. Some functions are actually named
1530 something starting with __ and the normal name is an alias. */
1531 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541 eval "ac_cv_func_gethostbyname=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 eval "ac_cv_func_gethostbyname=no"
1551 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1552 echo "$ac_t""yes" 1>&6
1555 echo "$ac_t""no" 1>&6
1557 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1558 echo "configure:1559: checking for gethostbyname in -lnsl" >&5
1559 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 ac_save_LIBS="$LIBS"
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568 /* Override any gcc2 internal prototype to avoid an error. */
1569 /* We use char because int might match the return type of a gcc2
1570 builtin and then its argument prototype would still apply. */
1571 char gethostbyname();
1577 if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1579 eval "ac_cv_lib_$ac_lib_var=yes"
1581 echo "configure: failed program was:" >&5
1582 cat conftest.$ac_ext >&5
1584 eval "ac_cv_lib_$ac_lib_var=no"
1587 LIBS="$ac_save_LIBS"
1590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1594 echo "$ac_t""no" 1>&6
1600 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1601 echo "configure:1602: checking for nanosleep" >&5
1602 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1608 /* System header to define __stub macros and hopefully few prototypes,
1609 which can conflict with char nanosleep(); below. */
1611 /* Override any gcc2 internal prototype to avoid an error. */
1612 /* We use char because int might match the return type of a gcc2
1613 builtin and then its argument prototype would still apply. */
1618 /* The GNU C library defines this for functions which it implements
1619 to always fail with ENOSYS. Some functions are actually named
1620 something starting with __ and the normal name is an alias. */
1621 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1631 eval "ac_cv_func_nanosleep=yes"
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1636 eval "ac_cv_func_nanosleep=no"
1641 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1642 echo "$ac_t""yes" 1>&6
1645 echo "$ac_t""no" 1>&6
1647 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1648 echo "configure:1649: checking for nanosleep in -lrt" >&5
1649 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 ac_save_LIBS="$LIBS"
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error. */
1659 /* We use char because int might match the return type of a gcc2
1660 builtin and then its argument prototype would still apply. */
1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1669 eval "ac_cv_lib_$ac_lib_var=yes"
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1674 eval "ac_cv_lib_$ac_lib_var=no"
1677 LIBS="$ac_save_LIBS"
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1684 echo "$ac_t""no" 1>&6
1686 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1687 echo "configure:1688: checking for nanosleep in -lposix4" >&5
1688 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 ac_save_LIBS="$LIBS"
1693 LIBS="-lposix4 $LIBS"
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1713 eval "ac_cv_lib_$ac_lib_var=no"
1716 LIBS="$ac_save_LIBS"
1719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 LIB="${LIB} -lposix4"
1723 echo "$ac_t""no" 1>&6
1732 for ac_func in usleep
1734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_func" >&5
1736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $ac_func(); below. */
1745 /* Override any gcc2 internal prototype to avoid an error. */
1746 /* We use char because int might match the return type of a gcc2
1747 builtin and then its argument prototype would still apply. */
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1765 eval "ac_cv_func_$ac_func=yes"
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1770 eval "ac_cv_func_$ac_func=no"
1775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1778 cat >> confdefs.h <<EOF
1779 #define $ac_tr_func 1
1783 echo "$ac_t""no" 1>&6
1787 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1788 echo "configure:1789: checking for inet_aton" >&5
1789 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 /* System header to define __stub macros and hopefully few prototypes,
1796 which can conflict with char inet_aton(); below. */
1798 /* Override any gcc2 internal prototype to avoid an error. */
1799 /* We use char because int might match the return type of a gcc2
1800 builtin and then its argument prototype would still apply. */
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1818 eval "ac_cv_func_inet_aton=yes"
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 eval "ac_cv_func_inet_aton=no"
1828 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1829 echo "$ac_t""yes" 1>&6
1832 echo "$ac_t""no" 1>&6
1834 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1835 echo "configure:1836: checking for inet_aton in -lresolv" >&5
1836 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 ac_save_LIBS="$LIBS"
1841 LIBS="-lresolv $LIBS"
1842 cat > conftest.$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 /* Override any gcc2 internal prototype to avoid an error. */
1846 /* We use char because int might match the return type of a gcc2
1847 builtin and then its argument prototype would still apply. */
1854 if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1856 eval "ac_cv_lib_$ac_lib_var=yes"
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 eval "ac_cv_lib_$ac_lib_var=no"
1864 LIBS="$ac_save_LIBS"
1867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1868 echo "$ac_t""yes" 1>&6
1869 LIB="${LIB} -lresolv"
1871 echo "$ac_t""no" 1>&6
1877 for ac_func in vasprintf
1879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_func" >&5
1881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 /* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $ac_func(); below. */
1890 /* Override any gcc2 internal prototype to avoid an error. */
1891 /* We use char because int might match the return type of a gcc2
1892 builtin and then its argument prototype would still apply. */
1897 /* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1908 if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1910 eval "ac_cv_func_$ac_func=yes"
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 eval "ac_cv_func_$ac_func=no"
1920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1921 echo "$ac_t""yes" 1>&6
1922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1923 cat >> confdefs.h <<EOF
1924 #define $ac_tr_func 1
1928 echo "$ac_t""no" 1>&6
1934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_func" >&5
1936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $ac_func(); below. */
1945 /* Override any gcc2 internal prototype to avoid an error. */
1946 /* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1952 /* The GNU C library defines this for functions which it implements
1953 to always fail with ENOSYS. Some functions are actually named
1954 something starting with __ and the normal name is an alias. */
1955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1965 eval "ac_cv_func_$ac_func=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1970 eval "ac_cv_func_$ac_func=no"
1975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_func 1
1983 echo "$ac_t""no" 1>&6
1987 for ac_func in memalign valloc
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 eval "ac_cv_func_$ac_func=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 eval "ac_cv_func_$ac_func=no"
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2038 echo "$ac_t""no" 1>&6
2043 for ac_func in sigrelse
2045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2046 echo "configure:2047: checking for $ac_func" >&5
2047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2053 /* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $ac_func(); below. */
2056 /* Override any gcc2 internal prototype to avoid an error. */
2057 /* We use char because int might match the return type of a gcc2
2058 builtin and then its argument prototype would still apply. */
2063 /* The GNU C library defines this for functions which it implements
2064 to always fail with ENOSYS. Some functions are actually named
2065 something starting with __ and the normal name is an alias. */
2066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2076 eval "ac_cv_func_$ac_func=yes"
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 eval "ac_cv_func_$ac_func=no"
2086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2087 echo "$ac_t""yes" 1>&6
2088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2089 cat >> confdefs.h <<EOF
2090 #define $ac_tr_func 1
2094 echo "$ac_t""no" 1>&6
2100 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2101 echo "configure:2102: checking for getopt_long" >&5
2102 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* System header to define __stub macros and hopefully few prototypes,
2109 which can conflict with char getopt_long(); below. */
2111 /* Override any gcc2 internal prototype to avoid an error. */
2112 /* We use char because int might match the return type of a gcc2
2113 builtin and then its argument prototype would still apply. */
2118 /* The GNU C library defines this for functions which it implements
2119 to always fail with ENOSYS. Some functions are actually named
2120 something starting with __ and the normal name is an alias. */
2121 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2129 if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2131 eval "ac_cv_func_getopt_long=yes"
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 eval "ac_cv_func_getopt_long=no"
2141 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2142 echo "$ac_t""yes" 1>&6
2143 cat >> confdefs.h <<\EOF
2144 #define HAVE_GETOPT_LONG 1
2148 echo "$ac_t""no" 1>&6
2149 # FreeBSD has a gnugetopt library for this:
2150 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2151 echo "configure:2152: checking for getopt_long in -lgnugetopt" >&5
2152 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 ac_save_LIBS="$LIBS"
2157 LIBS="-lgnugetopt $LIBS"
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2161 /* Override any gcc2 internal prototype to avoid an error. */
2162 /* We use char because int might match the return type of a gcc2
2163 builtin and then its argument prototype would still apply. */
2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2172 eval "ac_cv_lib_$ac_lib_var=yes"
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2177 eval "ac_cv_lib_$ac_lib_var=no"
2180 LIBS="$ac_save_LIBS"
2183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 cat >> confdefs.h <<\EOF
2186 #define HAVE_GETOPT_LONG 1
2188 LIB="${LIB} -lgnugetopt"
2190 echo "$ac_t""no" 1>&6
2197 for ac_hdr in unistd.h
2199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_hdr" >&5
2202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2211 { (eval echo configure:2212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2213 if test -z "$ac_err"; then
2215 eval "ac_cv_header_$ac_safe=yes"
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 eval "ac_cv_header_$ac_safe=no"
2225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2228 cat >> confdefs.h <<EOF
2229 #define $ac_tr_hdr 1
2233 echo "$ac_t""no" 1>&6
2237 for ac_func in getpagesize
2239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_func" >&5
2241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $ac_func(); below. */
2250 /* Override any gcc2 internal prototype to avoid an error. */
2251 /* We use char because int might match the return type of a gcc2
2252 builtin and then its argument prototype would still apply. */
2257 /* The GNU C library defines this for functions which it implements
2258 to always fail with ENOSYS. Some functions are actually named
2259 something starting with __ and the normal name is an alias. */
2260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2268 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 eval "ac_cv_func_$ac_func=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 eval "ac_cv_func_$ac_func=no"
2280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2283 cat >> confdefs.h <<EOF
2284 #define $ac_tr_func 1
2288 echo "$ac_t""no" 1>&6
2292 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2293 echo "configure:2294: checking for working mmap" >&5
2294 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 if test "$cross_compiling" = yes; then
2298 ac_cv_func_mmap_fixed_mapped=no
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2304 /* Thanks to Mike Haertel and Jim Avera for this test.
2305 Here is a matrix of mmap possibilities:
2306 mmap private not fixed
2307 mmap private fixed at somewhere currently unmapped
2308 mmap private fixed at somewhere already mapped
2309 mmap shared not fixed
2310 mmap shared fixed at somewhere currently unmapped
2311 mmap shared fixed at somewhere already mapped
2312 For private mappings, we should verify that changes cannot be read()
2313 back from the file, nor mmap's back from the file at a different
2314 address. (There have been systems where private was not correctly
2315 implemented like the infamous i386 svr4.0, and systems where the
2316 VM page cache was not coherent with the filesystem buffer cache
2317 like early versions of FreeBSD and possibly contemporary NetBSD.)
2318 For shared mappings, we should conversely verify that changes get
2319 propogated back to all the places they're supposed to be.
2321 Grep wants private fixed already mapped.
2322 The main things grep needs to know about mmap are:
2323 * does it exist and is it safe to write into the mmap'd area
2324 * how to use it (BSD variants) */
2325 #include <sys/types.h>
2327 #include <sys/mman.h>
2329 #include <sys/stat.h>
2331 #ifdef HAVE_UNISTD_H
2332 # include <unistd.h>
2335 /* This mess was copied from the GNU getpagesize.h. */
2336 #ifndef HAVE_GETPAGESIZE
2338 /* Assume that all systems that can run configure have sys/param.h. */
2339 # ifndef HAVE_SYS_PARAM_H
2340 # define HAVE_SYS_PARAM_H 1
2343 # ifdef _SC_PAGESIZE
2344 # define getpagesize() sysconf(_SC_PAGESIZE)
2345 # else /* no _SC_PAGESIZE */
2346 # ifdef HAVE_SYS_PARAM_H
2347 # include <sys/param.h>
2348 # ifdef EXEC_PAGESIZE
2349 # define getpagesize() EXEC_PAGESIZE
2350 # else /* no EXEC_PAGESIZE */
2352 # define getpagesize() NBPG * CLSIZE
2355 # endif /* no CLSIZE */
2356 # else /* no NBPG */
2358 # define getpagesize() NBPC
2359 # else /* no NBPC */
2361 # define getpagesize() PAGESIZE
2362 # endif /* PAGESIZE */
2363 # endif /* no NBPC */
2364 # endif /* no NBPG */
2365 # endif /* no EXEC_PAGESIZE */
2366 # else /* no HAVE_SYS_PARAM_H */
2367 # define getpagesize() 8192 /* punt totally */
2368 # endif /* no HAVE_SYS_PARAM_H */
2369 # endif /* no _SC_PAGESIZE */
2371 #endif /* no HAVE_GETPAGESIZE */
2374 extern "C" { void *malloc(unsigned); }
2382 char *data, *data2, *data3;
2386 pagesize = getpagesize();
2389 * First, make a file with some known garbage in it.
2391 data = (char*)malloc(pagesize);
2394 for (i = 0; i < pagesize; ++i)
2395 *(data + i) = rand();
2397 fd = creat("conftestmmap", 0600);
2400 if (write(fd, data, pagesize) != pagesize)
2405 * Next, try to mmap the file at a fixed address which
2406 * already has something else allocated at it. If we can,
2407 * also make sure that we see the same garbage.
2409 fd = open("conftestmmap", O_RDWR);
2412 data2 = (char*)malloc(2 * pagesize);
2415 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2416 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2417 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2419 for (i = 0; i < pagesize; ++i)
2420 if (*(data + i) != *(data2 + i))
2424 * Finally, make sure that changes to the mapped area
2425 * do not percolate back to the file as seen by read().
2426 * (This is a bug on some variants of i386 svr4.0.)
2428 for (i = 0; i < pagesize; ++i)
2429 *(data2 + i) = *(data2 + i) + 1;
2430 data3 = (char*)malloc(pagesize);
2433 if (read(fd, data3, pagesize) != pagesize)
2435 for (i = 0; i < pagesize; ++i)
2436 if (*(data + i) != *(data3 + i))
2439 unlink("conftestmmap");
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2446 ac_cv_func_mmap_fixed_mapped=yes
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2451 ac_cv_func_mmap_fixed_mapped=no
2458 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2460 cat >> confdefs.h <<\EOF
2466 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2467 echo "configure:2468: checking return type of signal handlers" >&5
2468 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 #include <sys/types.h>
2480 extern "C" void (*signal (int, void (*)(int)))(int);
2482 void (*signal ()) ();
2489 if { (eval echo configure:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2491 ac_cv_type_signal=void
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 ac_cv_type_signal=int
2501 echo "$ac_t""$ac_cv_type_signal" 1>&6
2502 cat >> confdefs.h <<EOF
2503 #define RETSIGTYPE $ac_cv_type_signal
2507 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2508 echo "configure:2509: checking for dlopen in -ldl" >&5
2509 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 ac_save_LIBS="$LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 eval "ac_cv_lib_$ac_lib_var=yes"
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 eval "ac_cv_lib_$ac_lib_var=no"
2537 LIBS="$ac_save_LIBS"
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2548 echo "configure:2549: checking for pow in -lm" >&5
2549 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 ac_save_LIBS="$LIBS"
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 /* Override any gcc2 internal prototype to avoid an error. */
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2569 eval "ac_cv_lib_$ac_lib_var=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_lib_$ac_lib_var=no"
2577 LIBS="$ac_save_LIBS"
2580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 LIB_YUV="${LIB_YUV} -lm"
2584 echo "$ac_t""no" 1>&6
2589 if test "x${THREAD_LIB}" = xerror; then
2590 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2591 echo "configure:2592: checking for pthread_attr_init in -lpthread" >&5
2592 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 ac_save_LIBS="$LIBS"
2597 LIBS="-lpthread $LIBS"
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 /* Override any gcc2 internal prototype to avoid an error. */
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604 char pthread_attr_init();
2610 if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2612 eval "ac_cv_lib_$ac_lib_var=yes"
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2617 eval "ac_cv_lib_$ac_lib_var=no"
2620 LIBS="$ac_save_LIBS"
2623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 THREAD_LIB="-lpthread"
2627 echo "$ac_t""no" 1>&6
2631 if test "x${THREAD_LIB}" = xerror; then
2632 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2633 echo "configure:2634: checking for pthread_attr_init in -lpthreads" >&5
2634 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 ac_save_LIBS="$LIBS"
2639 LIBS="-lpthreads $LIBS"
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 /* Override any gcc2 internal prototype to avoid an error. */
2644 /* We use char because int might match the return type of a gcc2
2645 builtin and then its argument prototype would still apply. */
2646 char pthread_attr_init();
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2654 eval "ac_cv_lib_$ac_lib_var=yes"
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2659 eval "ac_cv_lib_$ac_lib_var=no"
2662 LIBS="$ac_save_LIBS"
2665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2667 THREAD_LIB="-lpthreads"
2669 echo "$ac_t""no" 1>&6
2673 if test "x${THREAD_LIB}" = xerror; then
2674 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2675 echo "configure:2676: checking for pthread_attr_init in -lc_r" >&5
2676 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 ac_save_LIBS="$LIBS"
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2685 /* Override any gcc2 internal prototype to avoid an error. */
2686 /* We use char because int might match the return type of a gcc2
2687 builtin and then its argument prototype would still apply. */
2688 char pthread_attr_init();
2694 if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2696 eval "ac_cv_lib_$ac_lib_var=yes"
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2701 eval "ac_cv_lib_$ac_lib_var=no"
2704 LIBS="$ac_save_LIBS"
2707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2711 echo "$ac_t""no" 1>&6
2715 if test "x${THREAD_LIB}" = xerror; then
2716 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2717 echo "configure:2718: checking for pthread_attr_init" >&5
2718 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 /* System header to define __stub macros and hopefully few prototypes,
2725 which can conflict with char pthread_attr_init(); below. */
2727 /* Override any gcc2 internal prototype to avoid an error. */
2728 /* We use char because int might match the return type of a gcc2
2729 builtin and then its argument prototype would still apply. */
2730 char pthread_attr_init();
2734 /* The GNU C library defines this for functions which it implements
2735 to always fail with ENOSYS. Some functions are actually named
2736 something starting with __ and the normal name is an alias. */
2737 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2740 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_func_pthread_attr_init=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 eval "ac_cv_func_pthread_attr_init=no"
2757 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2761 echo "$ac_t""no" 1>&6
2767 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2768 echo "configure:2769: checking for cthread_fork in -lthreads" >&5
2769 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 ac_save_LIBS="$LIBS"
2774 LIBS="-lthreads $LIBS"
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
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 cthread_fork();
2787 if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2789 eval "ac_cv_lib_$ac_lib_var=yes"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2794 eval "ac_cv_lib_$ac_lib_var=no"
2797 LIBS="$ac_save_LIBS"
2800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 THREAD_LIB="-lthreads"
2804 echo "$ac_t""no" 1>&6
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 #include <pthread.h>
2813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2814 egrep "pthread_cond_t" >/dev/null 2>&1; then
2817 cat >> confdefs.h <<\EOF
2818 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #include <strings.h>
2829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2830 egrep "strncasecmp" >/dev/null 2>&1; then
2833 cat >> confdefs.h <<\EOF
2834 #define STRNCASECMP_IN_STRINGS_H 1
2841 for ac_hdr in stddef.h getopt.h strings.h
2843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_hdr" >&5
2846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2855 { (eval echo configure:2856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2857 if test -z "$ac_err"; then
2859 eval "ac_cv_header_$ac_safe=yes"
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2865 eval "ac_cv_header_$ac_safe=no"
2869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2872 cat >> confdefs.h <<EOF
2873 #define $ac_tr_hdr 1
2877 echo "$ac_t""no" 1>&6
2881 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2885 echo "configure:2886: checking for $ac_hdr" >&5
2886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2895 { (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2897 if test -z "$ac_err"; then
2899 eval "ac_cv_header_$ac_safe=yes"
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2905 eval "ac_cv_header_$ac_safe=no"
2909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2912 cat >> confdefs.h <<EOF
2913 #define $ac_tr_hdr 1
2917 echo "$ac_t""no" 1>&6
2921 for ac_hdr in sys/soundcard.h machine/soundcard.h
2923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2925 echo "configure:2926: checking for $ac_hdr" >&5
2926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2935 { (eval echo configure:2936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2937 if test -z "$ac_err"; then
2939 eval "ac_cv_header_$ac_safe=yes"
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2945 eval "ac_cv_header_$ac_safe=no"
2949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2950 echo "$ac_t""yes" 1>&6
2951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2952 cat >> confdefs.h <<EOF
2953 #define $ac_tr_hdr 1
2957 echo "$ac_t""no" 1>&6
2961 for ac_hdr in dlfcn.h image.h
2963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2965 echo "configure:2966: checking for $ac_hdr" >&5
2966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2975 { (eval echo configure:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2977 if test -z "$ac_err"; then
2979 eval "ac_cv_header_$ac_safe=yes"
2982 echo "configure: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2985 eval "ac_cv_header_$ac_safe=no"
2989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2990 echo "$ac_t""yes" 1>&6
2991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2992 cat >> confdefs.h <<EOF
2993 #define $ac_tr_hdr 1
2997 echo "$ac_t""no" 1>&6
3001 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
3003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_hdr" >&5
3006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3015 { (eval echo configure:3016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3017 if test -z "$ac_err"; then
3019 eval "ac_cv_header_$ac_safe=yes"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3025 eval "ac_cv_header_$ac_safe=no"
3029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3030 echo "$ac_t""yes" 1>&6
3031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3032 cat >> confdefs.h <<EOF
3033 #define $ac_tr_hdr 1
3037 echo "$ac_t""no" 1>&6
3041 for ac_hdr in machine/param.h
3043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3045 echo "configure:3046: checking for $ac_hdr" >&5
3046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3055 { (eval echo configure:3056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3057 if test -z "$ac_err"; then
3059 eval "ac_cv_header_$ac_safe=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_header_$ac_safe=no"
3069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3070 echo "$ac_t""yes" 1>&6
3071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3072 cat >> confdefs.h <<EOF
3073 #define $ac_tr_hdr 1
3077 echo "$ac_t""no" 1>&6
3082 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_hdr" >&5
3087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3096 { (eval echo configure:3097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3098 if test -z "$ac_err"; then
3100 eval "ac_cv_header_$ac_safe=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 eval "ac_cv_header_$ac_safe=no"
3110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3111 echo "$ac_t""yes" 1>&6
3112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3113 cat >> confdefs.h <<EOF
3114 #define $ac_tr_hdr 1
3118 echo "$ac_t""no" 1>&6
3123 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3124 echo "configure:3125: checking for ntohl in sys/param.h" >&5
3125 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 CFLAGS="${save_CFLAGS} -Wall -Werror"
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 #include <sys/param.h>
3134 void foo() { int meuh; ntohl(meuh); }
3137 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3139 ac_cv_c_ntohl_sys_param_h=yes
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3144 ac_cv_c_ntohl_sys_param_h=no
3149 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3150 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3151 cat >> confdefs.h <<\EOF
3152 #define NTOHL_IN_SYS_PARAM_H 1
3157 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3158 echo "configure:3159: checking if \$CC accepts -finline-limit" >&5
3159 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 CFLAGS="${save_CFLAGS} -finline-limit-30000"
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3173 ac_cv_c_inline_limit=yes
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 ac_cv_c_inline_limit=no
3183 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3184 if test x"$ac_cv_c_inline_limit" != x"no"; then
3185 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3188 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3189 echo "configure:3190: checking if \$CC accepts -bundle -undefined error" >&5
3190 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 CFLAGS="${save_CFLAGS} -bundle -undefined error"
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3202 if { (eval echo configure:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3214 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3215 if test x"$ac_cv_ld_darwin" != x"no"; then
3216 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3219 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3220 echo "configure:3221: checking if \$CC accepts -shared" >&5
3221 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 CFLAGS="${save_CFLAGS} -shared"
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3233 if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3235 ac_cv_ld_plugins=yes
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3245 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3246 if test x"$ac_cv_ld_plugins" != x"no"; then
3247 PLCFLAGS="${PLCFLAGS} -shared"
3250 if test x"${SOFLAGS}" = x; then
3251 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3252 echo "configure:3253: checking for soname setting" >&5
3253 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3258 try_SOFLAGS="-Wl,-soname -Wl,"
3259 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 ac_cv_ld_soname="${try_SOFLAGS}"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3277 try_SOFLAGS="-Wl,-h -Wl,"
3278 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3287 if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3289 ac_cv_ld_soname="${try_SOFLAGS}"
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3294 ac_cv_ld_soname=none
3302 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3303 if test x"$ac_cv_ld_soname" != x"none"; then
3304 SOFLAGS=$ac_cv_ld_soname
3308 Your system doesn't seem to have support for dynamic linking. You may
3309 have problems using libdvdcss.
3315 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3316 echo "configure:3317: checking __attribute__ ((aligned ())) support" >&5
3317 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_cv_c_attribute_aligned=0
3321 CFLAGS="${save_CFLAGS} -Werror"
3322 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3328 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3331 if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3333 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3342 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3343 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3344 cat >> confdefs.h <<EOF
3345 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3350 CFLAGS="${save_CFLAGS}"
3351 LDFLAGS="${save_LDFLAGS}"
3353 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3354 echo "configure:3355: checking for boolean_t in sys/types.h" >&5
3355 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3363 void quux() { boolean_t foo; }
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368 ac_cv_c_boolean_t_sys_types_h=yes
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 ac_cv_c_boolean_t_sys_types_h=no
3378 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3379 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3380 cat >> confdefs.h <<\EOF
3381 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3386 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3387 echo "configure:3388: checking for boolean_t in pthread.h" >&5
3388 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <pthread.h>
3396 void quux() { boolean_t foo; }
3399 if { (eval echo configure:3400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401 ac_cv_c_boolean_t_pthread_h=yes
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3406 ac_cv_c_boolean_t_pthread_h=no
3411 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3412 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3413 cat >> confdefs.h <<\EOF
3414 #define BOOLEAN_T_IN_PTHREAD_H 1
3419 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3420 echo "configure:3421: checking for boolean_t in cthreads.h" >&5
3421 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <cthreads.h>
3429 void quux() { boolean_t foo; }
3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434 ac_cv_c_boolean_t_cthreads_h=yes
3436 echo "configure: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3439 ac_cv_c_boolean_t_cthreads_h=no
3444 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3445 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3446 cat >> confdefs.h <<\EOF
3447 #define BOOLEAN_T_IN_CTHREADS_H 1
3452 echo $ac_n "checking for working const""... $ac_c" 1>&6
3453 echo "configure:3454: checking for working const" >&5
3454 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3463 /* Ultrix mips cc rejects this. */
3464 typedef int charset[2]; const charset x = {0,0};
3465 /* SunOS 4.1.1 cc rejects this. */
3466 char const *const *ccp;
3468 /* NEC SVR4.0.2 mips cc rejects this. */
3469 struct point {int x, y;};
3470 static struct point const zero = {0,0};
3471 /* AIX XL C 1.02.0.0 rejects this.
3472 It does not let you subtract one const X* pointer from another in an arm
3473 of an if-expression whose if-part is not a constant expression */
3474 const char *g = "string";
3475 ccp = &g + (g ? g-g : 0);
3476 /* HPUX 7.0 cc rejects these. */
3479 ccp = (char const *const *) p;
3480 { /* SCO 3.2v4 cc rejects this. */
3482 char const *s = 0 ? (char *) 0 : (char const *) 0;
3486 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3488 const int *foo = &x[0];
3491 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3492 typedef const int *iptr;
3496 { /* AIX XL C 1.02.0.0 rejects this saying
3497 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3498 struct s { int j; const int *ap[3]; };
3499 struct s *b; b->j = 5;
3501 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3507 if { (eval echo configure:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3519 echo "$ac_t""$ac_cv_c_const" 1>&6
3520 if test $ac_cv_c_const = no; then
3521 cat >> confdefs.h <<\EOF
3527 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3528 echo "configure:3529: checking for ANSI C header files" >&5
3529 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3541 { (eval echo configure:3542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3543 if test -z "$ac_err"; then
3545 ac_cv_header_stdc=yes
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 ac_cv_header_stdc=no
3555 if test $ac_cv_header_stdc = yes; then
3556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3563 egrep "memchr" >/dev/null 2>&1; then
3567 ac_cv_header_stdc=no
3573 if test $ac_cv_header_stdc = yes; then
3574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581 egrep "free" >/dev/null 2>&1; then
3585 ac_cv_header_stdc=no
3591 if test $ac_cv_header_stdc = yes; then
3592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3593 if test "$cross_compiling" = yes; then
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3600 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3601 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3603 int main () { int i; for (i = 0; i < 256; i++)
3604 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 ac_cv_header_stdc=no
3623 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3624 if test $ac_cv_header_stdc = yes; then
3625 cat >> confdefs.h <<\EOF
3626 #define STDC_HEADERS 1
3631 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3632 echo "configure:3633: checking for size_t" >&5
3633 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <sys/types.h>
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3648 ac_cv_type_size_t=yes
3651 ac_cv_type_size_t=no
3656 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3657 if test $ac_cv_type_size_t = no; then
3658 cat >> confdefs.h <<\EOF
3659 #define size_t unsigned
3664 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3665 echo "configure:3666: checking whether time.h and sys/time.h may both be included" >&5
3666 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 #include <sys/types.h>
3673 #include <sys/time.h>
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3681 ac_cv_header_time=yes
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 ac_cv_header_time=no
3691 echo "$ac_t""$ac_cv_header_time" 1>&6
3692 if test $ac_cv_header_time = yes; then
3693 cat >> confdefs.h <<\EOF
3694 #define TIME_WITH_SYS_TIME 1
3703 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3704 PLUGINS="${PLUGINS}"
3706 MMX_MODULES="yuvmmx idctmmx motionmmx"
3707 MMXEXT_MODULES="idctmmxext motionmmxext"
3708 THREEDNOW_MODULES="imdct3dn downmix3dn"
3709 SSE_MODULES="imdctsse downmixsse"
3710 ALTIVEC_MODULES="idctaltivec motionaltivec"
3712 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3713 echo "configure:3714: checking if \$CC groks MMX inline assembly" >&5
3714 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3722 void quux(){void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));}
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727 ac_cv_mmx_inline=yes
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3737 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3738 if test x"$ac_cv_mmx_inline" != x"no"; then
3739 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3742 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3743 echo "configure:3744: checking if \$CC groks MMX EXT inline assembly" >&5
3744 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 void quux(){void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));}
3755 if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3757 ac_cv_mmxext_inline=yes
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 ac_cv_mmxext_inline=no
3767 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3768 if test x"$ac_cv_mmxext_inline" != x"no"; then
3769 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3772 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3773 echo "configure:3774: checking if \$CC groks 3D Now! inline assembly" >&5
3774 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3782 void quux(){void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));}
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3787 ac_cv_3dnow_inline=yes
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3792 ac_cv_3dnow_inline=no
3797 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3798 if test x"$ac_cv_3dnow_inline" != x"no"; then
3799 cat >> confdefs.h <<\EOF
3800 #define HAVE_3DNOW 1
3803 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3806 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3807 echo "configure:3808: checking if \$CC groks SSE inline assembly" >&5
3808 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3816 void quux(){void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));}
3819 if { (eval echo configure:3820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3821 ac_cv_sse_inline=yes
3823 echo "configure: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3831 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3832 if test x"$ac_cv_sse_inline" != x"no"; then
3833 cat >> confdefs.h <<\EOF
3837 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3840 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3841 echo "configure:3842: checking if \$CC groks Altivec inline assembly" >&5
3842 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3850 void quux(){asm volatile("vperm 0,1,2,3");}
3853 if { (eval echo configure:3854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3855 ac_cv_altivec_inline=yes
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3861 CFLAGS="$CFLAGS -Wa,-m7400"
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3867 void quux(){asm volatile("vperm 0,1,2,3");}
3870 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3872 ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 ac_cv_altivec_inline=no
3886 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3887 if test x"$ac_cv_altivec_inline" != x"no"; then
3888 cat >> confdefs.h <<\EOF
3889 #define HAVE_ALTIVEC 1
3892 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3895 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3896 echo "configure:3897: checking if \$CC groks Altivec C extensions" >&5
3897 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3901 CFLAGS="$CFLAGS -faltivec"
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3908 void quux(){vec_mtvscr((vector unsigned int)(0));}
3911 if { (eval echo configure:3912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3913 ac_cv_c_altivec=-faltivec
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3920 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3926 void quux(){vec_mtvscr((vector unsigned int)(0));}
3929 if { (eval echo configure:3930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3931 ac_cv_c_altivec="-fvec"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3946 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3947 if test x"$ac_cv_c_altivec" != x"no"; then
3948 cat >> confdefs.h <<\EOF
3949 #define HAVE_C_ALTIVEC 1
3952 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
3955 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
3956 echo "configure:3957: checking if linker needs -framework vecLib" >&5
3957 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 save_LDFLAGS=$LDFLAGS
3961 LDFLAGS="$LDFLAGS -framework vecLib"
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3972 ac_cv_ld_altivec=yes
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3980 LDFLAGS=$save_LDFLAGS
3984 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
3985 if test x"$ac_cv_ld_altivec" != x"no"; then
3986 LIB_ALTIVEC="-framework vecLib"
3990 CAN_BUILD_LIBDVDCSS=0
3992 for ac_hdr in winioctl.h
3994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_hdr" >&5
3997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4006 { (eval echo configure:4007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4008 if test -z "$ac_err"; then
4010 eval "ac_cv_header_$ac_safe=yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 eval "ac_cv_header_$ac_safe=no"
4020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4023 cat >> confdefs.h <<EOF
4024 #define $ac_tr_hdr 1
4027 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4030 echo "$ac_t""no" 1>&6
4035 for ac_hdr in sys/ioctl.h
4037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4039 echo "configure:4040: checking for $ac_hdr" >&5
4040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4049 { (eval echo configure:4050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4051 if test -z "$ac_err"; then
4053 eval "ac_cv_header_$ac_safe=yes"
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4059 eval "ac_cv_header_$ac_safe=no"
4063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4064 echo "$ac_t""yes" 1>&6
4065 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4066 cat >> confdefs.h <<EOF
4067 #define $ac_tr_hdr 1
4070 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4071 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4075 echo "configure:4076: checking for $ac_hdr" >&5
4076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4085 { (eval echo configure:4086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4087 if test -z "$ac_err"; then
4089 eval "ac_cv_header_$ac_safe=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_header_$ac_safe=no"
4099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4102 cat >> confdefs.h <<EOF
4103 #define $ac_tr_hdr 1
4107 echo "$ac_t""no" 1>&6
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 #include <sys/cdio.h>
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 egrep "dvd_struct" >/dev/null 2>&1; then
4122 cat >> confdefs.h <<\EOF
4123 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 #include <sys/cdio.h>
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 egrep "struct dvd_struct" >/dev/null 2>&1; then
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <sys/dvdio.h>
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 egrep "dvd_struct" >/dev/null 2>&1; then
4155 cat >> confdefs.h <<\EOF
4156 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <sys/dvdio.h>
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 egrep "struct dvd_struct" >/dev/null 2>&1; then
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 #include <linux/cdrom.h>
4184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185 egrep "dvd_struct" >/dev/null 2>&1; then
4188 cat >> confdefs.h <<\EOF
4189 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 egrep "dvd_struct" >/dev/null 2>&1; then
4207 cat >> confdefs.h <<\EOF
4208 #define DVD_STRUCT_IN_DVD_H 1
4211 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4217 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4221 echo "configure:4222: checking for $ac_hdr" >&5
4222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4231 { (eval echo configure:4232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4233 if test -z "$ac_err"; then
4235 eval "ac_cv_header_$ac_safe=yes"
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 eval "ac_cv_header_$ac_safe=no"
4245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4246 echo "$ac_t""yes" 1>&6
4247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4248 cat >> confdefs.h <<EOF
4249 #define $ac_tr_hdr 1
4253 cat >> confdefs.h <<\EOF
4254 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4257 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4261 echo "$ac_t""no" 1>&6
4269 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4271 echo "configure:4272: checking for sys/scsi/scsi_types.h" >&5
4272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278 #include <sys/scsi/scsi_types.h>
4280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283 if test -z "$ac_err"; then
4285 eval "ac_cv_header_$ac_safe=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_header_$ac_safe=no"
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4298 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4299 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4300 echo "configure:4301: checking for sys/scsi/impl/uscsi.h" >&5
4301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 #include <sys/scsi/impl/uscsi.h>
4309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4310 { (eval echo configure:4311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4312 if test -z "$ac_err"; then
4314 eval "ac_cv_header_$ac_safe=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_header_$ac_safe=no"
4324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4327 cat >> confdefs.h <<\EOF
4328 #define SOLARIS_USCSI 1
4333 echo "$ac_t""no" 1>&6
4338 echo "$ac_t""no" 1>&6
4341 if test x$LINUX_DVD_STRUCT = x1; then
4342 cat >> confdefs.h <<\EOF
4343 #define HAVE_LINUX_DVD_STRUCT 1
4347 if test x$BSD_DVD_STRUCT = x1; then
4348 cat >> confdefs.h <<\EOF
4349 #define HAVE_BSD_DVD_STRUCT 1
4356 echo "$ac_t""no" 1>&6
4362 case ${target_os} in
4374 # Check whether --with-tuning or --without-tuning was given.
4375 if test "${with_tuning+set}" = set; then
4376 withval="$with_tuning"
4380 if test "x$withval" != "x"; then
4383 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4385 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4389 # Check whether --enable-mmx or --disable-mmx was given.
4390 if test "${enable_mmx+set}" = set; then
4391 enableval="$enable_mmx"
4392 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4393 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4395 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";
4396 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4400 # Check whether --enable-altivec or --disable-altivec was given.
4401 if test "${enable_altivec+set}" = set; then
4402 enableval="$enable_altivec"
4403 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4404 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4406 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4407 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4412 # Check whether --enable-debug or --disable-debug was given.
4413 if test "${enable_debug+set}" = set; then
4414 enableval="$enable_debug"
4415 if test x$enableval = xyes; then DEBUG=1; fi
4420 # Check whether --enable-trace or --disable-trace was given.
4421 if test "${enable_trace+set}" = set; then
4422 enableval="$enable_trace"
4423 if test x$enableval = xyes; then TRACE=1; fi
4428 # Check whether --enable-gprof or --disable-gprof was given.
4429 if test "${enable_gprof+set}" = set; then
4430 enableval="$enable_gprof"
4431 if test x$enableval = xyes; then GPROF=1; fi
4436 # Check whether --enable-cprof or --disable-cprof was given.
4437 if test "${enable_cprof+set}" = set; then
4438 enableval="$enable_cprof"
4439 if test x$enableval = xyes;
4441 LIB="${LIB} -lcprof"
4448 # Check whether --enable-optimizations or --disable-optimizations was given.
4449 if test "${enable_optimizations+set}" = set; then
4450 enableval="$enable_optimizations"
4451 if test x$enableval = xno; then OPTIMS=0; fi
4457 # Check whether --enable-pth or --disable-pth was given.
4458 if test "${enable_pth+set}" = set; then
4459 enableval="$enable_pth"
4460 if test x$enableval = xyes; then
4461 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4462 echo "configure:4463: checking for pth_init in -lpth" >&5
4463 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 ac_save_LIBS="$LIBS"
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* Override any gcc2 internal prototype to avoid an error. */
4473 /* We use char because int might match the return type of a gcc2
4474 builtin and then its argument prototype would still apply. */
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 eval "ac_cv_lib_$ac_lib_var=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 eval "ac_cv_lib_$ac_lib_var=no"
4491 LIBS="$ac_save_LIBS"
4494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4497 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4498 cat >> confdefs.h <<EOF
4499 #define $ac_tr_lib 1
4505 echo "$ac_t""no" 1>&6
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4514 egrep "pth_init" >/dev/null 2>&1; then
4517 cat >> confdefs.h <<\EOF
4518 #define PTH_INIT_IN_PTH_H 1
4530 LIB="${LIB} ${THREAD_LIB}"
4535 # Check whether --with-dvdcss or --without-dvdcss was given.
4536 if test "${with_dvdcss+set}" = set; then
4537 withval="$with_dvdcss"
4538 case "x${withval}" in
4540 # local libdvdcss, statically linked
4541 if test x${CAN_BUILD_LIBDVDCSS} = x1
4545 BUILTINS="${BUILTINS} dvd"
4546 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4547 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4548 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4552 # local libdvdcss, dynamically linked
4553 if test x${CAN_BUILD_LIBDVDCSS} = x1
4556 BUILTINS="${BUILTINS} dvd"
4557 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4558 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4559 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4563 # don't use libdvdcss at all, build a DVD module that can dlopen() it
4565 BUILTINS="${BUILTINS} dvd"
4566 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4567 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4568 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4569 LIB_DVD="${LIB_DVD} -ldl"
4570 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4573 # existing libdvdcss
4574 BUILTINS="${BUILTINS} dvd"
4575 if test "x$withval" != "xyes"
4577 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4578 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4580 LIB_DVD="${LIB_DVD} -ldvdcss"
4581 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4584 # user didn't decide, we choose to use local libdvdcss and link statically
4585 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4586 if test x${CAN_BUILD_LIBDVDCSS} = x1
4590 BUILTINS="${BUILTINS} dvd"
4591 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4592 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4593 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4595 # XXX: no check for libdl is done, don't try this at home !
4597 BUILTINS="${BUILTINS} dvd"
4598 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4599 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4600 LIB_DVD="${LIB_DVD} -ldl"
4601 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4606 # Check whether --enable-vcd or --disable-vcd was given.
4607 if test "${enable_vcd+set}" = set; then
4608 enableval="$enable_vcd"
4613 if test x$enable_vcd != xno
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 #include <linux/cdrom.h>
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 egrep "cdrom_msf0" >/dev/null 2>&1; then
4624 BUILTINS="${BUILTINS} vcd"
4631 # Check whether --enable-dummy or --disable-dummy was given.
4632 if test "${enable_dummy+set}" = set; then
4633 enableval="$enable_dummy"
4638 if test x$enable_dummy != xno
4640 BUILTINS="${BUILTINS} dummy"
4643 # Check whether --enable-null or --disable-null was given.
4644 if test "${enable_null+set}" = set; then
4645 enableval="$enable_null"
4650 if test x$enable_null != xno
4652 BUILTINS="${BUILTINS} null"
4655 # Check whether --enable-rc or --disable-rc was given.
4656 if test "${enable_rc+set}" = set; then
4657 enableval="$enable_rc"
4662 if test x$enable_rc != xno
4664 BUILTINS="${BUILTINS} rc"
4667 if test x$SYS = xbeos
4669 BUILTINS="${BUILTINS} beos"
4670 LIB_BEOS="-lbe -lgame -lroot -ltracker"
4671 PLCFLAGS="${PLCFLAGS} -nostart"
4675 # Check whether --enable-dsp or --disable-dsp was given.
4676 if test "${enable_dsp+set}" = set; then
4677 enableval="$enable_dsp"
4682 if test x$enable_dsp != xno
4686 PLUGINS="${PLUGINS} dsp"
4690 # Check whether --enable-esd or --disable-esd was given.
4691 if test "${enable_esd+set}" = set; then
4692 enableval="$enable_esd"
4693 if test x$enable_esd = xyes
4695 # Extract the first word of "esd-config", so it can be a program name with args.
4696 set dummy esd-config; ac_word=$2
4697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_word" >&5
4699 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 case "$ESD_CONFIG" in
4704 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4707 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4712 for ac_dir in $ac_dummy; do
4713 test -z "$ac_dir" && ac_dir=.
4714 if test -f $ac_dir/$ac_word; then
4715 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4720 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4724 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4725 if test -n "$ESD_CONFIG"; then
4726 echo "$ac_t""$ESD_CONFIG" 1>&6
4728 echo "$ac_t""no" 1>&6
4731 if test x${ESD_CONFIG} != xno
4733 PLUGINS="${PLUGINS} esd"
4734 LIB_ESD="`${ESD_CONFIG} --libs`"
4740 # Check whether --enable-darwin or --disable-darwin was given.
4741 if test "${enable_darwin+set}" = set; then
4742 enableval="$enable_darwin"
4743 if test x$enable_darwin = xyes; then
4744 PLUGINS="${PLUGINS} darwin"
4745 LIB_DARWIN="-framework CoreAudio"
4750 # Check whether --enable-macosx or --disable-macosx was given.
4751 if test "${enable_macosx+set}" = set; then
4752 enableval="$enable_macosx"
4753 if test x$enable_macosx = xyes
4755 BUILTINS="${BUILTINS} macosx"
4756 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4760 for ac_hdr in Cocoa/Cocoa.h
4762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4764 echo "configure:4765: checking for $ac_hdr" >&5
4765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4774 { (eval echo configure:4775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4776 if test -z "$ac_err"; then
4778 eval "ac_cv_header_$ac_safe=yes"
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4784 eval "ac_cv_header_$ac_safe=no"
4788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4791 cat >> confdefs.h <<EOF
4792 #define $ac_tr_hdr 1
4794 BUILTINS="${BUILTINS} macosx"
4795 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4799 echo "$ac_t""no" 1>&6
4806 # Check whether --enable-qnx or --disable-qnx was given.
4807 if test "${enable_qnx+set}" = set; then
4808 enableval="$enable_qnx"
4812 if test x$enable_qnx != xno
4816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_hdr" >&5
4819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4828 { (eval echo configure:4829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4830 if test -z "$ac_err"; then
4832 eval "ac_cv_header_$ac_safe=yes"
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 eval "ac_cv_header_$ac_safe=no"
4842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4845 cat >> confdefs.h <<EOF
4846 #define $ac_tr_hdr 1
4849 PLUGINS="${PLUGINS} qnx"
4850 LIB_QNX="-lasound -lph"
4853 echo "$ac_t""no" 1>&6
4859 # Check whether --enable-fb or --disable-fb was given.
4860 if test "${enable_fb+set}" = set; then
4861 enableval="$enable_fb"
4862 if test x$enable_fb = xyes
4864 PLUGINS="${PLUGINS} fb"
4869 # Check whether --with-ggi or --without-ggi was given.
4870 if test "${with_ggi+set}" = set; then
4872 if test "x$withval" != "xno"
4874 PLUGINS="${PLUGINS} ggi"
4875 if test "x$withval" != "xyes"
4877 LIB_GGI="-l"$withval
4885 # Check whether --enable-sdl or --disable-sdl was given.
4886 if test "${enable_sdl+set}" = set; then
4887 enableval="$enable_sdl"
4891 if test "x$enable_sdl" != "xno"
4894 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4895 if test "${with_sdl_config_path+set}" = set; then
4896 withval="$with_sdl_config_path"
4897 if test "x$withval" != "xno"
4899 SDL_PATH=$withval:$PATH
4903 # Extract the first word of "sdl12-config", so it can be a program name with args.
4904 set dummy sdl12-config; ac_word=$2
4905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_word" >&5
4907 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 case "$SDL12_CONFIG" in
4912 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4915 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4919 ac_dummy="$SDL_PATH"
4920 for ac_dir in $ac_dummy; do
4921 test -z "$ac_dir" && ac_dir=.
4922 if test -f $ac_dir/$ac_word; then
4923 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4928 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4932 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4933 if test -n "$SDL12_CONFIG"; then
4934 echo "$ac_t""$SDL12_CONFIG" 1>&6
4936 echo "$ac_t""no" 1>&6
4939 SDL_CONFIG=${SDL12_CONFIG}
4940 SDL_HEADER="SDL12/SDL.h"
4941 if test x${SDL_CONFIG} = xno
4943 # Extract the first word of "sdl11-config", so it can be a program name with args.
4944 set dummy sdl11-config; ac_word=$2
4945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4946 echo "configure:4947: checking for $ac_word" >&5
4947 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 case "$SDL11_CONFIG" in
4952 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4955 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4959 ac_dummy="$SDL_PATH"
4960 for ac_dir in $ac_dummy; do
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f $ac_dir/$ac_word; then
4963 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4968 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4972 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4973 if test -n "$SDL11_CONFIG"; then
4974 echo "$ac_t""$SDL11_CONFIG" 1>&6
4976 echo "$ac_t""no" 1>&6
4979 SDL_CONFIG=${SDL11_CONFIG}
4980 SDL_HEADER="SDL11/SDL.h"
4982 if test x${SDL_CONFIG} = xno
4984 # Extract the first word of "sdl-config", so it can be a program name with args.
4985 set dummy sdl-config; ac_word=$2
4986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4987 echo "configure:4988: checking for $ac_word" >&5
4988 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4991 case "$SDL_CONFIG" in
4993 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4996 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5000 ac_dummy="$SDL_PATH"
5001 for ac_dir in $ac_dummy; do
5002 test -z "$ac_dir" && ac_dir=.
5003 if test -f $ac_dir/$ac_word; then
5004 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5009 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5013 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5014 if test -n "$SDL_CONFIG"; then
5015 echo "$ac_t""$SDL_CONFIG" 1>&6
5017 echo "$ac_t""no" 1>&6
5020 SDL_HEADER="SDL/SDL.h"
5022 if test x${SDL_CONFIG} != xno
5024 PLUGINS="${PLUGINS} sdl"
5025 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5026 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5027 save_CPPFLAGS=$CPPFLAGS
5028 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5029 for ac_hdr in ${SDL_HEADER}
5031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5033 echo "configure:5034: checking for $ac_hdr" >&5
5034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5043 { (eval echo configure:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5045 if test -z "$ac_err"; then
5047 eval "ac_cv_header_$ac_safe=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_header_$ac_safe=no"
5057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5060 cat >> confdefs.h <<EOF
5061 #define $ac_tr_hdr 1
5063 cat >> confdefs.h <<EOF
5064 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5068 echo "$ac_t""no" 1>&6
5069 { echo "configure: error: The development package for SDL is not installed.
5070 Please install it and try again. Alternatively you can also configure with
5071 --disable-sdl." 1>&2; exit 1; }
5076 CPPFLAGS=$save_CPPFLAGS
5077 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5079 { echo "configure: error: The development package for SDL is not installed.
5080 Please install it and try again. Alternatively you can also configure with
5081 --disable-sdl." 1>&2; exit 1; }
5083 elif test "x$enable_sdl" = "xyes"
5085 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5086 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5091 # Check whether --with-directx or --without-directx was given.
5092 if test "${with_directx+set}" = set; then
5093 withval="$with_directx"
5094 if test "x$withval" != "xno"
5096 PLUGINS="${PLUGINS} directx"
5097 if test "x$withval" != "xyes"
5099 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
5100 INCLUDE="${INCLUDE} -I"$withval"/include"
5102 for ac_hdr in directx.h
5104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_hdr" >&5
5107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5116 { (eval echo configure:5117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5118 if test -z "$ac_err"; then
5120 eval "ac_cv_header_$ac_safe=yes"
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 eval "ac_cv_header_$ac_safe=no"
5130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5133 cat >> confdefs.h <<EOF
5134 #define $ac_tr_hdr 1
5138 echo "$ac_t""no" 1>&6
5139 { echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; }
5144 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5149 if test "x$withval" = "x"
5151 for ac_hdr in directx.h
5153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5155 echo "configure:5156: checking for $ac_hdr" >&5
5156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5165 { (eval echo configure:5166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5167 if test -z "$ac_err"; then
5169 eval "ac_cv_header_$ac_safe=yes"
5172 echo "configure: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5175 eval "ac_cv_header_$ac_safe=no"
5179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5180 echo "$ac_t""yes" 1>&6
5181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5182 cat >> confdefs.h <<EOF
5183 #define $ac_tr_hdr 1
5185 PLUGINS="${PLUGINS} directx"
5186 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5188 echo "$ac_t""no" 1>&6
5194 # Check whether --with-glide or --without-glide was given.
5195 if test "${with_glide+set}" = set; then
5196 withval="$with_glide"
5197 if test "x$withval" != "xno"
5199 PLUGINS="${PLUGINS} glide"
5200 if test "x$withval" != "xyes"
5202 LIB_GLIDE="-l"$withval" -lm"
5204 LIB_GLIDE="-lglide2x -lm"
5210 # Check whether --enable-ncurses or --disable-ncurses was given.
5211 if test "${enable_ncurses+set}" = set; then
5212 enableval="$enable_ncurses"
5213 if test x$enable_ncurses = xyes; then
5214 PLUGINS="${PLUGINS} ncurses"
5215 LIB_NCURSES="-lncurses"
5220 # Check whether --enable-qt or --disable-qt was given.
5221 if test "${enable_qt+set}" = set; then
5222 enableval="$enable_qt"
5223 if test x$enable_qt = xyes; then
5224 PLUGINS="${PLUGINS} qt"
5225 ALIASES="${ALIASES} qvlc"
5226 LIB_QT="-lqt -L${QTDIR}/lib"
5227 if test -x ${QTDIR}/bin/moc
5229 MOC=${QTDIR}/bin/moc
5237 # Check whether --enable-kde or --disable-kde was given.
5238 if test "${enable_kde+set}" = set; then
5239 enableval="$enable_kde"
5240 if test x$enable_kde = xyes; then
5241 PLUGINS="${PLUGINS} kde"
5242 ALIASES="${ALIASES} kvlc"
5243 LIB_KDE="-L${KDEDIR}/lib -lkfile"
5244 if test -x ${QTDIR}/bin/moc
5246 MOC=${QTDIR}/bin/moc
5254 # Check whether --enable-gnome or --disable-gnome was given.
5255 if test "${enable_gnome+set}" = set; then
5256 enableval="$enable_gnome"
5257 if test x$enable_gnome = xyes; then
5258 # look for gnome-config
5259 # Extract the first word of "gnome-config", so it can be a program name with args.
5260 set dummy gnome-config; ac_word=$2
5261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5262 echo "configure:5263: checking for $ac_word" >&5
5263 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5266 case "$GNOME_CONFIG" in
5268 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5271 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5276 for ac_dir in $ac_dummy; do
5277 test -z "$ac_dir" && ac_dir=.
5278 if test -f $ac_dir/$ac_word; then
5279 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5284 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5288 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5289 if test -n "$GNOME_CONFIG"; then
5290 echo "$ac_t""$GNOME_CONFIG" 1>&6
5292 echo "$ac_t""no" 1>&6
5295 if test -x ${GNOME_CONFIG}
5297 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5298 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5300 # now look for the gnome.h header
5301 saved_CPPFLAGS=$CPPFLAGS
5302 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5303 for ac_hdr in gnome.h
5305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_hdr" >&5
5308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5317 { (eval echo configure:5318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5319 if test -z "$ac_err"; then
5321 eval "ac_cv_header_$ac_safe=yes"
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 eval "ac_cv_header_$ac_safe=no"
5331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5332 echo "$ac_t""yes" 1>&6
5333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5334 cat >> confdefs.h <<EOF
5335 #define $ac_tr_hdr 1
5338 PLUGINS="${PLUGINS} gnome"
5339 ALIASES="${ALIASES} gnome-vlc"
5342 echo "$ac_t""no" 1>&6
5343 { echo "configure: error: Can't find gnome headers. Please install the gnome
5344 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5350 CPPFLAGS=$saved_CPPFLAGS
5355 # Check whether --enable-gtk or --disable-gtk was given.
5356 if test "${enable_gtk+set}" = set; then
5357 enableval="$enable_gtk"
5361 if test x$enable_gtk != xno
5363 # look for gtk-config
5364 # Extract the first word of "gtk-config", so it can be a program name with args.
5365 set dummy gtk-config; ac_word=$2
5366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_word" >&5
5368 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 case "$GTK_CONFIG" in
5373 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5376 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5381 for ac_dir in $ac_dummy; do
5382 test -z "$ac_dir" && ac_dir=.
5383 if test -f $ac_dir/$ac_word; then
5384 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5389 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5393 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5394 if test -n "$GTK_CONFIG"; then
5395 echo "$ac_t""$GTK_CONFIG" 1>&6
5397 echo "$ac_t""no" 1>&6
5400 if test -x ${GTK_CONFIG}
5402 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5403 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5405 # now look for the gtk.h header
5406 saved_CPPFLAGS=$CPPFLAGS
5407 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5408 for ac_hdr in gtk/gtk.h
5410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5412 echo "configure:5413: checking for $ac_hdr" >&5
5413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5422 { (eval echo configure:5423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5424 if test -z "$ac_err"; then
5426 eval "ac_cv_header_$ac_safe=yes"
5429 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5
5432 eval "ac_cv_header_$ac_safe=no"
5436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5439 cat >> confdefs.h <<EOF
5440 #define $ac_tr_hdr 1
5443 PLUGINS="${PLUGINS} gtk"
5444 ALIASES="${ALIASES} gvlc"
5447 echo "$ac_t""no" 1>&6
5451 CPPFLAGS=$saved_CPPFLAGS
5454 # Check whether --enable-x11 or --disable-x11 was given.
5455 if test "${enable_x11+set}" = set; then
5456 enableval="$enable_x11"
5460 if test x$enable_x11 != xno; then
5461 if test x$x_includes = xNONE; then
5462 x_includes=/usr/X11R6/include
5464 if test x$x_libraries = xNONE; then
5465 x_libraries=/usr/X11R6/lib
5467 saved_CPPFLAGS=$CPPFLAGS
5468 CPPFLAGS="$CPPFLAGS -I$x_includes"
5469 for ac_hdr in X11/Xlib.h
5471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5473 echo "configure:5474: checking for $ac_hdr" >&5
5474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5483 { (eval echo configure:5484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5485 if test -z "$ac_err"; then
5487 eval "ac_cv_header_$ac_safe=yes"
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 eval "ac_cv_header_$ac_safe=no"
5497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5500 cat >> confdefs.h <<EOF
5501 #define $ac_tr_hdr 1
5504 PLUGINS="${PLUGINS} x11"
5505 LIB_X11="-L$x_libraries -lX11 -lXext"
5506 CFLAGS_X11="-I$x_includes"
5508 CPPFLAGS=$saved_CPPFLAGS
5510 echo "$ac_t""no" 1>&6
5516 # Check whether --enable-xvideo or --disable-xvideo was given.
5517 if test "${enable_xvideo+set}" = set; then
5518 enableval="$enable_xvideo"
5522 if test x$enable_xvideo != xno; then
5523 if test x$x_includes = xNONE; then
5524 x_includes=/usr/X11R6/include
5526 if test x$x_libraries = xNONE; then
5527 x_libraries=/usr/X11R6/lib
5529 saved_CPPFLAGS=$CPPFLAGS
5530 CPPFLAGS="$CPPFLAGS -I$x_includes"
5531 for ac_hdr in X11/extensions/Xv.h
5533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_hdr" >&5
5536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5545 { (eval echo configure:5546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5547 if test -z "$ac_err"; then
5549 eval "ac_cv_header_$ac_safe=yes"
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 eval "ac_cv_header_$ac_safe=no"
5559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5562 cat >> confdefs.h <<EOF
5563 #define $ac_tr_hdr 1
5566 BUILTINS="${BUILTINS} xvideo"
5567 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5568 CFLAGS_X11="-I$x_includes"
5570 CPPFLAGS=$saved_CPPFLAGS
5572 echo "$ac_t""no" 1>&6
5578 # Check whether --enable-alsa or --disable-alsa was given.
5579 if test "${enable_alsa+set}" = set; then
5580 enableval="$enable_alsa"
5581 if test x$enable_alsa = xyes
5583 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
5584 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
5585 echo "configure:5586: checking for sys/asoundlib.h" >&5
5586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 #include <sys/asoundlib.h>
5594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5595 { (eval echo configure:5596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5597 if test -z "$ac_err"; then
5599 eval "ac_cv_header_$ac_safe=yes"
5602 echo "configure: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5605 eval "ac_cv_header_$ac_safe=no"
5609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5610 echo "$ac_t""yes" 1>&6
5611 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5612 echo "configure:5613: checking for main in -lasound" >&5
5613 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 ac_save_LIBS="$LIBS"
5618 LIBS="-lasound $LIBS"
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5629 eval "ac_cv_lib_$ac_lib_var=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 eval "ac_cv_lib_$ac_lib_var=no"
5637 LIBS="$ac_save_LIBS"
5640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5641 echo "$ac_t""yes" 1>&6
5644 echo "$ac_t""no" 1>&6
5649 echo "$ac_t""no" 1>&6
5653 if test x$have_alsa = xtrue
5655 PLUGINS="${PLUGINS} alsa"
5664 # Check whether --enable-plugins or --disable-plugins was given.
5665 if test "${enable_plugins+set}" = set; then
5666 enableval="$enable_plugins"
5667 if test x$enable_plugins = xno
5669 BUILTINS="${BUILTINS} ${PLUGINS}"
5737 cat > confcache <<\EOF
5738 # This file is a shell script that caches the results of configure
5739 # tests run on this system so they can be shared between configure
5740 # scripts and configure runs. It is not useful on other systems.
5741 # If it contains results you don't want to keep, you may remove or edit it.
5743 # By default, configure uses ./config.cache as the cache file,
5744 # creating it if it does not exist already. You can give configure
5745 # the --cache-file=FILE option to use a different cache file; that is
5746 # what configure does when it calls configure scripts in
5747 # subdirectories, so they share the cache.
5748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5749 # config.status only pays attention to the cache file if you give it the
5750 # --recheck option to rerun configure.
5753 # The following way of writing the cache mishandles newlines in values,
5754 # but we know of no workaround that is simple, portable, and efficient.
5755 # So, don't put newlines in cache variables' values.
5756 # Ultrix sh set writes to stderr and can't be redirected directly,
5757 # and sets the high bit in the cache file unless we assign to the vars.
5759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5761 # `set' does not quote correctly, so add quotes (double-quote substitution
5762 # turns \\\\ into \\, and sed turns \\ into \).
5764 -e "s/'/'\\\\''/g" \
5765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5768 # `set' quotes correctly as required by POSIX, so do not add quotes.
5769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5772 if cmp -s $cache_file confcache; then
5775 if test -w $cache_file; then
5776 echo "updating cache $cache_file"
5777 cat confcache > $cache_file
5779 echo "not updating unwritable cache $cache_file"
5784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5787 # Let make expand exec_prefix.
5788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5790 # Any assignment to VPATH causes Sun make to only execute
5791 # the first set of double-colon rules, so remove it if not needed.
5792 # If there is a colon in the path, we need to keep it.
5793 if test "x$srcdir" = x.; then
5794 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5799 DEFS=-DHAVE_CONFIG_H
5801 # Without the "./", some shells look in PATH for config.status.
5802 : ${CONFIG_STATUS=./config.status}
5804 echo creating $CONFIG_STATUS
5805 rm -f $CONFIG_STATUS
5806 cat > $CONFIG_STATUS <<EOF
5808 # Generated automatically by configure.
5809 # Run this file to recreate the current configuration.
5810 # This directory was configured as follows,
5811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5813 # $0 $ac_configure_args
5815 # Compiler output produced by configure, useful for debugging
5816 # configure, is in ./config.log if it exists.
5818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5821 case "\$ac_option" in
5822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5826 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5828 -help | --help | --hel | --he | --h)
5829 echo "\$ac_cs_usage"; exit 0 ;;
5830 *) echo "\$ac_cs_usage"; exit 1 ;;
5834 ac_given_srcdir=$srcdir
5835 ac_given_INSTALL="$INSTALL"
5837 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5839 cat >> $CONFIG_STATUS <<EOF
5841 # Protect against being on the right side of a sed subst in config.status.
5842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5847 s%@CFLAGS@%$CFLAGS%g
5848 s%@CPPFLAGS@%$CPPFLAGS%g
5849 s%@CXXFLAGS@%$CXXFLAGS%g
5850 s%@FFLAGS@%$FFLAGS%g
5852 s%@LDFLAGS@%$LDFLAGS%g
5854 s%@exec_prefix@%$exec_prefix%g
5855 s%@prefix@%$prefix%g
5856 s%@program_transform_name@%$program_transform_name%g
5857 s%@bindir@%$bindir%g
5858 s%@sbindir@%$sbindir%g
5859 s%@libexecdir@%$libexecdir%g
5860 s%@datadir@%$datadir%g
5861 s%@sysconfdir@%$sysconfdir%g
5862 s%@sharedstatedir@%$sharedstatedir%g
5863 s%@localstatedir@%$localstatedir%g
5864 s%@libdir@%$libdir%g
5865 s%@includedir@%$includedir%g
5866 s%@oldincludedir@%$oldincludedir%g
5867 s%@infodir@%$infodir%g
5868 s%@mandir@%$mandir%g
5870 s%@host_alias@%$host_alias%g
5871 s%@host_cpu@%$host_cpu%g
5872 s%@host_vendor@%$host_vendor%g
5873 s%@host_os@%$host_os%g
5874 s%@target@%$target%g
5875 s%@target_alias@%$target_alias%g
5876 s%@target_cpu@%$target_cpu%g
5877 s%@target_vendor@%$target_vendor%g
5878 s%@target_os@%$target_os%g
5880 s%@build_alias@%$build_alias%g
5881 s%@build_cpu@%$build_cpu%g
5882 s%@build_vendor@%$build_vendor%g
5883 s%@build_os@%$build_os%g
5884 s%@VLC_VERSION@%$VLC_VERSION%g
5885 s%@VLC_CODENAME@%$VLC_CODENAME%g
5886 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5887 s%@SET_MAKE@%$SET_MAKE%g
5890 s%@RANLIB@%$RANLIB%g
5891 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5892 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5893 s%@INSTALL_DATA@%$INSTALL_DATA%g
5894 s%@ESD_CONFIG@%$ESD_CONFIG%g
5895 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5896 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5897 s%@SDL_CONFIG@%$SDL_CONFIG%g
5898 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5899 s%@GTK_CONFIG@%$GTK_CONFIG%g
5902 s%@PLUGINS@%$PLUGINS%g
5903 s%@BUILTINS@%$BUILTINS%g
5904 s%@ALIASES@%$ALIASES%g
5905 s%@DEFINE@%$DEFINE%g
5906 s%@INCLUDE@%$INCLUDE%g
5912 s%@OPTIMS@%$OPTIMS%g
5913 s%@TUNING@%$TUNING%g
5914 s%@NEED_GETOPT@%$NEED_GETOPT%g
5916 s%@WINDRES@%$WINDRES%g
5917 s%@LCFLAGS@%$LCFLAGS%g
5918 s%@PLCFLAGS@%$PLCFLAGS%g
5919 s%@SOFLAGS@%$SOFLAGS%g
5921 s%@LIB_ALSA@%$LIB_ALSA%g
5922 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
5923 s%@LIB_BEOS@%$LIB_BEOS%g
5924 s%@LIB_DARWIN@%$LIB_DARWIN%g
5925 s%@LIB_DVD@%$LIB_DVD%g
5926 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5927 s%@LIB_ESD@%$LIB_ESD%g
5928 s%@LIB_GGI@%$LIB_GGI%g
5929 s%@LIB_GLIDE@%$LIB_GLIDE%g
5930 s%@LIB_GNOME@%$LIB_GNOME%g
5931 s%@LIB_GTK@%$LIB_GTK%g
5932 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5933 s%@LIB_KDE@%$LIB_KDE%g
5934 s%@LIB_MACOSX@%$LIB_MACOSX%g
5935 s%@LIB_QNX@%$LIB_QNX%g
5936 s%@LIB_NCURSES@%$LIB_NCURSES%g
5937 s%@LIB_QT@%$LIB_QT%g
5938 s%@LIB_TS@%$LIB_TS%g
5939 s%@LIB_SDL@%$LIB_SDL%g
5940 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5941 s%@LIB_X11@%$LIB_X11%g
5942 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5943 s%@LIB_YUV@%$LIB_YUV%g
5944 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5945 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
5946 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5947 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5948 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5949 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5950 s%@CFLAGS_X11@%$CFLAGS_X11%g
5951 s%@OBJ_DVD@%$OBJ_DVD%g
5952 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5953 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5958 cat >> $CONFIG_STATUS <<\EOF
5960 # Split the substitutions into bite-sized pieces for seds with
5961 # small command number limits, like on Digital OSF/1 and HP-UX.
5962 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5963 ac_file=1 # Number of current file.
5964 ac_beg=1 # First line for current file.
5965 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5968 while $ac_more_lines; do
5969 if test $ac_beg -gt 1; then
5970 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5972 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5974 if test ! -s conftest.s$ac_file; then
5976 rm -f conftest.s$ac_file
5978 if test -z "$ac_sed_cmds"; then
5979 ac_sed_cmds="sed -f conftest.s$ac_file"
5981 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5983 ac_file=`expr $ac_file + 1`
5985 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5988 if test -z "$ac_sed_cmds"; then
5993 cat >> $CONFIG_STATUS <<EOF
5995 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5997 cat >> $CONFIG_STATUS <<\EOF
5998 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6001 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6002 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6003 *) ac_file_in="${ac_file}.in" ;;
6006 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6008 # Remove last slash and all that follows it. Not all systems have dirname.
6009 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6010 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6011 # The file is in a subdirectory.
6012 test ! -d "$ac_dir" && mkdir "$ac_dir"
6013 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6014 # A "../" for each directory in $ac_dir_suffix.
6015 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6017 ac_dir_suffix= ac_dots=
6020 case "$ac_given_srcdir" in
6022 if test -z "$ac_dots"; then top_srcdir=.
6023 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6024 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6026 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6027 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6030 case "$ac_given_INSTALL" in
6031 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6032 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6035 echo creating "$ac_file"
6037 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6039 *Makefile*) ac_comsub="1i\\
6040 # $configure_input" ;;
6044 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6046 s%@configure_input@%$configure_input%g
6047 s%@srcdir@%$srcdir%g
6048 s%@top_srcdir@%$top_srcdir%g
6049 s%@INSTALL@%$INSTALL%g
6050 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6054 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6055 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6057 # ac_d sets the value in "#define NAME VALUE" lines.
6058 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6059 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6062 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6063 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6064 ac_uB='\([ ]\)%\1#\2define\3'
6067 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6068 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6069 ac_eB='$%\1#\2define\3'
6073 if test "${CONFIG_HEADERS+set}" != set; then
6075 cat >> $CONFIG_STATUS <<EOF
6076 CONFIG_HEADERS="include/defs.h"
6078 cat >> $CONFIG_STATUS <<\EOF
6080 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6083 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6084 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6085 *) ac_file_in="${ac_file}.in" ;;
6088 echo creating $ac_file
6090 rm -f conftest.frag conftest.in conftest.out
6091 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6092 cat $ac_file_inputs > conftest.in
6096 # Transform confdefs.h into a sed script conftest.vals that substitutes
6097 # the proper values into config.h.in to produce config.h. And first:
6098 # Protect against being on the right side of a sed subst in config.status.
6099 # Protect against being in an unquoted here document in config.status.
6101 cat > conftest.hdr <<\EOF
6104 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6108 sed -n -f conftest.hdr confdefs.h > conftest.vals
6111 # This sed command replaces #undef with comments. This is necessary, for
6112 # example, in the case of _POSIX_SOURCE, which is predefined and required
6113 # on some systems where configure will not decide to define it.
6114 cat >> conftest.vals <<\EOF
6115 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6118 # Break up conftest.vals because some shells have a limit on
6119 # the size of here documents, and old seds have small limits too.
6124 ac_lines=`grep -c . conftest.vals`
6125 # grep -c gives empty output for an empty file on some AIX systems.
6126 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6127 # Write a limited-size here document to conftest.frag.
6128 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6129 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6131 sed -f conftest.frag conftest.in > conftest.out
6133 mv conftest.out conftest.in
6135 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6137 mv conftest.tail conftest.vals
6141 cat >> $CONFIG_STATUS <<\EOF
6142 rm -f conftest.frag conftest.h
6143 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6144 cat conftest.in >> conftest.h
6146 if cmp -s $ac_file conftest.h 2>/dev/null; then
6147 echo "$ac_file is unchanged"
6150 # Remove last slash and all that follows it. Not all systems have dirname.
6151 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6152 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6153 # The file is in a subdirectory.
6154 test ! -d "$ac_dir" && mkdir "$ac_dir"
6157 mv conftest.h $ac_file
6162 cat >> $CONFIG_STATUS <<EOF
6165 cat >> $CONFIG_STATUS <<\EOF
6169 chmod +x $CONFIG_STATUS
6170 rm -fr confdefs* $ac_clean_files
6171 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6175 global configuration
6176 --------------------
6178 architecture : ${ARCH}
6179 optimizations : ${OPTIMS}
6180 tuning: : ${TUNING}"
6182 if test x${HAVE_VLC} = x1
6187 vlc version : ${VLC_VERSION}
6188 debug mode : ${DEBUG}
6189 trace mode : ${TRACE}
6190 cprof/gprof support : ${CPROF}/${GPROF}
6191 need builtin getopt : ${NEED_GETOPT}
6192 built-in modules :${BUILTINS}
6193 plug-in modules :${PLUGINS}
6194 vlc aliases :${ALIASES}"
6198 libdvdcss configuration
6199 -----------------------
6200 can be built : ${CAN_BUILD_LIBDVDCSS}
6201 will be built : ${NEED_LIBDVDCSS}"
6202 if test x${NEED_LIBDVDCSS} = x1
6204 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
6205 echo "link statically : ${STATIC_LIBDVDCSS}"
6207 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6211 You may now tune Makefile.opts at your convenience, for instance to choose
6212 which modules get compiled as plugins.
6214 if test x${HAVE_VLC} = x1
6216 echo "To build vlc and its plugins, type \`make vlc'."
6218 if test x${HAVE_LIBDVDCSS} = x1
6220 echo "To build libdvdcss only, type \`make libdvdcss'."