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 /* This mess was copied from the GNU getpagesize.h. */
2330 #ifndef HAVE_GETPAGESIZE
2331 # ifdef HAVE_UNISTD_H
2332 # include <unistd.h>
2335 /* Assume that all systems that can run configure have sys/param.h. */
2336 # ifndef HAVE_SYS_PARAM_H
2337 # define HAVE_SYS_PARAM_H 1
2340 # ifdef _SC_PAGESIZE
2341 # define getpagesize() sysconf(_SC_PAGESIZE)
2342 # else /* no _SC_PAGESIZE */
2343 # ifdef HAVE_SYS_PARAM_H
2344 # include <sys/param.h>
2345 # ifdef EXEC_PAGESIZE
2346 # define getpagesize() EXEC_PAGESIZE
2347 # else /* no EXEC_PAGESIZE */
2349 # define getpagesize() NBPG * CLSIZE
2352 # endif /* no CLSIZE */
2353 # else /* no NBPG */
2355 # define getpagesize() NBPC
2356 # else /* no NBPC */
2358 # define getpagesize() PAGESIZE
2359 # endif /* PAGESIZE */
2360 # endif /* no NBPC */
2361 # endif /* no NBPG */
2362 # endif /* no EXEC_PAGESIZE */
2363 # else /* no HAVE_SYS_PARAM_H */
2364 # define getpagesize() 8192 /* punt totally */
2365 # endif /* no HAVE_SYS_PARAM_H */
2366 # endif /* no _SC_PAGESIZE */
2368 #endif /* no HAVE_GETPAGESIZE */
2371 extern "C" { void *malloc(unsigned); }
2379 char *data, *data2, *data3;
2383 pagesize = getpagesize();
2386 * First, make a file with some known garbage in it.
2388 data = malloc(pagesize);
2391 for (i = 0; i < pagesize; ++i)
2392 *(data + i) = rand();
2394 fd = creat("conftestmmap", 0600);
2397 if (write(fd, data, pagesize) != pagesize)
2402 * Next, try to mmap the file at a fixed address which
2403 * already has something else allocated at it. If we can,
2404 * also make sure that we see the same garbage.
2406 fd = open("conftestmmap", O_RDWR);
2409 data2 = malloc(2 * pagesize);
2412 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2413 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2414 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2416 for (i = 0; i < pagesize; ++i)
2417 if (*(data + i) != *(data2 + i))
2421 * Finally, make sure that changes to the mapped area
2422 * do not percolate back to the file as seen by read().
2423 * (This is a bug on some variants of i386 svr4.0.)
2425 for (i = 0; i < pagesize; ++i)
2426 *(data2 + i) = *(data2 + i) + 1;
2427 data3 = malloc(pagesize);
2430 if (read(fd, data3, pagesize) != pagesize)
2432 for (i = 0; i < pagesize; ++i)
2433 if (*(data + i) != *(data3 + i))
2436 unlink("conftestmmap");
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2443 ac_cv_func_mmap_fixed_mapped=yes
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 ac_cv_func_mmap_fixed_mapped=no
2455 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2456 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2457 cat >> confdefs.h <<\EOF
2463 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2464 echo "configure:2465: checking return type of signal handlers" >&5
2465 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <sys/types.h>
2477 extern "C" void (*signal (int, void (*)(int)))(int);
2479 void (*signal ()) ();
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2488 ac_cv_type_signal=void
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2493 ac_cv_type_signal=int
2498 echo "$ac_t""$ac_cv_type_signal" 1>&6
2499 cat >> confdefs.h <<EOF
2500 #define RETSIGTYPE $ac_cv_type_signal
2504 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2505 echo "configure:2506: checking for dlopen in -ldl" >&5
2506 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 ac_save_LIBS="$LIBS"
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 /* Override any gcc2 internal prototype to avoid an error. */
2516 /* We use char because int might match the return type of a gcc2
2517 builtin and then its argument prototype would still apply. */
2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2526 eval "ac_cv_lib_$ac_lib_var=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 eval "ac_cv_lib_$ac_lib_var=no"
2534 LIBS="$ac_save_LIBS"
2537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2541 echo "$ac_t""no" 1>&6
2544 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2545 echo "configure:2546: checking for pow in -lm" >&5
2546 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 ac_save_LIBS="$LIBS"
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 /* Override any gcc2 internal prototype to avoid an error. */
2556 /* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2566 eval "ac_cv_lib_$ac_lib_var=yes"
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2571 eval "ac_cv_lib_$ac_lib_var=no"
2574 LIBS="$ac_save_LIBS"
2577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2579 LIB_YUV="${LIB_YUV} -lm"
2581 echo "$ac_t""no" 1>&6
2586 if test "x${THREAD_LIB}" = xerror; then
2587 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2588 echo "configure:2589: checking for pthread_attr_init in -lpthread" >&5
2589 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 ac_save_LIBS="$LIBS"
2594 LIBS="-lpthread $LIBS"
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 /* Override any gcc2 internal prototype to avoid an error. */
2599 /* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2601 char pthread_attr_init();
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2609 eval "ac_cv_lib_$ac_lib_var=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_lib_$ac_lib_var=no"
2617 LIBS="$ac_save_LIBS"
2620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 THREAD_LIB="-lpthread"
2624 echo "$ac_t""no" 1>&6
2628 if test "x${THREAD_LIB}" = xerror; then
2629 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2630 echo "configure:2631: checking for pthread_attr_init in -lpthreads" >&5
2631 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 ac_save_LIBS="$LIBS"
2636 LIBS="-lpthreads $LIBS"
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 /* Override any gcc2 internal prototype to avoid an error. */
2641 /* We use char because int might match the return type of a gcc2
2642 builtin and then its argument prototype would still apply. */
2643 char pthread_attr_init();
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2651 eval "ac_cv_lib_$ac_lib_var=yes"
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 eval "ac_cv_lib_$ac_lib_var=no"
2659 LIBS="$ac_save_LIBS"
2662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2664 THREAD_LIB="-lpthreads"
2666 echo "$ac_t""no" 1>&6
2670 if test "x${THREAD_LIB}" = xerror; then
2671 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2672 echo "configure:2673: checking for pthread_attr_init in -lc_r" >&5
2673 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 ac_save_LIBS="$LIBS"
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2685 char pthread_attr_init();
2691 if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2693 eval "ac_cv_lib_$ac_lib_var=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2698 eval "ac_cv_lib_$ac_lib_var=no"
2701 LIBS="$ac_save_LIBS"
2704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2708 echo "$ac_t""no" 1>&6
2712 if test "x${THREAD_LIB}" = xerror; then
2713 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2714 echo "configure:2715: checking for pthread_attr_init" >&5
2715 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2721 /* System header to define __stub macros and hopefully few prototypes,
2722 which can conflict with char pthread_attr_init(); below. */
2724 /* Override any gcc2 internal prototype to avoid an error. */
2725 /* We use char because int might match the return type of a gcc2
2726 builtin and then its argument prototype would still apply. */
2727 char pthread_attr_init();
2731 /* The GNU C library defines this for functions which it implements
2732 to always fail with ENOSYS. Some functions are actually named
2733 something starting with __ and the normal name is an alias. */
2734 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2737 pthread_attr_init();
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2744 eval "ac_cv_func_pthread_attr_init=yes"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2749 eval "ac_cv_func_pthread_attr_init=no"
2754 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2755 echo "$ac_t""yes" 1>&6
2758 echo "$ac_t""no" 1>&6
2764 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2765 echo "configure:2766: checking for cthread_fork in -lthreads" >&5
2766 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 ac_save_LIBS="$LIBS"
2771 LIBS="-lthreads $LIBS"
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 /* Override any gcc2 internal prototype to avoid an error. */
2776 /* We use char because int might match the return type of a gcc2
2777 builtin and then its argument prototype would still apply. */
2778 char cthread_fork();
2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2786 eval "ac_cv_lib_$ac_lib_var=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2791 eval "ac_cv_lib_$ac_lib_var=no"
2794 LIBS="$ac_save_LIBS"
2797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 THREAD_LIB="-lthreads"
2801 echo "$ac_t""no" 1>&6
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <pthread.h>
2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2811 egrep "pthread_cond_t" >/dev/null 2>&1; then
2814 cat >> confdefs.h <<\EOF
2815 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 #include <strings.h>
2826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827 egrep "strncasecmp" >/dev/null 2>&1; then
2830 cat >> confdefs.h <<\EOF
2831 #define STRNCASECMP_IN_STRINGS_H 1
2838 for ac_hdr in stddef.h getopt.h strings.h
2840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2842 echo "configure:2843: checking for $ac_hdr" >&5
2843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2852 { (eval echo configure:2853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2854 if test -z "$ac_err"; then
2856 eval "ac_cv_header_$ac_safe=yes"
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 eval "ac_cv_header_$ac_safe=no"
2866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2867 echo "$ac_t""yes" 1>&6
2868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2869 cat >> confdefs.h <<EOF
2870 #define $ac_tr_hdr 1
2874 echo "$ac_t""no" 1>&6
2878 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_hdr" >&5
2883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2892 { (eval echo configure:2893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2894 if test -z "$ac_err"; then
2896 eval "ac_cv_header_$ac_safe=yes"
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2902 eval "ac_cv_header_$ac_safe=no"
2906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
2908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2909 cat >> confdefs.h <<EOF
2910 #define $ac_tr_hdr 1
2914 echo "$ac_t""no" 1>&6
2918 for ac_hdr in sys/soundcard.h machine/soundcard.h
2920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2922 echo "configure:2923: checking for $ac_hdr" >&5
2923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2932 { (eval echo configure:2933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2934 if test -z "$ac_err"; then
2936 eval "ac_cv_header_$ac_safe=yes"
2939 echo "configure: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2942 eval "ac_cv_header_$ac_safe=no"
2946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_hdr 1
2954 echo "$ac_t""no" 1>&6
2958 for ac_hdr in dlfcn.h image.h
2960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_hdr" >&5
2963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2976 eval "ac_cv_header_$ac_safe=yes"
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 eval "ac_cv_header_$ac_safe=no"
2986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2989 cat >> confdefs.h <<EOF
2990 #define $ac_tr_hdr 1
2994 echo "$ac_t""no" 1>&6
2998 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
3000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_hdr" >&5
3003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3012 { (eval echo configure:3013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3014 if test -z "$ac_err"; then
3016 eval "ac_cv_header_$ac_safe=yes"
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 eval "ac_cv_header_$ac_safe=no"
3026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3029 cat >> confdefs.h <<EOF
3030 #define $ac_tr_hdr 1
3034 echo "$ac_t""no" 1>&6
3038 for ac_hdr in machine/param.h
3040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3042 echo "configure:3043: checking for $ac_hdr" >&5
3043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3052 { (eval echo configure:3053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3054 if test -z "$ac_err"; then
3056 eval "ac_cv_header_$ac_safe=yes"
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3062 eval "ac_cv_header_$ac_safe=no"
3066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3067 echo "$ac_t""yes" 1>&6
3068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3069 cat >> confdefs.h <<EOF
3070 #define $ac_tr_hdr 1
3074 echo "$ac_t""no" 1>&6
3079 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_hdr" >&5
3084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3093 { (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3095 if test -z "$ac_err"; then
3097 eval "ac_cv_header_$ac_safe=yes"
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3103 eval "ac_cv_header_$ac_safe=no"
3107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3110 cat >> confdefs.h <<EOF
3111 #define $ac_tr_hdr 1
3115 echo "$ac_t""no" 1>&6
3120 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3121 echo "configure:3122: checking for ntohl in sys/param.h" >&5
3122 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 CFLAGS="${save_CFLAGS} -Wall -Werror"
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <sys/param.h>
3131 void foo() { int meuh; ntohl(meuh); }
3134 if { (eval echo configure:3135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3136 ac_cv_c_ntohl_sys_param_h=yes
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 ac_cv_c_ntohl_sys_param_h=no
3146 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3147 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3148 cat >> confdefs.h <<\EOF
3149 #define NTOHL_IN_SYS_PARAM_H 1
3154 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3155 echo "configure:3156: checking if \$CC accepts -finline-limit" >&5
3156 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 CFLAGS="${save_CFLAGS} -finline-limit-30000"
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3168 if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 ac_cv_c_inline_limit=yes
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 ac_cv_c_inline_limit=no
3180 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3181 if test x"$ac_cv_c_inline_limit" != x"no"; then
3182 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3185 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3186 echo "configure:3187: checking if \$CC accepts -bundle -undefined error" >&5
3187 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 CFLAGS="${save_CFLAGS} -bundle -undefined error"
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3199 if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3211 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3212 if test x"$ac_cv_ld_darwin" != x"no"; then
3213 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3216 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3217 echo "configure:3218: checking if \$CC accepts -shared" >&5
3218 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 CFLAGS="${save_CFLAGS} -shared"
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3230 if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3232 ac_cv_ld_plugins=yes
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3242 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3243 if test x"$ac_cv_ld_plugins" != x"no"; then
3244 PLCFLAGS="${PLCFLAGS} -shared"
3247 if test x"${SOFLAGS}" = x; then
3248 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3249 echo "configure:3250: checking for soname setting" >&5
3250 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3255 try_SOFLAGS="-Wl,-soname -Wl,"
3256 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3265 if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3267 ac_cv_ld_soname="${try_SOFLAGS}"
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3274 try_SOFLAGS="-Wl,-h -Wl,"
3275 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3284 if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3286 ac_cv_ld_soname="${try_SOFLAGS}"
3288 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3291 ac_cv_ld_soname=none
3299 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3300 if test x"$ac_cv_ld_soname" != x"none"; then
3301 SOFLAGS=$ac_cv_ld_soname
3305 Your system doesn't seem to have support for dynamic linking. You may
3306 have problems using libdvdcss.
3312 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3313 echo "configure:3314: checking __attribute__ ((aligned ())) support" >&5
3314 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 ac_cv_c_attribute_aligned=0
3318 CFLAGS="${save_CFLAGS} -Werror"
3319 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3325 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3330 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3339 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3340 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3341 cat >> confdefs.h <<EOF
3342 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3347 CFLAGS="${save_CFLAGS}"
3348 LDFLAGS="${save_LDFLAGS}"
3350 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3351 echo "configure:3352: checking for boolean_t in sys/types.h" >&5
3352 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3360 void quux() { boolean_t foo; }
3363 if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 ac_cv_c_boolean_t_sys_types_h=yes
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 ac_cv_c_boolean_t_sys_types_h=no
3375 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3376 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3377 cat >> confdefs.h <<\EOF
3378 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3383 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3384 echo "configure:3385: checking for boolean_t in pthread.h" >&5
3385 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <pthread.h>
3393 void quux() { boolean_t foo; }
3396 if { (eval echo configure:3397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3398 ac_cv_c_boolean_t_pthread_h=yes
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 ac_cv_c_boolean_t_pthread_h=no
3408 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3409 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3410 cat >> confdefs.h <<\EOF
3411 #define BOOLEAN_T_IN_PTHREAD_H 1
3416 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3417 echo "configure:3418: checking for boolean_t in cthreads.h" >&5
3418 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <cthreads.h>
3426 void quux() { boolean_t foo; }
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3431 ac_cv_c_boolean_t_cthreads_h=yes
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 ac_cv_c_boolean_t_cthreads_h=no
3441 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3442 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3443 cat >> confdefs.h <<\EOF
3444 #define BOOLEAN_T_IN_CTHREADS_H 1
3449 echo $ac_n "checking for working const""... $ac_c" 1>&6
3450 echo "configure:3451: checking for working const" >&5
3451 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3460 /* Ultrix mips cc rejects this. */
3461 typedef int charset[2]; const charset x;
3462 /* SunOS 4.1.1 cc rejects this. */
3463 char const *const *ccp;
3465 /* NEC SVR4.0.2 mips cc rejects this. */
3466 struct point {int x, y;};
3467 static struct point const zero = {0,0};
3468 /* AIX XL C 1.02.0.0 rejects this.
3469 It does not let you subtract one const X* pointer from another in an arm
3470 of an if-expression whose if-part is not a constant expression */
3471 const char *g = "string";
3472 ccp = &g + (g ? g-g : 0);
3473 /* HPUX 7.0 cc rejects these. */
3476 ccp = (char const *const *) p;
3477 { /* SCO 3.2v4 cc rejects this. */
3479 char const *s = 0 ? (char *) 0 : (char const *) 0;
3483 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3485 const int *foo = &x[0];
3488 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3489 typedef const int *iptr;
3493 { /* AIX XL C 1.02.0.0 rejects this saying
3494 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3495 struct s { int j; const int *ap[3]; };
3496 struct s *b; b->j = 5;
3498 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3516 echo "$ac_t""$ac_cv_c_const" 1>&6
3517 if test $ac_cv_c_const = no; then
3518 cat >> confdefs.h <<\EOF
3524 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3525 echo "configure:3526: checking for ANSI C header files" >&5
3526 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3538 { (eval echo configure:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3540 if test -z "$ac_err"; then
3542 ac_cv_header_stdc=yes
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 ac_cv_header_stdc=no
3552 if test $ac_cv_header_stdc = yes; then
3553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 egrep "memchr" >/dev/null 2>&1; then
3564 ac_cv_header_stdc=no
3570 if test $ac_cv_header_stdc = yes; then
3571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "free" >/dev/null 2>&1; then
3582 ac_cv_header_stdc=no
3588 if test $ac_cv_header_stdc = yes; then
3589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590 if test "$cross_compiling" = yes; then
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3597 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3598 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3600 int main () { int i; for (i = 0; i < 256; i++)
3601 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 ac_cv_header_stdc=no
3620 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3621 if test $ac_cv_header_stdc = yes; then
3622 cat >> confdefs.h <<\EOF
3623 #define STDC_HEADERS 1
3628 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3629 echo "configure:3630: checking for size_t" >&5
3630 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 #include <sys/types.h>
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3645 ac_cv_type_size_t=yes
3648 ac_cv_type_size_t=no
3653 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3654 if test $ac_cv_type_size_t = no; then
3655 cat >> confdefs.h <<\EOF
3656 #define size_t unsigned
3661 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3662 echo "configure:3663: checking whether time.h and sys/time.h may both be included" >&5
3663 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <sys/types.h>
3670 #include <sys/time.h>
3676 if { (eval echo configure:3677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3678 ac_cv_header_time=yes
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 ac_cv_header_time=no
3688 echo "$ac_t""$ac_cv_header_time" 1>&6
3689 if test $ac_cv_header_time = yes; then
3690 cat >> confdefs.h <<\EOF
3691 #define TIME_WITH_SYS_TIME 1
3700 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3701 PLUGINS="${PLUGINS}"
3703 MMX_MODULES="yuvmmx idctmmx motionmmx"
3704 MMXEXT_MODULES="idctmmxext motionmmxext"
3705 THREEDNOW_MODULES="imdct3dn downmix3dn"
3706 SSE_MODULES="imdctsse downmixsse"
3707 ALTIVEC_MODULES="idctaltivec motionaltivec"
3709 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3710 echo "configure:3711: checking if \$CC groks MMX inline assembly" >&5
3711 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3719 void quux(){void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));}
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3724 ac_cv_mmx_inline=yes
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3734 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3735 if test x"$ac_cv_mmx_inline" != x"no"; then
3736 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3739 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3740 echo "configure:3741: checking if \$CC groks MMX EXT inline assembly" >&5
3741 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3749 void quux(){void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));}
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 ac_cv_mmxext_inline=yes
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 ac_cv_mmxext_inline=no
3764 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3765 if test x"$ac_cv_mmxext_inline" != x"no"; then
3766 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3769 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3770 echo "configure:3771: checking if \$CC groks 3D Now! inline assembly" >&5
3771 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3779 void quux(){void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));}
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784 ac_cv_3dnow_inline=yes
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 ac_cv_3dnow_inline=no
3794 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3795 if test x"$ac_cv_3dnow_inline" != x"no"; then
3796 cat >> confdefs.h <<\EOF
3797 #define HAVE_3DNOW 1
3800 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3803 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3804 echo "configure:3805: checking if \$CC groks SSE inline assembly" >&5
3805 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3813 void quux(){void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));}
3816 if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3818 ac_cv_sse_inline=yes
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3828 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3829 if test x"$ac_cv_sse_inline" != x"no"; then
3830 cat >> confdefs.h <<\EOF
3834 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3837 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3838 echo "configure:3839: checking if \$CC groks Altivec inline assembly" >&5
3839 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3847 void quux(){asm volatile("vperm 0,1,2,3");}
3850 if { (eval echo configure:3851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3852 ac_cv_altivec_inline=yes
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3858 CFLAGS="$CFLAGS -Wa,-m7400"
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3864 void quux(){asm volatile("vperm 0,1,2,3");}
3867 if { (eval echo configure:3868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3869 ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3871 echo "configure: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3874 ac_cv_altivec_inline=no
3883 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3884 if test x"$ac_cv_altivec_inline" != x"no"; then
3885 cat >> confdefs.h <<\EOF
3886 #define HAVE_ALTIVEC 1
3889 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3892 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3893 echo "configure:3894: checking if \$CC groks Altivec C extensions" >&5
3894 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3898 CFLAGS="$CFLAGS -faltivec"
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3905 void quux(){vec_mtvscr((vector unsigned int)(0));}
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3910 ac_cv_c_altivec=-faltivec
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3917 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3923 void quux(){vec_mtvscr((vector unsigned int)(0));}
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 ac_cv_c_altivec="-fvec"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3943 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3944 if test x"$ac_cv_c_altivec" != x"no"; then
3945 cat >> confdefs.h <<\EOF
3946 #define HAVE_C_ALTIVEC 1
3949 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
3952 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
3953 echo "configure:3954: checking if linker needs -framework vecLib" >&5
3954 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 save_LDFLAGS=$LDFLAGS
3958 LDFLAGS="$LDFLAGS -framework vecLib"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969 ac_cv_ld_altivec=yes
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3977 LDFLAGS=$save_LDFLAGS
3981 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
3982 if test x"$ac_cv_ld_altivec" != x"no"; then
3983 LIB_ALTIVEC="-framework vecLib"
3987 CAN_BUILD_LIBDVDCSS=0
3989 for ac_hdr in winioctl.h
3991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3993 echo "configure:3994: checking for $ac_hdr" >&5
3994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4003 { (eval echo configure:4004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4005 if test -z "$ac_err"; then
4007 eval "ac_cv_header_$ac_safe=yes"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 eval "ac_cv_header_$ac_safe=no"
4017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4020 cat >> confdefs.h <<EOF
4021 #define $ac_tr_hdr 1
4024 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4027 echo "$ac_t""no" 1>&6
4032 for ac_hdr in sys/ioctl.h
4034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4036 echo "configure:4037: checking for $ac_hdr" >&5
4037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4046 { (eval echo configure:4047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4048 if test -z "$ac_err"; then
4050 eval "ac_cv_header_$ac_safe=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 eval "ac_cv_header_$ac_safe=no"
4060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4063 cat >> confdefs.h <<EOF
4064 #define $ac_tr_hdr 1
4067 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4068 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_hdr" >&5
4073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4082 { (eval echo configure:4083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4084 if test -z "$ac_err"; then
4086 eval "ac_cv_header_$ac_safe=yes"
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4092 eval "ac_cv_header_$ac_safe=no"
4096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4099 cat >> confdefs.h <<EOF
4100 #define $ac_tr_hdr 1
4104 echo "$ac_t""no" 1>&6
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #include <sys/cdio.h>
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 egrep "dvd_struct" >/dev/null 2>&1; then
4119 cat >> confdefs.h <<\EOF
4120 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/cdio.h>
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 egrep "struct dvd_struct" >/dev/null 2>&1; then
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 #include <sys/dvdio.h>
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 egrep "dvd_struct" >/dev/null 2>&1; then
4152 cat >> confdefs.h <<\EOF
4153 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4156 cat > conftest.$ac_ext <<EOF
4157 #line 4158 "configure"
4158 #include "confdefs.h"
4159 #include <sys/dvdio.h>
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 egrep "struct dvd_struct" >/dev/null 2>&1; then
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 #include <linux/cdrom.h>
4181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4182 egrep "dvd_struct" >/dev/null 2>&1; then
4185 cat >> confdefs.h <<\EOF
4186 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 egrep "dvd_struct" >/dev/null 2>&1; then
4204 cat >> confdefs.h <<\EOF
4205 #define DVD_STRUCT_IN_DVD_H 1
4208 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4214 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4218 echo "configure:4219: checking for $ac_hdr" >&5
4219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4228 { (eval echo configure:4229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4230 if test -z "$ac_err"; then
4232 eval "ac_cv_header_$ac_safe=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4238 eval "ac_cv_header_$ac_safe=no"
4242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_hdr 1
4250 cat >> confdefs.h <<\EOF
4251 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4254 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4258 echo "$ac_t""no" 1>&6
4266 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4267 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4268 echo "configure:4269: checking for sys/scsi/scsi_types.h" >&5
4269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 #include <sys/scsi/scsi_types.h>
4277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4278 { (eval echo configure:4279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4280 if test -z "$ac_err"; then
4282 eval "ac_cv_header_$ac_safe=yes"
4285 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4288 eval "ac_cv_header_$ac_safe=no"
4292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4293 echo "$ac_t""yes" 1>&6
4295 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4296 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4297 echo "configure:4298: checking for sys/scsi/impl/uscsi.h" >&5
4298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 #include <sys/scsi/impl/uscsi.h>
4306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4307 { (eval echo configure:4308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4309 if test -z "$ac_err"; then
4311 eval "ac_cv_header_$ac_safe=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 eval "ac_cv_header_$ac_safe=no"
4321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4322 echo "$ac_t""yes" 1>&6
4324 cat >> confdefs.h <<\EOF
4325 #define SOLARIS_USCSI 1
4330 echo "$ac_t""no" 1>&6
4335 echo "$ac_t""no" 1>&6
4338 if test x$LINUX_DVD_STRUCT = x1; then
4339 cat >> confdefs.h <<\EOF
4340 #define HAVE_LINUX_DVD_STRUCT 1
4344 if test x$BSD_DVD_STRUCT = x1; then
4345 cat >> confdefs.h <<\EOF
4346 #define HAVE_BSD_DVD_STRUCT 1
4353 echo "$ac_t""no" 1>&6
4359 case ${target_os} in
4371 # Check whether --with-tuning or --without-tuning was given.
4372 if test "${with_tuning+set}" = set; then
4373 withval="$with_tuning"
4377 if test "x$withval" != "x"; then
4380 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4382 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4386 # Check whether --enable-mmx or --disable-mmx was given.
4387 if test "${enable_mmx+set}" = set; then
4388 enableval="$enable_mmx"
4389 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4390 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4392 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";
4393 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4397 # Check whether --enable-altivec or --disable-altivec was given.
4398 if test "${enable_altivec+set}" = set; then
4399 enableval="$enable_altivec"
4400 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4401 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4403 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4404 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4409 # Check whether --enable-debug or --disable-debug was given.
4410 if test "${enable_debug+set}" = set; then
4411 enableval="$enable_debug"
4412 if test x$enableval = xyes; then DEBUG=1; fi
4417 # Check whether --enable-trace or --disable-trace was given.
4418 if test "${enable_trace+set}" = set; then
4419 enableval="$enable_trace"
4420 if test x$enableval = xyes; then TRACE=1; fi
4425 # Check whether --enable-gprof or --disable-gprof was given.
4426 if test "${enable_gprof+set}" = set; then
4427 enableval="$enable_gprof"
4428 if test x$enableval = xyes; then GPROF=1; fi
4433 # Check whether --enable-cprof or --disable-cprof was given.
4434 if test "${enable_cprof+set}" = set; then
4435 enableval="$enable_cprof"
4436 if test x$enableval = xyes;
4438 LIB="${LIB} -lcprof"
4445 # Check whether --enable-optimizations or --disable-optimizations was given.
4446 if test "${enable_optimizations+set}" = set; then
4447 enableval="$enable_optimizations"
4448 if test x$enableval = xno; then OPTIMS=0; fi
4454 # Check whether --enable-pth or --disable-pth was given.
4455 if test "${enable_pth+set}" = set; then
4456 enableval="$enable_pth"
4457 if test x$enableval = xyes; then
4458 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4459 echo "configure:4460: checking for pth_init in -lpth" >&5
4460 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 ac_save_LIBS="$LIBS"
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 eval "ac_cv_lib_$ac_lib_var=yes"
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 eval "ac_cv_lib_$ac_lib_var=no"
4488 LIBS="$ac_save_LIBS"
4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4495 cat >> confdefs.h <<EOF
4496 #define $ac_tr_lib 1
4502 echo "$ac_t""no" 1>&6
4505 cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511 egrep "pth_init" >/dev/null 2>&1; then
4514 cat >> confdefs.h <<\EOF
4515 #define PTH_INIT_IN_PTH_H 1
4527 LIB="${LIB} ${THREAD_LIB}"
4532 # Check whether --with-dvdcss or --without-dvdcss was given.
4533 if test "${with_dvdcss+set}" = set; then
4534 withval="$with_dvdcss"
4535 case "x${withval}" in
4537 # local libdvdcss, statically linked
4538 if test x${CAN_BUILD_LIBDVDCSS} = x1
4542 BUILTINS="${BUILTINS} dvd"
4543 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4544 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4545 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4549 # local libdvdcss, dynamically linked
4550 if test x${CAN_BUILD_LIBDVDCSS} = x1
4553 BUILTINS="${BUILTINS} dvd"
4554 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4555 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4556 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4560 # don't use libdvdcss at all, build a DVD module that can dlopen() it
4562 BUILTINS="${BUILTINS} dvd"
4563 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4564 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4565 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4566 LIB_DVD="${LIB_DVD} -ldl"
4567 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4570 # existing libdvdcss
4571 BUILTINS="${BUILTINS} dvd"
4572 if test "x$withval" != "xyes"
4574 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4575 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4577 LIB_DVD="${LIB_DVD} -ldvdcss"
4578 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4581 # user didn't decide, we choose to use local libdvdcss and link statically
4582 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4583 if test x${CAN_BUILD_LIBDVDCSS} = x1
4587 BUILTINS="${BUILTINS} dvd"
4588 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4589 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4590 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4592 # XXX: no check for libdl is done, don't try this at home !
4594 BUILTINS="${BUILTINS} dvd"
4595 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4596 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4597 LIB_DVD="${LIB_DVD} -ldl"
4598 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4603 # Check whether --enable-vcd or --disable-vcd was given.
4604 if test "${enable_vcd+set}" = set; then
4605 enableval="$enable_vcd"
4610 if test x$enable_vcd != xno
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #include <linux/cdrom.h>
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 egrep "cdrom_msf0" >/dev/null 2>&1; then
4621 BUILTINS="${BUILTINS} vcd"
4628 # Check whether --enable-dummy or --disable-dummy was given.
4629 if test "${enable_dummy+set}" = set; then
4630 enableval="$enable_dummy"
4635 if test x$enable_dummy != xno
4637 BUILTINS="${BUILTINS} dummy"
4640 # Check whether --enable-null or --disable-null was given.
4641 if test "${enable_null+set}" = set; then
4642 enableval="$enable_null"
4647 if test x$enable_null != xno
4649 BUILTINS="${BUILTINS} null"
4652 # Check whether --enable-rc or --disable-rc was given.
4653 if test "${enable_rc+set}" = set; then
4654 enableval="$enable_rc"
4659 if test x$enable_rc != xno
4661 BUILTINS="${BUILTINS} rc"
4664 if test x$SYS = xbeos
4666 BUILTINS="${BUILTINS} beos"
4667 LIB_BEOS="-lbe -lgame -lroot -ltracker"
4668 PLCFLAGS="${PLCFLAGS} -nostart"
4672 # Check whether --enable-dsp or --disable-dsp was given.
4673 if test "${enable_dsp+set}" = set; then
4674 enableval="$enable_dsp"
4679 if test x$enable_dsp != xno
4683 PLUGINS="${PLUGINS} dsp"
4687 # Check whether --enable-esd or --disable-esd was given.
4688 if test "${enable_esd+set}" = set; then
4689 enableval="$enable_esd"
4690 if test x$enable_esd = xyes
4692 # Extract the first word of "esd-config", so it can be a program name with args.
4693 set dummy esd-config; ac_word=$2
4694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4695 echo "configure:4696: checking for $ac_word" >&5
4696 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 case "$ESD_CONFIG" in
4701 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4704 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4709 for ac_dir in $ac_dummy; do
4710 test -z "$ac_dir" && ac_dir=.
4711 if test -f $ac_dir/$ac_word; then
4712 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4717 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4721 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4722 if test -n "$ESD_CONFIG"; then
4723 echo "$ac_t""$ESD_CONFIG" 1>&6
4725 echo "$ac_t""no" 1>&6
4728 if test x${ESD_CONFIG} != xno
4730 PLUGINS="${PLUGINS} esd"
4731 LIB_ESD="`${ESD_CONFIG} --libs`"
4737 # Check whether --enable-darwin or --disable-darwin was given.
4738 if test "${enable_darwin+set}" = set; then
4739 enableval="$enable_darwin"
4740 if test x$enable_darwin = xyes; then
4741 PLUGINS="${PLUGINS} darwin"
4742 LIB_DARWIN="-framework CoreAudio"
4747 # Check whether --enable-macosx or --disable-macosx was given.
4748 if test "${enable_macosx+set}" = set; then
4749 enableval="$enable_macosx"
4750 if test x$enable_macosx = xyes
4752 BUILTINS="${BUILTINS} macosx macosx_qt"
4753 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
4754 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4755 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4758 for ac_hdr in Carbon/Carbon.h
4760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4762 echo "configure:4763: checking for $ac_hdr" >&5
4763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4772 { (eval echo configure:4773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4774 if test -z "$ac_err"; then
4776 eval "ac_cv_header_$ac_safe=yes"
4779 echo "configure: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4782 eval "ac_cv_header_$ac_safe=no"
4786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4789 cat >> confdefs.h <<EOF
4790 #define $ac_tr_hdr 1
4792 BUILTINS="${BUILTINS} macosx macosx_qt"
4793 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
4794 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4795 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4798 echo "$ac_t""no" 1>&6
4805 # Check whether --enable-qnx or --disable-qnx was given.
4806 if test "${enable_qnx+set}" = set; then
4807 enableval="$enable_qnx"
4811 if test x$enable_qnx != xno
4815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_hdr" >&5
4818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4827 { (eval echo configure:4828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4829 if test -z "$ac_err"; then
4831 eval "ac_cv_header_$ac_safe=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 eval "ac_cv_header_$ac_safe=no"
4841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4842 echo "$ac_t""yes" 1>&6
4843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4844 cat >> confdefs.h <<EOF
4845 #define $ac_tr_hdr 1
4848 PLUGINS="${PLUGINS} qnx"
4849 LIB_QNX="-lasound -lph"
4852 echo "$ac_t""no" 1>&6
4858 # Check whether --enable-fb or --disable-fb was given.
4859 if test "${enable_fb+set}" = set; then
4860 enableval="$enable_fb"
4861 if test x$enable_fb = xyes
4863 PLUGINS="${PLUGINS} fb"
4868 # Check whether --with-ggi or --without-ggi was given.
4869 if test "${with_ggi+set}" = set; then
4871 if test "x$withval" != "xno"
4873 PLUGINS="${PLUGINS} ggi"
4874 if test "x$withval" != "xyes"
4876 LIB_GGI="-l"$withval
4884 # Check whether --enable-sdl or --disable-sdl was given.
4885 if test "${enable_sdl+set}" = set; then
4886 enableval="$enable_sdl"
4890 if test "x$enable_sdl" != "xno"
4893 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4894 if test "${with_sdl_config_path+set}" = set; then
4895 withval="$with_sdl_config_path"
4896 if test "x$withval" != "xno"
4898 SDL_PATH=$withval:$PATH
4902 # Extract the first word of "sdl12-config", so it can be a program name with args.
4903 set dummy sdl12-config; ac_word=$2
4904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_word" >&5
4906 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 case "$SDL12_CONFIG" in
4911 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4914 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4918 ac_dummy="$SDL_PATH"
4919 for ac_dir in $ac_dummy; do
4920 test -z "$ac_dir" && ac_dir=.
4921 if test -f $ac_dir/$ac_word; then
4922 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4927 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4931 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4932 if test -n "$SDL12_CONFIG"; then
4933 echo "$ac_t""$SDL12_CONFIG" 1>&6
4935 echo "$ac_t""no" 1>&6
4938 SDL_CONFIG=${SDL12_CONFIG}
4939 SDL_HEADER="SDL12/SDL.h"
4940 if test x${SDL_CONFIG} = xno
4942 # Extract the first word of "sdl11-config", so it can be a program name with args.
4943 set dummy sdl11-config; ac_word=$2
4944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_word" >&5
4946 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 case "$SDL11_CONFIG" in
4951 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4954 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4958 ac_dummy="$SDL_PATH"
4959 for ac_dir in $ac_dummy; do
4960 test -z "$ac_dir" && ac_dir=.
4961 if test -f $ac_dir/$ac_word; then
4962 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4967 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4971 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4972 if test -n "$SDL11_CONFIG"; then
4973 echo "$ac_t""$SDL11_CONFIG" 1>&6
4975 echo "$ac_t""no" 1>&6
4978 SDL_CONFIG=${SDL11_CONFIG}
4979 SDL_HEADER="SDL11/SDL.h"
4981 if test x${SDL_CONFIG} = xno
4983 # Extract the first word of "sdl-config", so it can be a program name with args.
4984 set dummy sdl-config; ac_word=$2
4985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4986 echo "configure:4987: checking for $ac_word" >&5
4987 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 case "$SDL_CONFIG" in
4992 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4995 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4999 ac_dummy="$SDL_PATH"
5000 for ac_dir in $ac_dummy; do
5001 test -z "$ac_dir" && ac_dir=.
5002 if test -f $ac_dir/$ac_word; then
5003 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5008 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5012 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5013 if test -n "$SDL_CONFIG"; then
5014 echo "$ac_t""$SDL_CONFIG" 1>&6
5016 echo "$ac_t""no" 1>&6
5019 SDL_HEADER="SDL/SDL.h"
5021 if test x${SDL_CONFIG} != xno
5023 PLUGINS="${PLUGINS} sdl"
5024 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5025 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5026 save_CPPFLAGS=$CPPFLAGS
5027 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5028 for ac_hdr in ${SDL_HEADER}
5030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_hdr" >&5
5033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5042 { (eval echo configure:5043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5044 if test -z "$ac_err"; then
5046 eval "ac_cv_header_$ac_safe=yes"
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5052 eval "ac_cv_header_$ac_safe=no"
5056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5057 echo "$ac_t""yes" 1>&6
5058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5059 cat >> confdefs.h <<EOF
5060 #define $ac_tr_hdr 1
5062 cat >> confdefs.h <<EOF
5063 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5067 echo "$ac_t""no" 1>&6
5068 { echo "configure: error: The development package for SDL is not installed.
5069 Please install it and try again. Alternatively you can also configure with
5070 --disable-sdl." 1>&2; exit 1; }
5075 CPPFLAGS=$save_CPPFLAGS
5076 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5078 { echo "configure: error: The development package for SDL is not installed.
5079 Please install it and try again. Alternatively you can also configure with
5080 --disable-sdl." 1>&2; exit 1; }
5082 elif test "x$enable_sdl" = "xyes"
5084 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5085 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5090 # Check whether --with-directx or --without-directx was given.
5091 if test "${with_directx+set}" = set; then
5092 withval="$with_directx"
5093 if test "x$withval" != "xno"
5095 PLUGINS="${PLUGINS} directx"
5096 if test "x$withval" != "xyes"
5098 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
5099 INCLUDE="${INCLUDE} -I"$withval"/include"
5101 for ac_hdr in directx.h
5103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5105 echo "configure:5106: checking for $ac_hdr" >&5
5106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5115 { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5117 if test -z "$ac_err"; then
5119 eval "ac_cv_header_$ac_safe=yes"
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 eval "ac_cv_header_$ac_safe=no"
5129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5130 echo "$ac_t""yes" 1>&6
5131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5132 cat >> confdefs.h <<EOF
5133 #define $ac_tr_hdr 1
5137 echo "$ac_t""no" 1>&6
5138 { echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; }
5143 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5148 if test "x$withval" = "x"
5150 for ac_hdr in directx.h
5152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_hdr" >&5
5155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5164 { (eval echo configure:5165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5166 if test -z "$ac_err"; then
5168 eval "ac_cv_header_$ac_safe=yes"
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5174 eval "ac_cv_header_$ac_safe=no"
5178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5179 echo "$ac_t""yes" 1>&6
5180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5181 cat >> confdefs.h <<EOF
5182 #define $ac_tr_hdr 1
5184 PLUGINS="${PLUGINS} directx"
5185 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5187 echo "$ac_t""no" 1>&6
5193 # Check whether --with-glide or --without-glide was given.
5194 if test "${with_glide+set}" = set; then
5195 withval="$with_glide"
5196 if test "x$withval" != "xno"
5198 PLUGINS="${PLUGINS} glide"
5199 if test "x$withval" != "xyes"
5201 LIB_GLIDE="-l"$withval" -lm"
5203 LIB_GLIDE="-lglide2x -lm"
5209 # Check whether --enable-ncurses or --disable-ncurses was given.
5210 if test "${enable_ncurses+set}" = set; then
5211 enableval="$enable_ncurses"
5212 if test x$enable_ncurses = xyes; then
5213 PLUGINS="${PLUGINS} ncurses"
5214 LIB_NCURSES="-lncurses"
5219 # Check whether --enable-qt or --disable-qt was given.
5220 if test "${enable_qt+set}" = set; then
5221 enableval="$enable_qt"
5222 if test x$enable_qt = xyes; then
5223 PLUGINS="${PLUGINS} qt"
5224 ALIASES="${ALIASES} qvlc"
5225 LIB_QT="-lqt -L${QTDIR}/lib"
5226 if test -x ${QTDIR}/bin/moc
5228 MOC=${QTDIR}/bin/moc
5236 # Check whether --enable-kde or --disable-kde was given.
5237 if test "${enable_kde+set}" = set; then
5238 enableval="$enable_kde"
5239 if test x$enable_kde = xyes; then
5240 PLUGINS="${PLUGINS} kde"
5241 ALIASES="${ALIASES} kvlc"
5242 LIB_KDE="-L${KDEDIR}/lib -lkfile"
5243 if test -x ${QTDIR}/bin/moc
5245 MOC=${QTDIR}/bin/moc
5253 # Check whether --enable-gnome or --disable-gnome was given.
5254 if test "${enable_gnome+set}" = set; then
5255 enableval="$enable_gnome"
5256 if test x$enable_gnome = xyes; then
5257 # look for gnome-config
5258 # Extract the first word of "gnome-config", so it can be a program name with args.
5259 set dummy gnome-config; ac_word=$2
5260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5261 echo "configure:5262: checking for $ac_word" >&5
5262 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 case "$GNOME_CONFIG" in
5267 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5270 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5275 for ac_dir in $ac_dummy; do
5276 test -z "$ac_dir" && ac_dir=.
5277 if test -f $ac_dir/$ac_word; then
5278 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5283 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5287 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5288 if test -n "$GNOME_CONFIG"; then
5289 echo "$ac_t""$GNOME_CONFIG" 1>&6
5291 echo "$ac_t""no" 1>&6
5294 if test -x ${GNOME_CONFIG}
5296 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5297 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5299 # now look for the gnome.h header
5300 saved_CPPFLAGS=$CPPFLAGS
5301 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5302 for ac_hdr in gnome.h
5304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5306 echo "configure:5307: checking for $ac_hdr" >&5
5307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5316 { (eval echo configure:5317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5318 if test -z "$ac_err"; then
5320 eval "ac_cv_header_$ac_safe=yes"
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 eval "ac_cv_header_$ac_safe=no"
5330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5333 cat >> confdefs.h <<EOF
5334 #define $ac_tr_hdr 1
5337 PLUGINS="${PLUGINS} gnome"
5338 ALIASES="${ALIASES} gnome-vlc"
5341 echo "$ac_t""no" 1>&6
5342 { echo "configure: error: Can't find gnome headers. Please install the gnome
5343 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5349 CPPFLAGS=$saved_CPPFLAGS
5354 # Check whether --enable-gtk or --disable-gtk was given.
5355 if test "${enable_gtk+set}" = set; then
5356 enableval="$enable_gtk"
5360 if test x$enable_gtk != xno
5362 # look for gtk-config
5363 # Extract the first word of "gtk-config", so it can be a program name with args.
5364 set dummy gtk-config; ac_word=$2
5365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5366 echo "configure:5367: checking for $ac_word" >&5
5367 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 case "$GTK_CONFIG" in
5372 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5375 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5380 for ac_dir in $ac_dummy; do
5381 test -z "$ac_dir" && ac_dir=.
5382 if test -f $ac_dir/$ac_word; then
5383 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5388 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5392 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5393 if test -n "$GTK_CONFIG"; then
5394 echo "$ac_t""$GTK_CONFIG" 1>&6
5396 echo "$ac_t""no" 1>&6
5399 if test -x ${GTK_CONFIG}
5401 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5402 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5404 # now look for the gtk.h header
5405 saved_CPPFLAGS=$CPPFLAGS
5406 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5407 for ac_hdr in gtk/gtk.h
5409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5411 echo "configure:5412: checking for $ac_hdr" >&5
5412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5415 cat > conftest.$ac_ext <<EOF
5416 #line 5417 "configure"
5417 #include "confdefs.h"
5420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5421 { (eval echo configure:5422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5423 if test -z "$ac_err"; then
5425 eval "ac_cv_header_$ac_safe=yes"
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5431 eval "ac_cv_header_$ac_safe=no"
5435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5436 echo "$ac_t""yes" 1>&6
5437 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5438 cat >> confdefs.h <<EOF
5439 #define $ac_tr_hdr 1
5442 PLUGINS="${PLUGINS} gtk"
5443 ALIASES="${ALIASES} gvlc"
5446 echo "$ac_t""no" 1>&6
5450 CPPFLAGS=$saved_CPPFLAGS
5453 # Check whether --enable-x11 or --disable-x11 was given.
5454 if test "${enable_x11+set}" = set; then
5455 enableval="$enable_x11"
5459 if test x$enable_x11 != xno; then
5460 if test x$x_includes = xNONE; then
5461 x_includes=/usr/X11R6/include
5463 if test x$x_libraries = xNONE; then
5464 x_libraries=/usr/X11R6/lib
5466 saved_CPPFLAGS=$CPPFLAGS
5467 CPPFLAGS="$CPPFLAGS -I$x_includes"
5468 for ac_hdr in X11/Xlib.h
5470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5472 echo "configure:5473: checking for $ac_hdr" >&5
5473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5482 { (eval echo configure:5483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5484 if test -z "$ac_err"; then
5486 eval "ac_cv_header_$ac_safe=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5492 eval "ac_cv_header_$ac_safe=no"
5496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5497 echo "$ac_t""yes" 1>&6
5498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5499 cat >> confdefs.h <<EOF
5500 #define $ac_tr_hdr 1
5503 PLUGINS="${PLUGINS} x11"
5504 LIB_X11="-L$x_libraries -lX11 -lXext"
5505 CFLAGS_X11="-I$x_includes"
5507 CPPFLAGS=$saved_CPPFLAGS
5509 echo "$ac_t""no" 1>&6
5515 # Check whether --enable-xvideo or --disable-xvideo was given.
5516 if test "${enable_xvideo+set}" = set; then
5517 enableval="$enable_xvideo"
5521 if test x$enable_xvideo != xno; then
5522 if test x$x_includes = xNONE; then
5523 x_includes=/usr/X11R6/include
5525 if test x$x_libraries = xNONE; then
5526 x_libraries=/usr/X11R6/lib
5528 saved_CPPFLAGS=$CPPFLAGS
5529 CPPFLAGS="$CPPFLAGS -I$x_includes"
5530 for ac_hdr in X11/extensions/Xv.h
5532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5534 echo "configure:5535: checking for $ac_hdr" >&5
5535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5544 { (eval echo configure:5545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5546 if test -z "$ac_err"; then
5548 eval "ac_cv_header_$ac_safe=yes"
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5554 eval "ac_cv_header_$ac_safe=no"
5558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5559 echo "$ac_t""yes" 1>&6
5560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5561 cat >> confdefs.h <<EOF
5562 #define $ac_tr_hdr 1
5565 BUILTINS="${BUILTINS} xvideo"
5566 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5567 CFLAGS_X11="-I$x_includes"
5569 CPPFLAGS=$saved_CPPFLAGS
5571 echo "$ac_t""no" 1>&6
5577 # Check whether --enable-alsa or --disable-alsa was given.
5578 if test "${enable_alsa+set}" = set; then
5579 enableval="$enable_alsa"
5580 if test x$enable_alsa = xyes
5582 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
5583 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
5584 echo "configure:5585: checking for sys/asoundlib.h" >&5
5585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 #include <sys/asoundlib.h>
5593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5594 { (eval echo configure:5595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5596 if test -z "$ac_err"; then
5598 eval "ac_cv_header_$ac_safe=yes"
5601 echo "configure: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5604 eval "ac_cv_header_$ac_safe=no"
5608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5609 echo "$ac_t""yes" 1>&6
5610 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5611 echo "configure:5612: checking for main in -lasound" >&5
5612 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 ac_save_LIBS="$LIBS"
5617 LIBS="-lasound $LIBS"
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 eval "ac_cv_lib_$ac_lib_var=yes"
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5633 eval "ac_cv_lib_$ac_lib_var=no"
5636 LIBS="$ac_save_LIBS"
5639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5643 echo "$ac_t""no" 1>&6
5648 echo "$ac_t""no" 1>&6
5652 if test x$have_alsa = xtrue
5654 PLUGINS="${PLUGINS} alsa"
5663 # Check whether --enable-plugins or --disable-plugins was given.
5664 if test "${enable_plugins+set}" = set; then
5665 enableval="$enable_plugins"
5666 if test x$enable_plugins = xno
5668 BUILTINS="${BUILTINS} ${PLUGINS}"
5736 cat > confcache <<\EOF
5737 # This file is a shell script that caches the results of configure
5738 # tests run on this system so they can be shared between configure
5739 # scripts and configure runs. It is not useful on other systems.
5740 # If it contains results you don't want to keep, you may remove or edit it.
5742 # By default, configure uses ./config.cache as the cache file,
5743 # creating it if it does not exist already. You can give configure
5744 # the --cache-file=FILE option to use a different cache file; that is
5745 # what configure does when it calls configure scripts in
5746 # subdirectories, so they share the cache.
5747 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5748 # config.status only pays attention to the cache file if you give it the
5749 # --recheck option to rerun configure.
5752 # The following way of writing the cache mishandles newlines in values,
5753 # but we know of no workaround that is simple, portable, and efficient.
5754 # So, don't put newlines in cache variables' values.
5755 # Ultrix sh set writes to stderr and can't be redirected directly,
5756 # and sets the high bit in the cache file unless we assign to the vars.
5758 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5760 # `set' does not quote correctly, so add quotes (double-quote substitution
5761 # turns \\\\ into \\, and sed turns \\ into \).
5763 -e "s/'/'\\\\''/g" \
5764 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5767 # `set' quotes correctly as required by POSIX, so do not add quotes.
5768 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5771 if cmp -s $cache_file confcache; then
5774 if test -w $cache_file; then
5775 echo "updating cache $cache_file"
5776 cat confcache > $cache_file
5778 echo "not updating unwritable cache $cache_file"
5783 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5786 # Let make expand exec_prefix.
5787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5789 # Any assignment to VPATH causes Sun make to only execute
5790 # the first set of double-colon rules, so remove it if not needed.
5791 # If there is a colon in the path, we need to keep it.
5792 if test "x$srcdir" = x.; then
5793 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5796 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5798 DEFS=-DHAVE_CONFIG_H
5800 # Without the "./", some shells look in PATH for config.status.
5801 : ${CONFIG_STATUS=./config.status}
5803 echo creating $CONFIG_STATUS
5804 rm -f $CONFIG_STATUS
5805 cat > $CONFIG_STATUS <<EOF
5807 # Generated automatically by configure.
5808 # Run this file to recreate the current configuration.
5809 # This directory was configured as follows,
5810 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5812 # $0 $ac_configure_args
5814 # Compiler output produced by configure, useful for debugging
5815 # configure, is in ./config.log if it exists.
5817 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5820 case "\$ac_option" in
5821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5822 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5823 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5824 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5825 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5827 -help | --help | --hel | --he | --h)
5828 echo "\$ac_cs_usage"; exit 0 ;;
5829 *) echo "\$ac_cs_usage"; exit 1 ;;
5833 ac_given_srcdir=$srcdir
5834 ac_given_INSTALL="$INSTALL"
5836 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5838 cat >> $CONFIG_STATUS <<EOF
5840 # Protect against being on the right side of a sed subst in config.status.
5841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5846 s%@CFLAGS@%$CFLAGS%g
5847 s%@CPPFLAGS@%$CPPFLAGS%g
5848 s%@CXXFLAGS@%$CXXFLAGS%g
5849 s%@FFLAGS@%$FFLAGS%g
5851 s%@LDFLAGS@%$LDFLAGS%g
5853 s%@exec_prefix@%$exec_prefix%g
5854 s%@prefix@%$prefix%g
5855 s%@program_transform_name@%$program_transform_name%g
5856 s%@bindir@%$bindir%g
5857 s%@sbindir@%$sbindir%g
5858 s%@libexecdir@%$libexecdir%g
5859 s%@datadir@%$datadir%g
5860 s%@sysconfdir@%$sysconfdir%g
5861 s%@sharedstatedir@%$sharedstatedir%g
5862 s%@localstatedir@%$localstatedir%g
5863 s%@libdir@%$libdir%g
5864 s%@includedir@%$includedir%g
5865 s%@oldincludedir@%$oldincludedir%g
5866 s%@infodir@%$infodir%g
5867 s%@mandir@%$mandir%g
5869 s%@host_alias@%$host_alias%g
5870 s%@host_cpu@%$host_cpu%g
5871 s%@host_vendor@%$host_vendor%g
5872 s%@host_os@%$host_os%g
5873 s%@target@%$target%g
5874 s%@target_alias@%$target_alias%g
5875 s%@target_cpu@%$target_cpu%g
5876 s%@target_vendor@%$target_vendor%g
5877 s%@target_os@%$target_os%g
5879 s%@build_alias@%$build_alias%g
5880 s%@build_cpu@%$build_cpu%g
5881 s%@build_vendor@%$build_vendor%g
5882 s%@build_os@%$build_os%g
5883 s%@VLC_VERSION@%$VLC_VERSION%g
5884 s%@VLC_CODENAME@%$VLC_CODENAME%g
5885 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5886 s%@SET_MAKE@%$SET_MAKE%g
5889 s%@RANLIB@%$RANLIB%g
5890 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5891 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5892 s%@INSTALL_DATA@%$INSTALL_DATA%g
5893 s%@ESD_CONFIG@%$ESD_CONFIG%g
5894 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5895 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5896 s%@SDL_CONFIG@%$SDL_CONFIG%g
5897 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5898 s%@GTK_CONFIG@%$GTK_CONFIG%g
5901 s%@PLUGINS@%$PLUGINS%g
5902 s%@BUILTINS@%$BUILTINS%g
5903 s%@ALIASES@%$ALIASES%g
5904 s%@DEFINE@%$DEFINE%g
5905 s%@INCLUDE@%$INCLUDE%g
5911 s%@OPTIMS@%$OPTIMS%g
5912 s%@TUNING@%$TUNING%g
5913 s%@NEED_GETOPT@%$NEED_GETOPT%g
5915 s%@WINDRES@%$WINDRES%g
5916 s%@LCFLAGS@%$LCFLAGS%g
5917 s%@PLCFLAGS@%$PLCFLAGS%g
5918 s%@SOFLAGS@%$SOFLAGS%g
5920 s%@LIB_ALSA@%$LIB_ALSA%g
5921 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
5922 s%@LIB_BEOS@%$LIB_BEOS%g
5923 s%@LIB_DARWIN@%$LIB_DARWIN%g
5924 s%@LIB_DVD@%$LIB_DVD%g
5925 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5926 s%@LIB_ESD@%$LIB_ESD%g
5927 s%@LIB_GGI@%$LIB_GGI%g
5928 s%@LIB_GLIDE@%$LIB_GLIDE%g
5929 s%@LIB_GNOME@%$LIB_GNOME%g
5930 s%@LIB_GTK@%$LIB_GTK%g
5931 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5932 s%@LIB_KDE@%$LIB_KDE%g
5933 s%@LIB_MACOSX@%$LIB_MACOSX%g
5934 s%@LIB_QNX@%$LIB_QNX%g
5935 s%@LIB_NCURSES@%$LIB_NCURSES%g
5936 s%@LIB_QT@%$LIB_QT%g
5937 s%@LIB_TS@%$LIB_TS%g
5938 s%@LIB_SDL@%$LIB_SDL%g
5939 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5940 s%@LIB_X11@%$LIB_X11%g
5941 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5942 s%@LIB_YUV@%$LIB_YUV%g
5943 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5944 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
5945 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5946 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5947 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5948 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5949 s%@CFLAGS_X11@%$CFLAGS_X11%g
5950 s%@OBJ_DVD@%$OBJ_DVD%g
5951 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5952 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5957 cat >> $CONFIG_STATUS <<\EOF
5959 # Split the substitutions into bite-sized pieces for seds with
5960 # small command number limits, like on Digital OSF/1 and HP-UX.
5961 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5962 ac_file=1 # Number of current file.
5963 ac_beg=1 # First line for current file.
5964 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5967 while $ac_more_lines; do
5968 if test $ac_beg -gt 1; then
5969 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5971 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5973 if test ! -s conftest.s$ac_file; then
5975 rm -f conftest.s$ac_file
5977 if test -z "$ac_sed_cmds"; then
5978 ac_sed_cmds="sed -f conftest.s$ac_file"
5980 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5982 ac_file=`expr $ac_file + 1`
5984 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5987 if test -z "$ac_sed_cmds"; then
5992 cat >> $CONFIG_STATUS <<EOF
5994 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5996 cat >> $CONFIG_STATUS <<\EOF
5997 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6000 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6001 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6002 *) ac_file_in="${ac_file}.in" ;;
6005 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6007 # Remove last slash and all that follows it. Not all systems have dirname.
6008 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6009 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6010 # The file is in a subdirectory.
6011 test ! -d "$ac_dir" && mkdir "$ac_dir"
6012 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6013 # A "../" for each directory in $ac_dir_suffix.
6014 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6016 ac_dir_suffix= ac_dots=
6019 case "$ac_given_srcdir" in
6021 if test -z "$ac_dots"; then top_srcdir=.
6022 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6023 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6025 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6026 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6029 case "$ac_given_INSTALL" in
6030 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6031 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6034 echo creating "$ac_file"
6036 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6038 *Makefile*) ac_comsub="1i\\
6039 # $configure_input" ;;
6043 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6045 s%@configure_input@%$configure_input%g
6046 s%@srcdir@%$srcdir%g
6047 s%@top_srcdir@%$top_srcdir%g
6048 s%@INSTALL@%$INSTALL%g
6049 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6053 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6054 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6056 # ac_d sets the value in "#define NAME VALUE" lines.
6057 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6058 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6061 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6062 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6063 ac_uB='\([ ]\)%\1#\2define\3'
6066 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6067 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6068 ac_eB='$%\1#\2define\3'
6072 if test "${CONFIG_HEADERS+set}" != set; then
6074 cat >> $CONFIG_STATUS <<EOF
6075 CONFIG_HEADERS="include/defs.h"
6077 cat >> $CONFIG_STATUS <<\EOF
6079 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6082 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6083 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6084 *) ac_file_in="${ac_file}.in" ;;
6087 echo creating $ac_file
6089 rm -f conftest.frag conftest.in conftest.out
6090 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6091 cat $ac_file_inputs > conftest.in
6095 # Transform confdefs.h into a sed script conftest.vals that substitutes
6096 # the proper values into config.h.in to produce config.h. And first:
6097 # Protect against being on the right side of a sed subst in config.status.
6098 # Protect against being in an unquoted here document in config.status.
6100 cat > conftest.hdr <<\EOF
6103 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6107 sed -n -f conftest.hdr confdefs.h > conftest.vals
6110 # This sed command replaces #undef with comments. This is necessary, for
6111 # example, in the case of _POSIX_SOURCE, which is predefined and required
6112 # on some systems where configure will not decide to define it.
6113 cat >> conftest.vals <<\EOF
6114 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6117 # Break up conftest.vals because some shells have a limit on
6118 # the size of here documents, and old seds have small limits too.
6123 ac_lines=`grep -c . conftest.vals`
6124 # grep -c gives empty output for an empty file on some AIX systems.
6125 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6126 # Write a limited-size here document to conftest.frag.
6127 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6128 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6130 sed -f conftest.frag conftest.in > conftest.out
6132 mv conftest.out conftest.in
6134 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6136 mv conftest.tail conftest.vals
6140 cat >> $CONFIG_STATUS <<\EOF
6141 rm -f conftest.frag conftest.h
6142 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6143 cat conftest.in >> conftest.h
6145 if cmp -s $ac_file conftest.h 2>/dev/null; then
6146 echo "$ac_file is unchanged"
6149 # Remove last slash and all that follows it. Not all systems have dirname.
6150 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6151 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6152 # The file is in a subdirectory.
6153 test ! -d "$ac_dir" && mkdir "$ac_dir"
6156 mv conftest.h $ac_file
6161 cat >> $CONFIG_STATUS <<EOF
6164 cat >> $CONFIG_STATUS <<\EOF
6168 chmod +x $CONFIG_STATUS
6169 rm -fr confdefs* $ac_clean_files
6170 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6174 global configuration
6175 --------------------
6177 architecture : ${ARCH}
6178 optimizations : ${OPTIMS}
6179 tuning: : ${TUNING}"
6181 if test x${HAVE_VLC} = x1
6186 vlc version : ${VLC_VERSION}
6187 debug mode : ${DEBUG}
6188 trace mode : ${TRACE}
6189 cprof/gprof support : ${CPROF}/${GPROF}
6190 need builtin getopt : ${NEED_GETOPT}
6191 built-in modules :${BUILTINS}
6192 plug-in modules :${PLUGINS}
6193 vlc aliases :${ALIASES}"
6197 libdvdcss configuration
6198 -----------------------
6199 can be built : ${CAN_BUILD_LIBDVDCSS}
6200 will be built : ${NEED_LIBDVDCSS}"
6201 if test x${NEED_LIBDVDCSS} = x1
6203 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
6204 echo "link statically : ${STATIC_LIBDVDCSS}"
6206 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6210 You may now tune Makefile.opts at your convenience, for instance to choose
6211 which modules get compiled as plugins.
6213 if test x${HAVE_VLC} = x1
6215 echo "To build vlc and its plugins, type \`make vlc'."
6217 if test x${HAVE_LIBDVDCSS} = x1
6219 echo "To build libdvdcss only, type \`make libdvdcss'."