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 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --enable-trace Enable trace mode (default disabled)"
27 --enable-profiling Enable gprof profiling (default disabled)"
29 --disable-optimizations Disable compiler optimizations (default enabled)"
31 --enable-pth Enable GNU Pth support (default disabled)"
33 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no', or 'local-static', 'local-shared', or a path to another libdvdcss such as '/usr/local' (default 'local-static')"
35 --disable-dummy dummy module (default enabled)"
37 --disable-null Null module (default enabled)"
39 --disable-rc rc module (default enabled)"
41 --disable-dsp Linux /dev/dsp support (default enabled)"
43 --enable-esd Esound library support (default disabled)"
45 --enable-darwin Darwin sound support (default disabled)"
47 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
49 --disable-qnx QNX RTOS support (default enabled in QNX RTOS)"
51 --enable-fb Linux framebuffer support (default disabled)"
53 --with-ggi[=name] GGI support (default disabled)"
55 --disable-sdl SDL support (default enabled)"
57 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
59 --with-directx[=name] Windows DirectX support (default enabled)"
61 --with-glide[=name] Glide (3dfx) support (default disabled)"
63 --enable-ncurses ncurses interface support (default disabled)"
65 --enable-qt Qt interface support (default disabled)"
67 --enable-kde KDE interface support (default disabled)"
69 --enable-gnome Gnome interface support (default disabled)"
71 --disable-gtk Gtk+ support (default enabled)"
73 --disable-x11 X11 support (default enabled)"
75 --disable-xvideo XVideo support (default enabled)"
77 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file=./config.cache
92 program_transform_name=s,x,x,
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
113 # Initialize some other variables.
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143 bindir="$ac_optarg" ;;
145 -build | --build | --buil | --bui | --bu)
147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148 build="$ac_optarg" ;;
150 -cache-file | --cache-file | --cache-fil | --cache-fi \
151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152 ac_prev=cache_file ;;
153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155 cache_file="$ac_optarg" ;;
157 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 datadir="$ac_optarg" ;;
163 -disable-* | --disable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* | --enable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187 | --exec | --exe | --ex)
188 ac_prev=exec_prefix ;;
189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191 | --exec=* | --exe=* | --ex=*)
192 exec_prefix="$ac_optarg" ;;
194 -gas | --gas | --ga | --g)
195 # Obsolete; use --with-gas.
198 -help | --help | --hel | --he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host | --host | --hos | --ho)
255 -host=* | --host=* | --hos=* | --ho=*)
258 -includedir | --includedir | --includedi | --included | --include \
259 | --includ | --inclu | --incl | --inc)
260 ac_prev=includedir ;;
261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262 | --includ=* | --inclu=* | --incl=* | --inc=*)
263 includedir="$ac_optarg" ;;
265 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268 infodir="$ac_optarg" ;;
270 -libdir | --libdir | --libdi | --libd)
272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
273 libdir="$ac_optarg" ;;
275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276 | --libexe | --libex | --libe)
277 ac_prev=libexecdir ;;
278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279 | --libexe=* | --libex=* | --libe=*)
280 libexecdir="$ac_optarg" ;;
282 -localstatedir | --localstatedir | --localstatedi | --localstated \
283 | --localstate | --localstat | --localsta | --localst \
284 | --locals | --local | --loca | --loc | --lo)
285 ac_prev=localstatedir ;;
286 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289 localstatedir="$ac_optarg" ;;
291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294 mandir="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310 | --oldin | --oldi | --old | --ol | --o)
311 ac_prev=oldincludedir ;;
312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315 oldincludedir="$ac_optarg" ;;
317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320 prefix="$ac_optarg" ;;
322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
323 | --program-pre | --program-pr | --program-p)
324 ac_prev=program_prefix ;;
325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327 program_prefix="$ac_optarg" ;;
329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
330 | --program-suf | --program-su | --program-s)
331 ac_prev=program_suffix ;;
332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334 program_suffix="$ac_optarg" ;;
336 -program-transform-name | --program-transform-name \
337 | --program-transform-nam | --program-transform-na \
338 | --program-transform-n | --program-transform- \
339 | --program-transform | --program-transfor \
340 | --program-transfo | --program-transf \
341 | --program-trans | --program-tran \
342 | --progr-tra | --program-tr | --program-t)
343 ac_prev=program_transform_name ;;
344 -program-transform-name=* | --program-transform-name=* \
345 | --program-transform-nam=* | --program-transform-na=* \
346 | --program-transform-n=* | --program-transform-=* \
347 | --program-transform=* | --program-transfor=* \
348 | --program-transfo=* | --program-transf=* \
349 | --program-trans=* | --program-tran=* \
350 | --progr-tra=* | --program-tr=* | --program-t=*)
351 program_transform_name="$ac_optarg" ;;
353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354 | -silent | --silent | --silen | --sile | --sil)
357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 sbindir="$ac_optarg" ;;
363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365 | --sharedst | --shareds | --shared | --share | --shar \
367 ac_prev=sharedstatedir ;;
368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 sharedstatedir="$ac_optarg" ;;
374 -site | --site | --sit)
376 -site=* | --site=* | --sit=*)
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=include/common.h
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE; then
546 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='\c' ac_t=
591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
592 if test -f $ac_dir/install-sh; then
594 ac_install_sh="$ac_aux_dir/install-sh -c"
596 elif test -f $ac_dir/install.sh; then
598 ac_install_sh="$ac_aux_dir/install.sh -c"
602 if test -z "$ac_aux_dir"; then
603 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
605 ac_config_guess=$ac_aux_dir/config.guess
606 ac_config_sub=$ac_aux_dir/config.sub
607 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
610 # Make sure we can run config.sub.
611 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
615 echo $ac_n "checking host system type""... $ac_c" 1>&6
616 echo "configure:617: checking host system type" >&5
619 case "$host_alias" in
623 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
624 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 *) host_alias=$nonopt ;;
630 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$host" 1>&6
638 if test -r src/interface/main.c; then
647 if test -r extras/libdvdcss/libdvdcss.c; then
649 LIBDVDCSS_VERSION=0.0.3
653 save_CFLAGS="${CFLAGS}"
654 save_LDFLAGS="${LDFLAGS}"
656 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
657 echo "configure:658: checking whether ${MAKE-make} sets \${MAKE}" >&5
658 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
659 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 cat > conftestmake <<\EOF
664 @echo 'ac_maketemp="${MAKE}"'
666 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
667 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
668 if test -n "$ac_maketemp"; then
669 eval ac_cv_prog_make_${ac_make}_set=yes
671 eval ac_cv_prog_make_${ac_make}_set=no
675 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
676 echo "$ac_t""yes" 1>&6
679 echo "$ac_t""no" 1>&6
680 SET_MAKE="MAKE=${MAKE-make}"
683 # Extract the first word of "gcc", so it can be a program name with args.
684 set dummy gcc; ac_word=$2
685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
686 echo "configure:687: checking for $ac_word" >&5
687 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 if test -n "$CC"; then
691 ac_cv_prog_CC="$CC" # Let the user override the test.
693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
695 for ac_dir in $ac_dummy; do
696 test -z "$ac_dir" && ac_dir=.
697 if test -f $ac_dir/$ac_word; then
706 if test -n "$CC"; then
707 echo "$ac_t""$CC" 1>&6
709 echo "$ac_t""no" 1>&6
712 if test -z "$CC"; then
713 # Extract the first word of "cc", so it can be a program name with args.
714 set dummy cc; ac_word=$2
715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
716 echo "configure:717: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 if test -n "$CC"; then
721 ac_cv_prog_CC="$CC" # Let the user override the test.
723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
726 for ac_dir in $ac_dummy; do
727 test -z "$ac_dir" && ac_dir=.
728 if test -f $ac_dir/$ac_word; then
729 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
738 if test $ac_prog_rejected = yes; then
739 # We found a bogon in the path, so make sure we never use it.
740 set dummy $ac_cv_prog_CC
742 if test $# -gt 0; then
743 # We chose a different compiler from the bogus one.
744 # However, it has the same basename, so the bogon will be chosen
745 # first if we set CC to just the basename; use the full file name.
747 set dummy "$ac_dir/$ac_word" "$@"
755 if test -n "$CC"; then
756 echo "$ac_t""$CC" 1>&6
758 echo "$ac_t""no" 1>&6
761 if test -z "$CC"; then
764 # Extract the first word of "cl", so it can be a program name with args.
765 set dummy cl; 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
795 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
798 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
799 echo "configure:800: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
803 ac_cpp='$CPP $CPPFLAGS'
804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
806 cross_compiling=$ac_cv_prog_cc_cross
808 cat > conftest.$ac_ext << EOF
810 #line 811 "configure"
811 #include "confdefs.h"
815 if { (eval echo configure:816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
816 ac_cv_prog_cc_works=yes
817 # If we can't run a trivial program, we are probably using a cross compiler.
818 if (./conftest; exit) 2>/dev/null; then
819 ac_cv_prog_cc_cross=no
821 ac_cv_prog_cc_cross=yes
824 echo "configure: failed program was:" >&5
825 cat conftest.$ac_ext >&5
826 ac_cv_prog_cc_works=no
830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
831 ac_cpp='$CPP $CPPFLAGS'
832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
834 cross_compiling=$ac_cv_prog_cc_cross
836 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
837 if test $ac_cv_prog_cc_works = no; then
838 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
840 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
841 echo "configure:842: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
842 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
843 cross_compiling=$ac_cv_prog_cc_cross
845 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
846 echo "configure:847: checking whether we are using GNU C" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 cat > conftest.c <<EOF
855 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
862 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
864 if test $ac_cv_prog_gcc = yes; then
870 ac_test_CFLAGS="${CFLAGS+set}"
871 ac_save_CFLAGS="$CFLAGS"
873 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
874 echo "configure:875: checking whether ${CC-cc} accepts -g" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 echo 'void f(){}' > conftest.c
879 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
888 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
889 if test "$ac_test_CFLAGS" = set; then
890 CFLAGS="$ac_save_CFLAGS"
891 elif test $ac_cv_prog_cc_g = yes; then
892 if test "$GCC" = yes; then
898 if test "$GCC" = yes; then
905 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
906 echo "configure:907: checking how to run the C preprocessor" >&5
907 # On Suns, sometimes $CPP names a directory.
908 if test -n "$CPP" && test -d "$CPP"; then
911 if test -z "$CPP"; then
912 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 # This must be in double quotes, not single quotes, because CPP may get
916 # substituted into the Makefile and "${CC-cc}" will confuse make.
918 # On the NeXT, cc -E runs the code through the compiler's parser,
919 # not just through cpp.
920 cat > conftest.$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
927 { (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
929 if test -z "$ac_err"; then
933 echo "configure: failed program was:" >&5
934 cat conftest.$ac_ext >&5
936 CPP="${CC-cc} -E -traditional-cpp"
937 cat > conftest.$ac_ext <<EOF
938 #line 939 "configure"
939 #include "confdefs.h"
943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944 { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946 if test -z "$ac_err"; then
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
953 CPP="${CC-cc} -nologo -E"
954 cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
961 { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
963 if test -z "$ac_err"; then
967 echo "configure: failed program was:" >&5
968 cat conftest.$ac_ext >&5
977 ac_cv_prog_CPP="$CPP"
979 CPP="$ac_cv_prog_CPP"
981 ac_cv_prog_CPP="$CPP"
983 echo "$ac_t""$CPP" 1>&6
985 # Extract the first word of "ranlib", so it can be a program name with args.
986 set dummy ranlib; ac_word=$2
987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988 echo "configure:989: checking for $ac_word" >&5
989 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 if test -n "$RANLIB"; then
993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
997 for ac_dir in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir=.
999 if test -f $ac_dir/$ac_word; then
1000 ac_cv_prog_RANLIB="ranlib"
1005 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1008 RANLIB="$ac_cv_prog_RANLIB"
1009 if test -n "$RANLIB"; then
1010 echo "$ac_t""$RANLIB" 1>&6
1012 echo "$ac_t""no" 1>&6
1016 # Find a good install program. We prefer a C program (faster),
1017 # so one script is as good as another. But avoid the broken or
1018 # incompatible versions:
1019 # SysV /etc/install, /usr/sbin/install
1020 # SunOS /usr/etc/install
1021 # IRIX /sbin/install
1023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1026 # ./install, which can be erroneously created by make from ./install.sh.
1027 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1028 echo "configure:1029: checking for a BSD compatible install" >&5
1029 if test -z "$INSTALL"; then
1030 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1034 for ac_dir in $PATH; do
1035 # Account for people who put trailing slashes in PATH elements.
1037 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1039 # OSF1 and SCO ODT 3.0 have their own names for install.
1040 # Don't use installbsd from OSF since it installs stuff as root
1042 for ac_prog in ginstall scoinst install; do
1043 if test -f $ac_dir/$ac_prog; then
1044 if test $ac_prog = install &&
1045 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1046 # AIX install. It has an incompatible calling convention.
1049 ac_cv_path_install="$ac_dir/$ac_prog -c"
1060 if test "${ac_cv_path_install+set}" = set; then
1061 INSTALL="$ac_cv_path_install"
1063 # As a last resort, use the slow shell script. We don't cache a
1064 # path for INSTALL within a source directory, because that will
1065 # break other packages using the cache if that directory is
1066 # removed, or if the path is relative.
1067 INSTALL="$ac_install_sh"
1070 echo "$ac_t""$INSTALL" 1>&6
1072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1073 # It thinks the first close brace ends the variable substitution.
1074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1081 if test x${cross_compiling} != xyes; then
1082 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1083 echo "configure:1084: checking whether byte ordering is bigendian" >&5
1084 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 ac_cv_c_bigendian=unknown
1088 # See if sys/param.h defines the BYTE_ORDER macro.
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1092 #include <sys/types.h>
1093 #include <sys/param.h>
1096 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1101 if { (eval echo configure:1102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 # It does; now see whether it defined to BIG_ENDIAN or not.
1104 cat > conftest.$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1107 #include <sys/types.h>
1108 #include <sys/param.h>
1111 #if BYTE_ORDER != BIG_ENDIAN
1116 if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1118 ac_cv_c_bigendian=yes
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1123 ac_cv_c_bigendian=no
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1131 if test $ac_cv_c_bigendian = unknown; then
1132 if test "$cross_compiling" = yes; then
1133 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1139 /* Are we little or big endian? From Harbison&Steele. */
1143 char c[sizeof (long)];
1146 exit (u.c[sizeof (long) - 1] == 1);
1149 if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1151 ac_cv_c_bigendian=no
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1156 ac_cv_c_bigendian=yes
1164 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1165 if test $ac_cv_c_bigendian = yes; then
1166 cat >> confdefs.h <<\EOF
1167 #define WORDS_BIGENDIAN 1
1174 for ac_func in gettimeofday select strerror strtod strtol
1176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1177 echo "configure:1178: checking for $ac_func" >&5
1178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 cat > conftest.$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1184 /* System header to define __stub macros and hopefully few prototypes,
1185 which can conflict with char $ac_func(); below. */
1187 /* Override any gcc2 internal prototype to avoid an error. */
1188 /* We use char because int might match the return type of a gcc2
1189 builtin and then its argument prototype would still apply. */
1194 /* The GNU C library defines this for functions which it implements
1195 to always fail with ENOSYS. Some functions are actually named
1196 something starting with __ and the normal name is an alias. */
1197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1205 if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1207 eval "ac_cv_func_$ac_func=yes"
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1212 eval "ac_cv_func_$ac_func=no"
1217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1218 echo "$ac_t""yes" 1>&6
1219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1220 cat >> confdefs.h <<EOF
1221 #define $ac_tr_func 1
1225 echo "$ac_t""no" 1>&6
1229 for ac_func in setenv putenv
1231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1232 echo "configure:1233: checking for $ac_func" >&5
1233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1239 /* System header to define __stub macros and hopefully few prototypes,
1240 which can conflict with char $ac_func(); below. */
1242 /* Override any gcc2 internal prototype to avoid an error. */
1243 /* We use char because int might match the return type of a gcc2
1244 builtin and then its argument prototype would still apply. */
1249 /* The GNU C library defines this for functions which it implements
1250 to always fail with ENOSYS. Some functions are actually named
1251 something starting with __ and the normal name is an alias. */
1252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1260 if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1262 eval "ac_cv_func_$ac_func=yes"
1264 echo "configure: failed program was:" >&5
1265 cat conftest.$ac_ext >&5
1267 eval "ac_cv_func_$ac_func=no"
1272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1273 echo "$ac_t""yes" 1>&6
1274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1275 cat >> confdefs.h <<EOF
1276 #define $ac_tr_func 1
1280 echo "$ac_t""no" 1>&6
1284 echo $ac_n "checking for connect""... $ac_c" 1>&6
1285 echo "configure:1286: checking for connect" >&5
1286 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1292 /* System header to define __stub macros and hopefully few prototypes,
1293 which can conflict with char connect(); below. */
1295 /* Override any gcc2 internal prototype to avoid an error. */
1296 /* We use char because int might match the return type of a gcc2
1297 builtin and then its argument prototype would still apply. */
1302 /* The GNU C library defines this for functions which it implements
1303 to always fail with ENOSYS. Some functions are actually named
1304 something starting with __ and the normal name is an alias. */
1305 #if defined (__stub_connect) || defined (__stub___connect)
1313 if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1315 eval "ac_cv_func_connect=yes"
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1320 eval "ac_cv_func_connect=no"
1325 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1326 echo "$ac_t""yes" 1>&6
1329 echo "$ac_t""no" 1>&6
1331 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1332 echo "configure:1333: checking for connect in -lsocket" >&5
1333 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 ac_save_LIBS="$LIBS"
1338 LIBS="-lsocket $LIBS"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 /* Override any gcc2 internal prototype to avoid an error. */
1343 /* We use char because int might match the return type of a gcc2
1344 builtin and then its argument prototype would still apply. */
1351 if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1353 eval "ac_cv_lib_$ac_lib_var=yes"
1355 echo "configure: failed program was:" >&5
1356 cat conftest.$ac_ext >&5
1358 eval "ac_cv_lib_$ac_lib_var=no"
1361 LIBS="$ac_save_LIBS"
1364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1365 echo "$ac_t""yes" 1>&6
1366 LIB="${LIB} -lsocket"
1368 echo "$ac_t""no" 1>&6
1374 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1375 echo "configure:1376: checking for gethostbyname" >&5
1376 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 /* System header to define __stub macros and hopefully few prototypes,
1383 which can conflict with char gethostbyname(); below. */
1385 /* Override any gcc2 internal prototype to avoid an error. */
1386 /* We use char because int might match the return type of a gcc2
1387 builtin and then its argument prototype would still apply. */
1388 char gethostbyname();
1392 /* The GNU C library defines this for functions which it implements
1393 to always fail with ENOSYS. Some functions are actually named
1394 something starting with __ and the normal name is an alias. */
1395 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405 eval "ac_cv_func_gethostbyname=yes"
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1410 eval "ac_cv_func_gethostbyname=no"
1415 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1419 echo "$ac_t""no" 1>&6
1421 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1422 echo "configure:1423: checking for gethostbyname in -lnsl" >&5
1423 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 ac_save_LIBS="$LIBS"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1435 char gethostbyname();
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1443 eval "ac_cv_lib_$ac_lib_var=yes"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1448 eval "ac_cv_lib_$ac_lib_var=no"
1451 LIBS="$ac_save_LIBS"
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1458 echo "$ac_t""no" 1>&6
1464 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1465 echo "configure:1466: checking for nanosleep" >&5
1466 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472 /* System header to define __stub macros and hopefully few prototypes,
1473 which can conflict with char nanosleep(); below. */
1475 /* Override any gcc2 internal prototype to avoid an error. */
1476 /* We use char because int might match the return type of a gcc2
1477 builtin and then its argument prototype would still apply. */
1482 /* The GNU C library defines this for functions which it implements
1483 to always fail with ENOSYS. Some functions are actually named
1484 something starting with __ and the normal name is an alias. */
1485 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1495 eval "ac_cv_func_nanosleep=yes"
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1500 eval "ac_cv_func_nanosleep=no"
1505 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1506 echo "$ac_t""yes" 1>&6
1509 echo "$ac_t""no" 1>&6
1511 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1512 echo "configure:1513: checking for nanosleep in -lrt" >&5
1513 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 ac_save_LIBS="$LIBS"
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 /* Override any gcc2 internal prototype to avoid an error. */
1523 /* We use char because int might match the return type of a gcc2
1524 builtin and then its argument prototype would still apply. */
1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1533 eval "ac_cv_lib_$ac_lib_var=yes"
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 eval "ac_cv_lib_$ac_lib_var=no"
1541 LIBS="$ac_save_LIBS"
1544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1545 echo "$ac_t""yes" 1>&6
1548 echo "$ac_t""no" 1>&6
1550 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1551 echo "configure:1552: checking for nanosleep in -lposix4" >&5
1552 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 ac_save_LIBS="$LIBS"
1557 LIBS="-lposix4 $LIBS"
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 /* Override any gcc2 internal prototype to avoid an error. */
1562 /* We use char because int might match the return type of a gcc2
1563 builtin and then its argument prototype would still apply. */
1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1572 eval "ac_cv_lib_$ac_lib_var=yes"
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 eval "ac_cv_lib_$ac_lib_var=no"
1580 LIBS="$ac_save_LIBS"
1583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1584 echo "$ac_t""yes" 1>&6
1585 LIB="${LIB} -lposix4"
1587 echo "$ac_t""no" 1>&6
1596 for ac_func in usleep
1598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1599 echo "configure:1600: checking for $ac_func" >&5
1600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 /* System header to define __stub macros and hopefully few prototypes,
1607 which can conflict with char $ac_func(); below. */
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1616 /* The GNU C library defines this for functions which it implements
1617 to always fail with ENOSYS. Some functions are actually named
1618 something starting with __ and the normal name is an alias. */
1619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1629 eval "ac_cv_func_$ac_func=yes"
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1634 eval "ac_cv_func_$ac_func=no"
1639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1640 echo "$ac_t""yes" 1>&6
1641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1642 cat >> confdefs.h <<EOF
1643 #define $ac_tr_func 1
1647 echo "$ac_t""no" 1>&6
1651 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1652 echo "configure:1653: checking for inet_aton" >&5
1653 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 /* System header to define __stub macros and hopefully few prototypes,
1660 which can conflict with char inet_aton(); below. */
1662 /* Override any gcc2 internal prototype to avoid an error. */
1663 /* We use char because int might match the return type of a gcc2
1664 builtin and then its argument prototype would still apply. */
1669 /* The GNU C library defines this for functions which it implements
1670 to always fail with ENOSYS. Some functions are actually named
1671 something starting with __ and the normal name is an alias. */
1672 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1682 eval "ac_cv_func_inet_aton=yes"
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 eval "ac_cv_func_inet_aton=no"
1692 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1693 echo "$ac_t""yes" 1>&6
1696 echo "$ac_t""no" 1>&6
1698 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1699 echo "configure:1700: checking for inet_aton in -lresolv" >&5
1700 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 ac_save_LIBS="$LIBS"
1705 LIBS="-lresolv $LIBS"
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 /* Override any gcc2 internal prototype to avoid an error. */
1710 /* We use char because int might match the return type of a gcc2
1711 builtin and then its argument prototype would still apply. */
1718 if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1720 eval "ac_cv_lib_$ac_lib_var=yes"
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1725 eval "ac_cv_lib_$ac_lib_var=no"
1728 LIBS="$ac_save_LIBS"
1731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1733 LIB="${LIB} -lresolv"
1735 echo "$ac_t""no" 1>&6
1741 for ac_func in vasprintf
1743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_func" >&5
1745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $ac_func(); below. */
1754 /* Override any gcc2 internal prototype to avoid an error. */
1755 /* We use char because int might match the return type of a gcc2
1756 builtin and then its argument prototype would still apply. */
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1774 eval "ac_cv_func_$ac_func=yes"
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1779 eval "ac_cv_func_$ac_func=no"
1784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1787 cat >> confdefs.h <<EOF
1788 #define $ac_tr_func 1
1792 echo "$ac_t""no" 1>&6
1798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_func" >&5
1800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $ac_func(); below. */
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1827 if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1829 eval "ac_cv_func_$ac_func=yes"
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1834 eval "ac_cv_func_$ac_func=no"
1839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_func 1
1847 echo "$ac_t""no" 1>&6
1852 for ac_func in sigrelse
1854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_func" >&5
1856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $ac_func(); below. */
1865 /* Override any gcc2 internal prototype to avoid an error. */
1866 /* We use char because int might match the return type of a gcc2
1867 builtin and then its argument prototype would still apply. */
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1883 if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1885 eval "ac_cv_func_$ac_func=yes"
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1890 eval "ac_cv_func_$ac_func=no"
1895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1898 cat >> confdefs.h <<EOF
1899 #define $ac_tr_func 1
1903 echo "$ac_t""no" 1>&6
1909 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1910 echo "configure:1911: checking for getopt_long" >&5
1911 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 /* System header to define __stub macros and hopefully few prototypes,
1918 which can conflict with char getopt_long(); below. */
1920 /* Override any gcc2 internal prototype to avoid an error. */
1921 /* We use char because int might match the return type of a gcc2
1922 builtin and then its argument prototype would still apply. */
1927 /* The GNU C library defines this for functions which it implements
1928 to always fail with ENOSYS. Some functions are actually named
1929 something starting with __ and the normal name is an alias. */
1930 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1938 if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1940 eval "ac_cv_func_getopt_long=yes"
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1945 eval "ac_cv_func_getopt_long=no"
1950 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1951 echo "$ac_t""yes" 1>&6
1952 cat >> confdefs.h <<\EOF
1953 #define HAVE_GETOPT_LONG 1
1957 echo "$ac_t""no" 1>&6
1958 # FreeBSD has a gnugetopt library for this:
1959 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1960 echo "configure:1961: checking for getopt_long in -lgnugetopt" >&5
1961 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 ac_save_LIBS="$LIBS"
1966 LIBS="-lgnugetopt $LIBS"
1967 cat > conftest.$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1970 /* Override any gcc2 internal prototype to avoid an error. */
1971 /* We use char because int might match the return type of a gcc2
1972 builtin and then its argument prototype would still apply. */
1979 if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1981 eval "ac_cv_lib_$ac_lib_var=yes"
1983 echo "configure: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1986 eval "ac_cv_lib_$ac_lib_var=no"
1989 LIBS="$ac_save_LIBS"
1992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1993 echo "$ac_t""yes" 1>&6
1994 cat >> confdefs.h <<\EOF
1995 #define HAVE_GETOPT_LONG 1
1997 LIB="${LIB} -lgnugetopt"
1999 echo "$ac_t""no" 1>&6
2006 for ac_hdr in unistd.h
2008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2010 echo "configure:2011: checking for $ac_hdr" >&5
2011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2020 { (eval echo configure:2021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2022 if test -z "$ac_err"; then
2024 eval "ac_cv_header_$ac_safe=yes"
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2030 eval "ac_cv_header_$ac_safe=no"
2034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2035 echo "$ac_t""yes" 1>&6
2036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2037 cat >> confdefs.h <<EOF
2038 #define $ac_tr_hdr 1
2042 echo "$ac_t""no" 1>&6
2046 for ac_func in getpagesize
2048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2049 echo "configure:2050: checking for $ac_func" >&5
2050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $ac_func(); below. */
2059 /* Override any gcc2 internal prototype to avoid an error. */
2060 /* We use char because int might match the return type of a gcc2
2061 builtin and then its argument prototype would still apply. */
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2077 if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079 eval "ac_cv_func_$ac_func=yes"
2081 echo "configure: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2084 eval "ac_cv_func_$ac_func=no"
2089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2092 cat >> confdefs.h <<EOF
2093 #define $ac_tr_func 1
2097 echo "$ac_t""no" 1>&6
2101 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2102 echo "configure:2103: checking for working mmap" >&5
2103 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 if test "$cross_compiling" = yes; then
2107 ac_cv_func_mmap_fixed_mapped=no
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2113 /* Thanks to Mike Haertel and Jim Avera for this test.
2114 Here is a matrix of mmap possibilities:
2115 mmap private not fixed
2116 mmap private fixed at somewhere currently unmapped
2117 mmap private fixed at somewhere already mapped
2118 mmap shared not fixed
2119 mmap shared fixed at somewhere currently unmapped
2120 mmap shared fixed at somewhere already mapped
2121 For private mappings, we should verify that changes cannot be read()
2122 back from the file, nor mmap's back from the file at a different
2123 address. (There have been systems where private was not correctly
2124 implemented like the infamous i386 svr4.0, and systems where the
2125 VM page cache was not coherent with the filesystem buffer cache
2126 like early versions of FreeBSD and possibly contemporary NetBSD.)
2127 For shared mappings, we should conversely verify that changes get
2128 propogated back to all the places they're supposed to be.
2130 Grep wants private fixed already mapped.
2131 The main things grep needs to know about mmap are:
2132 * does it exist and is it safe to write into the mmap'd area
2133 * how to use it (BSD variants) */
2134 #include <sys/types.h>
2136 #include <sys/mman.h>
2138 /* This mess was copied from the GNU getpagesize.h. */
2139 #ifndef HAVE_GETPAGESIZE
2140 # ifdef HAVE_UNISTD_H
2141 # include <unistd.h>
2144 /* Assume that all systems that can run configure have sys/param.h. */
2145 # ifndef HAVE_SYS_PARAM_H
2146 # define HAVE_SYS_PARAM_H 1
2149 # ifdef _SC_PAGESIZE
2150 # define getpagesize() sysconf(_SC_PAGESIZE)
2151 # else /* no _SC_PAGESIZE */
2152 # ifdef HAVE_SYS_PARAM_H
2153 # include <sys/param.h>
2154 # ifdef EXEC_PAGESIZE
2155 # define getpagesize() EXEC_PAGESIZE
2156 # else /* no EXEC_PAGESIZE */
2158 # define getpagesize() NBPG * CLSIZE
2161 # endif /* no CLSIZE */
2162 # else /* no NBPG */
2164 # define getpagesize() NBPC
2165 # else /* no NBPC */
2167 # define getpagesize() PAGESIZE
2168 # endif /* PAGESIZE */
2169 # endif /* no NBPC */
2170 # endif /* no NBPG */
2171 # endif /* no EXEC_PAGESIZE */
2172 # else /* no HAVE_SYS_PARAM_H */
2173 # define getpagesize() 8192 /* punt totally */
2174 # endif /* no HAVE_SYS_PARAM_H */
2175 # endif /* no _SC_PAGESIZE */
2177 #endif /* no HAVE_GETPAGESIZE */
2180 extern "C" { void *malloc(unsigned); }
2188 char *data, *data2, *data3;
2192 pagesize = getpagesize();
2195 * First, make a file with some known garbage in it.
2197 data = malloc(pagesize);
2200 for (i = 0; i < pagesize; ++i)
2201 *(data + i) = rand();
2203 fd = creat("conftestmmap", 0600);
2206 if (write(fd, data, pagesize) != pagesize)
2211 * Next, try to mmap the file at a fixed address which
2212 * already has something else allocated at it. If we can,
2213 * also make sure that we see the same garbage.
2215 fd = open("conftestmmap", O_RDWR);
2218 data2 = malloc(2 * pagesize);
2221 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2222 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2223 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2225 for (i = 0; i < pagesize; ++i)
2226 if (*(data + i) != *(data2 + i))
2230 * Finally, make sure that changes to the mapped area
2231 * do not percolate back to the file as seen by read().
2232 * (This is a bug on some variants of i386 svr4.0.)
2234 for (i = 0; i < pagesize; ++i)
2235 *(data2 + i) = *(data2 + i) + 1;
2236 data3 = malloc(pagesize);
2239 if (read(fd, data3, pagesize) != pagesize)
2241 for (i = 0; i < pagesize; ++i)
2242 if (*(data + i) != *(data3 + i))
2245 unlink("conftestmmap");
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2252 ac_cv_func_mmap_fixed_mapped=yes
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2257 ac_cv_func_mmap_fixed_mapped=no
2264 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2265 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2266 cat >> confdefs.h <<\EOF
2272 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2273 echo "configure:2274: checking return type of signal handlers" >&5
2274 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <sys/types.h>
2286 extern "C" void (*signal (int, void (*)(int)))(int);
2288 void (*signal ()) ();
2295 if { (eval echo configure:2296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2297 ac_cv_type_signal=void
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 ac_cv_type_signal=int
2307 echo "$ac_t""$ac_cv_type_signal" 1>&6
2308 cat >> confdefs.h <<EOF
2309 #define RETSIGTYPE $ac_cv_type_signal
2313 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2314 echo "configure:2315: checking for dlopen in -ldl" >&5
2315 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 ac_save_LIBS="$LIBS"
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* Override any gcc2 internal prototype to avoid an error. */
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 eval "ac_cv_lib_$ac_lib_var=yes"
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 eval "ac_cv_lib_$ac_lib_var=no"
2343 LIBS="$ac_save_LIBS"
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2350 echo "$ac_t""no" 1>&6
2353 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2354 echo "configure:2355: checking for pow in -lm" >&5
2355 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 ac_save_LIBS="$LIBS"
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2375 eval "ac_cv_lib_$ac_lib_var=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2380 eval "ac_cv_lib_$ac_lib_var=no"
2383 LIBS="$ac_save_LIBS"
2386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 LIB_YUV="${LIB_YUV} -lm"
2390 echo "$ac_t""no" 1>&6
2394 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2395 CFLAGS="${CFLAGS} -I/usr/local/include"
2398 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2399 echo "configure:2400: checking for pthread_attr_init in -lpthread" >&5
2400 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 ac_save_LIBS="$LIBS"
2405 LIBS="-lpthread $LIBS"
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 /* Override any gcc2 internal prototype to avoid an error. */
2410 /* We use char because int might match the return type of a gcc2
2411 builtin and then its argument prototype would still apply. */
2412 char pthread_attr_init();
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420 eval "ac_cv_lib_$ac_lib_var=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 eval "ac_cv_lib_$ac_lib_var=no"
2428 LIBS="$ac_save_LIBS"
2431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2432 echo "$ac_t""yes" 1>&6
2433 THREAD_LIB="-lpthread"
2435 echo "$ac_t""no" 1>&6
2438 if test "x${THREAD_LIB}" = xerror; then
2439 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2440 echo "configure:2441: checking for pthread_attr_init in -lpthreads" >&5
2441 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_save_LIBS="$LIBS"
2446 LIBS="-lpthreads $LIBS"
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* Override any gcc2 internal prototype to avoid an error. */
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2453 char pthread_attr_init();
2459 if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2461 eval "ac_cv_lib_$ac_lib_var=yes"
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2466 eval "ac_cv_lib_$ac_lib_var=no"
2469 LIBS="$ac_save_LIBS"
2472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 THREAD_LIB="-lpthreads"
2476 echo "$ac_t""no" 1>&6
2480 if test "x${THREAD_LIB}" = xerror; then
2481 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2482 echo "configure:2483: checking for pthread_attr_init in -lc_r" >&5
2483 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 ac_save_LIBS="$LIBS"
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 /* Override any gcc2 internal prototype to avoid an error. */
2493 /* We use char because int might match the return type of a gcc2
2494 builtin and then its argument prototype would still apply. */
2495 char pthread_attr_init();
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2503 eval "ac_cv_lib_$ac_lib_var=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 eval "ac_cv_lib_$ac_lib_var=no"
2511 LIBS="$ac_save_LIBS"
2514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2518 echo "$ac_t""no" 1>&6
2522 if test "x${THREAD_LIB}" = xerror; then
2524 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2525 echo "configure:2526: checking for pthread_attr_init" >&5
2526 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* System header to define __stub macros and hopefully few prototypes,
2533 which can conflict with char pthread_attr_init(); below. */
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2538 char pthread_attr_init();
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2548 pthread_attr_init();
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555 eval "ac_cv_func_pthread_attr_init=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_func_pthread_attr_init=no"
2565 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2569 echo "$ac_t""no" 1>&6
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <pthread.h>
2579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2580 egrep "pthread_cond_t" >/dev/null 2>&1; then
2583 cat >> confdefs.h <<\EOF
2584 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <strings.h>
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "strncasecmp" >/dev/null 2>&1; then
2599 cat >> confdefs.h <<\EOF
2600 #define STRNCASECMP_IN_STRINGS_H 1
2607 for ac_hdr in stddef.h getopt.h strings.h
2609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2611 echo "configure:2612: checking for $ac_hdr" >&5
2612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2621 { (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2623 if test -z "$ac_err"; then
2625 eval "ac_cv_header_$ac_safe=yes"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2631 eval "ac_cv_header_$ac_safe=no"
2635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2636 echo "$ac_t""yes" 1>&6
2637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2638 cat >> confdefs.h <<EOF
2639 #define $ac_tr_hdr 1
2643 echo "$ac_t""no" 1>&6
2647 for ac_hdr in sys/sockio.h fcntl.h sys/time.h
2649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2651 echo "configure:2652: checking for $ac_hdr" >&5
2652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2661 { (eval echo configure:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2663 if test -z "$ac_err"; then
2665 eval "ac_cv_header_$ac_safe=yes"
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2671 eval "ac_cv_header_$ac_safe=no"
2675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2676 echo "$ac_t""yes" 1>&6
2677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2678 cat >> confdefs.h <<EOF
2679 #define $ac_tr_hdr 1
2683 echo "$ac_t""no" 1>&6
2687 for ac_hdr in sys/soundcard.h machine/soundcard.h
2689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_hdr" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2705 eval "ac_cv_header_$ac_safe=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2711 eval "ac_cv_header_$ac_safe=no"
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2718 cat >> confdefs.h <<EOF
2719 #define $ac_tr_hdr 1
2723 echo "$ac_t""no" 1>&6
2727 for ac_hdr in dlfcn.h image.h
2729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_hdr" >&5
2732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2745 eval "ac_cv_header_$ac_safe=yes"
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2751 eval "ac_cv_header_$ac_safe=no"
2755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2758 cat >> confdefs.h <<EOF
2759 #define $ac_tr_hdr 1
2763 echo "$ac_t""no" 1>&6
2767 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2785 eval "ac_cv_header_$ac_safe=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2791 eval "ac_cv_header_$ac_safe=no"
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_hdr 1
2803 echo "$ac_t""no" 1>&6
2807 for ac_hdr in machine/param.h
2809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2811 echo "configure:2812: checking for $ac_hdr" >&5
2812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 cat > conftest.$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2821 { (eval echo configure:2822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2823 if test -z "$ac_err"; then
2825 eval "ac_cv_header_$ac_safe=yes"
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 eval "ac_cv_header_$ac_safe=no"
2835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2836 echo "$ac_t""yes" 1>&6
2837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2838 cat >> confdefs.h <<EOF
2839 #define $ac_tr_hdr 1
2843 echo "$ac_t""no" 1>&6
2848 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2852 echo "configure:2853: checking for $ac_hdr" >&5
2853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2862 { (eval echo configure:2863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2864 if test -z "$ac_err"; then
2866 eval "ac_cv_header_$ac_safe=yes"
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2872 eval "ac_cv_header_$ac_safe=no"
2876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2879 cat >> confdefs.h <<EOF
2880 #define $ac_tr_hdr 1
2884 echo "$ac_t""no" 1>&6
2889 CFLAGS="${save_CFLAGS} -Wall -Werror"
2890 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2891 echo "configure:2892: checking for ntohl in sys/param.h" >&5
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 #include <sys/param.h>
2896 void foo() { int meuh; ntohl(meuh); }
2901 if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2903 cat >> confdefs.h <<\EOF
2904 #define NTOHL_IN_SYS_PARAM_H 1
2907 echo "$ac_t""yes" 1>&6
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2912 echo "$ac_t""no" 1>&6
2916 CFLAGS="${save_CFLAGS} -finline-limit=31337"
2917 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2918 echo "configure:2919: checking if \$CC accepts -finline-limit" >&5
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2927 if { (eval echo configure:2928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2929 save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; echo "$ac_t""yes" 1>&6
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 echo "$ac_t""no" 1>&6
2938 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
2939 echo $ac_n "checking if \$CC accepts -bundle -undefined suppress""... $ac_c" 1>&6
2940 echo "configure:2941: checking if \$CC accepts -bundle -undefined suppress" >&5
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2949 if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2951 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 echo "$ac_t""no" 1>&6
2960 CFLAGS="${save_CFLAGS} -shared"
2961 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
2962 echo "configure:2963: checking if \$CC accepts -shared" >&5
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2971 if { (eval echo configure:2972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2973 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 echo "$ac_t""no" 1>&6
2982 if test x"${SOFLAGS}" = x; then
2983 try_SOFLAGS="-Wl,-soname -Wl,"
2984 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
2985 echo $ac_n "checking if linker accepts ${try_SOFLAGS}foo.so.0""... $ac_c" 1>&6
2986 echo "configure:2987: checking if linker accepts ${try_SOFLAGS}foo.so.0" >&5
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2997 SOFLAGS="${try_SOFLAGS}"; echo "$ac_t""yes" 1>&6
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 echo "$ac_t""no" 1>&6
3007 if test x"${SOFLAGS}" = x; then
3008 try_SOFLAGS="-Wl,-h -Wl,"
3009 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3010 echo $ac_n "checking if linker accepts ${try_SOFLAGS}foo.so.0""... $ac_c" 1>&6
3011 echo "configure:3012: checking if linker accepts ${try_SOFLAGS}foo.so.0" >&5
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3022 SOFLAGS="${try_SOFLAGS}"; echo "$ac_t""yes" 1>&6
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3027 echo "$ac_t""no" 1>&6
3032 CFLAGS="${save_CFLAGS}"
3033 LDFLAGS="${save_LDFLAGS}"
3035 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3036 echo "configure:3037: checking for boolean_t in sys/types.h" >&5
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <sys/types.h>
3041 void quux() { boolean_t foo; }
3046 if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3048 cat >> confdefs.h <<\EOF
3049 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3052 echo "$ac_t""yes" 1>&6
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3057 echo "$ac_t""no" 1>&6
3060 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3061 echo "configure:3062: checking for boolean_t in pthread.h" >&5
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 #include <pthread.h>
3066 void quux() { boolean_t foo; }
3071 if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3073 cat >> confdefs.h <<\EOF
3074 #define BOOLEAN_T_IN_PTHREAD_H 1
3077 echo "$ac_t""yes" 1>&6
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 echo "$ac_t""no" 1>&6
3086 echo $ac_n "checking for working const""... $ac_c" 1>&6
3087 echo "configure:3088: checking for working const" >&5
3088 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3097 /* Ultrix mips cc rejects this. */
3098 typedef int charset[2]; const charset x;
3099 /* SunOS 4.1.1 cc rejects this. */
3100 char const *const *ccp;
3102 /* NEC SVR4.0.2 mips cc rejects this. */
3103 struct point {int x, y;};
3104 static struct point const zero = {0,0};
3105 /* AIX XL C 1.02.0.0 rejects this.
3106 It does not let you subtract one const X* pointer from another in an arm
3107 of an if-expression whose if-part is not a constant expression */
3108 const char *g = "string";
3109 ccp = &g + (g ? g-g : 0);
3110 /* HPUX 7.0 cc rejects these. */
3113 ccp = (char const *const *) p;
3114 { /* SCO 3.2v4 cc rejects this. */
3116 char const *s = 0 ? (char *) 0 : (char const *) 0;
3120 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3122 const int *foo = &x[0];
3125 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3126 typedef const int *iptr;
3130 { /* AIX XL C 1.02.0.0 rejects this saying
3131 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3132 struct s { int j; const int *ap[3]; };
3133 struct s *b; b->j = 5;
3135 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3141 if { (eval echo configure:3142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3153 echo "$ac_t""$ac_cv_c_const" 1>&6
3154 if test $ac_cv_c_const = no; then
3155 cat >> confdefs.h <<\EOF
3161 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3162 echo "configure:3163: checking for ANSI C header files" >&5
3163 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3175 { (eval echo configure:3176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3177 if test -z "$ac_err"; then
3179 ac_cv_header_stdc=yes
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 ac_cv_header_stdc=no
3189 if test $ac_cv_header_stdc = yes; then
3190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3197 egrep "memchr" >/dev/null 2>&1; then
3201 ac_cv_header_stdc=no
3207 if test $ac_cv_header_stdc = yes; then
3208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3209 cat > conftest.$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3215 egrep "free" >/dev/null 2>&1; then
3219 ac_cv_header_stdc=no
3225 if test $ac_cv_header_stdc = yes; then
3226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3227 if test "$cross_compiling" = yes; then
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3234 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3235 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3237 int main () { int i; for (i = 0; i < 256; i++)
3238 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3242 if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 ac_cv_header_stdc=no
3257 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3258 if test $ac_cv_header_stdc = yes; then
3259 cat >> confdefs.h <<\EOF
3260 #define STDC_HEADERS 1
3265 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3266 echo "configure:3267: checking for size_t" >&5
3267 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <sys/types.h>
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3282 ac_cv_type_size_t=yes
3285 ac_cv_type_size_t=no
3290 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3291 if test $ac_cv_type_size_t = no; then
3292 cat >> confdefs.h <<\EOF
3293 #define size_t unsigned
3298 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3299 echo "configure:3300: checking whether time.h and sys/time.h may both be included" >&5
3300 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <sys/types.h>
3307 #include <sys/time.h>
3313 if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3315 ac_cv_header_time=yes
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 ac_cv_header_time=no
3325 echo "$ac_t""$ac_cv_header_time" 1>&6
3326 if test $ac_cv_header_time = yes; then
3327 cat >> confdefs.h <<\EOF
3328 #define TIME_WITH_SYS_TIME 1
3336 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3337 PLUGINS="${PLUGINS}"
3339 MMX_MODULES="yuvmmx idctmmx motionmmx"
3340 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3342 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3343 echo "configure:3344: checking if \$CC groks MMX inline assembly" >&5
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3352 if { (eval echo configure:3353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3354 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3355 echo "$ac_t""yes" 1>&6
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3360 echo "$ac_t""no" 1>&6
3364 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3365 echo "configure:3366: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3376 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3377 echo "$ac_t""yes" 1>&6
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3382 echo "$ac_t""no" 1>&6
3387 CAN_BUILD_LIBDVDCSS=0
3389 for ac_hdr in winioctl.h
3391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3393 echo "configure:3394: checking for $ac_hdr" >&5
3394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3407 eval "ac_cv_header_$ac_safe=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3413 eval "ac_cv_header_$ac_safe=no"
3417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3418 echo "$ac_t""yes" 1>&6
3419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3420 cat >> confdefs.h <<EOF
3421 #define $ac_tr_hdr 1
3424 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
3427 echo "$ac_t""no" 1>&6
3432 for ac_hdr in sys/ioctl.h
3434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_hdr" >&5
3437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3446 { (eval echo configure:3447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3448 if test -z "$ac_err"; then
3450 eval "ac_cv_header_$ac_safe=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_header_$ac_safe=no"
3460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3461 echo "$ac_t""yes" 1>&6
3462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3463 cat >> confdefs.h <<EOF
3464 #define $ac_tr_hdr 1
3467 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
3468 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
3470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3472 echo "configure:3473: checking for $ac_hdr" >&5
3473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3482 { (eval echo configure:3483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3484 if test -z "$ac_err"; then
3486 eval "ac_cv_header_$ac_safe=yes"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3492 eval "ac_cv_header_$ac_safe=no"
3496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3499 cat >> confdefs.h <<EOF
3500 #define $ac_tr_hdr 1
3504 echo "$ac_t""no" 1>&6
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 #include <sys/dvdio.h>
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 egrep "dvd_struct" >/dev/null 2>&1; then
3519 cat >> confdefs.h <<\EOF
3520 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3528 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3531 #include <sys/cdio.h>
3533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534 egrep "dvd_struct" >/dev/null 2>&1; then
3537 cat >> confdefs.h <<\EOF
3538 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 #include <linux/cdrom.h>
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 egrep "dvd_struct" >/dev/null 2>&1; then
3555 cat >> confdefs.h <<\EOF
3556 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 egrep "dvd_struct" >/dev/null 2>&1; then
3574 cat >> confdefs.h <<\EOF
3575 #define DVD_STRUCT_IN_DVD_H 1
3578 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
3584 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
3586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_hdr" >&5
3589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3598 { (eval echo configure:3599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3600 if test -z "$ac_err"; then
3602 eval "ac_cv_header_$ac_safe=yes"
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 eval "ac_cv_header_$ac_safe=no"
3612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3613 echo "$ac_t""yes" 1>&6
3614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3615 cat >> confdefs.h <<EOF
3616 #define $ac_tr_hdr 1
3620 cat >> confdefs.h <<\EOF
3621 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
3624 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
3628 echo "$ac_t""no" 1>&6
3636 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
3637 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
3638 echo "configure:3639: checking for sys/scsi/scsi_types.h" >&5
3639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 #include <sys/scsi/scsi_types.h>
3647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3648 { (eval echo configure:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3650 if test -z "$ac_err"; then
3652 eval "ac_cv_header_$ac_safe=yes"
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3658 eval "ac_cv_header_$ac_safe=no"
3662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3663 echo "$ac_t""yes" 1>&6
3665 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
3666 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
3667 echo "configure:3668: checking for sys/scsi/impl/uscsi.h" >&5
3668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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/scsi/impl/uscsi.h>
3676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3677 { (eval echo configure:3678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3679 if test -z "$ac_err"; then
3681 eval "ac_cv_header_$ac_safe=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 eval "ac_cv_header_$ac_safe=no"
3691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3694 cat >> confdefs.h <<\EOF
3695 #define SOLARIS_USCSI 1
3700 echo "$ac_t""no" 1>&6
3705 echo "$ac_t""no" 1>&6
3708 if test x$LINUX_DVD_STRUCT = x1; then
3709 cat >> confdefs.h <<\EOF
3710 #define HAVE_LINUX_DVD_STRUCT 1
3714 if test x$BSD_DVD_STRUCT = x1; then
3715 cat >> confdefs.h <<\EOF
3716 #define HAVE_BSD_DVD_STRUCT 1
3723 echo "$ac_t""no" 1>&6
3741 # Check whether --enable-ppro or --disable-ppro was given.
3742 if test "${enable_ppro+set}" = set; then
3743 enableval="$enable_ppro"
3744 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3746 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3750 # Check whether --enable-mmx or --disable-mmx was given.
3751 if test "${enable_mmx+set}" = set; then
3752 enableval="$enable_mmx"
3753 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3754 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3756 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx";
3757 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3761 # Check whether --enable-altivec or --disable-altivec was given.
3762 if test "${enable_altivec+set}" = set; then
3763 enableval="$enable_altivec"
3764 if test x$enableval = xyes; then ARCH="${ARCH} altivec"
3765 BUILTINS="${BUILTINS} idctaltivec"
3766 LIB_IDCTALTIVEC="-framework vecLib"
3770 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3773 # Check whether --enable-debug or --disable-debug was given.
3774 if test "${enable_debug+set}" = set; then
3775 enableval="$enable_debug"
3776 if test x$enableval = xyes; then DEBUG=1; fi
3781 # Check whether --enable-stats or --disable-stats was given.
3782 if test "${enable_stats+set}" = set; then
3783 enableval="$enable_stats"
3784 if test x$enableval = xyes; then STATS=1; fi
3789 # Check whether --enable-trace or --disable-trace was given.
3790 if test "${enable_trace+set}" = set; then
3791 enableval="$enable_trace"
3792 if test x$enableval = xyes; then TRACE=1; fi
3797 # Check whether --enable-profiling or --disable-profiling was given.
3798 if test "${enable_profiling+set}" = set; then
3799 enableval="$enable_profiling"
3800 if test x$enableval = xyes; then PROFILING=1; fi
3804 # Check whether --enable-optimizations or --disable-optimizations was given.
3805 if test "${enable_optimizations+set}" = set; then
3806 enableval="$enable_optimizations"
3807 if test x$enableval = xno; then OPTIMS=0; fi
3813 # Check whether --enable-pth or --disable-pth was given.
3814 if test "${enable_pth+set}" = set; then
3815 enableval="$enable_pth"
3816 if test x$enableval = xyes; then
3817 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3818 echo "configure:3819: checking for pth_init in -lpth" >&5
3819 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 ac_save_LIBS="$LIBS"
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3837 if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3839 eval "ac_cv_lib_$ac_lib_var=yes"
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 eval "ac_cv_lib_$ac_lib_var=no"
3847 LIBS="$ac_save_LIBS"
3850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3853 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3854 cat >> confdefs.h <<EOF
3855 #define $ac_tr_lib 1
3861 echo "$ac_t""no" 1>&6
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 egrep "pth_init" >/dev/null 2>&1; then
3873 cat >> confdefs.h <<\EOF
3874 #define PTH_INIT_IN_PTH_H 1
3886 LIB="${LIB} ${THREAD_LIB}"
3891 # Check whether --with-dvdcss or --without-dvdcss was given.
3892 if test "${with_dvdcss+set}" = set; then
3893 withval="$with_dvdcss"
3894 case "x${withval}" in
3896 # local libdvdcss, statically linked
3897 if test x${CAN_BUILD_LIBDVDCSS} = x1
3901 BUILTINS="${BUILTINS} dvd"
3902 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3903 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3904 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3908 # local libdvdcss, dynamically linked
3909 if test x${CAN_BUILD_LIBDVDCSS} = x1
3912 BUILTINS="${BUILTINS} dvd"
3913 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3914 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
3915 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
3919 # don't use libdvdcss at all, build a DVD module that can dlopen() it
3921 BUILTINS="${BUILTINS} dvd"
3922 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
3923 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
3924 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
3925 LIB_DVD="${LIB_DVD} -ldl"
3926 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
3929 # existing libdvdcss
3930 BUILTINS="${BUILTINS} dvd"
3931 if test "x$withval" != "xyes"
3933 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
3934 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
3936 LIB_DVD="${LIB_DVD} -ldvdcss"
3937 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
3940 # user didn't decide, we choose to use local libdvdcss and link statically
3941 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
3942 if test x${CAN_BUILD_LIBDVDCSS} = x1
3946 BUILTINS="${BUILTINS} dvd"
3947 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3948 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3949 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
3951 # XXX: no check for libdl is done, don't try this at home !
3953 BUILTINS="${BUILTINS} dvd"
3954 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
3955 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
3956 LIB_DVD="${LIB_DVD} -ldl"
3957 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
3962 # Check whether --enable-dummy or --disable-dummy was given.
3963 if test "${enable_dummy+set}" = set; then
3964 enableval="$enable_dummy"
3969 if test x$enable_dummy != xno
3971 BUILTINS="${BUILTINS} dummy"
3974 # Check whether --enable-null or --disable-null was given.
3975 if test "${enable_null+set}" = set; then
3976 enableval="$enable_null"
3981 if test x$enable_null != xno
3983 BUILTINS="${BUILTINS} null"
3986 # Check whether --enable-rc or --disable-rc was given.
3987 if test "${enable_rc+set}" = set; then
3988 enableval="$enable_rc"
3993 if test x$enable_rc != xno
3995 BUILTINS="${BUILTINS} rc"
3998 if test x$SYS = xbeos
4000 BUILTINS="${BUILTINS} beos"
4001 LIB_BEOS="-lbe -lgame -lroot -ltracker"
4002 PLCFLAGS="${PLCFLAGS} -nostart"
4006 # Check whether --enable-dsp or --disable-dsp was given.
4007 if test "${enable_dsp+set}" = set; then
4008 enableval="$enable_dsp"
4013 if test x$enable_dsp != xno
4017 PLUGINS="${PLUGINS} dsp"
4021 # Check whether --enable-esd or --disable-esd was given.
4022 if test "${enable_esd+set}" = set; then
4023 enableval="$enable_esd"
4024 if test x$enable_esd = xyes
4026 # Extract the first word of "esd-config", so it can be a program name with args.
4027 set dummy esd-config; ac_word=$2
4028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_word" >&5
4030 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 case "$ESD_CONFIG" in
4035 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4038 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4043 for ac_dir in $ac_dummy; do
4044 test -z "$ac_dir" && ac_dir=.
4045 if test -f $ac_dir/$ac_word; then
4046 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4051 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4055 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4056 if test -n "$ESD_CONFIG"; then
4057 echo "$ac_t""$ESD_CONFIG" 1>&6
4059 echo "$ac_t""no" 1>&6
4062 if test x${ESD_CONFIG} != xno
4064 PLUGINS="${PLUGINS} esd"
4065 LIB_ESD="`${ESD_CONFIG} --libs`"
4071 # Check whether --enable-darwin or --disable-darwin was given.
4072 if test "${enable_darwin+set}" = set; then
4073 enableval="$enable_darwin"
4074 if test x$enable_darwin = xyes; then
4075 PLUGINS="${PLUGINS} darwin"
4076 LIB_DARWIN="-framework CoreAudio"
4081 # Check whether --enable-macosx or --disable-macosx was given.
4082 if test "${enable_macosx+set}" = set; then
4083 enableval="$enable_macosx"
4084 if test x$enable_macosx = xyes
4086 BUILTINS="${BUILTINS} macosx"
4087 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
4088 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4089 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4092 for ac_hdr in Carbon/Carbon.h
4094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4096 echo "configure:4097: checking for $ac_hdr" >&5
4097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4106 { (eval echo configure:4107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4108 if test -z "$ac_err"; then
4110 eval "ac_cv_header_$ac_safe=yes"
4113 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4116 eval "ac_cv_header_$ac_safe=no"
4120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4123 cat >> confdefs.h <<EOF
4124 #define $ac_tr_hdr 1
4126 BUILTINS="${BUILTINS} macosx"
4127 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
4128 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4129 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4132 echo "$ac_t""no" 1>&6
4139 # Check whether --enable-qnx or --disable-qnx was given.
4140 if test "${enable_qnx+set}" = set; then
4141 enableval="$enable_qnx"
4145 if test x$enable_qnx != xno
4149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4151 echo "configure:4152: checking for $ac_hdr" >&5
4152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4161 { (eval echo configure:4162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4163 if test -z "$ac_err"; then
4165 eval "ac_cv_header_$ac_safe=yes"
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4171 eval "ac_cv_header_$ac_safe=no"
4175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4178 cat >> confdefs.h <<EOF
4179 #define $ac_tr_hdr 1
4182 PLUGINS="${PLUGINS} qnx"
4183 LIB_QNX="-lasound -lph"
4186 echo "$ac_t""no" 1>&6
4192 # Check whether --enable-fb or --disable-fb was given.
4193 if test "${enable_fb+set}" = set; then
4194 enableval="$enable_fb"
4195 if test x$enable_fb = xyes
4197 PLUGINS="${PLUGINS} fb"
4202 # Check whether --with-ggi or --without-ggi was given.
4203 if test "${with_ggi+set}" = set; then
4205 if test "x$withval" != "xno"
4207 PLUGINS="${PLUGINS} ggi"
4208 if test "x$withval" != "xyes"
4210 LIB_GGI="-l"$withval
4218 # Check whether --enable-sdl or --disable-sdl was given.
4219 if test "${enable_sdl+set}" = set; then
4220 enableval="$enable_sdl"
4224 if test "x$enable_sdl" != "xno"
4227 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4228 if test "${with_sdl_config_path+set}" = set; then
4229 withval="$with_sdl_config_path"
4230 if test "x$withval" != "xno"
4232 SDL_PATH=$withval:$PATH
4236 # Extract the first word of "sdl12-config", so it can be a program name with args.
4237 set dummy sdl12-config; ac_word=$2
4238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4239 echo "configure:4240: checking for $ac_word" >&5
4240 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 case "$SDL12_CONFIG" in
4245 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4248 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4252 ac_dummy="$SDL_PATH"
4253 for ac_dir in $ac_dummy; do
4254 test -z "$ac_dir" && ac_dir=.
4255 if test -f $ac_dir/$ac_word; then
4256 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4261 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4265 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4266 if test -n "$SDL12_CONFIG"; then
4267 echo "$ac_t""$SDL12_CONFIG" 1>&6
4269 echo "$ac_t""no" 1>&6
4272 SDL_CONFIG=${SDL12_CONFIG}
4273 SDL_HEADER="SDL12/SDL.h"
4274 if test x${SDL_CONFIG} = xno
4276 # Extract the first word of "sdl11-config", so it can be a program name with args.
4277 set dummy sdl11-config; ac_word=$2
4278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4279 echo "configure:4280: checking for $ac_word" >&5
4280 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 case "$SDL11_CONFIG" in
4285 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4288 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4292 ac_dummy="$SDL_PATH"
4293 for ac_dir in $ac_dummy; do
4294 test -z "$ac_dir" && ac_dir=.
4295 if test -f $ac_dir/$ac_word; then
4296 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4301 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4305 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4306 if test -n "$SDL11_CONFIG"; then
4307 echo "$ac_t""$SDL11_CONFIG" 1>&6
4309 echo "$ac_t""no" 1>&6
4312 SDL_CONFIG=${SDL11_CONFIG}
4313 SDL_HEADER="SDL11/SDL.h"
4315 if test x${SDL_CONFIG} = xno
4317 # Extract the first word of "sdl-config", so it can be a program name with args.
4318 set dummy sdl-config; ac_word=$2
4319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4320 echo "configure:4321: checking for $ac_word" >&5
4321 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 case "$SDL_CONFIG" in
4326 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4329 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4333 ac_dummy="$SDL_PATH"
4334 for ac_dir in $ac_dummy; do
4335 test -z "$ac_dir" && ac_dir=.
4336 if test -f $ac_dir/$ac_word; then
4337 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4342 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4346 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4347 if test -n "$SDL_CONFIG"; then
4348 echo "$ac_t""$SDL_CONFIG" 1>&6
4350 echo "$ac_t""no" 1>&6
4353 SDL_HEADER="SDL/SDL.h"
4355 if test x${SDL_CONFIG} != xno
4357 PLUGINS="${PLUGINS} sdl"
4358 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4359 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4361 CFLAGS="$CFLAGS $CFLAGS_SDL"
4362 for ac_hdr in ${SDL_HEADER}
4364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_hdr" >&5
4367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4376 { (eval echo configure:4377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4378 if test -z "$ac_err"; then
4380 eval "ac_cv_header_$ac_safe=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_header_$ac_safe=no"
4390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_hdr 1
4396 cat >> confdefs.h <<EOF
4397 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
4401 echo "$ac_t""no" 1>&6
4402 echo "The development package for SDL is not installed. Please install it"
4403 echo "and try again. Alternatively you can also configure with --disable-sdl."
4409 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
4411 echo "You need SDL version 1.1.5 or later. Install it and try again."
4412 echo "Alternatively, you can also configure with --disable-sdl."
4415 elif test "x$enable_sdl" = "xyes"
4417 echo "I couldn't find the SDL package. You can download libSDL from"
4418 echo "http://www.libsdl.org/, or configure with --disable-sdl. Have a"
4424 # Check whether --with-directx or --without-directx was given.
4425 if test "${with_directx+set}" = set; then
4426 withval="$with_directx"
4427 if test "x$withval" != "xno"
4429 PLUGINS="${PLUGINS} directx"
4430 if test "x$withval" != "xyes"
4432 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4433 INCLUDE="${INCLUDE} -I"$withval"/include"
4435 for ac_hdr in directx.h
4437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4439 echo "configure:4440: checking for $ac_hdr" >&5
4440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4449 { (eval echo configure:4450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4451 if test -z "$ac_err"; then
4453 eval "ac_cv_header_$ac_safe=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 eval "ac_cv_header_$ac_safe=no"
4463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4466 cat >> confdefs.h <<EOF
4467 #define $ac_tr_hdr 1
4471 echo "$ac_t""no" 1>&6
4472 echo "Cannot find DirectX headers !"; exit
4476 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4481 if test "x$withval" = "x"
4483 for ac_hdr in directx.h
4485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4501 eval "ac_cv_header_$ac_safe=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_header_$ac_safe=no"
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_hdr 1
4517 PLUGINS="${PLUGINS} directx"
4518 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4520 echo "$ac_t""no" 1>&6
4526 # Check whether --with-glide or --without-glide was given.
4527 if test "${with_glide+set}" = set; then
4528 withval="$with_glide"
4529 if test "x$withval" != "xno"
4531 PLUGINS="${PLUGINS} glide"
4532 if test "x$withval" != "xyes"
4534 LIB_GLIDE="-l"$withval" -lm"
4536 LIB_GLIDE="-lglide2x -lm"
4542 # Check whether --enable-ncurses or --disable-ncurses was given.
4543 if test "${enable_ncurses+set}" = set; then
4544 enableval="$enable_ncurses"
4545 if test x$enable_ncurses = xyes; then
4546 PLUGINS="${PLUGINS} ncurses"
4547 LIB_NCURSES="-lncurses"
4552 # Check whether --enable-qt or --disable-qt was given.
4553 if test "${enable_qt+set}" = set; then
4554 enableval="$enable_qt"
4555 if test x$enable_qt = xyes; then
4556 PLUGINS="${PLUGINS} qt"
4557 ALIASES="${ALIASES} qvlc"
4558 LIB_QT="-lqt -L${QTDIR}/lib"
4559 if test -x ${QTDIR}/bin/moc
4561 MOC=${QTDIR}/bin/moc
4569 # Check whether --enable-kde or --disable-kde was given.
4570 if test "${enable_kde+set}" = set; then
4571 enableval="$enable_kde"
4572 if test x$enable_kde = xyes; then
4573 PLUGINS="${PLUGINS} kde"
4574 ALIASES="${ALIASES} kvlc"
4575 LIB_KDE="-L${KDEDIR}/lib -lkfile"
4576 if test -x ${QTDIR}/bin/moc
4578 MOC=${QTDIR}/bin/moc
4586 # Check whether --enable-gnome or --disable-gnome was given.
4587 if test "${enable_gnome+set}" = set; then
4588 enableval="$enable_gnome"
4589 if test x$enable_gnome = xyes; then
4590 PLUGINS="${PLUGINS} gnome"
4591 ALIASES="${ALIASES} gnome-vlc"
4592 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4597 # Check whether --enable-gtk or --disable-gtk was given.
4598 if test "${enable_gtk+set}" = set; then
4599 enableval="$enable_gtk"
4603 if test x$enable_gtk != xno
4605 # look for gtk-config
4606 # Extract the first word of "gtk-config", so it can be a program name with args.
4607 set dummy gtk-config; ac_word=$2
4608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_word" >&5
4610 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 case "$GTK_CONFIG" in
4615 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4618 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4623 for ac_dir in $ac_dummy; do
4624 test -z "$ac_dir" && ac_dir=.
4625 if test -f $ac_dir/$ac_word; then
4626 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4631 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4635 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4636 if test -n "$GTK_CONFIG"; then
4637 echo "$ac_t""$GTK_CONFIG" 1>&6
4639 echo "$ac_t""no" 1>&6
4642 if test -x ${GTK_CONFIG}
4644 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4645 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4647 # now look for the gtk.h header
4648 saved_CPPFLAGS=$CPPFLAGS
4649 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
4650 for ac_hdr in gtk/gtk.h
4652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_hdr" >&5
4655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure:4665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4666 if test -z "$ac_err"; then
4668 eval "ac_cv_header_$ac_safe=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 eval "ac_cv_header_$ac_safe=no"
4678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4681 cat >> confdefs.h <<EOF
4682 #define $ac_tr_hdr 1
4685 PLUGINS="${PLUGINS} gtk"
4686 ALIASES="${ALIASES} gvlc"
4689 echo "$ac_t""no" 1>&6
4693 CPPFLAGS=$saved_CPPFLAGS
4696 # Check whether --enable-x11 or --disable-x11 was given.
4697 if test "${enable_x11+set}" = set; then
4698 enableval="$enable_x11"
4702 if test x$enable_x11 != xno; then
4703 if test x$x_includes = xNONE; then
4704 x_includes=/usr/X11R6/include
4706 if test x$x_libraries = xNONE; then
4707 x_libraries=/usr/X11R6/lib
4709 saved_CPPFLAGS=$CPPFLAGS
4710 CPPFLAGS="$CPPFLAGS -I$x_includes"
4711 for ac_hdr in X11/Xlib.h
4713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_hdr" >&5
4716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4725 { (eval echo configure:4726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4727 if test -z "$ac_err"; then
4729 eval "ac_cv_header_$ac_safe=yes"
4732 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4735 eval "ac_cv_header_$ac_safe=no"
4739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4742 cat >> confdefs.h <<EOF
4743 #define $ac_tr_hdr 1
4746 PLUGINS="${PLUGINS} x11"
4747 LIB_X11="-L$x_libraries -lX11 -lXext"
4748 CFLAGS_X11="-I$x_includes"
4750 CPPFLAGS=$saved_CPPFLAGS
4752 echo "$ac_t""no" 1>&6
4758 # Check whether --enable-xvideo or --disable-xvideo was given.
4759 if test "${enable_xvideo+set}" = set; then
4760 enableval="$enable_xvideo"
4764 if test x$enable_xvideo != xno; then
4765 if test x$x_includes = xNONE; then
4766 x_includes=/usr/X11R6/include
4768 if test x$x_libraries = xNONE; then
4769 x_libraries=/usr/X11R6/lib
4771 saved_CPPFLAGS=$CPPFLAGS
4772 CPPFLAGS="$CPPFLAGS -I$x_includes"
4773 for ac_hdr in X11/extensions/Xv.h
4775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_hdr" >&5
4778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4787 { (eval echo configure:4788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4789 if test -z "$ac_err"; then
4791 eval "ac_cv_header_$ac_safe=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 eval "ac_cv_header_$ac_safe=no"
4801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4804 cat >> confdefs.h <<EOF
4805 #define $ac_tr_hdr 1
4808 PLUGINS="${PLUGINS} xvideo"
4809 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4810 CFLAGS_X11="-I$x_includes"
4812 CPPFLAGS=$saved_CPPFLAGS
4814 echo "$ac_t""no" 1>&6
4820 # Check whether --enable-alsa or --disable-alsa was given.
4821 if test "${enable_alsa+set}" = set; then
4822 enableval="$enable_alsa"
4823 if test x$enable_alsa = xyes
4825 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4826 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4827 echo "configure:4828: checking for sys/asoundlib.h" >&5
4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 #include <sys/asoundlib.h>
4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4839 if test -z "$ac_err"; then
4841 eval "ac_cv_header_$ac_safe=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_header_$ac_safe=no"
4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4854 echo "configure:4855: checking for main in -lasound" >&5
4855 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 ac_save_LIBS="$LIBS"
4860 LIBS="-lasound $LIBS"
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 eval "ac_cv_lib_$ac_lib_var=yes"
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 eval "ac_cv_lib_$ac_lib_var=no"
4879 LIBS="$ac_save_LIBS"
4882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4886 echo "$ac_t""no" 1>&6
4891 echo "$ac_t""no" 1>&6
4895 if test x$have_alsa = xtrue
4897 PLUGINS="${PLUGINS} alsa"
4965 cat > confcache <<\EOF
4966 # This file is a shell script that caches the results of configure
4967 # tests run on this system so they can be shared between configure
4968 # scripts and configure runs. It is not useful on other systems.
4969 # If it contains results you don't want to keep, you may remove or edit it.
4971 # By default, configure uses ./config.cache as the cache file,
4972 # creating it if it does not exist already. You can give configure
4973 # the --cache-file=FILE option to use a different cache file; that is
4974 # what configure does when it calls configure scripts in
4975 # subdirectories, so they share the cache.
4976 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4977 # config.status only pays attention to the cache file if you give it the
4978 # --recheck option to rerun configure.
4981 # The following way of writing the cache mishandles newlines in values,
4982 # but we know of no workaround that is simple, portable, and efficient.
4983 # So, don't put newlines in cache variables' values.
4984 # Ultrix sh set writes to stderr and can't be redirected directly,
4985 # and sets the high bit in the cache file unless we assign to the vars.
4987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4989 # `set' does not quote correctly, so add quotes (double-quote substitution
4990 # turns \\\\ into \\, and sed turns \\ into \).
4992 -e "s/'/'\\\\''/g" \
4993 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4996 # `set' quotes correctly as required by POSIX, so do not add quotes.
4997 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5000 if cmp -s $cache_file confcache; then
5003 if test -w $cache_file; then
5004 echo "updating cache $cache_file"
5005 cat confcache > $cache_file
5007 echo "not updating unwritable cache $cache_file"
5012 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5015 # Let make expand exec_prefix.
5016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5018 # Any assignment to VPATH causes Sun make to only execute
5019 # the first set of double-colon rules, so remove it if not needed.
5020 # If there is a colon in the path, we need to keep it.
5021 if test "x$srcdir" = x.; then
5022 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5025 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5027 DEFS=-DHAVE_CONFIG_H
5029 # Without the "./", some shells look in PATH for config.status.
5030 : ${CONFIG_STATUS=./config.status}
5032 echo creating $CONFIG_STATUS
5033 rm -f $CONFIG_STATUS
5034 cat > $CONFIG_STATUS <<EOF
5036 # Generated automatically by configure.
5037 # Run this file to recreate the current configuration.
5038 # This directory was configured as follows,
5039 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5041 # $0 $ac_configure_args
5043 # Compiler output produced by configure, useful for debugging
5044 # configure, is in ./config.log if it exists.
5046 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5049 case "\$ac_option" in
5050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5051 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5052 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5053 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5054 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5056 -help | --help | --hel | --he | --h)
5057 echo "\$ac_cs_usage"; exit 0 ;;
5058 *) echo "\$ac_cs_usage"; exit 1 ;;
5062 ac_given_srcdir=$srcdir
5063 ac_given_INSTALL="$INSTALL"
5065 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5067 cat >> $CONFIG_STATUS <<EOF
5069 # Protect against being on the right side of a sed subst in config.status.
5070 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5071 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5075 s%@CFLAGS@%$CFLAGS%g
5076 s%@CPPFLAGS@%$CPPFLAGS%g
5077 s%@CXXFLAGS@%$CXXFLAGS%g
5078 s%@FFLAGS@%$FFLAGS%g
5080 s%@LDFLAGS@%$LDFLAGS%g
5082 s%@exec_prefix@%$exec_prefix%g
5083 s%@prefix@%$prefix%g
5084 s%@program_transform_name@%$program_transform_name%g
5085 s%@bindir@%$bindir%g
5086 s%@sbindir@%$sbindir%g
5087 s%@libexecdir@%$libexecdir%g
5088 s%@datadir@%$datadir%g
5089 s%@sysconfdir@%$sysconfdir%g
5090 s%@sharedstatedir@%$sharedstatedir%g
5091 s%@localstatedir@%$localstatedir%g
5092 s%@libdir@%$libdir%g
5093 s%@includedir@%$includedir%g
5094 s%@oldincludedir@%$oldincludedir%g
5095 s%@infodir@%$infodir%g
5096 s%@mandir@%$mandir%g
5098 s%@host_alias@%$host_alias%g
5099 s%@host_cpu@%$host_cpu%g
5100 s%@host_vendor@%$host_vendor%g
5101 s%@host_os@%$host_os%g
5102 s%@VLC_VERSION@%$VLC_VERSION%g
5103 s%@VLC_CODENAME@%$VLC_CODENAME%g
5104 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5105 s%@SET_MAKE@%$SET_MAKE%g
5108 s%@RANLIB@%$RANLIB%g
5109 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5110 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5111 s%@INSTALL_DATA@%$INSTALL_DATA%g
5112 s%@ESD_CONFIG@%$ESD_CONFIG%g
5113 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5114 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5115 s%@SDL_CONFIG@%$SDL_CONFIG%g
5116 s%@GTK_CONFIG@%$GTK_CONFIG%g
5119 s%@PLUGINS@%$PLUGINS%g
5120 s%@BUILTINS@%$BUILTINS%g
5121 s%@ALIASES@%$ALIASES%g
5122 s%@DEFINE@%$DEFINE%g
5123 s%@INCLUDE@%$INCLUDE%g
5128 s%@PROFILING@%$PROFILING%g
5129 s%@OPTIMS@%$OPTIMS%g
5130 s%@NEED_GETOPT@%$NEED_GETOPT%g
5132 s%@WINDRES@%$WINDRES%g
5133 s%@LCFLAGS@%$LCFLAGS%g
5134 s%@PLCFLAGS@%$PLCFLAGS%g
5135 s%@SOFLAGS@%$SOFLAGS%g
5137 s%@LIB_ALSA@%$LIB_ALSA%g
5138 s%@LIB_BEOS@%$LIB_BEOS%g
5139 s%@LIB_DARWIN@%$LIB_DARWIN%g
5140 s%@LIB_DVD@%$LIB_DVD%g
5141 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5142 s%@LIB_ESD@%$LIB_ESD%g
5143 s%@LIB_GGI@%$LIB_GGI%g
5144 s%@LIB_GLIDE@%$LIB_GLIDE%g
5145 s%@LIB_GNOME@%$LIB_GNOME%g
5146 s%@LIB_GTK@%$LIB_GTK%g
5147 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
5148 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5149 s%@LIB_KDE@%$LIB_KDE%g
5150 s%@LIB_MACOSX@%$LIB_MACOSX%g
5151 s%@LIB_QNX@%$LIB_QNX%g
5152 s%@LIB_NCURSES@%$LIB_NCURSES%g
5153 s%@LIB_QT@%$LIB_QT%g
5154 s%@LIB_TS@%$LIB_TS%g
5155 s%@LIB_SDL@%$LIB_SDL%g
5156 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5157 s%@LIB_X11@%$LIB_X11%g
5158 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5159 s%@LIB_YUV@%$LIB_YUV%g
5160 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5161 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5162 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5163 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5164 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5165 s%@CFLAGS_X11@%$CFLAGS_X11%g
5166 s%@OBJ_DVD@%$OBJ_DVD%g
5167 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5168 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5173 cat >> $CONFIG_STATUS <<\EOF
5175 # Split the substitutions into bite-sized pieces for seds with
5176 # small command number limits, like on Digital OSF/1 and HP-UX.
5177 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5178 ac_file=1 # Number of current file.
5179 ac_beg=1 # First line for current file.
5180 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5183 while $ac_more_lines; do
5184 if test $ac_beg -gt 1; then
5185 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5187 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5189 if test ! -s conftest.s$ac_file; then
5191 rm -f conftest.s$ac_file
5193 if test -z "$ac_sed_cmds"; then
5194 ac_sed_cmds="sed -f conftest.s$ac_file"
5196 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5198 ac_file=`expr $ac_file + 1`
5200 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5203 if test -z "$ac_sed_cmds"; then
5208 cat >> $CONFIG_STATUS <<EOF
5210 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5212 cat >> $CONFIG_STATUS <<\EOF
5213 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5214 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5216 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5217 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5218 *) ac_file_in="${ac_file}.in" ;;
5221 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5223 # Remove last slash and all that follows it. Not all systems have dirname.
5224 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5225 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5226 # The file is in a subdirectory.
5227 test ! -d "$ac_dir" && mkdir "$ac_dir"
5228 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5229 # A "../" for each directory in $ac_dir_suffix.
5230 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5232 ac_dir_suffix= ac_dots=
5235 case "$ac_given_srcdir" in
5237 if test -z "$ac_dots"; then top_srcdir=.
5238 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5239 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5241 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5242 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5245 case "$ac_given_INSTALL" in
5246 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5247 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5250 echo creating "$ac_file"
5252 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5254 *Makefile*) ac_comsub="1i\\
5255 # $configure_input" ;;
5259 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5261 s%@configure_input@%$configure_input%g
5262 s%@srcdir@%$srcdir%g
5263 s%@top_srcdir@%$top_srcdir%g
5264 s%@INSTALL@%$INSTALL%g
5265 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5269 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5270 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5272 # ac_d sets the value in "#define NAME VALUE" lines.
5273 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5274 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5277 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5278 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5279 ac_uB='\([ ]\)%\1#\2define\3'
5282 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5283 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5284 ac_eB='$%\1#\2define\3'
5288 if test "${CONFIG_HEADERS+set}" != set; then
5290 cat >> $CONFIG_STATUS <<EOF
5291 CONFIG_HEADERS="include/defs.h"
5293 cat >> $CONFIG_STATUS <<\EOF
5295 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5298 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5299 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5300 *) ac_file_in="${ac_file}.in" ;;
5303 echo creating $ac_file
5305 rm -f conftest.frag conftest.in conftest.out
5306 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5307 cat $ac_file_inputs > conftest.in
5311 # Transform confdefs.h into a sed script conftest.vals that substitutes
5312 # the proper values into config.h.in to produce config.h. And first:
5313 # Protect against being on the right side of a sed subst in config.status.
5314 # Protect against being in an unquoted here document in config.status.
5316 cat > conftest.hdr <<\EOF
5319 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5323 sed -n -f conftest.hdr confdefs.h > conftest.vals
5326 # This sed command replaces #undef with comments. This is necessary, for
5327 # example, in the case of _POSIX_SOURCE, which is predefined and required
5328 # on some systems where configure will not decide to define it.
5329 cat >> conftest.vals <<\EOF
5330 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5333 # Break up conftest.vals because some shells have a limit on
5334 # the size of here documents, and old seds have small limits too.
5339 ac_lines=`grep -c . conftest.vals`
5340 # grep -c gives empty output for an empty file on some AIX systems.
5341 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5342 # Write a limited-size here document to conftest.frag.
5343 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5344 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5346 sed -f conftest.frag conftest.in > conftest.out
5348 mv conftest.out conftest.in
5350 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5352 mv conftest.tail conftest.vals
5356 cat >> $CONFIG_STATUS <<\EOF
5357 rm -f conftest.frag conftest.h
5358 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5359 cat conftest.in >> conftest.h
5361 if cmp -s $ac_file conftest.h 2>/dev/null; then
5362 echo "$ac_file is unchanged"
5365 # Remove last slash and all that follows it. Not all systems have dirname.
5366 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5367 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5368 # The file is in a subdirectory.
5369 test ! -d "$ac_dir" && mkdir "$ac_dir"
5372 mv conftest.h $ac_file
5377 cat >> $CONFIG_STATUS <<EOF
5380 cat >> $CONFIG_STATUS <<\EOF
5384 chmod +x $CONFIG_STATUS
5385 rm -fr confdefs* $ac_clean_files
5386 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5390 global configuration
5391 --------------------
5393 architecture : ${ARCH}
5394 optimizations : ${OPTIMS}"
5396 if test x${HAVE_VLC} = x1
5401 vlc version : ${VLC_VERSION}
5402 debug mode : ${DEBUG}
5403 statistics : ${STATS}
5404 trace mode : ${TRACE}
5405 profiling : ${PROFILING}
5406 need builtin getopt : ${NEED_GETOPT}
5407 built-in modules :${BUILTINS}
5408 plugin modules :${PLUGINS}
5409 vlc aliases :${ALIASES}"
5413 libdvdcss configuration
5414 -----------------------
5415 can be built : ${CAN_BUILD_LIBDVDCSS}
5416 will be built : ${NEED_LIBDVDCSS}"
5417 if test x${NEED_LIBDVDCSS} = x1
5419 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
5420 echo "link statically : ${STATIC_LIBDVDCSS}"
5422 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
5426 You may now tune Makefile.opts at your convenience, for instance to choose
5427 which modules get compiled as plugins.
5429 if test x${HAVE_VLC} = x1
5431 echo "To build vlc and its plugins, type \`make vlc'."
5433 if test x${HAVE_LIBDVDCSS} = x1
5435 echo "To build libdvdcss only, type \`make libdvdcss'."