3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-words=endianness Set endianness (big or little)"
17 --with-tuning=[arch] Enable special tuning for an architecture
18 (default i686 on IA-32 and 750 on PPC)"
20 --enable-release Activate extra optimizations (default disabled)"
22 --disable-mmx Disable MMX optimizations (default enabled for x86)"
24 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
26 --enable-debug Enable debug mode (default disabled)"
28 --enable-trace Enable trace mode (default disabled)"
30 --enable-gprof Enable gprof profiling (default disabled)"
32 --enable-cprof Enable cprof profiling (default disabled)"
34 --disable-optimizations Disable compiler optimizations (default enabled)"
36 --enable-pth Enable GNU Pth support (default disabled)"
38 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
39 or 'local-static', 'local-shared', or a path to
40 another libdvdcss such as '/usr/local'
41 (default 'local-static')"
43 --enable-vcd VCD support for Linux (default enabled)"
45 --disable-dummy dummy module (default enabled)"
47 --disable-null Null module (default enabled)"
49 --disable-rc rc module (default enabled)"
51 --disable-dsp Linux /dev/dsp support (default enabled)"
53 --enable-esd Esound library support (default disabled)"
55 --enable-darwin Darwin sound support (default enabled on MacOS X)"
57 --enable-macosx MacOS X support (default enabled on MacOS X)"
59 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
61 --enable-fb Linux framebuffer support (default disabled)"
63 --with-ggi[=name] GGI support (default disabled)"
65 --disable-sdl SDL support (default enabled)"
67 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
69 --with-directx[=name] Windows DirectX support (default enabled)"
71 --with-glide[=name] Glide (3dfx) support (default disabled)"
73 --enable-ncurses ncurses interface support (default disabled)"
75 --enable-qt Qt interface support (default disabled)"
77 --enable-kde KDE interface support (default disabled)"
79 --enable-gnome Gnome interface support (default disabled)"
81 --disable-gtk Gtk+ support (default enabled)"
83 --disable-x11 X11 support (default enabled)"
85 --disable-xvideo XVideo support (default enabled)"
87 --enable-alsa Alsa sound drivers support (Only for linux)
90 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
96 cache_file=./config.cache
105 program_transform_name=s,x,x,
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
126 # Initialize some other variables.
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
145 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 # Accept the important Cygnus configure options, so we can diagnose typos.
153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156 bindir="$ac_optarg" ;;
158 -build | --build | --buil | --bui | --bu)
160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161 build="$ac_optarg" ;;
163 -cache-file | --cache-file | --cache-fil | --cache-fi \
164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165 ac_prev=cache_file ;;
166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168 cache_file="$ac_optarg" ;;
170 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
172 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
174 datadir="$ac_optarg" ;;
176 -disable-* | --disable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* | --enable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200 | --exec | --exe | --ex)
201 ac_prev=exec_prefix ;;
202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204 | --exec=* | --exe=* | --ex=*)
205 exec_prefix="$ac_optarg" ;;
207 -gas | --gas | --ga | --g)
208 # Obsolete; use --with-gas.
211 -help | --help | --hel | --he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
266 -host | --host | --hos | --ho)
268 -host=* | --host=* | --hos=* | --ho=*)
271 -includedir | --includedir | --includedi | --included | --include \
272 | --includ | --inclu | --incl | --inc)
273 ac_prev=includedir ;;
274 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275 | --includ=* | --inclu=* | --incl=* | --inc=*)
276 includedir="$ac_optarg" ;;
278 -infodir | --infodir | --infodi | --infod | --info | --inf)
280 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281 infodir="$ac_optarg" ;;
283 -libdir | --libdir | --libdi | --libd)
285 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 libdir="$ac_optarg" ;;
288 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289 | --libexe | --libex | --libe)
290 ac_prev=libexecdir ;;
291 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292 | --libexe=* | --libex=* | --libe=*)
293 libexecdir="$ac_optarg" ;;
295 -localstatedir | --localstatedir | --localstatedi | --localstated \
296 | --localstate | --localstat | --localsta | --localst \
297 | --locals | --local | --loca | --loc | --lo)
298 ac_prev=localstatedir ;;
299 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302 localstatedir="$ac_optarg" ;;
304 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
306 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307 mandir="$ac_optarg" ;;
310 # Obsolete; use --without-fp.
313 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
321 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323 | --oldin | --oldi | --old | --ol | --o)
324 ac_prev=oldincludedir ;;
325 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328 oldincludedir="$ac_optarg" ;;
330 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
332 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 prefix="$ac_optarg" ;;
335 -program-prefix | --program-prefix | --program-prefi | --program-pref \
336 | --program-pre | --program-pr | --program-p)
337 ac_prev=program_prefix ;;
338 -program-prefix=* | --program-prefix=* | --program-prefi=* \
339 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340 program_prefix="$ac_optarg" ;;
342 -program-suffix | --program-suffix | --program-suffi | --program-suff \
343 | --program-suf | --program-su | --program-s)
344 ac_prev=program_suffix ;;
345 -program-suffix=* | --program-suffix=* | --program-suffi=* \
346 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347 program_suffix="$ac_optarg" ;;
349 -program-transform-name | --program-transform-name \
350 | --program-transform-nam | --program-transform-na \
351 | --program-transform-n | --program-transform- \
352 | --program-transform | --program-transfor \
353 | --program-transfo | --program-transf \
354 | --program-trans | --program-tran \
355 | --progr-tra | --program-tr | --program-t)
356 ac_prev=program_transform_name ;;
357 -program-transform-name=* | --program-transform-name=* \
358 | --program-transform-nam=* | --program-transform-na=* \
359 | --program-transform-n=* | --program-transform-=* \
360 | --program-transform=* | --program-transfor=* \
361 | --program-transfo=* | --program-transf=* \
362 | --program-trans=* | --program-tran=* \
363 | --progr-tra=* | --program-tr=* | --program-t=*)
364 program_transform_name="$ac_optarg" ;;
366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367 | -silent | --silent | --silen | --sile | --sil)
370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
374 sbindir="$ac_optarg" ;;
376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378 | --sharedst | --shareds | --shared | --share | --shar \
380 ac_prev=sharedstatedir ;;
381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
385 sharedstatedir="$ac_optarg" ;;
387 -site | --site | --sit)
389 -site=* | --site=* | --sit=*)
392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 srcdir="$ac_optarg" ;;
397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398 | --syscon | --sysco | --sysc | --sys | --sy)
399 ac_prev=sysconfdir ;;
400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402 sysconfdir="$ac_optarg" ;;
404 -target | --target | --targe | --targ | --tar | --ta | --t)
406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407 target="$ac_optarg" ;;
409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
412 -version | --version | --versio | --versi | --vers)
413 echo "configure generated by autoconf version 2.13"
417 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
439 # Obsolete; use --with-x.
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447 x_includes="$ac_optarg" ;;
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454 x_libraries="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505 | --no-cr | --no-c) ;;
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=include/common.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted=yes
536 # Try the directory containing this script, then its parent.
538 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
541 if test ! -r $srcdir/$ac_unique_file; then
545 ac_srcdir_defaulted=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE; then
559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
575 echo "creating cache $cache_file"
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
597 ac_n= ac_c='\c' ac_t=
604 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
623 # Do some error checking and defaulting for the host and target type.
625 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
628 # 1. You are not allowed to specify --host, --target, and nonopt at the
630 # 2. Host defaults to nonopt.
631 # 3. If nonopt is not specified, then host defaults to the current host,
632 # as determined by config.guess.
633 # 4. Target and build default to nonopt.
634 # 5. If nonopt is not specified, then target and build default to host.
636 # The aliases save the names the user supplied, while $host etc.
637 # will get canonicalized.
638 case $host---$target---$nonopt in
639 NONE---*---* | *---NONE---* | *---*---NONE) ;;
640 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
644 # Make sure we can run config.sub.
645 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
646 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
649 echo $ac_n "checking host system type""... $ac_c" 1>&6
650 echo "configure:651: checking host system type" >&5
653 case "$host_alias" in
657 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
658 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
660 *) host_alias=$nonopt ;;
664 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
665 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
666 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
667 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668 echo "$ac_t""$host" 1>&6
670 echo $ac_n "checking target system type""... $ac_c" 1>&6
671 echo "configure:672: checking target system type" >&5
674 case "$target_alias" in
677 NONE) target_alias=$host_alias ;;
678 *) target_alias=$nonopt ;;
682 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
683 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$target" 1>&6
688 echo $ac_n "checking build system type""... $ac_c" 1>&6
689 echo "configure:690: checking build system type" >&5
692 case "$build_alias" in
695 NONE) build_alias=$host_alias ;;
696 *) build_alias=$nonopt ;;
700 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
701 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
702 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
703 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
704 echo "$ac_t""$build" 1>&6
706 test "$host_alias" != "$target_alias" &&
707 test "$program_prefix$program_suffix$program_transform_name" = \
709 program_prefix=${target_alias}-
713 if test -r src/interface/main.c; then
722 if test -r extras/libdvdcss/libdvdcss.c; then
724 LIBDVDCSS_VERSION=0.0.3
726 if test -r extras/libdvdcss/csskeys.h; then
727 cat >> confdefs.h <<\EOF
728 #define HAVE_CSSKEYS 1
734 save_CFLAGS="${CFLAGS}"
735 save_LDFLAGS="${LDFLAGS}"
737 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
738 echo "configure:739: checking whether ${MAKE-make} sets \${MAKE}" >&5
739 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
740 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 cat > conftestmake <<\EOF
745 @echo 'ac_maketemp="${MAKE}"'
747 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
748 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
749 if test -n "$ac_maketemp"; then
750 eval ac_cv_prog_make_${ac_make}_set=yes
752 eval ac_cv_prog_make_${ac_make}_set=no
756 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
757 echo "$ac_t""yes" 1>&6
760 echo "$ac_t""no" 1>&6
761 SET_MAKE="MAKE=${MAKE-make}"
764 # Extract the first word of "gcc", so it can be a program name with args.
765 set dummy gcc; ac_word=$2
766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
767 echo "configure:768: checking for $ac_word" >&5
768 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
771 if test -n "$CC"; then
772 ac_cv_prog_CC="$CC" # Let the user override the test.
774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
776 for ac_dir in $ac_dummy; do
777 test -z "$ac_dir" && ac_dir=.
778 if test -f $ac_dir/$ac_word; then
787 if test -n "$CC"; then
788 echo "$ac_t""$CC" 1>&6
790 echo "$ac_t""no" 1>&6
793 if test -z "$CC"; then
794 # Extract the first word of "cc", so it can be a program name with args.
795 set dummy cc; ac_word=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 if test -n "$CC"; then
802 ac_cv_prog_CC="$CC" # Let the user override the test.
804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
807 for ac_dir in $ac_dummy; do
808 test -z "$ac_dir" && ac_dir=.
809 if test -f $ac_dir/$ac_word; then
810 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
819 if test $ac_prog_rejected = yes; then
820 # We found a bogon in the path, so make sure we never use it.
821 set dummy $ac_cv_prog_CC
823 if test $# -gt 0; then
824 # We chose a different compiler from the bogus one.
825 # However, it has the same basename, so the bogon will be chosen
826 # first if we set CC to just the basename; use the full file name.
828 set dummy "$ac_dir/$ac_word" "$@"
836 if test -n "$CC"; then
837 echo "$ac_t""$CC" 1>&6
839 echo "$ac_t""no" 1>&6
842 if test -z "$CC"; then
845 # Extract the first word of "cl", so it can be a program name with args.
846 set dummy cl; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
871 echo "$ac_t""no" 1>&6
876 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
879 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
880 echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
884 ac_cpp='$CPP $CPPFLAGS'
885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
887 cross_compiling=$ac_cv_prog_cc_cross
889 cat > conftest.$ac_ext << EOF
891 #line 892 "configure"
892 #include "confdefs.h"
896 if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
897 ac_cv_prog_cc_works=yes
898 # If we can't run a trivial program, we are probably using a cross compiler.
899 if (./conftest; exit) 2>/dev/null; then
900 ac_cv_prog_cc_cross=no
902 ac_cv_prog_cc_cross=yes
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
907 ac_cv_prog_cc_works=no
911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
912 ac_cpp='$CPP $CPPFLAGS'
913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
915 cross_compiling=$ac_cv_prog_cc_cross
917 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
918 if test $ac_cv_prog_cc_works = no; then
919 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
921 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
922 echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
923 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
924 cross_compiling=$ac_cv_prog_cc_cross
926 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
927 echo "configure:928: checking whether we are using GNU C" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 cat > conftest.c <<EOF
936 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
943 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
945 if test $ac_cv_prog_gcc = yes; then
951 ac_test_CFLAGS="${CFLAGS+set}"
952 ac_save_CFLAGS="$CFLAGS"
954 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
955 echo "configure:956: checking whether ${CC-cc} accepts -g" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 echo 'void f(){}' > conftest.c
960 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
969 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
970 if test "$ac_test_CFLAGS" = set; then
971 CFLAGS="$ac_save_CFLAGS"
972 elif test $ac_cv_prog_cc_g = yes; then
973 if test "$GCC" = yes; then
979 if test "$GCC" = yes; then
986 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
987 echo "configure:988: checking how to run the C preprocessor" >&5
988 # On Suns, sometimes $CPP names a directory.
989 if test -n "$CPP" && test -d "$CPP"; then
992 if test -z "$CPP"; then
993 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 # This must be in double quotes, not single quotes, because CPP may get
997 # substituted into the Makefile and "${CC-cc}" will confuse make.
999 # On the NeXT, cc -E runs the code through the compiler's parser,
1000 # not just through cpp.
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010 if test -z "$ac_err"; then
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1017 CPP="${CC-cc} -E -traditional-cpp"
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1027 if test -z "$ac_err"; then
1031 echo "configure: failed program was:" >&5
1032 cat conftest.$ac_ext >&5
1034 CPP="${CC-cc} -nologo -E"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1044 if test -z "$ac_err"; then
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1058 ac_cv_prog_CPP="$CPP"
1060 CPP="$ac_cv_prog_CPP"
1062 ac_cv_prog_CPP="$CPP"
1064 echo "$ac_t""$CPP" 1>&6
1066 # Extract the first word of "ranlib", so it can be a program name with args.
1067 set dummy ranlib; ac_word=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 if test -n "$RANLIB"; then
1074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1078 for ac_dir in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_prog_RANLIB="ranlib"
1086 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1089 RANLIB="$ac_cv_prog_RANLIB"
1090 if test -n "$RANLIB"; then
1091 echo "$ac_t""$RANLIB" 1>&6
1093 echo "$ac_t""no" 1>&6
1097 # Find a good install program. We prefer a C program (faster),
1098 # so one script is as good as another. But avoid the broken or
1099 # incompatible versions:
1100 # SysV /etc/install, /usr/sbin/install
1101 # SunOS /usr/etc/install
1102 # IRIX /sbin/install
1104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1107 # ./install, which can be erroneously created by make from ./install.sh.
1108 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1109 echo "configure:1110: checking for a BSD compatible install" >&5
1110 if test -z "$INSTALL"; then
1111 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1115 for ac_dir in $PATH; do
1116 # Account for people who put trailing slashes in PATH elements.
1118 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1120 # OSF1 and SCO ODT 3.0 have their own names for install.
1121 # Don't use installbsd from OSF since it installs stuff as root
1123 for ac_prog in ginstall scoinst install; do
1124 if test -f $ac_dir/$ac_prog; then
1125 if test $ac_prog = install &&
1126 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1127 # AIX install. It has an incompatible calling convention.
1130 ac_cv_path_install="$ac_dir/$ac_prog -c"
1141 if test "${ac_cv_path_install+set}" = set; then
1142 INSTALL="$ac_cv_path_install"
1144 # As a last resort, use the slow shell script. We don't cache a
1145 # path for INSTALL within a source directory, because that will
1146 # break other packages using the cache if that directory is
1147 # removed, or if the path is relative.
1148 INSTALL="$ac_install_sh"
1151 echo "$ac_t""$INSTALL" 1>&6
1153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1154 # It thinks the first close brace ends the variable substitution.
1155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1162 if test x${cross_compiling} != xyes; then
1163 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether byte ordering is bigendian" >&5
1165 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 ac_cv_c_bigendian=unknown
1169 # See if sys/param.h defines the BYTE_ORDER macro.
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 #include <sys/types.h>
1174 #include <sys/param.h>
1177 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1182 if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1184 # It does; now see whether it defined to BIG_ENDIAN or not.
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 #include <sys/types.h>
1189 #include <sys/param.h>
1192 #if BYTE_ORDER != BIG_ENDIAN
1197 if { (eval echo configure:1198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1199 ac_cv_c_bigendian=yes
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1204 ac_cv_c_bigendian=no
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1212 if test $ac_cv_c_bigendian = unknown; then
1213 if test "$cross_compiling" = yes; then
1214 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1220 /* Are we little or big endian? From Harbison&Steele. */
1224 char c[sizeof (long)];
1227 exit (u.c[sizeof (long) - 1] == 1);
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1232 ac_cv_c_bigendian=no
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 ac_cv_c_bigendian=yes
1245 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1246 if test $ac_cv_c_bigendian = yes; then
1247 cat >> confdefs.h <<\EOF
1248 #define WORDS_BIGENDIAN 1
1254 # Check whether --with-words or --without-words was given.
1255 if test "${with_words+set}" = set; then
1256 withval="$with_words"
1262 ac_cv_c_bigendian=yes
1265 ac_cv_c_bigendian=no
1268 ac_cv_c_bigendian=unknown
1269 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
1270 echo "configure:1271: checking what the byte order looks to be" >&5
1271 cat >conftest.c <<EOF
1272 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
1273 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
1274 void _a(void) { char*s = (char*)am; s = (char *)ai; }
1275 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
1276 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
1277 void _e(void) { char*s = (char*)em; s = (char*)ei; }
1278 int main(void) { _a(); _e(); return 0; }
1281 if test -f conftest.c
1283 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
1284 && test -f conftest.o
1286 if test `grep -l BIGenDianSyS conftest.o`
1288 echo "$ac_t"""big endian"" 1>&6
1289 ac_cv_c_bigendian=yes
1291 if test `grep -l LiTTleEnDian conftest.o`
1293 echo "$ac_t"""little endian"" 1>&6
1294 ac_cv_c_bigendian=no
1298 if test $ac_cv_c_bigendian = xunknown
1300 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
1302 if test $ac_cv_c_bigendian = yes
1304 cat >> confdefs.h <<\EOF
1305 #define WORDS_BIGENDIAN 1
1312 for ac_func in gettimeofday select strerror strtod strtol
1314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_func" >&5
1316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* System header to define __stub macros and hopefully few prototypes,
1323 which can conflict with char $ac_func(); below. */
1325 /* Override any gcc2 internal prototype to avoid an error. */
1326 /* We use char because int might match the return type of a gcc2
1327 builtin and then its argument prototype would still apply. */
1332 /* The GNU C library defines this for functions which it implements
1333 to always fail with ENOSYS. Some functions are actually named
1334 something starting with __ and the normal name is an alias. */
1335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1345 eval "ac_cv_func_$ac_func=yes"
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1350 eval "ac_cv_func_$ac_func=no"
1355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1358 cat >> confdefs.h <<EOF
1359 #define $ac_tr_func 1
1363 echo "$ac_t""no" 1>&6
1367 for ac_func in setenv putenv
1369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_func" >&5
1371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* System header to define __stub macros and hopefully few prototypes,
1378 which can conflict with char $ac_func(); below. */
1380 /* Override any gcc2 internal prototype to avoid an error. */
1381 /* We use char because int might match the return type of a gcc2
1382 builtin and then its argument prototype would still apply. */
1387 /* The GNU C library defines this for functions which it implements
1388 to always fail with ENOSYS. Some functions are actually named
1389 something starting with __ and the normal name is an alias. */
1390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400 eval "ac_cv_func_$ac_func=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 eval "ac_cv_func_$ac_func=no"
1410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1411 echo "$ac_t""yes" 1>&6
1412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1413 cat >> confdefs.h <<EOF
1414 #define $ac_tr_func 1
1418 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for connect""... $ac_c" 1>&6
1423 echo "configure:1424: checking for connect" >&5
1424 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* System header to define __stub macros and hopefully few prototypes,
1431 which can conflict with char connect(); below. */
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1440 /* The GNU C library defines this for functions which it implements
1441 to always fail with ENOSYS. Some functions are actually named
1442 something starting with __ and the normal name is an alias. */
1443 #if defined (__stub_connect) || defined (__stub___connect)
1451 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1453 eval "ac_cv_func_connect=yes"
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1458 eval "ac_cv_func_connect=no"
1463 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1469 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1470 echo "configure:1471: checking for connect in -lsocket" >&5
1471 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 ac_save_LIBS="$LIBS"
1476 LIBS="-lsocket $LIBS"
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1480 /* Override any gcc2 internal prototype to avoid an error. */
1481 /* We use char because int might match the return type of a gcc2
1482 builtin and then its argument prototype would still apply. */
1489 if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1491 eval "ac_cv_lib_$ac_lib_var=yes"
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1496 eval "ac_cv_lib_$ac_lib_var=no"
1499 LIBS="$ac_save_LIBS"
1502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1503 echo "$ac_t""yes" 1>&6
1504 LIB="${LIB} -lsocket"
1506 echo "$ac_t""no" 1>&6
1512 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1513 echo "configure:1514: checking for gethostbyname" >&5
1514 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* System header to define __stub macros and hopefully few prototypes,
1521 which can conflict with char gethostbyname(); below. */
1523 /* Override any gcc2 internal prototype to avoid an error. */
1524 /* We use char because int might match the return type of a gcc2
1525 builtin and then its argument prototype would still apply. */
1526 char gethostbyname();
1530 /* The GNU C library defines this for functions which it implements
1531 to always fail with ENOSYS. Some functions are actually named
1532 something starting with __ and the normal name is an alias. */
1533 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 eval "ac_cv_func_gethostbyname=yes"
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 eval "ac_cv_func_gethostbyname=no"
1553 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1554 echo "$ac_t""yes" 1>&6
1557 echo "$ac_t""no" 1>&6
1559 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1560 echo "configure:1561: checking for gethostbyname in -lnsl" >&5
1561 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 ac_save_LIBS="$LIBS"
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* Override any gcc2 internal prototype to avoid an error. */
1571 /* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1573 char gethostbyname();
1579 if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 eval "ac_cv_lib_$ac_lib_var=yes"
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 eval "ac_cv_lib_$ac_lib_var=no"
1589 LIBS="$ac_save_LIBS"
1592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1596 echo "$ac_t""no" 1>&6
1602 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1603 echo "configure:1604: checking for nanosleep" >&5
1604 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* System header to define __stub macros and hopefully few prototypes,
1611 which can conflict with char nanosleep(); below. */
1613 /* Override any gcc2 internal prototype to avoid an error. */
1614 /* We use char because int might match the return type of a gcc2
1615 builtin and then its argument prototype would still apply. */
1620 /* The GNU C library defines this for functions which it implements
1621 to always fail with ENOSYS. Some functions are actually named
1622 something starting with __ and the normal name is an alias. */
1623 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1631 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1633 eval "ac_cv_func_nanosleep=yes"
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1638 eval "ac_cv_func_nanosleep=no"
1643 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1644 echo "$ac_t""yes" 1>&6
1647 echo "$ac_t""no" 1>&6
1649 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1650 echo "configure:1651: checking for nanosleep in -lrt" >&5
1651 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 ac_save_LIBS="$LIBS"
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* Override any gcc2 internal prototype to avoid an error. */
1661 /* We use char because int might match the return type of a gcc2
1662 builtin and then its argument prototype would still apply. */
1669 if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1671 eval "ac_cv_lib_$ac_lib_var=yes"
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1676 eval "ac_cv_lib_$ac_lib_var=no"
1679 LIBS="$ac_save_LIBS"
1682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1686 echo "$ac_t""no" 1>&6
1688 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1689 echo "configure:1690: checking for nanosleep in -lposix4" >&5
1690 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 ac_save_LIBS="$LIBS"
1695 LIBS="-lposix4 $LIBS"
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 /* Override any gcc2 internal prototype to avoid an error. */
1700 /* We use char because int might match the return type of a gcc2
1701 builtin and then its argument prototype would still apply. */
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710 eval "ac_cv_lib_$ac_lib_var=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1715 eval "ac_cv_lib_$ac_lib_var=no"
1718 LIBS="$ac_save_LIBS"
1721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1722 echo "$ac_t""yes" 1>&6
1723 LIB="${LIB} -lposix4"
1725 echo "$ac_t""no" 1>&6
1734 for ac_func in usleep
1736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_func" >&5
1738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $ac_func(); below. */
1747 /* Override any gcc2 internal prototype to avoid an error. */
1748 /* We use char because int might match the return type of a gcc2
1749 builtin and then its argument prototype would still apply. */
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1765 if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1767 eval "ac_cv_func_$ac_func=yes"
1769 echo "configure: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1772 eval "ac_cv_func_$ac_func=no"
1777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1778 echo "$ac_t""yes" 1>&6
1779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1780 cat >> confdefs.h <<EOF
1781 #define $ac_tr_func 1
1785 echo "$ac_t""no" 1>&6
1789 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1790 echo "configure:1791: checking for inet_aton" >&5
1791 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char inet_aton(); below. */
1800 /* Override any gcc2 internal prototype to avoid an error. */
1801 /* We use char because int might match the return type of a gcc2
1802 builtin and then its argument prototype would still apply. */
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820 eval "ac_cv_func_inet_aton=yes"
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 eval "ac_cv_func_inet_aton=no"
1830 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1834 echo "$ac_t""no" 1>&6
1836 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1837 echo "configure:1838: checking for inet_aton in -lresolv" >&5
1838 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 ac_save_LIBS="$LIBS"
1843 LIBS="-lresolv $LIBS"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1858 eval "ac_cv_lib_$ac_lib_var=yes"
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 eval "ac_cv_lib_$ac_lib_var=no"
1866 LIBS="$ac_save_LIBS"
1869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1870 echo "$ac_t""yes" 1>&6
1871 LIB="${LIB} -lresolv"
1873 echo "$ac_t""no" 1>&6
1879 for ac_func in vasprintf
1881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_func" >&5
1883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $ac_func(); below. */
1892 /* Override any gcc2 internal prototype to avoid an error. */
1893 /* We use char because int might match the return type of a gcc2
1894 builtin and then its argument prototype would still apply. */
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1912 eval "ac_cv_func_$ac_func=yes"
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 eval "ac_cv_func_$ac_func=no"
1922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1923 echo "$ac_t""yes" 1>&6
1924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1925 cat >> confdefs.h <<EOF
1926 #define $ac_tr_func 1
1930 echo "$ac_t""no" 1>&6
1936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_func" >&5
1938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 /* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $ac_func(); below. */
1947 /* Override any gcc2 internal prototype to avoid an error. */
1948 /* We use char because int might match the return type of a gcc2
1949 builtin and then its argument prototype would still apply. */
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1967 eval "ac_cv_func_$ac_func=yes"
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 eval "ac_cv_func_$ac_func=no"
1977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1978 echo "$ac_t""yes" 1>&6
1979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1980 cat >> confdefs.h <<EOF
1981 #define $ac_tr_func 1
1985 echo "$ac_t""no" 1>&6
1989 for ac_func in memalign valloc
1991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_func" >&5
1993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* System header to define __stub macros and hopefully few prototypes,
2000 which can conflict with char $ac_func(); below. */
2002 /* Override any gcc2 internal prototype to avoid an error. */
2003 /* We use char because int might match the return type of a gcc2
2004 builtin and then its argument prototype would still apply. */
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2022 eval "ac_cv_func_$ac_func=yes"
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 eval "ac_cv_func_$ac_func=no"
2032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2035 cat >> confdefs.h <<EOF
2036 #define $ac_tr_func 1
2040 echo "$ac_t""no" 1>&6
2045 for ac_func in sigrelse
2047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_func" >&5
2049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 /* System header to define __stub macros and hopefully few prototypes,
2056 which can conflict with char $ac_func(); below. */
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2078 eval "ac_cv_func_$ac_func=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 eval "ac_cv_func_$ac_func=no"
2088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2089 echo "$ac_t""yes" 1>&6
2090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2091 cat >> confdefs.h <<EOF
2092 #define $ac_tr_func 1
2096 echo "$ac_t""no" 1>&6
2102 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2103 echo "configure:2104: checking for getopt_long" >&5
2104 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* System header to define __stub macros and hopefully few prototypes,
2111 which can conflict with char getopt_long(); below. */
2113 /* Override any gcc2 internal prototype to avoid an error. */
2114 /* We use char because int might match the return type of a gcc2
2115 builtin and then its argument prototype would still apply. */
2120 /* The GNU C library defines this for functions which it implements
2121 to always fail with ENOSYS. Some functions are actually named
2122 something starting with __ and the normal name is an alias. */
2123 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2131 if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2133 eval "ac_cv_func_getopt_long=yes"
2135 echo "configure: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2138 eval "ac_cv_func_getopt_long=no"
2143 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2145 cat >> confdefs.h <<\EOF
2146 #define HAVE_GETOPT_LONG 1
2150 echo "$ac_t""no" 1>&6
2151 # FreeBSD has a gnugetopt library for this:
2152 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2153 echo "configure:2154: checking for getopt_long in -lgnugetopt" >&5
2154 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 ac_save_LIBS="$LIBS"
2159 LIBS="-lgnugetopt $LIBS"
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 /* Override any gcc2 internal prototype to avoid an error. */
2164 /* We use char because int might match the return type of a gcc2
2165 builtin and then its argument prototype would still apply. */
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 eval "ac_cv_lib_$ac_lib_var=yes"
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 eval "ac_cv_lib_$ac_lib_var=no"
2182 LIBS="$ac_save_LIBS"
2185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2186 echo "$ac_t""yes" 1>&6
2187 cat >> confdefs.h <<\EOF
2188 #define HAVE_GETOPT_LONG 1
2190 LIB="${LIB} -lgnugetopt"
2192 echo "$ac_t""no" 1>&6
2199 for ac_hdr in unistd.h
2201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_hdr" >&5
2204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213 { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215 if test -z "$ac_err"; then
2217 eval "ac_cv_header_$ac_safe=yes"
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2223 eval "ac_cv_header_$ac_safe=no"
2227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2230 cat >> confdefs.h <<EOF
2231 #define $ac_tr_hdr 1
2235 echo "$ac_t""no" 1>&6
2239 for ac_func in getpagesize
2241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_func" >&5
2243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249 /* System header to define __stub macros and hopefully few prototypes,
2250 which can conflict with char $ac_func(); below. */
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2259 /* The GNU C library defines this for functions which it implements
2260 to always fail with ENOSYS. Some functions are actually named
2261 something starting with __ and the normal name is an alias. */
2262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2272 eval "ac_cv_func_$ac_func=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2277 eval "ac_cv_func_$ac_func=no"
2282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2285 cat >> confdefs.h <<EOF
2286 #define $ac_tr_func 1
2290 echo "$ac_t""no" 1>&6
2294 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2295 echo "configure:2296: checking for working mmap" >&5
2296 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 if test "$cross_compiling" = yes; then
2300 ac_cv_func_mmap_fixed_mapped=no
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2306 /* Thanks to Mike Haertel and Jim Avera for this test.
2307 Here is a matrix of mmap possibilities:
2308 mmap private not fixed
2309 mmap private fixed at somewhere currently unmapped
2310 mmap private fixed at somewhere already mapped
2311 mmap shared not fixed
2312 mmap shared fixed at somewhere currently unmapped
2313 mmap shared fixed at somewhere already mapped
2314 For private mappings, we should verify that changes cannot be read()
2315 back from the file, nor mmap's back from the file at a different
2316 address. (There have been systems where private was not correctly
2317 implemented like the infamous i386 svr4.0, and systems where the
2318 VM page cache was not coherent with the filesystem buffer cache
2319 like early versions of FreeBSD and possibly contemporary NetBSD.)
2320 For shared mappings, we should conversely verify that changes get
2321 propogated back to all the places they're supposed to be.
2323 Grep wants private fixed already mapped.
2324 The main things grep needs to know about mmap are:
2325 * does it exist and is it safe to write into the mmap'd area
2326 * how to use it (BSD variants) */
2327 #include <sys/types.h>
2329 #include <sys/mman.h>
2331 #include <sys/stat.h>
2333 #ifdef HAVE_UNISTD_H
2334 # include <unistd.h>
2337 /* This mess was copied from the GNU getpagesize.h. */
2338 #ifndef HAVE_GETPAGESIZE
2340 /* Assume that all systems that can run configure have sys/param.h. */
2341 # ifndef HAVE_SYS_PARAM_H
2342 # define HAVE_SYS_PARAM_H 1
2345 # ifdef _SC_PAGESIZE
2346 # define getpagesize() sysconf(_SC_PAGESIZE)
2347 # else /* no _SC_PAGESIZE */
2348 # ifdef HAVE_SYS_PARAM_H
2349 # include <sys/param.h>
2350 # ifdef EXEC_PAGESIZE
2351 # define getpagesize() EXEC_PAGESIZE
2352 # else /* no EXEC_PAGESIZE */
2354 # define getpagesize() NBPG * CLSIZE
2357 # endif /* no CLSIZE */
2358 # else /* no NBPG */
2360 # define getpagesize() NBPC
2361 # else /* no NBPC */
2363 # define getpagesize() PAGESIZE
2364 # endif /* PAGESIZE */
2365 # endif /* no NBPC */
2366 # endif /* no NBPG */
2367 # endif /* no EXEC_PAGESIZE */
2368 # else /* no HAVE_SYS_PARAM_H */
2369 # define getpagesize() 8192 /* punt totally */
2370 # endif /* no HAVE_SYS_PARAM_H */
2371 # endif /* no _SC_PAGESIZE */
2373 #endif /* no HAVE_GETPAGESIZE */
2376 extern "C" { void *malloc(unsigned); }
2384 char *data, *data2, *data3;
2388 pagesize = getpagesize();
2391 * First, make a file with some known garbage in it.
2393 data = (char*)malloc(pagesize);
2396 for (i = 0; i < pagesize; ++i)
2397 *(data + i) = rand();
2399 fd = creat("conftestmmap", 0600);
2402 if (write(fd, data, pagesize) != pagesize)
2407 * Next, try to mmap the file at a fixed address which
2408 * already has something else allocated at it. If we can,
2409 * also make sure that we see the same garbage.
2411 fd = open("conftestmmap", O_RDWR);
2414 data2 = (char*)malloc(2 * pagesize);
2417 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2418 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2419 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2421 for (i = 0; i < pagesize; ++i)
2422 if (*(data + i) != *(data2 + i))
2426 * Finally, make sure that changes to the mapped area
2427 * do not percolate back to the file as seen by read().
2428 * (This is a bug on some variants of i386 svr4.0.)
2430 for (i = 0; i < pagesize; ++i)
2431 *(data2 + i) = *(data2 + i) + 1;
2432 data3 = (char*)malloc(pagesize);
2435 if (read(fd, data3, pagesize) != pagesize)
2437 for (i = 0; i < pagesize; ++i)
2438 if (*(data + i) != *(data3 + i))
2441 unlink("conftestmmap");
2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2448 ac_cv_func_mmap_fixed_mapped=yes
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 ac_cv_func_mmap_fixed_mapped=no
2460 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2462 cat >> confdefs.h <<\EOF
2468 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2469 echo "configure:2470: checking return type of signal handlers" >&5
2470 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 #include <sys/types.h>
2482 extern "C" void (*signal (int, void (*)(int)))(int);
2484 void (*signal ()) ();
2491 if { (eval echo configure:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 ac_cv_type_signal=void
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 ac_cv_type_signal=int
2503 echo "$ac_t""$ac_cv_type_signal" 1>&6
2504 cat >> confdefs.h <<EOF
2505 #define RETSIGTYPE $ac_cv_type_signal
2509 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2510 echo "configure:2511: checking for dlopen in -ldl" >&5
2511 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 ac_save_LIBS="$LIBS"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 eval "ac_cv_lib_$ac_lib_var=yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 eval "ac_cv_lib_$ac_lib_var=no"
2539 LIBS="$ac_save_LIBS"
2542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2543 echo "$ac_t""yes" 1>&6
2546 echo "$ac_t""no" 1>&6
2549 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2550 echo "configure:2551: checking for pow in -lm" >&5
2551 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2555 ac_save_LIBS="$LIBS"
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 /* Override any gcc2 internal prototype to avoid an error. */
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571 eval "ac_cv_lib_$ac_lib_var=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_lib_$ac_lib_var=no"
2579 LIBS="$ac_save_LIBS"
2582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 LIB_YUV="${LIB_YUV} -lm"
2586 echo "$ac_t""no" 1>&6
2591 if test "x${THREAD_LIB}" = xerror; then
2592 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2593 echo "configure:2594: checking for pthread_attr_init in -lpthread" >&5
2594 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_save_LIBS="$LIBS"
2599 LIBS="-lpthread $LIBS"
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606 char pthread_attr_init();
2612 if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2619 eval "ac_cv_lib_$ac_lib_var=no"
2622 LIBS="$ac_save_LIBS"
2625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 THREAD_LIB="-lpthread"
2629 echo "$ac_t""no" 1>&6
2633 if test "x${THREAD_LIB}" = xerror; then
2634 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2635 echo "configure:2636: checking for pthread_attr_init in -lpthreads" >&5
2636 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 ac_save_LIBS="$LIBS"
2641 LIBS="-lpthreads $LIBS"
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2645 /* Override any gcc2 internal prototype to avoid an error. */
2646 /* We use char because int might match the return type of a gcc2
2647 builtin and then its argument prototype would still apply. */
2648 char pthread_attr_init();
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2656 eval "ac_cv_lib_$ac_lib_var=yes"
2658 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2661 eval "ac_cv_lib_$ac_lib_var=no"
2664 LIBS="$ac_save_LIBS"
2667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 THREAD_LIB="-lpthreads"
2671 echo "$ac_t""no" 1>&6
2675 if test "x${THREAD_LIB}" = xerror; then
2676 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2677 echo "configure:2678: checking for pthread_attr_init in -lc_r" >&5
2678 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 ac_save_LIBS="$LIBS"
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 /* Override any gcc2 internal prototype to avoid an error. */
2688 /* We use char because int might match the return type of a gcc2
2689 builtin and then its argument prototype would still apply. */
2690 char pthread_attr_init();
2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2698 eval "ac_cv_lib_$ac_lib_var=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2703 eval "ac_cv_lib_$ac_lib_var=no"
2706 LIBS="$ac_save_LIBS"
2709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2713 echo "$ac_t""no" 1>&6
2717 if test "x${THREAD_LIB}" = xerror; then
2718 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2719 echo "configure:2720: checking for pthread_attr_init" >&5
2720 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 /* System header to define __stub macros and hopefully few prototypes,
2727 which can conflict with char pthread_attr_init(); below. */
2729 /* Override any gcc2 internal prototype to avoid an error. */
2730 /* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2732 char pthread_attr_init();
2736 /* The GNU C library defines this for functions which it implements
2737 to always fail with ENOSYS. Some functions are actually named
2738 something starting with __ and the normal name is an alias. */
2739 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2742 pthread_attr_init();
2747 if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749 eval "ac_cv_func_pthread_attr_init=yes"
2751 echo "configure: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2754 eval "ac_cv_func_pthread_attr_init=no"
2759 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2763 echo "$ac_t""no" 1>&6
2769 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2770 echo "configure:2771: checking for cthread_fork in -lthreads" >&5
2771 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 ac_save_LIBS="$LIBS"
2776 LIBS="-lthreads $LIBS"
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* Override any gcc2 internal prototype to avoid an error. */
2781 /* We use char because int might match the return type of a gcc2
2782 builtin and then its argument prototype would still apply. */
2783 char cthread_fork();
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2791 eval "ac_cv_lib_$ac_lib_var=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 eval "ac_cv_lib_$ac_lib_var=no"
2799 LIBS="$ac_save_LIBS"
2802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2803 echo "$ac_t""yes" 1>&6
2804 THREAD_LIB="-lthreads"
2806 echo "$ac_t""no" 1>&6
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813 #include <pthread.h>
2815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2816 egrep "pthread_cond_t" >/dev/null 2>&1; then
2819 cat >> confdefs.h <<\EOF
2820 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 #include <strings.h>
2831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2832 egrep "strncasecmp" >/dev/null 2>&1; then
2835 cat >> confdefs.h <<\EOF
2836 #define STRNCASECMP_IN_STRINGS_H 1
2843 for ac_hdr in stddef.h getopt.h strings.h
2845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2847 echo "configure:2848: checking for $ac_hdr" >&5
2848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2857 { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2859 if test -z "$ac_err"; then
2861 eval "ac_cv_header_$ac_safe=yes"
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 eval "ac_cv_header_$ac_safe=no"
2871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2872 echo "$ac_t""yes" 1>&6
2873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2874 cat >> confdefs.h <<EOF
2875 #define $ac_tr_hdr 1
2879 echo "$ac_t""no" 1>&6
2883 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_hdr" >&5
2888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897 { (eval echo configure:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899 if test -z "$ac_err"; then
2901 eval "ac_cv_header_$ac_safe=yes"
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 eval "ac_cv_header_$ac_safe=no"
2911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2912 echo "$ac_t""yes" 1>&6
2913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2914 cat >> confdefs.h <<EOF
2915 #define $ac_tr_hdr 1
2919 echo "$ac_t""no" 1>&6
2923 for ac_hdr in sys/soundcard.h machine/soundcard.h
2925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_hdr" >&5
2928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2937 { (eval echo configure:2938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2939 if test -z "$ac_err"; then
2941 eval "ac_cv_header_$ac_safe=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2947 eval "ac_cv_header_$ac_safe=no"
2951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2952 echo "$ac_t""yes" 1>&6
2953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2954 cat >> confdefs.h <<EOF
2955 #define $ac_tr_hdr 1
2959 echo "$ac_t""no" 1>&6
2963 for ac_hdr in dlfcn.h image.h
2965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2967 echo "configure:2968: checking for $ac_hdr" >&5
2968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2977 { (eval echo configure:2978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2979 if test -z "$ac_err"; then
2981 eval "ac_cv_header_$ac_safe=yes"
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2987 eval "ac_cv_header_$ac_safe=no"
2991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2994 cat >> confdefs.h <<EOF
2995 #define $ac_tr_hdr 1
2999 echo "$ac_t""no" 1>&6
3003 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
3005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3007 echo "configure:3008: checking for $ac_hdr" >&5
3008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3017 { (eval echo configure:3018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3019 if test -z "$ac_err"; then
3021 eval "ac_cv_header_$ac_safe=yes"
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3027 eval "ac_cv_header_$ac_safe=no"
3031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3034 cat >> confdefs.h <<EOF
3035 #define $ac_tr_hdr 1
3039 echo "$ac_t""no" 1>&6
3043 for ac_hdr in machine/param.h
3045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_hdr" >&5
3048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3057 { (eval echo configure:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3059 if test -z "$ac_err"; then
3061 eval "ac_cv_header_$ac_safe=yes"
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3067 eval "ac_cv_header_$ac_safe=no"
3071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3074 cat >> confdefs.h <<EOF
3075 #define $ac_tr_hdr 1
3079 echo "$ac_t""no" 1>&6
3084 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_hdr" >&5
3089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3098 { (eval echo configure:3099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3100 if test -z "$ac_err"; then
3102 eval "ac_cv_header_$ac_safe=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_header_$ac_safe=no"
3112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3113 echo "$ac_t""yes" 1>&6
3114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3115 cat >> confdefs.h <<EOF
3116 #define $ac_tr_hdr 1
3120 echo "$ac_t""no" 1>&6
3125 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3126 echo "configure:3127: checking for ntohl in sys/param.h" >&5
3127 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 CFLAGS="${save_CFLAGS} -Wall -Werror"
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <sys/param.h>
3136 void foo() { int meuh; ntohl(meuh); }
3139 if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141 ac_cv_c_ntohl_sys_param_h=yes
3143 echo "configure: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3146 ac_cv_c_ntohl_sys_param_h=no
3151 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3152 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3153 cat >> confdefs.h <<\EOF
3154 #define NTOHL_IN_SYS_PARAM_H 1
3159 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3160 echo "configure:3161: checking if \$CC accepts -finline-limit" >&5
3161 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 CFLAGS="${save_CFLAGS} -finline-limit-30000"
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3173 if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3175 ac_cv_c_inline_limit=yes
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 ac_cv_c_inline_limit=no
3185 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3186 if test x"$ac_cv_c_inline_limit" != x"no"; then
3187 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3190 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3191 echo "configure:3192: checking if \$CC accepts -bundle -undefined error" >&5
3192 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 CFLAGS="${save_CFLAGS} -bundle -undefined error"
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3216 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3217 if test x"$ac_cv_ld_darwin" != x"no"; then
3218 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3221 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3222 echo "configure:3223: checking if \$CC accepts -shared" >&5
3223 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 CFLAGS="${save_CFLAGS} -shared"
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 ac_cv_ld_plugins=yes
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3247 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3248 if test x"$ac_cv_ld_plugins" != x"no"; then
3249 PLCFLAGS="${PLCFLAGS} -shared"
3252 if test x"${SOFLAGS}" = x; then
3253 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3254 echo "configure:3255: checking for soname setting" >&5
3255 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3260 try_SOFLAGS="-Wl,-soname -Wl,"
3261 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3272 ac_cv_ld_soname="${try_SOFLAGS}"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3279 try_SOFLAGS="-Wl,-h -Wl,"
3280 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3291 ac_cv_ld_soname="${try_SOFLAGS}"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 ac_cv_ld_soname=none
3304 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3305 if test x"$ac_cv_ld_soname" != x"none"; then
3306 SOFLAGS=$ac_cv_ld_soname
3310 Your system doesn't seem to have support for dynamic linking. You may
3311 have problems using libdvdcss.
3317 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3318 echo "configure:3319: checking __attribute__ ((aligned ())) support" >&5
3319 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 ac_cv_c_attribute_aligned=0
3323 CFLAGS="${save_CFLAGS} -Werror"
3324 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3330 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3333 if { (eval echo configure:3334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3335 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3344 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3345 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3346 cat >> confdefs.h <<EOF
3347 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3352 CFLAGS="${save_CFLAGS}"
3353 LDFLAGS="${save_LDFLAGS}"
3355 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3356 echo "configure:3357: checking for boolean_t in sys/types.h" >&5
3357 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <sys/types.h>
3365 void quux() { boolean_t foo; }
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 ac_cv_c_boolean_t_sys_types_h=yes
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3375 ac_cv_c_boolean_t_sys_types_h=no
3380 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3381 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3382 cat >> confdefs.h <<\EOF
3383 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3388 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3389 echo "configure:3390: checking for boolean_t in pthread.h" >&5
3390 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <pthread.h>
3398 void quux() { boolean_t foo; }
3401 if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3403 ac_cv_c_boolean_t_pthread_h=yes
3405 echo "configure: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3408 ac_cv_c_boolean_t_pthread_h=no
3413 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3414 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3415 cat >> confdefs.h <<\EOF
3416 #define BOOLEAN_T_IN_PTHREAD_H 1
3421 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3422 echo "configure:3423: checking for boolean_t in cthreads.h" >&5
3423 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <cthreads.h>
3431 void quux() { boolean_t foo; }
3434 if { (eval echo configure:3435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3436 ac_cv_c_boolean_t_cthreads_h=yes
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 ac_cv_c_boolean_t_cthreads_h=no
3446 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3447 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3448 cat >> confdefs.h <<\EOF
3449 #define BOOLEAN_T_IN_CTHREADS_H 1
3454 echo $ac_n "checking for working const""... $ac_c" 1>&6
3455 echo "configure:3456: checking for working const" >&5
3456 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3465 /* Ultrix mips cc rejects this. */
3466 typedef int charset[2]; const charset x = {0,0};
3467 /* SunOS 4.1.1 cc rejects this. */
3468 char const *const *ccp;
3470 /* NEC SVR4.0.2 mips cc rejects this. */
3471 struct point {int x, y;};
3472 static struct point const zero = {0,0};
3473 /* AIX XL C 1.02.0.0 rejects this.
3474 It does not let you subtract one const X* pointer from another in an arm
3475 of an if-expression whose if-part is not a constant expression */
3476 const char *g = "string";
3477 ccp = &g + (g ? g-g : 0);
3478 /* HPUX 7.0 cc rejects these. */
3481 ccp = (char const *const *) p;
3482 { /* SCO 3.2v4 cc rejects this. */
3484 char const *s = 0 ? (char *) 0 : (char const *) 0;
3488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3490 const int *foo = &x[0];
3493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3494 typedef const int *iptr;
3498 { /* AIX XL C 1.02.0.0 rejects this saying
3499 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3500 struct s { int j; const int *ap[3]; };
3501 struct s *b; b->j = 5;
3503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3521 echo "$ac_t""$ac_cv_c_const" 1>&6
3522 if test $ac_cv_c_const = no; then
3523 cat >> confdefs.h <<\EOF
3529 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3530 echo "configure:3531: checking for ANSI C header files" >&5
3531 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3543 { (eval echo configure:3544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3545 if test -z "$ac_err"; then
3547 ac_cv_header_stdc=yes
3550 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3553 ac_cv_header_stdc=no
3557 if test $ac_cv_header_stdc = yes; then
3558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 egrep "memchr" >/dev/null 2>&1; then
3569 ac_cv_header_stdc=no
3575 if test $ac_cv_header_stdc = yes; then
3576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583 egrep "free" >/dev/null 2>&1; then
3587 ac_cv_header_stdc=no
3593 if test $ac_cv_header_stdc = yes; then
3594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3595 if test "$cross_compiling" = yes; then
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3602 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3603 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3605 int main () { int i; for (i = 0; i < 256; i++)
3606 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3610 if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3617 ac_cv_header_stdc=no
3625 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3626 if test $ac_cv_header_stdc = yes; then
3627 cat >> confdefs.h <<\EOF
3628 #define STDC_HEADERS 1
3633 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for size_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3650 ac_cv_type_size_t=yes
3653 ac_cv_type_size_t=no
3658 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3659 if test $ac_cv_type_size_t = no; then
3660 cat >> confdefs.h <<\EOF
3661 #define size_t unsigned
3666 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3667 echo "configure:3668: checking whether time.h and sys/time.h may both be included" >&5
3668 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3675 #include <sys/time.h>
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683 ac_cv_header_time=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 ac_cv_header_time=no
3693 echo "$ac_t""$ac_cv_header_time" 1>&6
3694 if test $ac_cv_header_time = yes; then
3695 cat >> confdefs.h <<\EOF
3696 #define TIME_WITH_SYS_TIME 1
3705 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3706 PLUGINS="${PLUGINS}"
3708 MMX_MODULES="yuvmmx idctmmx motionmmx"
3709 MMXEXT_MODULES="idctmmxext motionmmxext"
3710 THREEDNOW_MODULES="imdct3dn downmix3dn"
3711 SSE_MODULES="imdctsse downmixsse"
3712 ALTIVEC_MODULES="idctaltivec motionaltivec"
3714 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3715 echo "configure:3716: checking if \$CC groks MMX inline assembly" >&5
3716 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3724 void quux(){void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));}
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3729 ac_cv_mmx_inline=yes
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3739 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3740 if test x"$ac_cv_mmx_inline" != x"no"; then
3741 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3744 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3745 echo "configure:3746: checking if \$CC groks MMX EXT inline assembly" >&5
3746 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3754 void quux(){void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));}
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 ac_cv_mmxext_inline=yes
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3764 ac_cv_mmxext_inline=no
3769 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3770 if test x"$ac_cv_mmxext_inline" != x"no"; then
3771 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3774 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3775 echo "configure:3776: checking if \$CC groks 3D Now! inline assembly" >&5
3776 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3784 void quux(){void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));}
3787 if { (eval echo configure:3788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3789 ac_cv_3dnow_inline=yes
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 ac_cv_3dnow_inline=no
3799 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3800 if test x"$ac_cv_3dnow_inline" != x"no"; then
3801 cat >> confdefs.h <<\EOF
3802 #define HAVE_3DNOW 1
3805 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3808 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3809 echo "configure:3810: checking if \$CC groks SSE inline assembly" >&5
3810 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3818 void quux(){void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));}
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3823 ac_cv_sse_inline=yes
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3833 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3834 if test x"$ac_cv_sse_inline" != x"no"; then
3835 cat >> confdefs.h <<\EOF
3839 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3842 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3843 echo "configure:3844: checking if \$CC groks Altivec inline assembly" >&5
3844 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3852 void quux(){asm volatile("vperm 0,1,2,3");}
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 ac_cv_altivec_inline=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3863 CFLAGS="$CFLAGS -Wa,-m7400"
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3869 void quux(){asm volatile("vperm 0,1,2,3");}
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874 ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3879 ac_cv_altivec_inline=no
3888 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3889 if test x"$ac_cv_altivec_inline" != x"no"; then
3890 cat >> confdefs.h <<\EOF
3891 #define HAVE_ALTIVEC 1
3894 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3897 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3898 echo "configure:3899: checking if \$CC groks Altivec C extensions" >&5
3899 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3903 CFLAGS="$CFLAGS -faltivec"
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3910 void quux(){vec_mtvscr((vector unsigned int)(0));}
3913 if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3915 ac_cv_c_altivec=-faltivec
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3922 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3928 void quux(){vec_mtvscr((vector unsigned int)(0));}
3931 if { (eval echo configure:3932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3933 ac_cv_c_altivec="-fvec"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3948 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3949 if test x"$ac_cv_c_altivec" != x"no"; then
3950 cat >> confdefs.h <<\EOF
3951 #define HAVE_C_ALTIVEC 1
3954 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
3957 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
3958 echo "configure:3959: checking if linker needs -framework vecLib" >&5
3959 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 save_LDFLAGS=$LDFLAGS
3963 LDFLAGS="$LDFLAGS -framework vecLib"
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 ac_cv_ld_altivec=yes
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3982 LDFLAGS=$save_LDFLAGS
3986 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
3987 if test x"$ac_cv_ld_altivec" != x"no"; then
3988 LIB_ALTIVEC="-framework vecLib"
3992 CAN_BUILD_LIBDVDCSS=0
3994 for ac_hdr in winioctl.h
3996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3998 echo "configure:3999: checking for $ac_hdr" >&5
3999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4008 { (eval echo configure:4009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4010 if test -z "$ac_err"; then
4012 eval "ac_cv_header_$ac_safe=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_header_$ac_safe=no"
4022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4025 cat >> confdefs.h <<EOF
4026 #define $ac_tr_hdr 1
4029 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4032 echo "$ac_t""no" 1>&6
4037 for ac_hdr in sys/ioctl.h
4039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_hdr" >&5
4042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4051 { (eval echo configure:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4053 if test -z "$ac_err"; then
4055 eval "ac_cv_header_$ac_safe=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 eval "ac_cv_header_$ac_safe=no"
4065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4068 cat >> confdefs.h <<EOF
4069 #define $ac_tr_hdr 1
4072 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4073 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4077 echo "configure:4078: checking for $ac_hdr" >&5
4078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4087 { (eval echo configure:4088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4089 if test -z "$ac_err"; then
4091 eval "ac_cv_header_$ac_safe=yes"
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4097 eval "ac_cv_header_$ac_safe=no"
4101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4104 cat >> confdefs.h <<EOF
4105 #define $ac_tr_hdr 1
4109 echo "$ac_t""no" 1>&6
4115 OPENBSD_DVD_STRUCT=0
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 #include <sys/cdio.h>
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 egrep "dvd_struct" >/dev/null 2>&1; then
4125 cat >> confdefs.h <<\EOF
4126 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <sys/cdio.h>
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 egrep "struct dvd_struct" >/dev/null 2>&1; then
4141 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 #include <sys/dvdio.h>
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 egrep "dvd_struct" >/dev/null 2>&1; then
4158 cat >> confdefs.h <<\EOF
4159 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 #include <sys/dvdio.h>
4167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168 egrep "struct dvd_struct" >/dev/null 2>&1; then
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <linux/cdrom.h>
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 egrep "dvd_struct" >/dev/null 2>&1; then
4191 cat >> confdefs.h <<\EOF
4192 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 egrep "dvd_struct" >/dev/null 2>&1; then
4210 cat >> confdefs.h <<\EOF
4211 #define DVD_STRUCT_IN_DVD_H 1
4214 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4220 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4224 echo "configure:4225: checking for $ac_hdr" >&5
4225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4234 { (eval echo configure:4235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4236 if test -z "$ac_err"; then
4238 eval "ac_cv_header_$ac_safe=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4244 eval "ac_cv_header_$ac_safe=no"
4248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4249 echo "$ac_t""yes" 1>&6
4250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4251 cat >> confdefs.h <<EOF
4252 #define $ac_tr_hdr 1
4256 cat >> confdefs.h <<\EOF
4257 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4260 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4264 echo "$ac_t""no" 1>&6
4272 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4273 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4274 echo "configure:4275: checking for sys/scsi/scsi_types.h" >&5
4275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <sys/scsi/scsi_types.h>
4283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4284 { (eval echo configure:4285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4286 if test -z "$ac_err"; then
4288 eval "ac_cv_header_$ac_safe=yes"
4291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4294 eval "ac_cv_header_$ac_safe=no"
4298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4299 echo "$ac_t""yes" 1>&6
4301 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4302 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4303 echo "configure:4304: checking for sys/scsi/impl/uscsi.h" >&5
4304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #include <sys/scsi/impl/uscsi.h>
4312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4313 { (eval echo configure:4314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4315 if test -z "$ac_err"; then
4317 eval "ac_cv_header_$ac_safe=yes"
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4323 eval "ac_cv_header_$ac_safe=no"
4327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4328 echo "$ac_t""yes" 1>&6
4330 cat >> confdefs.h <<\EOF
4331 #define SOLARIS_USCSI 1
4336 echo "$ac_t""no" 1>&6
4341 echo "$ac_t""no" 1>&6
4344 if test x$LINUX_DVD_STRUCT = x1; then
4345 cat >> confdefs.h <<\EOF
4346 #define HAVE_LINUX_DVD_STRUCT 1
4349 if test x$OPENBSD_DVD_STRUCT = x1; then
4350 cat >> confdefs.h <<\EOF
4351 #define HAVE_OPENBSD_DVD_STRUCT 1
4356 if test x$BSD_DVD_STRUCT = x1; then
4357 cat >> confdefs.h <<\EOF
4358 #define HAVE_BSD_DVD_STRUCT 1
4365 echo "$ac_t""no" 1>&6
4371 case ${target_os} in
4383 # Check whether --with-tuning or --without-tuning was given.
4384 if test "${with_tuning+set}" = set; then
4385 withval="$with_tuning"
4389 if test "x$withval" != "x"; then
4392 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4394 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4398 # Check whether --enable-release or --disable-release was given.
4399 if test "${enable_release+set}" = set; then
4400 enableval="$enable_release"
4401 if test x$enableval = xyes; then RELEASE=1; fi
4403 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
4404 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
4408 # Check whether --enable-mmx or --disable-mmx was given.
4409 if test "${enable_mmx+set}" = set; then
4410 enableval="$enable_mmx"
4411 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4412 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4414 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";
4415 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4419 # Check whether --enable-altivec or --disable-altivec was given.
4420 if test "${enable_altivec+set}" = set; then
4421 enableval="$enable_altivec"
4422 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4423 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4425 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4426 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
4431 # Check whether --enable-debug or --disable-debug was given.
4432 if test "${enable_debug+set}" = set; then
4433 enableval="$enable_debug"
4434 if test x$enableval = xyes; then DEBUG=1; fi
4439 # Check whether --enable-trace or --disable-trace was given.
4440 if test "${enable_trace+set}" = set; then
4441 enableval="$enable_trace"
4442 if test x$enableval = xyes; then TRACE=1; fi
4447 # Check whether --enable-gprof or --disable-gprof was given.
4448 if test "${enable_gprof+set}" = set; then
4449 enableval="$enable_gprof"
4450 if test x$enableval = xyes; then GPROF=1; fi
4455 # Check whether --enable-cprof or --disable-cprof was given.
4456 if test "${enable_cprof+set}" = set; then
4457 enableval="$enable_cprof"
4458 if test x$enableval = xyes;
4460 LIB="${LIB} -lcprof"
4467 # Check whether --enable-optimizations or --disable-optimizations was given.
4468 if test "${enable_optimizations+set}" = set; then
4469 enableval="$enable_optimizations"
4470 if test x$enableval = xno; then OPTIMS=0; fi
4476 # Check whether --enable-pth or --disable-pth was given.
4477 if test "${enable_pth+set}" = set; then
4478 enableval="$enable_pth"
4479 if test x$enableval = xyes; then
4480 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4481 echo "configure:4482: checking for pth_init in -lpth" >&5
4482 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 ac_save_LIBS="$LIBS"
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502 eval "ac_cv_lib_$ac_lib_var=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_lib_$ac_lib_var=no"
4510 LIBS="$ac_save_LIBS"
4513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4516 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4517 cat >> confdefs.h <<EOF
4518 #define $ac_tr_lib 1
4524 echo "$ac_t""no" 1>&6
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533 egrep "pth_init" >/dev/null 2>&1; then
4536 cat >> confdefs.h <<\EOF
4537 #define PTH_INIT_IN_PTH_H 1
4549 LIB="${LIB} ${THREAD_LIB}"
4554 # Check whether --with-dvdcss or --without-dvdcss was given.
4555 if test "${with_dvdcss+set}" = set; then
4556 withval="$with_dvdcss"
4557 case "x${withval}" in
4559 # local libdvdcss, statically linked
4560 if test x${CAN_BUILD_LIBDVDCSS} = x1
4564 BUILTINS="${BUILTINS} dvd"
4565 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4566 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4567 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4571 # local libdvdcss, dynamically linked
4572 if test x${CAN_BUILD_LIBDVDCSS} = x1
4575 BUILTINS="${BUILTINS} dvd"
4576 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4577 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4578 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4582 # don't use libdvdcss at all, build a DVD module that can dlopen() it
4584 BUILTINS="${BUILTINS} dvd"
4585 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4586 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4587 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4588 LIB_DVD="${LIB_DVD} -ldl"
4589 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4592 # existing libdvdcss
4593 BUILTINS="${BUILTINS} dvd"
4594 if test "x$withval" != "xyes"
4596 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4597 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4599 LIB_DVD="${LIB_DVD} -ldvdcss"
4600 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4603 # user didn't decide, we choose to use local libdvdcss and link statically
4604 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4605 if test x${CAN_BUILD_LIBDVDCSS} = x1
4609 BUILTINS="${BUILTINS} dvd"
4610 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4611 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4612 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4614 # XXX: no check for libdl is done, don't try this at home !
4616 BUILTINS="${BUILTINS} dvd"
4617 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4618 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4619 LIB_DVD="${LIB_DVD} -ldl"
4620 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4625 # Check whether --enable-vcd or --disable-vcd was given.
4626 if test "${enable_vcd+set}" = set; then
4627 enableval="$enable_vcd"
4632 if test x$enable_vcd != xno
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 #include <linux/cdrom.h>
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640 egrep "cdrom_msf0" >/dev/null 2>&1; then
4643 BUILTINS="${BUILTINS} vcd"
4650 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
4652 BUILTINS="${BUILTINS} vcd"
4655 # Check whether --enable-dummy or --disable-dummy was given.
4656 if test "${enable_dummy+set}" = set; then
4657 enableval="$enable_dummy"
4662 if test x$enable_dummy != xno
4664 BUILTINS="${BUILTINS} dummy"
4667 # Check whether --enable-null or --disable-null was given.
4668 if test "${enable_null+set}" = set; then
4669 enableval="$enable_null"
4674 if test x$enable_null != xno
4676 BUILTINS="${BUILTINS} null"
4679 # Check whether --enable-rc or --disable-rc was given.
4680 if test "${enable_rc+set}" = set; then
4681 enableval="$enable_rc"
4686 if test x$enable_rc != xno
4688 BUILTINS="${BUILTINS} rc"
4691 if test x$SYS = xbeos
4693 BUILTINS="${BUILTINS} beos"
4694 LIB_BEOS="-lbe -lgame -lroot -ltracker"
4695 PLCFLAGS="${PLCFLAGS} -nostart"
4699 # Check whether --enable-dsp or --disable-dsp was given.
4700 if test "${enable_dsp+set}" = set; then
4701 enableval="$enable_dsp"
4706 if test x$enable_dsp != xno
4710 PLUGINS="${PLUGINS} dsp"
4714 # Check whether --enable-esd or --disable-esd was given.
4715 if test "${enable_esd+set}" = set; then
4716 enableval="$enable_esd"
4717 if test x$enable_esd = xyes
4719 # Extract the first word of "esd-config", so it can be a program name with args.
4720 set dummy esd-config; ac_word=$2
4721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_word" >&5
4723 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 case "$ESD_CONFIG" in
4728 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4731 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4736 for ac_dir in $ac_dummy; do
4737 test -z "$ac_dir" && ac_dir=.
4738 if test -f $ac_dir/$ac_word; then
4739 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4744 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4748 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4749 if test -n "$ESD_CONFIG"; then
4750 echo "$ac_t""$ESD_CONFIG" 1>&6
4752 echo "$ac_t""no" 1>&6
4755 if test x${ESD_CONFIG} != xno
4757 PLUGINS="${PLUGINS} esd"
4758 LIB_ESD="`${ESD_CONFIG} --libs`"
4764 # Check whether --enable-darwin or --disable-darwin was given.
4765 if test "${enable_darwin+set}" = set; then
4766 enableval="$enable_darwin"
4767 if test x$enable_darwin = xyes; then
4768 PLUGINS="${PLUGINS} darwin"
4769 LIB_DARWIN="-framework CoreAudio"
4774 # Check whether --enable-macosx or --disable-macosx was given.
4775 if test "${enable_macosx+set}" = set; then
4776 enableval="$enable_macosx"
4777 if test x$enable_macosx = xyes
4779 BUILTINS="${BUILTINS} macosx"
4780 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4784 for ac_hdr in Cocoa/Cocoa.h
4786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_hdr" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4798 { (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4800 if test -z "$ac_err"; then
4802 eval "ac_cv_header_$ac_safe=yes"
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4808 eval "ac_cv_header_$ac_safe=no"
4812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4815 cat >> confdefs.h <<EOF
4816 #define $ac_tr_hdr 1
4818 BUILTINS="${BUILTINS} macosx"
4819 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4823 echo "$ac_t""no" 1>&6
4830 # Check whether --enable-qnx or --disable-qnx was given.
4831 if test "${enable_qnx+set}" = set; then
4832 enableval="$enable_qnx"
4836 if test x$enable_qnx != xno
4840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4842 echo "configure:4843: checking for $ac_hdr" >&5
4843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4852 { (eval echo configure:4853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4854 if test -z "$ac_err"; then
4856 eval "ac_cv_header_$ac_safe=yes"
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4862 eval "ac_cv_header_$ac_safe=no"
4866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4869 cat >> confdefs.h <<EOF
4870 #define $ac_tr_hdr 1
4873 PLUGINS="${PLUGINS} qnx"
4874 LIB_QNX="-lasound -lph"
4877 echo "$ac_t""no" 1>&6
4883 # Check whether --enable-fb or --disable-fb was given.
4884 if test "${enable_fb+set}" = set; then
4885 enableval="$enable_fb"
4886 if test x$enable_fb = xyes
4888 PLUGINS="${PLUGINS} fb"
4893 # Check whether --with-ggi or --without-ggi was given.
4894 if test "${with_ggi+set}" = set; then
4896 if test "x$withval" != "xno"
4898 PLUGINS="${PLUGINS} ggi"
4899 if test "x$withval" != "xyes"
4901 LIB_GGI="-l"$withval
4909 # Check whether --enable-sdl or --disable-sdl was given.
4910 if test "${enable_sdl+set}" = set; then
4911 enableval="$enable_sdl"
4915 if test "x$enable_sdl" != "xno"
4918 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4919 if test "${with_sdl_config_path+set}" = set; then
4920 withval="$with_sdl_config_path"
4921 if test "x$withval" != "xno"
4923 SDL_PATH=$withval:$PATH
4927 # Extract the first word of "sdl12-config", so it can be a program name with args.
4928 set dummy sdl12-config; ac_word=$2
4929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4930 echo "configure:4931: checking for $ac_word" >&5
4931 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 case "$SDL12_CONFIG" in
4936 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4939 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4943 ac_dummy="$SDL_PATH"
4944 for ac_dir in $ac_dummy; do
4945 test -z "$ac_dir" && ac_dir=.
4946 if test -f $ac_dir/$ac_word; then
4947 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4952 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4956 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4957 if test -n "$SDL12_CONFIG"; then
4958 echo "$ac_t""$SDL12_CONFIG" 1>&6
4960 echo "$ac_t""no" 1>&6
4963 SDL_CONFIG=${SDL12_CONFIG}
4964 SDL_HEADER="SDL12/SDL.h"
4965 if test x${SDL_CONFIG} = xno
4967 # Extract the first word of "sdl11-config", so it can be a program name with args.
4968 set dummy sdl11-config; ac_word=$2
4969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4970 echo "configure:4971: checking for $ac_word" >&5
4971 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 case "$SDL11_CONFIG" in
4976 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4979 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4983 ac_dummy="$SDL_PATH"
4984 for ac_dir in $ac_dummy; do
4985 test -z "$ac_dir" && ac_dir=.
4986 if test -f $ac_dir/$ac_word; then
4987 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4992 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4996 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4997 if test -n "$SDL11_CONFIG"; then
4998 echo "$ac_t""$SDL11_CONFIG" 1>&6
5000 echo "$ac_t""no" 1>&6
5003 SDL_CONFIG=${SDL11_CONFIG}
5004 SDL_HEADER="SDL11/SDL.h"
5006 if test x${SDL_CONFIG} = xno
5008 # Extract the first word of "sdl-config", so it can be a program name with args.
5009 set dummy sdl-config; ac_word=$2
5010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5011 echo "configure:5012: checking for $ac_word" >&5
5012 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 case "$SDL_CONFIG" in
5017 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
5020 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
5023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5024 ac_dummy="$SDL_PATH"
5025 for ac_dir in $ac_dummy; do
5026 test -z "$ac_dir" && ac_dir=.
5027 if test -f $ac_dir/$ac_word; then
5028 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5033 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5037 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5038 if test -n "$SDL_CONFIG"; then
5039 echo "$ac_t""$SDL_CONFIG" 1>&6
5041 echo "$ac_t""no" 1>&6
5044 SDL_HEADER="SDL/SDL.h"
5046 if test x${SDL_CONFIG} != xno
5048 PLUGINS="${PLUGINS} sdl"
5049 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5050 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5051 save_CPPFLAGS=$CPPFLAGS
5052 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5053 for ac_hdr in ${SDL_HEADER}
5055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5057 echo "configure:5058: checking for $ac_hdr" >&5
5058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5067 { (eval echo configure:5068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5069 if test -z "$ac_err"; then
5071 eval "ac_cv_header_$ac_safe=yes"
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 eval "ac_cv_header_$ac_safe=no"
5081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5082 echo "$ac_t""yes" 1>&6
5083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5084 cat >> confdefs.h <<EOF
5085 #define $ac_tr_hdr 1
5087 cat >> confdefs.h <<EOF
5088 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5092 echo "$ac_t""no" 1>&6
5093 { echo "configure: error: The development package for SDL is not installed.
5094 Please install it and try again. Alternatively you can also configure with
5095 --disable-sdl." 1>&2; exit 1; }
5100 CPPFLAGS=$save_CPPFLAGS
5101 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5103 { echo "configure: error: The development package for SDL is not installed.
5104 Please install it and try again. Alternatively you can also configure with
5105 --disable-sdl." 1>&2; exit 1; }
5107 elif test "x$enable_sdl" = "xyes"
5109 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5110 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5115 # Check whether --with-directx or --without-directx was given.
5116 if test "${with_directx+set}" = set; then
5117 withval="$with_directx"
5118 if test "x$withval" != "xno"
5120 PLUGINS="${PLUGINS} directx"
5121 if test "x$withval" != "xyes"
5123 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
5124 INCLUDE="${INCLUDE} -I"$withval"/include"
5126 for ac_hdr in directx.h
5128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5130 echo "configure:5131: checking for $ac_hdr" >&5
5131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5140 { (eval echo configure:5141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5142 if test -z "$ac_err"; then
5144 eval "ac_cv_header_$ac_safe=yes"
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5150 eval "ac_cv_header_$ac_safe=no"
5154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5157 cat >> confdefs.h <<EOF
5158 #define $ac_tr_hdr 1
5162 echo "$ac_t""no" 1>&6
5163 { echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; }
5168 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5173 if test "x$withval" = "x"
5175 for ac_hdr in directx.h
5177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_hdr" >&5
5180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5189 { (eval echo configure:5190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5191 if test -z "$ac_err"; then
5193 eval "ac_cv_header_$ac_safe=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 eval "ac_cv_header_$ac_safe=no"
5203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5204 echo "$ac_t""yes" 1>&6
5205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5206 cat >> confdefs.h <<EOF
5207 #define $ac_tr_hdr 1
5209 PLUGINS="${PLUGINS} directx"
5210 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5212 echo "$ac_t""no" 1>&6
5218 # Check whether --with-glide or --without-glide was given.
5219 if test "${with_glide+set}" = set; then
5220 withval="$with_glide"
5221 if test "x$withval" != "xno"
5223 PLUGINS="${PLUGINS} glide"
5224 if test "x$withval" != "xyes"
5226 LIB_GLIDE="-l"$withval" -lm"
5228 LIB_GLIDE="-lglide2x -lm"
5234 # Check whether --enable-ncurses or --disable-ncurses was given.
5235 if test "${enable_ncurses+set}" = set; then
5236 enableval="$enable_ncurses"
5237 if test x$enable_ncurses = xyes; then
5238 PLUGINS="${PLUGINS} ncurses"
5239 LIB_NCURSES="-lncurses"
5244 # Check whether --enable-qt or --disable-qt was given.
5245 if test "${enable_qt+set}" = set; then
5246 enableval="$enable_qt"
5247 if test x$enable_qt = xyes; then
5248 PLUGINS="${PLUGINS} qt"
5249 ALIASES="${ALIASES} qvlc"
5250 LIB_QT="-lqt -L${QTDIR}/lib"
5251 if test -x ${QTDIR}/bin/moc
5253 MOC=${QTDIR}/bin/moc
5261 # Check whether --enable-kde or --disable-kde was given.
5262 if test "${enable_kde+set}" = set; then
5263 enableval="$enable_kde"
5264 if test x$enable_kde = xyes; then
5265 PLUGINS="${PLUGINS} kde"
5266 ALIASES="${ALIASES} kvlc"
5267 LIB_KDE="-L${KDEDIR}/lib -lkfile"
5268 if test -x ${QTDIR}/bin/moc
5270 MOC=${QTDIR}/bin/moc
5278 # Check whether --enable-gnome or --disable-gnome was given.
5279 if test "${enable_gnome+set}" = set; then
5280 enableval="$enable_gnome"
5281 if test x$enable_gnome = xyes; then
5282 # look for gnome-config
5283 # Extract the first word of "gnome-config", so it can be a program name with args.
5284 set dummy gnome-config; ac_word=$2
5285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5286 echo "configure:5287: checking for $ac_word" >&5
5287 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 case "$GNOME_CONFIG" in
5292 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5295 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5300 for ac_dir in $ac_dummy; do
5301 test -z "$ac_dir" && ac_dir=.
5302 if test -f $ac_dir/$ac_word; then
5303 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5308 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5312 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5313 if test -n "$GNOME_CONFIG"; then
5314 echo "$ac_t""$GNOME_CONFIG" 1>&6
5316 echo "$ac_t""no" 1>&6
5319 if test -x ${GNOME_CONFIG}
5321 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5322 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5324 # now look for the gnome.h header
5325 saved_CPPFLAGS=$CPPFLAGS
5326 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5327 for ac_hdr in gnome.h
5329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_hdr" >&5
5332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5341 { (eval echo configure:5342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5343 if test -z "$ac_err"; then
5345 eval "ac_cv_header_$ac_safe=yes"
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5351 eval "ac_cv_header_$ac_safe=no"
5355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5358 cat >> confdefs.h <<EOF
5359 #define $ac_tr_hdr 1
5362 PLUGINS="${PLUGINS} gnome"
5363 ALIASES="${ALIASES} gnome-vlc"
5366 echo "$ac_t""no" 1>&6
5367 { echo "configure: error: Can't find gnome headers. Please install the gnome
5368 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5374 CPPFLAGS=$saved_CPPFLAGS
5379 # Check whether --enable-gtk or --disable-gtk was given.
5380 if test "${enable_gtk+set}" = set; then
5381 enableval="$enable_gtk"
5385 if test x$enable_gtk != xno
5387 # look for gtk-config
5388 # Extract the first word of "gtk-config", so it can be a program name with args.
5389 set dummy gtk-config; ac_word=$2
5390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5391 echo "configure:5392: checking for $ac_word" >&5
5392 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 case "$GTK_CONFIG" in
5397 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5400 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5405 for ac_dir in $ac_dummy; do
5406 test -z "$ac_dir" && ac_dir=.
5407 if test -f $ac_dir/$ac_word; then
5408 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5413 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5417 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5418 if test -n "$GTK_CONFIG"; then
5419 echo "$ac_t""$GTK_CONFIG" 1>&6
5421 echo "$ac_t""no" 1>&6
5424 if test -x ${GTK_CONFIG}
5426 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5427 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5429 # now look for the gtk.h header
5430 saved_CPPFLAGS=$CPPFLAGS
5431 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5432 for ac_hdr in gtk/gtk.h
5434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_hdr" >&5
5437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5446 { (eval echo configure:5447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5448 if test -z "$ac_err"; then
5450 eval "ac_cv_header_$ac_safe=yes"
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 eval "ac_cv_header_$ac_safe=no"
5460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5461 echo "$ac_t""yes" 1>&6
5462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5463 cat >> confdefs.h <<EOF
5464 #define $ac_tr_hdr 1
5467 PLUGINS="${PLUGINS} gtk"
5468 ALIASES="${ALIASES} gvlc"
5471 echo "$ac_t""no" 1>&6
5475 CPPFLAGS=$saved_CPPFLAGS
5478 # Check whether --enable-x11 or --disable-x11 was given.
5479 if test "${enable_x11+set}" = set; then
5480 enableval="$enable_x11"
5484 if test x$enable_x11 != xno; then
5485 if test x$x_includes = xNONE; then
5486 x_includes=/usr/X11R6/include
5488 if test x$x_libraries = xNONE; then
5489 x_libraries=/usr/X11R6/lib
5491 saved_CPPFLAGS=$CPPFLAGS
5492 CPPFLAGS="$CPPFLAGS -I$x_includes"
5493 for ac_hdr in X11/Xlib.h
5495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_hdr" >&5
5498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5507 { (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5509 if test -z "$ac_err"; then
5511 eval "ac_cv_header_$ac_safe=yes"
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5517 eval "ac_cv_header_$ac_safe=no"
5521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5524 cat >> confdefs.h <<EOF
5525 #define $ac_tr_hdr 1
5528 PLUGINS="${PLUGINS} x11"
5529 LIB_X11="-L$x_libraries -lX11 -lXext"
5530 CFLAGS_X11="-I$x_includes"
5532 CPPFLAGS=$saved_CPPFLAGS
5534 echo "$ac_t""no" 1>&6
5540 # Check whether --enable-xvideo or --disable-xvideo was given.
5541 if test "${enable_xvideo+set}" = set; then
5542 enableval="$enable_xvideo"
5546 if test x$enable_xvideo != xno; then
5547 if test x$x_includes = xNONE; then
5548 x_includes=/usr/X11R6/include
5550 if test x$x_libraries = xNONE; then
5551 x_libraries=/usr/X11R6/lib
5553 saved_CPPFLAGS=$CPPFLAGS
5554 CPPFLAGS="$CPPFLAGS -I$x_includes"
5555 for ac_hdr in X11/extensions/Xv.h
5557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5559 echo "configure:5560: checking for $ac_hdr" >&5
5560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5569 { (eval echo configure:5570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5571 if test -z "$ac_err"; then
5573 eval "ac_cv_header_$ac_safe=yes"
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5579 eval "ac_cv_header_$ac_safe=no"
5583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5584 echo "$ac_t""yes" 1>&6
5585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5586 cat >> confdefs.h <<EOF
5587 #define $ac_tr_hdr 1
5590 BUILTINS="${BUILTINS} xvideo"
5591 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5592 CFLAGS_X11="-I$x_includes"
5594 CPPFLAGS=$saved_CPPFLAGS
5596 echo "$ac_t""no" 1>&6
5602 # Check whether --enable-alsa or --disable-alsa was given.
5603 if test "${enable_alsa+set}" = set; then
5604 enableval="$enable_alsa"
5605 if test x$enable_alsa = xyes
5607 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
5608 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
5609 echo "configure:5610: checking for sys/asoundlib.h" >&5
5610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 #include <sys/asoundlib.h>
5618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5619 { (eval echo configure:5620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5621 if test -z "$ac_err"; then
5623 eval "ac_cv_header_$ac_safe=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_header_$ac_safe=no"
5633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5635 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5636 echo "configure:5637: checking for main in -lasound" >&5
5637 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 ac_save_LIBS="$LIBS"
5642 LIBS="-lasound $LIBS"
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5653 eval "ac_cv_lib_$ac_lib_var=yes"
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5658 eval "ac_cv_lib_$ac_lib_var=no"
5661 LIBS="$ac_save_LIBS"
5664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5668 echo "$ac_t""no" 1>&6
5673 echo "$ac_t""no" 1>&6
5677 if test x$have_alsa = xtrue
5679 PLUGINS="${PLUGINS} alsa"
5688 # Check whether --enable-plugins or --disable-plugins was given.
5689 if test "${enable_plugins+set}" = set; then
5690 enableval="$enable_plugins"
5691 if test x$enable_plugins = xno
5693 BUILTINS="${BUILTINS} ${PLUGINS}"
5762 cat > confcache <<\EOF
5763 # This file is a shell script that caches the results of configure
5764 # tests run on this system so they can be shared between configure
5765 # scripts and configure runs. It is not useful on other systems.
5766 # If it contains results you don't want to keep, you may remove or edit it.
5768 # By default, configure uses ./config.cache as the cache file,
5769 # creating it if it does not exist already. You can give configure
5770 # the --cache-file=FILE option to use a different cache file; that is
5771 # what configure does when it calls configure scripts in
5772 # subdirectories, so they share the cache.
5773 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5774 # config.status only pays attention to the cache file if you give it the
5775 # --recheck option to rerun configure.
5778 # The following way of writing the cache mishandles newlines in values,
5779 # but we know of no workaround that is simple, portable, and efficient.
5780 # So, don't put newlines in cache variables' values.
5781 # Ultrix sh set writes to stderr and can't be redirected directly,
5782 # and sets the high bit in the cache file unless we assign to the vars.
5784 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5786 # `set' does not quote correctly, so add quotes (double-quote substitution
5787 # turns \\\\ into \\, and sed turns \\ into \).
5789 -e "s/'/'\\\\''/g" \
5790 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5793 # `set' quotes correctly as required by POSIX, so do not add quotes.
5794 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5797 if cmp -s $cache_file confcache; then
5800 if test -w $cache_file; then
5801 echo "updating cache $cache_file"
5802 cat confcache > $cache_file
5804 echo "not updating unwritable cache $cache_file"
5809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5812 # Let make expand exec_prefix.
5813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5815 # Any assignment to VPATH causes Sun make to only execute
5816 # the first set of double-colon rules, so remove it if not needed.
5817 # If there is a colon in the path, we need to keep it.
5818 if test "x$srcdir" = x.; then
5819 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5824 DEFS=-DHAVE_CONFIG_H
5826 # Without the "./", some shells look in PATH for config.status.
5827 : ${CONFIG_STATUS=./config.status}
5829 echo creating $CONFIG_STATUS
5830 rm -f $CONFIG_STATUS
5831 cat > $CONFIG_STATUS <<EOF
5833 # Generated automatically by configure.
5834 # Run this file to recreate the current configuration.
5835 # This directory was configured as follows,
5836 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5838 # $0 $ac_configure_args
5840 # Compiler output produced by configure, useful for debugging
5841 # configure, is in ./config.log if it exists.
5843 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5846 case "\$ac_option" in
5847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5848 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5849 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5850 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5851 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5853 -help | --help | --hel | --he | --h)
5854 echo "\$ac_cs_usage"; exit 0 ;;
5855 *) echo "\$ac_cs_usage"; exit 1 ;;
5859 ac_given_srcdir=$srcdir
5860 ac_given_INSTALL="$INSTALL"
5862 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5864 cat >> $CONFIG_STATUS <<EOF
5866 # Protect against being on the right side of a sed subst in config.status.
5867 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5868 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5872 s%@CFLAGS@%$CFLAGS%g
5873 s%@CPPFLAGS@%$CPPFLAGS%g
5874 s%@CXXFLAGS@%$CXXFLAGS%g
5875 s%@FFLAGS@%$FFLAGS%g
5877 s%@LDFLAGS@%$LDFLAGS%g
5879 s%@exec_prefix@%$exec_prefix%g
5880 s%@prefix@%$prefix%g
5881 s%@program_transform_name@%$program_transform_name%g
5882 s%@bindir@%$bindir%g
5883 s%@sbindir@%$sbindir%g
5884 s%@libexecdir@%$libexecdir%g
5885 s%@datadir@%$datadir%g
5886 s%@sysconfdir@%$sysconfdir%g
5887 s%@sharedstatedir@%$sharedstatedir%g
5888 s%@localstatedir@%$localstatedir%g
5889 s%@libdir@%$libdir%g
5890 s%@includedir@%$includedir%g
5891 s%@oldincludedir@%$oldincludedir%g
5892 s%@infodir@%$infodir%g
5893 s%@mandir@%$mandir%g
5895 s%@host_alias@%$host_alias%g
5896 s%@host_cpu@%$host_cpu%g
5897 s%@host_vendor@%$host_vendor%g
5898 s%@host_os@%$host_os%g
5899 s%@target@%$target%g
5900 s%@target_alias@%$target_alias%g
5901 s%@target_cpu@%$target_cpu%g
5902 s%@target_vendor@%$target_vendor%g
5903 s%@target_os@%$target_os%g
5905 s%@build_alias@%$build_alias%g
5906 s%@build_cpu@%$build_cpu%g
5907 s%@build_vendor@%$build_vendor%g
5908 s%@build_os@%$build_os%g
5909 s%@VLC_VERSION@%$VLC_VERSION%g
5910 s%@VLC_CODENAME@%$VLC_CODENAME%g
5911 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5912 s%@SET_MAKE@%$SET_MAKE%g
5915 s%@RANLIB@%$RANLIB%g
5916 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5917 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5918 s%@INSTALL_DATA@%$INSTALL_DATA%g
5919 s%@ESD_CONFIG@%$ESD_CONFIG%g
5920 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5921 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5922 s%@SDL_CONFIG@%$SDL_CONFIG%g
5923 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5924 s%@GTK_CONFIG@%$GTK_CONFIG%g
5927 s%@PLUGINS@%$PLUGINS%g
5928 s%@BUILTINS@%$BUILTINS%g
5929 s%@ALIASES@%$ALIASES%g
5930 s%@DEFINE@%$DEFINE%g
5931 s%@INCLUDE@%$INCLUDE%g
5937 s%@OPTIMS@%$OPTIMS%g
5938 s%@TUNING@%$TUNING%g
5939 s%@RELEASE@%$RELEASE%g
5940 s%@NEED_GETOPT@%$NEED_GETOPT%g
5942 s%@WINDRES@%$WINDRES%g
5943 s%@LCFLAGS@%$LCFLAGS%g
5944 s%@PLCFLAGS@%$PLCFLAGS%g
5945 s%@SOFLAGS@%$SOFLAGS%g
5947 s%@LIB_ALSA@%$LIB_ALSA%g
5948 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
5949 s%@LIB_BEOS@%$LIB_BEOS%g
5950 s%@LIB_DARWIN@%$LIB_DARWIN%g
5951 s%@LIB_DVD@%$LIB_DVD%g
5952 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5953 s%@LIB_ESD@%$LIB_ESD%g
5954 s%@LIB_GGI@%$LIB_GGI%g
5955 s%@LIB_GLIDE@%$LIB_GLIDE%g
5956 s%@LIB_GNOME@%$LIB_GNOME%g
5957 s%@LIB_GTK@%$LIB_GTK%g
5958 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5959 s%@LIB_KDE@%$LIB_KDE%g
5960 s%@LIB_MACOSX@%$LIB_MACOSX%g
5961 s%@LIB_QNX@%$LIB_QNX%g
5962 s%@LIB_NCURSES@%$LIB_NCURSES%g
5963 s%@LIB_QT@%$LIB_QT%g
5964 s%@LIB_TS@%$LIB_TS%g
5965 s%@LIB_SDL@%$LIB_SDL%g
5966 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5967 s%@LIB_X11@%$LIB_X11%g
5968 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5969 s%@LIB_YUV@%$LIB_YUV%g
5970 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5971 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
5972 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5973 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5974 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5975 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5976 s%@CFLAGS_X11@%$CFLAGS_X11%g
5977 s%@OBJ_DVD@%$OBJ_DVD%g
5978 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5979 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5984 cat >> $CONFIG_STATUS <<\EOF
5986 # Split the substitutions into bite-sized pieces for seds with
5987 # small command number limits, like on Digital OSF/1 and HP-UX.
5988 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5989 ac_file=1 # Number of current file.
5990 ac_beg=1 # First line for current file.
5991 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5994 while $ac_more_lines; do
5995 if test $ac_beg -gt 1; then
5996 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5998 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6000 if test ! -s conftest.s$ac_file; then
6002 rm -f conftest.s$ac_file
6004 if test -z "$ac_sed_cmds"; then
6005 ac_sed_cmds="sed -f conftest.s$ac_file"
6007 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6009 ac_file=`expr $ac_file + 1`
6011 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6014 if test -z "$ac_sed_cmds"; then
6019 cat >> $CONFIG_STATUS <<EOF
6021 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
6023 cat >> $CONFIG_STATUS <<\EOF
6024 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6027 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6028 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6029 *) ac_file_in="${ac_file}.in" ;;
6032 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6034 # Remove last slash and all that follows it. Not all systems have dirname.
6035 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6036 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6037 # The file is in a subdirectory.
6038 test ! -d "$ac_dir" && mkdir "$ac_dir"
6039 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6040 # A "../" for each directory in $ac_dir_suffix.
6041 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6043 ac_dir_suffix= ac_dots=
6046 case "$ac_given_srcdir" in
6048 if test -z "$ac_dots"; then top_srcdir=.
6049 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6050 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6052 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6053 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6056 case "$ac_given_INSTALL" in
6057 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6058 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6061 echo creating "$ac_file"
6063 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6065 *Makefile*) ac_comsub="1i\\
6066 # $configure_input" ;;
6070 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6072 s%@configure_input@%$configure_input%g
6073 s%@srcdir@%$srcdir%g
6074 s%@top_srcdir@%$top_srcdir%g
6075 s%@INSTALL@%$INSTALL%g
6076 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6083 # ac_d sets the value in "#define NAME VALUE" lines.
6084 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6085 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6088 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6089 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6090 ac_uB='\([ ]\)%\1#\2define\3'
6093 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6094 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6095 ac_eB='$%\1#\2define\3'
6099 if test "${CONFIG_HEADERS+set}" != set; then
6101 cat >> $CONFIG_STATUS <<EOF
6102 CONFIG_HEADERS="include/defs.h"
6104 cat >> $CONFIG_STATUS <<\EOF
6106 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6107 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6109 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6110 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6111 *) ac_file_in="${ac_file}.in" ;;
6114 echo creating $ac_file
6116 rm -f conftest.frag conftest.in conftest.out
6117 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6118 cat $ac_file_inputs > conftest.in
6122 # Transform confdefs.h into a sed script conftest.vals that substitutes
6123 # the proper values into config.h.in to produce config.h. And first:
6124 # Protect against being on the right side of a sed subst in config.status.
6125 # Protect against being in an unquoted here document in config.status.
6127 cat > conftest.hdr <<\EOF
6130 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6134 sed -n -f conftest.hdr confdefs.h > conftest.vals
6137 # This sed command replaces #undef with comments. This is necessary, for
6138 # example, in the case of _POSIX_SOURCE, which is predefined and required
6139 # on some systems where configure will not decide to define it.
6140 cat >> conftest.vals <<\EOF
6141 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6144 # Break up conftest.vals because some shells have a limit on
6145 # the size of here documents, and old seds have small limits too.
6150 ac_lines=`grep -c . conftest.vals`
6151 # grep -c gives empty output for an empty file on some AIX systems.
6152 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6153 # Write a limited-size here document to conftest.frag.
6154 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6155 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6157 sed -f conftest.frag conftest.in > conftest.out
6159 mv conftest.out conftest.in
6161 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6163 mv conftest.tail conftest.vals
6167 cat >> $CONFIG_STATUS <<\EOF
6168 rm -f conftest.frag conftest.h
6169 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6170 cat conftest.in >> conftest.h
6172 if cmp -s $ac_file conftest.h 2>/dev/null; then
6173 echo "$ac_file is unchanged"
6176 # Remove last slash and all that follows it. Not all systems have dirname.
6177 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6178 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6179 # The file is in a subdirectory.
6180 test ! -d "$ac_dir" && mkdir "$ac_dir"
6183 mv conftest.h $ac_file
6188 cat >> $CONFIG_STATUS <<EOF
6191 cat >> $CONFIG_STATUS <<\EOF
6195 chmod +x $CONFIG_STATUS
6196 rm -fr confdefs* $ac_clean_files
6197 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6201 global configuration
6202 --------------------
6204 architecture : ${ARCH}
6205 optimizations : ${OPTIMS}
6207 release: : ${RELEASE}"
6209 if test x${HAVE_VLC} = x1
6214 vlc version : ${VLC_VERSION}
6215 debug mode : ${DEBUG}
6216 trace mode : ${TRACE}
6217 cprof/gprof support : ${CPROF}/${GPROF}
6218 need builtin getopt : ${NEED_GETOPT}
6219 built-in modules :${BUILTINS}
6220 plug-in modules :${PLUGINS}
6221 vlc aliases :${ALIASES}"
6225 libdvdcss configuration
6226 -----------------------
6227 can be built : ${CAN_BUILD_LIBDVDCSS}
6228 will be built : ${NEED_LIBDVDCSS}"
6229 if test x${NEED_LIBDVDCSS} = x1
6231 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
6232 echo "link statically : ${STATIC_LIBDVDCSS}"
6234 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6238 You may now tune Makefile.opts at your convenience, for instance to choose
6239 which modules get compiled as plugins.
6241 if test x${HAVE_VLC} = x1
6243 echo "To build vlc and its plugins, type \`make vlc'."
6245 if test x${HAVE_LIBDVDCSS} = x1
6247 echo "To build libdvdcss only, type \`make libdvdcss'."