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 local-static, local-shared or a path to another libdvdcss such as /usr/local (default local-static)"
35 --disable-css Disable DVD CSS decryption (default enabled)"
37 --disable-dummy dummy module (default enabled)"
39 --disable-null Null module (default enabled)"
41 --disable-rc rc module (default enabled)"
43 --disable-dsp Linux /dev/dsp support (default enabled)"
45 --enable-esd Esound library support (default disabled)"
47 --enable-darwin Darwin sound support (default disabled)"
49 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
51 --disable-qnx QNX RTOS support (default enabled in QNX RTOS)"
53 --enable-fb Linux framebuffer support (default disabled)"
55 --with-ggi[=name] GGI support (default disabled)"
57 --disable-sdl SDL support (default enabled)"
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/main.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
639 LIBDVDCSS_VERSION=0.0.2
644 save_CFLAGS="${CFLAGS}"
646 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
647 echo "configure:648: checking whether ${MAKE-make} sets \${MAKE}" >&5
648 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
649 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 cat > conftestmake <<\EOF
654 @echo 'ac_maketemp="${MAKE}"'
656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
657 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
658 if test -n "$ac_maketemp"; then
659 eval ac_cv_prog_make_${ac_make}_set=yes
661 eval ac_cv_prog_make_${ac_make}_set=no
665 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
666 echo "$ac_t""yes" 1>&6
669 echo "$ac_t""no" 1>&6
670 SET_MAKE="MAKE=${MAKE-make}"
673 # Extract the first word of "gcc", so it can be a program name with args.
674 set dummy gcc; ac_word=$2
675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676 echo "configure:677: checking for $ac_word" >&5
677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 if test -n "$CC"; then
681 ac_cv_prog_CC="$CC" # Let the user override the test.
683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
696 if test -n "$CC"; then
697 echo "$ac_t""$CC" 1>&6
699 echo "$ac_t""no" 1>&6
702 if test -z "$CC"; then
703 # Extract the first word of "cc", so it can be a program name with args.
704 set dummy cc; ac_word=$2
705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706 echo "configure:707: checking for $ac_word" >&5
707 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 if test -n "$CC"; then
711 ac_cv_prog_CC="$CC" # Let the user override the test.
713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
716 for ac_dir in $ac_dummy; do
717 test -z "$ac_dir" && ac_dir=.
718 if test -f $ac_dir/$ac_word; then
719 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
728 if test $ac_prog_rejected = yes; then
729 # We found a bogon in the path, so make sure we never use it.
730 set dummy $ac_cv_prog_CC
732 if test $# -gt 0; then
733 # We chose a different compiler from the bogus one.
734 # However, it has the same basename, so the bogon will be chosen
735 # first if we set CC to just the basename; use the full file name.
737 set dummy "$ac_dir/$ac_word" "$@"
745 if test -n "$CC"; then
746 echo "$ac_t""$CC" 1>&6
748 echo "$ac_t""no" 1>&6
751 if test -z "$CC"; then
754 # Extract the first word of "cl", so it can be a program name with args.
755 set dummy cl; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 for ac_dir in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
780 echo "$ac_t""no" 1>&6
785 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
788 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CPP $CPPFLAGS'
794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cc_cross
798 cat > conftest.$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
805 if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
806 ac_cv_prog_cc_works=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (./conftest; exit) 2>/dev/null; then
809 ac_cv_prog_cc_cross=no
811 ac_cv_prog_cc_cross=yes
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 ac_cv_prog_cc_works=no
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp='$CPP $CPPFLAGS'
822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
827 if test $ac_cv_prog_cc_works = no; then
828 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
833 cross_compiling=$ac_cv_prog_cc_cross
835 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
836 echo "configure:837: checking whether we are using GNU C" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 cat > conftest.c <<EOF
845 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
852 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
854 if test $ac_cv_prog_gcc = yes; then
860 ac_test_CFLAGS="${CFLAGS+set}"
861 ac_save_CFLAGS="$CFLAGS"
863 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
864 echo "configure:865: checking whether ${CC-cc} accepts -g" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 echo 'void f(){}' > conftest.c
869 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
878 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
879 if test "$ac_test_CFLAGS" = set; then
880 CFLAGS="$ac_save_CFLAGS"
881 elif test $ac_cv_prog_cc_g = yes; then
882 if test "$GCC" = yes; then
888 if test "$GCC" = yes; then
895 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
896 echo "configure:897: checking how to run the C preprocessor" >&5
897 # On Suns, sometimes $CPP names a directory.
898 if test -n "$CPP" && test -d "$CPP"; then
901 if test -z "$CPP"; then
902 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 # This must be in double quotes, not single quotes, because CPP may get
906 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 # On the NeXT, cc -E runs the code through the compiler's parser,
909 # not just through cpp.
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
917 { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
919 if test -z "$ac_err"; then
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
926 CPP="${CC-cc} -E -traditional-cpp"
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
936 if test -z "$ac_err"; then
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
943 CPP="${CC-cc} -nologo -E"
944 cat > conftest.$ac_ext <<EOF
945 #line 946 "configure"
946 #include "confdefs.h"
950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
951 { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
953 if test -z "$ac_err"; then
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
967 ac_cv_prog_CPP="$CPP"
969 CPP="$ac_cv_prog_CPP"
971 ac_cv_prog_CPP="$CPP"
973 echo "$ac_t""$CPP" 1>&6
975 # Extract the first word of "ranlib", so it can be a program name with args.
976 set dummy ranlib; ac_word=$2
977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978 echo "configure:979: checking for $ac_word" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 if test -n "$RANLIB"; then
983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
987 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_prog_RANLIB="ranlib"
995 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
998 RANLIB="$ac_cv_prog_RANLIB"
999 if test -n "$RANLIB"; then
1000 echo "$ac_t""$RANLIB" 1>&6
1002 echo "$ac_t""no" 1>&6
1006 # Find a good install program. We prefer a C program (faster),
1007 # so one script is as good as another. But avoid the broken or
1008 # incompatible versions:
1009 # SysV /etc/install, /usr/sbin/install
1010 # SunOS /usr/etc/install
1011 # IRIX /sbin/install
1013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1016 # ./install, which can be erroneously created by make from ./install.sh.
1017 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1018 echo "configure:1019: checking for a BSD compatible install" >&5
1019 if test -z "$INSTALL"; then
1020 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1024 for ac_dir in $PATH; do
1025 # Account for people who put trailing slashes in PATH elements.
1027 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1029 # OSF1 and SCO ODT 3.0 have their own names for install.
1030 # Don't use installbsd from OSF since it installs stuff as root
1032 for ac_prog in ginstall scoinst install; do
1033 if test -f $ac_dir/$ac_prog; then
1034 if test $ac_prog = install &&
1035 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1036 # AIX install. It has an incompatible calling convention.
1039 ac_cv_path_install="$ac_dir/$ac_prog -c"
1050 if test "${ac_cv_path_install+set}" = set; then
1051 INSTALL="$ac_cv_path_install"
1053 # As a last resort, use the slow shell script. We don't cache a
1054 # path for INSTALL within a source directory, because that will
1055 # break other packages using the cache if that directory is
1056 # removed, or if the path is relative.
1057 INSTALL="$ac_install_sh"
1060 echo "$ac_t""$INSTALL" 1>&6
1062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1063 # It thinks the first close brace ends the variable substitution.
1064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1071 echo $ac_n "checking for working const""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working const" >&5
1073 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1082 /* Ultrix mips cc rejects this. */
1083 typedef int charset[2]; const charset x;
1084 /* SunOS 4.1.1 cc rejects this. */
1085 char const *const *ccp;
1087 /* NEC SVR4.0.2 mips cc rejects this. */
1088 struct point {int x, y;};
1089 static struct point const zero = {0,0};
1090 /* AIX XL C 1.02.0.0 rejects this.
1091 It does not let you subtract one const X* pointer from another in an arm
1092 of an if-expression whose if-part is not a constant expression */
1093 const char *g = "string";
1094 ccp = &g + (g ? g-g : 0);
1095 /* HPUX 7.0 cc rejects these. */
1098 ccp = (char const *const *) p;
1099 { /* SCO 3.2v4 cc rejects this. */
1101 char const *s = 0 ? (char *) 0 : (char const *) 0;
1105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1107 const int *foo = &x[0];
1110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1111 typedef const int *iptr;
1115 { /* AIX XL C 1.02.0.0 rejects this saying
1116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1117 struct s { int j; const int *ap[3]; };
1118 struct s *b; b->j = 5;
1120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1126 if { (eval echo configure:1127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1138 echo "$ac_t""$ac_cv_c_const" 1>&6
1139 if test $ac_cv_c_const = no; then
1140 cat >> confdefs.h <<\EOF
1147 if test x${cross_compiling} != xyes; then
1148 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether byte ordering is bigendian" >&5
1150 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 ac_cv_c_bigendian=unknown
1154 # See if sys/param.h defines the BYTE_ORDER macro.
1155 cat > conftest.$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1158 #include <sys/types.h>
1159 #include <sys/param.h>
1162 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1167 if { (eval echo configure:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1169 # It does; now see whether it defined to BIG_ENDIAN or not.
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 #include <sys/types.h>
1174 #include <sys/param.h>
1177 #if BYTE_ORDER != BIG_ENDIAN
1182 if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1184 ac_cv_c_bigendian=yes
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1189 ac_cv_c_bigendian=no
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1197 if test $ac_cv_c_bigendian = unknown; then
1198 if test "$cross_compiling" = yes; then
1199 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1205 /* Are we little or big endian? From Harbison&Steele. */
1209 char c[sizeof (long)];
1212 exit (u.c[sizeof (long) - 1] == 1);
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1217 ac_cv_c_bigendian=no
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1222 ac_cv_c_bigendian=yes
1230 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1231 if test $ac_cv_c_bigendian = yes; then
1232 cat >> confdefs.h <<\EOF
1233 #define WORDS_BIGENDIAN 1
1240 for ac_func in gettimeofday select strerror strtod strtol
1242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_func" >&5
1244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1250 /* System header to define __stub macros and hopefully few prototypes,
1251 which can conflict with char $ac_func(); below. */
1253 /* Override any gcc2 internal prototype to avoid an error. */
1254 /* We use char because int might match the return type of a gcc2
1255 builtin and then its argument prototype would still apply. */
1260 /* The GNU C library defines this for functions which it implements
1261 to always fail with ENOSYS. Some functions are actually named
1262 something starting with __ and the normal name is an alias. */
1263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1273 eval "ac_cv_func_$ac_func=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_func_$ac_func=no"
1283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1286 cat >> confdefs.h <<EOF
1287 #define $ac_tr_func 1
1291 echo "$ac_t""no" 1>&6
1295 for ac_func in setenv putenv
1297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_func" >&5
1299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 cat > conftest.$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1305 /* System header to define __stub macros and hopefully few prototypes,
1306 which can conflict with char $ac_func(); below. */
1308 /* Override any gcc2 internal prototype to avoid an error. */
1309 /* We use char because int might match the return type of a gcc2
1310 builtin and then its argument prototype would still apply. */
1315 /* The GNU C library defines this for functions which it implements
1316 to always fail with ENOSYS. Some functions are actually named
1317 something starting with __ and the normal name is an alias. */
1318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1328 eval "ac_cv_func_$ac_func=yes"
1330 echo "configure: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1333 eval "ac_cv_func_$ac_func=no"
1338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1339 echo "$ac_t""yes" 1>&6
1340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1341 cat >> confdefs.h <<EOF
1342 #define $ac_tr_func 1
1346 echo "$ac_t""no" 1>&6
1350 echo $ac_n "checking for connect""... $ac_c" 1>&6
1351 echo "configure:1352: checking for connect" >&5
1352 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 cat > conftest.$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1358 /* System header to define __stub macros and hopefully few prototypes,
1359 which can conflict with char connect(); below. */
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1368 /* The GNU C library defines this for functions which it implements
1369 to always fail with ENOSYS. Some functions are actually named
1370 something starting with __ and the normal name is an alias. */
1371 #if defined (__stub_connect) || defined (__stub___connect)
1379 if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1381 eval "ac_cv_func_connect=yes"
1383 echo "configure: failed program was:" >&5
1384 cat conftest.$ac_ext >&5
1386 eval "ac_cv_func_connect=no"
1391 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1395 echo "$ac_t""no" 1>&6
1397 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1398 echo "configure:1399: checking for connect in -lsocket" >&5
1399 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 ac_save_LIBS="$LIBS"
1404 LIBS="-lsocket $LIBS"
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* Override any gcc2 internal prototype to avoid an error. */
1409 /* We use char because int might match the return type of a gcc2
1410 builtin and then its argument prototype would still apply. */
1417 if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 eval "ac_cv_lib_$ac_lib_var=yes"
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1424 eval "ac_cv_lib_$ac_lib_var=no"
1427 LIBS="$ac_save_LIBS"
1430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1431 echo "$ac_t""yes" 1>&6
1432 LIB="${LIB} -lsocket"
1434 echo "$ac_t""no" 1>&6
1440 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1441 echo "configure:1442: checking for gethostbyname" >&5
1442 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 /* System header to define __stub macros and hopefully few prototypes,
1449 which can conflict with char gethostbyname(); below. */
1451 /* Override any gcc2 internal prototype to avoid an error. */
1452 /* We use char because int might match the return type of a gcc2
1453 builtin and then its argument prototype would still apply. */
1454 char gethostbyname();
1458 /* The GNU C library defines this for functions which it implements
1459 to always fail with ENOSYS. Some functions are actually named
1460 something starting with __ and the normal name is an alias. */
1461 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1471 eval "ac_cv_func_gethostbyname=yes"
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1476 eval "ac_cv_func_gethostbyname=no"
1481 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1485 echo "$ac_t""no" 1>&6
1487 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1488 echo "configure:1489: checking for gethostbyname in -lnsl" >&5
1489 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 ac_save_LIBS="$LIBS"
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 /* Override any gcc2 internal prototype to avoid an error. */
1499 /* We use char because int might match the return type of a gcc2
1500 builtin and then its argument prototype would still apply. */
1501 char gethostbyname();
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1509 eval "ac_cv_lib_$ac_lib_var=yes"
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1514 eval "ac_cv_lib_$ac_lib_var=no"
1517 LIBS="$ac_save_LIBS"
1520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1521 echo "$ac_t""yes" 1>&6
1524 echo "$ac_t""no" 1>&6
1530 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1531 echo "configure:1532: checking for nanosleep" >&5
1532 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 /* System header to define __stub macros and hopefully few prototypes,
1539 which can conflict with char nanosleep(); below. */
1541 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1548 /* The GNU C library defines this for functions which it implements
1549 to always fail with ENOSYS. Some functions are actually named
1550 something starting with __ and the normal name is an alias. */
1551 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1561 eval "ac_cv_func_nanosleep=yes"
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1566 eval "ac_cv_func_nanosleep=no"
1571 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1575 echo "$ac_t""no" 1>&6
1577 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1578 echo "configure:1579: checking for nanosleep in -lrt" >&5
1579 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 ac_save_LIBS="$LIBS"
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1588 /* Override any gcc2 internal prototype to avoid an error. */
1589 /* We use char because int might match the return type of a gcc2
1590 builtin and then its argument prototype would still apply. */
1597 if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1599 eval "ac_cv_lib_$ac_lib_var=yes"
1601 echo "configure: failed program was:" >&5
1602 cat conftest.$ac_ext >&5
1604 eval "ac_cv_lib_$ac_lib_var=no"
1607 LIBS="$ac_save_LIBS"
1610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1611 echo "$ac_t""yes" 1>&6
1614 echo "$ac_t""no" 1>&6
1616 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1617 echo "configure:1618: checking for nanosleep in -lposix4" >&5
1618 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 ac_save_LIBS="$LIBS"
1623 LIBS="-lposix4 $LIBS"
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* Override any gcc2 internal prototype to avoid an error. */
1628 /* We use char because int might match the return type of a gcc2
1629 builtin and then its argument prototype would still apply. */
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1638 eval "ac_cv_lib_$ac_lib_var=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1643 eval "ac_cv_lib_$ac_lib_var=no"
1646 LIBS="$ac_save_LIBS"
1649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1651 LIB="${LIB} -lposix4"
1653 echo "$ac_t""no" 1>&6
1662 for ac_func in usleep
1664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1665 echo "configure:1666: checking for $ac_func" >&5
1666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 /* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char $ac_func(); below. */
1675 /* Override any gcc2 internal prototype to avoid an error. */
1676 /* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1682 /* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 eval "ac_cv_func_$ac_func=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_func_$ac_func=no"
1705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1708 cat >> confdefs.h <<EOF
1709 #define $ac_tr_func 1
1713 echo "$ac_t""no" 1>&6
1717 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1718 echo "configure:1719: checking for inet_aton" >&5
1719 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char inet_aton(); below. */
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 eval "ac_cv_func_inet_aton=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 eval "ac_cv_func_inet_aton=no"
1758 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1759 echo "$ac_t""yes" 1>&6
1762 echo "$ac_t""no" 1>&6
1764 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1765 echo "configure:1766: checking for inet_aton in -lresolv" >&5
1766 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 ac_save_LIBS="$LIBS"
1771 LIBS="-lresolv $LIBS"
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 /* Override any gcc2 internal prototype to avoid an error. */
1776 /* We use char because int might match the return type of a gcc2
1777 builtin and then its argument prototype would still apply. */
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786 eval "ac_cv_lib_$ac_lib_var=yes"
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 eval "ac_cv_lib_$ac_lib_var=no"
1794 LIBS="$ac_save_LIBS"
1797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1798 echo "$ac_t""yes" 1>&6
1799 LIB="${LIB} -lresolv"
1801 echo "$ac_t""no" 1>&6
1807 for ac_func in vasprintf
1809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_func" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 eval "ac_cv_func_$ac_func=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_func_$ac_func=no"
1850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1853 cat >> confdefs.h <<EOF
1854 #define $ac_tr_func 1
1858 echo "$ac_t""no" 1>&6
1864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_func" >&5
1866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $ac_func(); below. */
1875 /* Override any gcc2 internal prototype to avoid an error. */
1876 /* We use char because int might match the return type of a gcc2
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1895 eval "ac_cv_func_$ac_func=yes"
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1900 eval "ac_cv_func_$ac_func=no"
1905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_func 1
1913 echo "$ac_t""no" 1>&6
1918 for ac_func in sigrelse
1920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_func" >&5
1922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $ac_func(); below. */
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1938 /* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1949 if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1951 eval "ac_cv_func_$ac_func=yes"
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 eval "ac_cv_func_$ac_func=no"
1961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1964 cat >> confdefs.h <<EOF
1965 #define $ac_tr_func 1
1969 echo "$ac_t""no" 1>&6
1975 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1976 echo "configure:1977: checking for getopt_long" >&5
1977 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char getopt_long(); below. */
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2006 eval "ac_cv_func_getopt_long=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_func_getopt_long=no"
2016 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 cat >> confdefs.h <<\EOF
2019 #define HAVE_GETOPT_LONG 1
2023 echo "$ac_t""no" 1>&6
2024 # FreeBSD has a gnugetopt library for this:
2025 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2026 echo "configure:2027: checking for getopt_long in -lgnugetopt" >&5
2027 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 ac_save_LIBS="$LIBS"
2032 LIBS="-lgnugetopt $LIBS"
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 /* We use char because int might match the return type of a gcc2
2038 builtin and then its argument prototype would still apply. */
2045 if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2047 eval "ac_cv_lib_$ac_lib_var=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 eval "ac_cv_lib_$ac_lib_var=no"
2055 LIBS="$ac_save_LIBS"
2058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2059 echo "$ac_t""yes" 1>&6
2060 cat >> confdefs.h <<\EOF
2061 #define HAVE_GETOPT_LONG 1
2063 LIB="${LIB} -lgnugetopt"
2065 echo "$ac_t""no" 1>&6
2072 for ac_hdr in unistd.h
2074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2076 echo "configure:2077: checking for $ac_hdr" >&5
2077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2086 { (eval echo configure:2087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2088 if test -z "$ac_err"; then
2090 eval "ac_cv_header_$ac_safe=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 eval "ac_cv_header_$ac_safe=no"
2100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2103 cat >> confdefs.h <<EOF
2104 #define $ac_tr_hdr 1
2108 echo "$ac_t""no" 1>&6
2112 for ac_func in getpagesize
2114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_func" >&5
2116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char $ac_func(); below. */
2125 /* Override any gcc2 internal prototype to avoid an error. */
2126 /* We use char because int might match the return type of a gcc2
2127 builtin and then its argument prototype would still apply. */
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2145 eval "ac_cv_func_$ac_func=yes"
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2150 eval "ac_cv_func_$ac_func=no"
2155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2158 cat >> confdefs.h <<EOF
2159 #define $ac_tr_func 1
2163 echo "$ac_t""no" 1>&6
2167 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2168 echo "configure:2169: checking for working mmap" >&5
2169 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 if test "$cross_compiling" = yes; then
2173 ac_cv_func_mmap_fixed_mapped=no
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2179 /* Thanks to Mike Haertel and Jim Avera for this test.
2180 Here is a matrix of mmap possibilities:
2181 mmap private not fixed
2182 mmap private fixed at somewhere currently unmapped
2183 mmap private fixed at somewhere already mapped
2184 mmap shared not fixed
2185 mmap shared fixed at somewhere currently unmapped
2186 mmap shared fixed at somewhere already mapped
2187 For private mappings, we should verify that changes cannot be read()
2188 back from the file, nor mmap's back from the file at a different
2189 address. (There have been systems where private was not correctly
2190 implemented like the infamous i386 svr4.0, and systems where the
2191 VM page cache was not coherent with the filesystem buffer cache
2192 like early versions of FreeBSD and possibly contemporary NetBSD.)
2193 For shared mappings, we should conversely verify that changes get
2194 propogated back to all the places they're supposed to be.
2196 Grep wants private fixed already mapped.
2197 The main things grep needs to know about mmap are:
2198 * does it exist and is it safe to write into the mmap'd area
2199 * how to use it (BSD variants) */
2200 #include <sys/types.h>
2202 #include <sys/mman.h>
2204 /* This mess was copied from the GNU getpagesize.h. */
2205 #ifndef HAVE_GETPAGESIZE
2206 # ifdef HAVE_UNISTD_H
2207 # include <unistd.h>
2210 /* Assume that all systems that can run configure have sys/param.h. */
2211 # ifndef HAVE_SYS_PARAM_H
2212 # define HAVE_SYS_PARAM_H 1
2215 # ifdef _SC_PAGESIZE
2216 # define getpagesize() sysconf(_SC_PAGESIZE)
2217 # else /* no _SC_PAGESIZE */
2218 # ifdef HAVE_SYS_PARAM_H
2219 # include <sys/param.h>
2220 # ifdef EXEC_PAGESIZE
2221 # define getpagesize() EXEC_PAGESIZE
2222 # else /* no EXEC_PAGESIZE */
2224 # define getpagesize() NBPG * CLSIZE
2227 # endif /* no CLSIZE */
2228 # else /* no NBPG */
2230 # define getpagesize() NBPC
2231 # else /* no NBPC */
2233 # define getpagesize() PAGESIZE
2234 # endif /* PAGESIZE */
2235 # endif /* no NBPC */
2236 # endif /* no NBPG */
2237 # endif /* no EXEC_PAGESIZE */
2238 # else /* no HAVE_SYS_PARAM_H */
2239 # define getpagesize() 8192 /* punt totally */
2240 # endif /* no HAVE_SYS_PARAM_H */
2241 # endif /* no _SC_PAGESIZE */
2243 #endif /* no HAVE_GETPAGESIZE */
2246 extern "C" { void *malloc(unsigned); }
2254 char *data, *data2, *data3;
2258 pagesize = getpagesize();
2261 * First, make a file with some known garbage in it.
2263 data = malloc(pagesize);
2266 for (i = 0; i < pagesize; ++i)
2267 *(data + i) = rand();
2269 fd = creat("conftestmmap", 0600);
2272 if (write(fd, data, pagesize) != pagesize)
2277 * Next, try to mmap the file at a fixed address which
2278 * already has something else allocated at it. If we can,
2279 * also make sure that we see the same garbage.
2281 fd = open("conftestmmap", O_RDWR);
2284 data2 = malloc(2 * pagesize);
2287 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2288 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2289 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2291 for (i = 0; i < pagesize; ++i)
2292 if (*(data + i) != *(data2 + i))
2296 * Finally, make sure that changes to the mapped area
2297 * do not percolate back to the file as seen by read().
2298 * (This is a bug on some variants of i386 svr4.0.)
2300 for (i = 0; i < pagesize; ++i)
2301 *(data2 + i) = *(data2 + i) + 1;
2302 data3 = malloc(pagesize);
2305 if (read(fd, data3, pagesize) != pagesize)
2307 for (i = 0; i < pagesize; ++i)
2308 if (*(data + i) != *(data3 + i))
2311 unlink("conftestmmap");
2316 if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2318 ac_cv_func_mmap_fixed_mapped=yes
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2323 ac_cv_func_mmap_fixed_mapped=no
2330 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2331 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2332 cat >> confdefs.h <<\EOF
2338 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2339 echo "configure:2340: checking return type of signal handlers" >&5
2340 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 #include <sys/types.h>
2352 extern "C" void (*signal (int, void (*)(int)))(int);
2354 void (*signal ()) ();
2361 if { (eval echo configure:2362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2363 ac_cv_type_signal=void
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 ac_cv_type_signal=int
2373 echo "$ac_t""$ac_cv_type_signal" 1>&6
2374 cat >> confdefs.h <<EOF
2375 #define RETSIGTYPE $ac_cv_type_signal
2379 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2380 echo "configure:2381: checking for dlopen in -ldl" >&5
2381 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS="$LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 eval "ac_cv_lib_$ac_lib_var=no"
2409 LIBS="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2416 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2420 echo "configure:2421: checking for pow in -lm" >&5
2421 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 ac_save_LIBS="$LIBS"
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441 eval "ac_cv_lib_$ac_lib_var=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_lib_$ac_lib_var=no"
2449 LIBS="$ac_save_LIBS"
2452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 LIB_YUV="${LIB_YUV} -lm"
2456 echo "$ac_t""no" 1>&6
2460 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2461 CFLAGS="${CFLAGS} -I/usr/local/include"
2464 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2465 echo "configure:2466: checking for pthread_attr_init in -lpthread" >&5
2466 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 ac_save_LIBS="$LIBS"
2471 LIBS="-lpthread $LIBS"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2478 char pthread_attr_init();
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 eval "ac_cv_lib_$ac_lib_var=yes"
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 eval "ac_cv_lib_$ac_lib_var=no"
2494 LIBS="$ac_save_LIBS"
2497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 THREAD_LIB="-lpthread"
2501 echo "$ac_t""no" 1>&6
2504 if test "x${THREAD_LIB}" = xerror; then
2505 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2506 echo "configure:2507: checking for pthread_attr_init in -lpthreads" >&5
2507 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 ac_save_LIBS="$LIBS"
2512 LIBS="-lpthreads $LIBS"
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516 /* Override any gcc2 internal prototype to avoid an error. */
2517 /* We use char because int might match the return type of a gcc2
2518 builtin and then its argument prototype would still apply. */
2519 char pthread_attr_init();
2525 if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2527 eval "ac_cv_lib_$ac_lib_var=yes"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 eval "ac_cv_lib_$ac_lib_var=no"
2535 LIBS="$ac_save_LIBS"
2538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2539 echo "$ac_t""yes" 1>&6
2540 THREAD_LIB="-lpthreads"
2542 echo "$ac_t""no" 1>&6
2546 if test "x${THREAD_LIB}" = xerror; then
2547 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2548 echo "configure:2549: checking for pthread_attr_init in -lc_r" >&5
2549 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 ac_save_LIBS="$LIBS"
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 /* Override any gcc2 internal prototype to avoid an error. */
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561 char pthread_attr_init();
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2569 eval "ac_cv_lib_$ac_lib_var=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_lib_$ac_lib_var=no"
2577 LIBS="$ac_save_LIBS"
2580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2584 echo "$ac_t""no" 1>&6
2588 if test "x${THREAD_LIB}" = xerror; then
2590 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2591 echo "configure:2592: checking for pthread_attr_init" >&5
2592 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 /* System header to define __stub macros and hopefully few prototypes,
2599 which can conflict with char pthread_attr_init(); below. */
2601 /* Override any gcc2 internal prototype to avoid an error. */
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604 char pthread_attr_init();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2614 pthread_attr_init();
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 eval "ac_cv_func_pthread_attr_init=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 eval "ac_cv_func_pthread_attr_init=no"
2631 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2635 echo "$ac_t""no" 1>&6
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 #include <pthread.h>
2645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2646 egrep "pthread_cond_t" >/dev/null 2>&1; then
2649 cat >> confdefs.h <<\EOF
2650 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <strings.h>
2661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2662 egrep "strncasecmp" >/dev/null 2>&1; then
2665 cat >> confdefs.h <<\EOF
2666 #define STRNCASECMP_IN_STRINGS_H 1
2673 for ac_hdr in stddef.h getopt.h strings.h
2675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_hdr" >&5
2678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2687 { (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2689 if test -z "$ac_err"; then
2691 eval "ac_cv_header_$ac_safe=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 eval "ac_cv_header_$ac_safe=no"
2701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2704 cat >> confdefs.h <<EOF
2705 #define $ac_tr_hdr 1
2709 echo "$ac_t""no" 1>&6
2713 for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h
2715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_hdr" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727 { (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729 if test -z "$ac_err"; then
2731 eval "ac_cv_header_$ac_safe=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2737 eval "ac_cv_header_$ac_safe=no"
2741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
2743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2744 cat >> confdefs.h <<EOF
2745 #define $ac_tr_hdr 1
2749 echo "$ac_t""no" 1>&6
2753 for ac_hdr in sys/soundcard.h machine/soundcard.h
2755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_hdr" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2771 eval "ac_cv_header_$ac_safe=yes"
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2777 eval "ac_cv_header_$ac_safe=no"
2781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2784 cat >> confdefs.h <<EOF
2785 #define $ac_tr_hdr 1
2789 echo "$ac_t""no" 1>&6
2793 for ac_hdr in dlfcn.h image.h
2795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2797 echo "configure:2798: checking for $ac_hdr" >&5
2798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2811 eval "ac_cv_header_$ac_safe=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2817 eval "ac_cv_header_$ac_safe=no"
2821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2824 cat >> confdefs.h <<EOF
2825 #define $ac_tr_hdr 1
2829 echo "$ac_t""no" 1>&6
2833 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2837 echo "configure:2838: checking for $ac_hdr" >&5
2838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 cat > conftest.$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2847 { (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2849 if test -z "$ac_err"; then
2851 eval "ac_cv_header_$ac_safe=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 eval "ac_cv_header_$ac_safe=no"
2861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2864 cat >> confdefs.h <<EOF
2865 #define $ac_tr_hdr 1
2869 echo "$ac_t""no" 1>&6
2873 for ac_hdr in machine/param.h
2875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_hdr" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2891 eval "ac_cv_header_$ac_safe=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_header_$ac_safe=no"
2901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h <<EOF
2905 #define $ac_tr_hdr 1
2909 echo "$ac_t""no" 1>&6
2914 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_hdr" >&5
2919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2928 { (eval echo configure:2929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2930 if test -z "$ac_err"; then
2932 eval "ac_cv_header_$ac_safe=yes"
2935 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2938 eval "ac_cv_header_$ac_safe=no"
2942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2945 cat >> confdefs.h <<EOF
2946 #define $ac_tr_hdr 1
2950 echo "$ac_t""no" 1>&6
2955 CFLAGS="${save_CFLAGS} -Wall -Werror"
2956 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2957 echo "configure:2958: checking for ntohl in sys/param.h" >&5
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/param.h>
2962 void foo() { int meuh; ntohl(meuh); }
2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 cat >> confdefs.h <<\EOF
2970 #define NTOHL_IN_SYS_PARAM_H 1
2973 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 CFLAGS="${save_CFLAGS} -finline-limit=12"
2983 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2984 echo "configure:2985: checking if \$CC accepts -finline-limit" >&5
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2993 if { (eval echo configure:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2995 save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; echo "$ac_t""yes" 1>&6
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 echo "$ac_t""no" 1>&6
3004 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
3005 echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
3006 echo "configure:3007: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3015 if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3017 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 echo "$ac_t""no" 1>&6
3026 CFLAGS="${save_CFLAGS} -shared"
3027 echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
3028 echo "configure:3029: checking if \$CC compiles plugins with -shared" >&5
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3037 if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 echo "$ac_t""no" 1>&6
3048 CFLAGS="${save_CFLAGS}"
3050 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3051 echo "configure:3052: checking for boolean_t in sys/types.h" >&5
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 #include <sys/types.h>
3056 void quux() { boolean_t foo; }
3061 if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063 cat >> confdefs.h <<\EOF
3064 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3067 echo "$ac_t""yes" 1>&6
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3072 echo "$ac_t""no" 1>&6
3075 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3076 echo "configure:3077: checking for boolean_t in pthread.h" >&5
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <pthread.h>
3081 void quux() { boolean_t foo; }
3086 if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3088 cat >> confdefs.h <<\EOF
3089 #define BOOLEAN_T_IN_PTHREAD_H 1
3092 echo "$ac_t""yes" 1>&6
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3097 echo "$ac_t""no" 1>&6
3101 echo $ac_n "checking for working const""... $ac_c" 1>&6
3102 echo "configure:3103: checking for working const" >&5
3103 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3112 /* Ultrix mips cc rejects this. */
3113 typedef int charset[2]; const charset x;
3114 /* SunOS 4.1.1 cc rejects this. */
3115 char const *const *ccp;
3117 /* NEC SVR4.0.2 mips cc rejects this. */
3118 struct point {int x, y;};
3119 static struct point const zero = {0,0};
3120 /* AIX XL C 1.02.0.0 rejects this.
3121 It does not let you subtract one const X* pointer from another in an arm
3122 of an if-expression whose if-part is not a constant expression */
3123 const char *g = "string";
3124 ccp = &g + (g ? g-g : 0);
3125 /* HPUX 7.0 cc rejects these. */
3128 ccp = (char const *const *) p;
3129 { /* SCO 3.2v4 cc rejects this. */
3131 char const *s = 0 ? (char *) 0 : (char const *) 0;
3135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3137 const int *foo = &x[0];
3140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3141 typedef const int *iptr;
3145 { /* AIX XL C 1.02.0.0 rejects this saying
3146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3147 struct s { int j; const int *ap[3]; };
3148 struct s *b; b->j = 5;
3150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3156 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3168 echo "$ac_t""$ac_cv_c_const" 1>&6
3169 if test $ac_cv_c_const = no; then
3170 cat >> confdefs.h <<\EOF
3176 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3177 echo "configure:3178: checking for ANSI C header files" >&5
3178 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3190 { (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3192 if test -z "$ac_err"; then
3194 ac_cv_header_stdc=yes
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 ac_cv_header_stdc=no
3204 if test $ac_cv_header_stdc = yes; then
3205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 egrep "memchr" >/dev/null 2>&1; then
3216 ac_cv_header_stdc=no
3222 if test $ac_cv_header_stdc = yes; then
3223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230 egrep "free" >/dev/null 2>&1; then
3234 ac_cv_header_stdc=no
3240 if test $ac_cv_header_stdc = yes; then
3241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3242 if test "$cross_compiling" = yes; then
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3249 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3250 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3252 int main () { int i; for (i = 0; i < 256; i++)
3253 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 ac_cv_header_stdc=no
3272 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3273 if test $ac_cv_header_stdc = yes; then
3274 cat >> confdefs.h <<\EOF
3275 #define STDC_HEADERS 1
3280 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3281 echo "configure:3282: checking for size_t" >&5
3282 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3297 ac_cv_type_size_t=yes
3300 ac_cv_type_size_t=no
3305 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3306 if test $ac_cv_type_size_t = no; then
3307 cat >> confdefs.h <<\EOF
3308 #define size_t unsigned
3313 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3314 echo "configure:3315: checking whether time.h and sys/time.h may both be included" >&5
3315 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #include <sys/time.h>
3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3330 ac_cv_header_time=yes
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 ac_cv_header_time=no
3340 echo "$ac_t""$ac_cv_header_time" 1>&6
3341 if test $ac_cv_header_time = yes; then
3342 cat >> confdefs.h <<\EOF
3343 #define TIME_WITH_SYS_TIME 1
3351 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3352 PLUGINS="${PLUGINS}"
3354 MMX_MODULES="yuvmmx idctmmx motionmmx"
3355 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3357 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3358 echo "configure:3359: checking if \$CC groks MMX inline assembly" >&5
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3367 if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3369 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3370 echo "$ac_t""yes" 1>&6
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3375 echo "$ac_t""no" 1>&6
3379 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3380 echo "configure:3381: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3392 echo "$ac_t""yes" 1>&6
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 echo "$ac_t""no" 1>&6
3402 for ac_hdr in winioctl.h
3404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_hdr" >&5
3407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3416 { (eval echo configure:3417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3418 if test -z "$ac_err"; then
3420 eval "ac_cv_header_$ac_safe=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_header_$ac_safe=no"
3430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3433 cat >> confdefs.h <<EOF
3434 #define $ac_tr_hdr 1
3437 CAN_BUILD_LIBDVDCSS=1
3440 echo "$ac_t""no" 1>&6
3445 for ac_hdr in sys/ioctl.h
3447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3449 echo "configure:3450: checking for $ac_hdr" >&5
3450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3459 { (eval echo configure:3460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3461 if test -z "$ac_err"; then
3463 eval "ac_cv_header_$ac_safe=yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 eval "ac_cv_header_$ac_safe=no"
3473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3476 cat >> confdefs.h <<EOF
3477 #define $ac_tr_hdr 1
3480 CAN_BUILD_LIBDVDCSS=1
3481 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3485 echo "configure:3486: checking for $ac_hdr" >&5
3486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3495 { (eval echo configure:3496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3497 if test -z "$ac_err"; then
3499 eval "ac_cv_header_$ac_safe=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 eval "ac_cv_header_$ac_safe=no"
3509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3512 cat >> confdefs.h <<EOF
3513 #define $ac_tr_hdr 1
3517 echo "$ac_t""no" 1>&6
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <sys/dvdio.h>
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 egrep "dvd_struct" >/dev/null 2>&1; then
3531 cat >> confdefs.h <<\EOF
3532 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 #include <sys/cdio.h>
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546 egrep "dvd_struct" >/dev/null 2>&1; then
3549 cat >> confdefs.h <<\EOF
3550 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3558 if test x$BSD_DVD_STRUCT = x1; then
3559 cat >> confdefs.h <<\EOF
3560 #define HAVE_BSD_DVD_STRUCT 1
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <linux/cdrom.h>
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "dvd_struct" >/dev/null 2>&1; then
3573 cat >> confdefs.h <<\EOF
3574 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3583 echo "$ac_t""no" 1>&6
3597 # Check whether --enable-ppro or --disable-ppro was given.
3598 if test "${enable_ppro+set}" = set; then
3599 enableval="$enable_ppro"
3600 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3602 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3606 # Check whether --enable-mmx or --disable-mmx was given.
3607 if test "${enable_mmx+set}" = set; then
3608 enableval="$enable_mmx"
3609 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3610 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3612 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";
3613 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3617 # Check whether --enable-altivec or --disable-altivec was given.
3618 if test "${enable_altivec+set}" = set; then
3619 enableval="$enable_altivec"
3620 if test x$enableval = xyes; then ARCH="${ARCH} altivec"
3621 BUILTINS="${BUILTINS} idctaltivec"
3622 LIB_IDCTALTIVEC="-framework vecLib"
3626 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3629 # Check whether --enable-debug or --disable-debug was given.
3630 if test "${enable_debug+set}" = set; then
3631 enableval="$enable_debug"
3632 if test x$enableval = xyes; then DEBUG=1; fi
3637 # Check whether --enable-stats or --disable-stats was given.
3638 if test "${enable_stats+set}" = set; then
3639 enableval="$enable_stats"
3640 if test x$enableval = xyes; then STATS=1; fi
3645 # Check whether --enable-trace or --disable-trace was given.
3646 if test "${enable_trace+set}" = set; then
3647 enableval="$enable_trace"
3648 if test x$enableval = xyes; then TRACE=1; fi
3653 # Check whether --enable-profiling or --disable-profiling was given.
3654 if test "${enable_profiling+set}" = set; then
3655 enableval="$enable_profiling"
3656 if test x$enableval = xyes; then PROFILING=1; fi
3660 # Check whether --enable-optimizations or --disable-optimizations was given.
3661 if test "${enable_optimizations+set}" = set; then
3662 enableval="$enable_optimizations"
3663 if test x$enableval = xno; then OPTIMS=0; fi
3669 # Check whether --enable-pth or --disable-pth was given.
3670 if test "${enable_pth+set}" = set; then
3671 enableval="$enable_pth"
3672 if test x$enableval = xyes; then
3673 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3674 echo "configure:3675: checking for pth_init in -lpth" >&5
3675 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 ac_save_LIBS="$LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3710 cat >> confdefs.h <<EOF
3711 #define $ac_tr_lib 1
3717 echo "$ac_t""no" 1>&6
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "pth_init" >/dev/null 2>&1; then
3729 cat >> confdefs.h <<\EOF
3730 #define PTH_INIT_IN_PTH_H 1
3742 LIB="${LIB} ${THREAD_LIB}"
3746 # Check whether --with-dvdcss or --without-dvdcss was given.
3747 if test "${with_dvdcss+set}" = set; then
3748 withval="$with_dvdcss"
3749 case "x${withval}" in
3751 # local libdvdcss, statically linked
3752 if test x${CAN_BUILD_LIBDVDCSS} = x1
3756 BUILTINS="${BUILTINS} dvd"
3757 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3758 LIB_DVD="${LIB_DVD} lib/libdvdcss.a"
3759 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a"
3763 # local libdvdcss, dynamically linked
3764 if test x${CAN_BUILD_LIBDVDCSS} = x1
3767 BUILTINS="${BUILTINS} dvd"
3768 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3769 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
3770 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
3774 # existing libdvdcss
3775 BUILTINS="${BUILTINS} dvd"
3776 if test "x$withval" != "xyes"
3778 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
3779 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
3781 LIB_DVD="${LIB_DVD} -ldvdcss"
3782 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
3785 # user didn't decide, we choose to use local libdvdcss and link statically
3786 if test x${CAN_BUILD_LIBDVDCSS} = x1
3790 BUILTINS="${BUILTINS} dvd"
3791 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3792 LIB_DVD="${LIB_DVD} lib/libdvdcss.a"
3793 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a"
3799 # Check whether --enable-css or --disable-css was given.
3800 if test "${enable_css+set}" = set; then
3801 enableval="$enable_css"
3802 if test x$enableval = xyes
3811 if test x${CSS} = x1
3813 cat >> confdefs.h <<\EOF
3819 # Check whether --enable-dummy or --disable-dummy was given.
3820 if test "${enable_dummy+set}" = set; then
3821 enableval="$enable_dummy"
3826 if test x$enable_dummy != xno
3828 BUILTINS="${BUILTINS} dummy"
3831 # Check whether --enable-null or --disable-null was given.
3832 if test "${enable_null+set}" = set; then
3833 enableval="$enable_null"
3838 if test x$enable_null != xno
3840 BUILTINS="${BUILTINS} null"
3843 # Check whether --enable-rc or --disable-rc was given.
3844 if test "${enable_rc+set}" = set; then
3845 enableval="$enable_rc"
3850 if test x$enable_rc != xno
3852 BUILTINS="${BUILTINS} rc"
3855 if test x$SYS = xbeos
3857 BUILTINS="${BUILTINS} beos"
3858 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3859 PLCFLAGS="${PLCFLAGS} -nostart"
3863 # Check whether --enable-dsp or --disable-dsp was given.
3864 if test "${enable_dsp+set}" = set; then
3865 enableval="$enable_dsp"
3870 if test x$enable_dsp != xno
3874 PLUGINS="${PLUGINS} dsp"
3878 # Check whether --enable-esd or --disable-esd was given.
3879 if test "${enable_esd+set}" = set; then
3880 enableval="$enable_esd"
3881 if test x$enable_esd = xyes
3883 # Extract the first word of "esd-config", so it can be a program name with args.
3884 set dummy esd-config; ac_word=$2
3885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3886 echo "configure:3887: checking for $ac_word" >&5
3887 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 case "$ESD_CONFIG" in
3892 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3895 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3900 for ac_dir in $ac_dummy; do
3901 test -z "$ac_dir" && ac_dir=.
3902 if test -f $ac_dir/$ac_word; then
3903 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3908 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3912 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3913 if test -n "$ESD_CONFIG"; then
3914 echo "$ac_t""$ESD_CONFIG" 1>&6
3916 echo "$ac_t""no" 1>&6
3919 if test x${ESD_CONFIG} != xno
3921 PLUGINS="${PLUGINS} esd"
3922 LIB_ESD="`${ESD_CONFIG} --libs`"
3928 # Check whether --enable-darwin or --disable-darwin was given.
3929 if test "${enable_darwin+set}" = set; then
3930 enableval="$enable_darwin"
3931 if test x$enable_darwin = xyes; then
3932 PLUGINS="${PLUGINS} darwin"
3933 LIB_DARWIN="-framework CoreAudio"
3938 # Check whether --enable-macosx or --disable-macosx was given.
3939 if test "${enable_macosx+set}" = set; then
3940 enableval="$enable_macosx"
3941 if test x$enable_macosx = xyes
3943 BUILTINS="${BUILTINS} macosx"
3944 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3945 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3946 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3949 for ac_hdr in Carbon/Carbon.h
3951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_hdr" >&5
3954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3963 { (eval echo configure:3964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3965 if test -z "$ac_err"; then
3967 eval "ac_cv_header_$ac_safe=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_header_$ac_safe=no"
3977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3980 cat >> confdefs.h <<EOF
3981 #define $ac_tr_hdr 1
3983 BUILTINS="${BUILTINS} macosx"
3984 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3985 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3986 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3989 echo "$ac_t""no" 1>&6
3996 # Check whether --enable-qnx or --disable-qnx was given.
3997 if test "${enable_qnx+set}" = set; then
3998 enableval="$enable_qnx"
4002 if test x$enable_qnx != xno
4006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4008 echo "configure:4009: checking for $ac_hdr" >&5
4009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4018 { (eval echo configure:4019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4020 if test -z "$ac_err"; then
4022 eval "ac_cv_header_$ac_safe=yes"
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 eval "ac_cv_header_$ac_safe=no"
4032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4033 echo "$ac_t""yes" 1>&6
4034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4035 cat >> confdefs.h <<EOF
4036 #define $ac_tr_hdr 1
4039 PLUGINS="${PLUGINS} qnx"
4040 LIB_QNX="-lasound -lph"
4043 echo "$ac_t""no" 1>&6
4049 # Check whether --enable-fb or --disable-fb was given.
4050 if test "${enable_fb+set}" = set; then
4051 enableval="$enable_fb"
4052 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
4056 # Check whether --with-ggi or --without-ggi was given.
4057 if test "${with_ggi+set}" = set; then
4059 if test "x$withval" != "xno"
4061 PLUGINS="${PLUGINS} ggi"
4062 if test "x$withval" != "xyes"
4064 LIB_GGI="-l"$withval
4072 # Check whether --enable-sdl or --disable-sdl was given.
4073 if test "${enable_sdl+set}" = set; then
4074 enableval="$enable_sdl"
4078 if test "x$withval" != "xno"
4080 cat >> confdefs.h <<\EOF
4081 #define HAVE_SDL_SDL_H 0
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_SDL11_SDL_H 0
4088 cat >> confdefs.h <<\EOF
4089 #define HAVE_SDL12_SDL_H 0
4092 # Extract the first word of "sdl-config", so it can be a program name with args.
4093 set dummy sdl-config; ac_word=$2
4094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_word" >&5
4096 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 case "$SDL_CONFIG" in
4101 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4104 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4109 for ac_dir in $ac_dummy; do
4110 test -z "$ac_dir" && ac_dir=.
4111 if test -f $ac_dir/$ac_word; then
4112 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4117 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4121 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4122 if test -n "$SDL_CONFIG"; then
4123 echo "$ac_t""$SDL_CONFIG" 1>&6
4125 echo "$ac_t""no" 1>&6
4128 SDL_HEADER="SDL/SDL.h"
4129 if test x${SDL_CONFIG} = xno; then
4130 # Extract the first word of "sdl11-config", so it can be a program name with args.
4131 set dummy sdl11-config; ac_word=$2
4132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4133 echo "configure:4134: checking for $ac_word" >&5
4134 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 case "$SDL_CONFIG" in
4139 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4142 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4147 for ac_dir in $ac_dummy; do
4148 test -z "$ac_dir" && ac_dir=.
4149 if test -f $ac_dir/$ac_word; then
4150 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4155 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4159 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4160 if test -n "$SDL_CONFIG"; then
4161 echo "$ac_t""$SDL_CONFIG" 1>&6
4163 echo "$ac_t""no" 1>&6
4166 SDL_HEADER="SDL11/SDL.h"
4168 if test x${SDL_CONFIG} = xno; then
4169 # Extract the first word of "sdl12-config", so it can be a program name with args.
4170 set dummy sdl12-config; ac_word=$2
4171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4172 echo "configure:4173: checking for $ac_word" >&5
4173 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 case "$SDL_CONFIG" in
4178 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4181 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4186 for ac_dir in $ac_dummy; do
4187 test -z "$ac_dir" && ac_dir=.
4188 if test -f $ac_dir/$ac_word; then
4189 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4194 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4198 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4199 if test -n "$SDL_CONFIG"; then
4200 echo "$ac_t""$SDL_CONFIG" 1>&6
4202 echo "$ac_t""no" 1>&6
4205 SDL_HEADER="SDL12/SDL.h"
4207 if test x${SDL_CONFIG} != xno; then
4208 for ac_hdr in $SDL_HEADER
4210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4212 echo "configure:4213: checking for $ac_hdr" >&5
4213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4222 { (eval echo configure:4223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4224 if test -z "$ac_err"; then
4226 eval "ac_cv_header_$ac_safe=yes"
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4232 eval "ac_cv_header_$ac_safe=no"
4236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4237 echo "$ac_t""yes" 1>&6
4238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4239 cat >> confdefs.h <<EOF
4240 #define $ac_tr_hdr 1
4244 echo "$ac_t""no" 1>&6
4245 echo "The development package for SDL is not installed. Please install it"
4246 echo "and try again."
4251 if expr 1.1.5 \> $($SDL_CONFIG --version) >/dev/null
4253 echo "You need SDL version 1.1.5 or later."
4256 PLUGINS="${PLUGINS} sdl"
4257 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4258 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4259 elif test "x$withval" = "xyes"
4261 echo "I couldn't find the SDL package. You can download libSDL from"
4262 echo "http://www.libsdl.org/."
4267 # Check whether --with-directx or --without-directx was given.
4268 if test "${with_directx+set}" = set; then
4269 withval="$with_directx"
4270 if test "x$withval" != "xno"
4272 PLUGINS="${PLUGINS} directx"
4273 if test "x$withval" != "xyes"
4275 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4276 INCLUDE="${INCLUDE} -I"$withval"/include"
4278 for ac_hdr in directx.h
4280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4282 echo "configure:4283: checking for $ac_hdr" >&5
4283 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4292 { (eval echo configure:4293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4294 if test -z "$ac_err"; then
4296 eval "ac_cv_header_$ac_safe=yes"
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4302 eval "ac_cv_header_$ac_safe=no"
4306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4308 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4309 cat >> confdefs.h <<EOF
4310 #define $ac_tr_hdr 1
4314 echo "$ac_t""no" 1>&6
4315 echo "Cannot find DirectX headers !"; exit
4319 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4324 if test "x$withval" = "x"
4326 for ac_hdr in directx.h
4328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_hdr" >&5
4331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4340 { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4342 if test -z "$ac_err"; then
4344 eval "ac_cv_header_$ac_safe=yes"
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 eval "ac_cv_header_$ac_safe=no"
4354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_hdr 1
4360 PLUGINS="${PLUGINS} directx"
4361 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4363 echo "$ac_t""no" 1>&6
4369 # Check whether --with-glide or --without-glide was given.
4370 if test "${with_glide+set}" = set; then
4371 withval="$with_glide"
4372 if test "x$withval" != "xno"
4374 PLUGINS="${PLUGINS} glide"
4375 if test "x$withval" != "xyes"
4377 LIB_GLIDE="-l"$withval" -lm"
4379 LIB_GLIDE="-lglide2x -lm"
4385 # Check whether --enable-ncurses or --disable-ncurses was given.
4386 if test "${enable_ncurses+set}" = set; then
4387 enableval="$enable_ncurses"
4388 if test x$enable_ncurses = xyes; then
4389 PLUGINS="${PLUGINS} ncurses"
4390 LIB_NCURSES="-lncurses"
4395 # Check whether --enable-qt or --disable-qt was given.
4396 if test "${enable_qt+set}" = set; then
4397 enableval="$enable_qt"
4398 if test x$enable_qt = xyes; then
4399 PLUGINS="${PLUGINS} qt"
4400 ALIASES="${ALIASES} qvlc"
4401 LIB_QT="-lqt -L${QTDIR}/lib"
4402 if test -x ${QTDIR}/bin/moc
4404 MOC=${QTDIR}/bin/moc
4412 # Check whether --enable-kde or --disable-kde was given.
4413 if test "${enable_kde+set}" = set; then
4414 enableval="$enable_kde"
4415 if test x$enable_kde = xyes; then
4416 PLUGINS="${PLUGINS} kde"
4417 ALIASES="${ALIASES} kvlc"
4423 # Check whether --enable-gnome or --disable-gnome was given.
4424 if test "${enable_gnome+set}" = set; then
4425 enableval="$enable_gnome"
4426 if test x$enable_gnome = xyes; then
4427 PLUGINS="${PLUGINS} gnome"
4428 ALIASES="${ALIASES} gnome-vlc"
4429 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4434 # Check whether --enable-gtk or --disable-gtk was given.
4435 if test "${enable_gtk+set}" = set; then
4436 enableval="$enable_gtk"
4440 if test x$enable_gtk != xno; then
4441 # Extract the first word of "gtk-config", so it can be a program name with args.
4442 set dummy gtk-config; ac_word=$2
4443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_word" >&5
4445 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 case "$GTK_CONFIG" in
4450 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4453 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4466 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4470 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4471 if test -n "$GTK_CONFIG"; then
4472 echo "$ac_t""$GTK_CONFIG" 1>&6
4474 echo "$ac_t""no" 1>&6
4477 if test x${GTK_CONFIG} != xno; then
4478 PLUGINS="${PLUGINS} gtk"
4479 ALIASES="${ALIASES} gvlc"
4480 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4481 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4485 # Check whether --enable-x11 or --disable-x11 was given.
4486 if test "${enable_x11+set}" = set; then
4487 enableval="$enable_x11"
4491 if test x$enable_x11 != xno; then
4492 if test x$x_includes = xNONE; then
4493 x_includes=/usr/X11R6/include
4495 if test x$x_libraries = xNONE; then
4496 x_libraries=/usr/X11R6/lib
4498 saved_CPPFLAGS=$CPPFLAGS
4499 CPPFLAGS="$CPPFLAGS -I$x_includes"
4500 for ac_hdr in X11/Xlib.h
4502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4504 echo "configure:4505: checking for $ac_hdr" >&5
4505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4514 { (eval echo configure:4515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4516 if test -z "$ac_err"; then
4518 eval "ac_cv_header_$ac_safe=yes"
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4524 eval "ac_cv_header_$ac_safe=no"
4528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4529 echo "$ac_t""yes" 1>&6
4530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4531 cat >> confdefs.h <<EOF
4532 #define $ac_tr_hdr 1
4535 PLUGINS="${PLUGINS} x11"
4536 LIB_X11="-L$x_libraries -lX11 -lXext"
4537 CFLAGS_X11="-I$x_includes"
4539 CPPFLAGS=$saved_CPPFLAGS
4541 echo "$ac_t""no" 1>&6
4547 # Check whether --enable-xvideo or --disable-xvideo was given.
4548 if test "${enable_xvideo+set}" = set; then
4549 enableval="$enable_xvideo"
4553 if test x$enable_xvideo != xno; then
4554 if test x$x_includes = xNONE; then
4555 x_includes=/usr/X11R6/include
4557 if test x$x_libraries = xNONE; then
4558 x_libraries=/usr/X11R6/lib
4560 saved_CPPFLAGS=$CPPFLAGS
4561 CPPFLAGS="$CPPFLAGS -I$x_includes"
4562 for ac_hdr in X11/extensions/Xv.h
4564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_hdr" >&5
4567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4576 { (eval echo configure:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4578 if test -z "$ac_err"; then
4580 eval "ac_cv_header_$ac_safe=yes"
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4586 eval "ac_cv_header_$ac_safe=no"
4590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4593 cat >> confdefs.h <<EOF
4594 #define $ac_tr_hdr 1
4597 PLUGINS="${PLUGINS} xvideo"
4598 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4599 CFLAGS_X11="-I$x_includes"
4601 CPPFLAGS=$saved_CPPFLAGS
4603 echo "$ac_t""no" 1>&6
4609 # Check whether --enable-alsa or --disable-alsa was given.
4610 if test "${enable_alsa+set}" = set; then
4611 enableval="$enable_alsa"
4612 if test x$enable_alsa = xyes
4614 ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4616 echo "configure:4617: checking for sys/asoundlib.h" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 #include <sys/asoundlib.h>
4625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4630 eval "ac_cv_header_$ac_safe=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.$ac_ext >&5
4636 eval "ac_cv_header_$ac_safe=no"
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4643 echo "configure:4644: checking for main in -lasound" >&5
4644 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 ac_save_LIBS="$LIBS"
4649 LIBS="-lasound $LIBS"
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_lib_$ac_lib_var=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_lib_$ac_lib_var=no"
4668 LIBS="$ac_save_LIBS"
4671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4675 echo "$ac_t""no" 1>&6
4680 echo "$ac_t""no" 1>&6
4684 if test x$have_alsa = xtrue
4686 PLUGINS="${PLUGINS} alsa"
4749 cat > confcache <<\EOF
4750 # This file is a shell script that caches the results of configure
4751 # tests run on this system so they can be shared between configure
4752 # scripts and configure runs. It is not useful on other systems.
4753 # If it contains results you don't want to keep, you may remove or edit it.
4755 # By default, configure uses ./config.cache as the cache file,
4756 # creating it if it does not exist already. You can give configure
4757 # the --cache-file=FILE option to use a different cache file; that is
4758 # what configure does when it calls configure scripts in
4759 # subdirectories, so they share the cache.
4760 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4761 # config.status only pays attention to the cache file if you give it the
4762 # --recheck option to rerun configure.
4765 # The following way of writing the cache mishandles newlines in values,
4766 # but we know of no workaround that is simple, portable, and efficient.
4767 # So, don't put newlines in cache variables' values.
4768 # Ultrix sh set writes to stderr and can't be redirected directly,
4769 # and sets the high bit in the cache file unless we assign to the vars.
4771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4773 # `set' does not quote correctly, so add quotes (double-quote substitution
4774 # turns \\\\ into \\, and sed turns \\ into \).
4776 -e "s/'/'\\\\''/g" \
4777 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4780 # `set' quotes correctly as required by POSIX, so do not add quotes.
4781 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4784 if cmp -s $cache_file confcache; then
4787 if test -w $cache_file; then
4788 echo "updating cache $cache_file"
4789 cat confcache > $cache_file
4791 echo "not updating unwritable cache $cache_file"
4796 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4799 # Let make expand exec_prefix.
4800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4802 # Any assignment to VPATH causes Sun make to only execute
4803 # the first set of double-colon rules, so remove it if not needed.
4804 # If there is a colon in the path, we need to keep it.
4805 if test "x$srcdir" = x.; then
4806 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4809 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4811 DEFS=-DHAVE_CONFIG_H
4813 # Without the "./", some shells look in PATH for config.status.
4814 : ${CONFIG_STATUS=./config.status}
4816 echo creating $CONFIG_STATUS
4817 rm -f $CONFIG_STATUS
4818 cat > $CONFIG_STATUS <<EOF
4820 # Generated automatically by configure.
4821 # Run this file to recreate the current configuration.
4822 # This directory was configured as follows,
4823 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4825 # $0 $ac_configure_args
4827 # Compiler output produced by configure, useful for debugging
4828 # configure, is in ./config.log if it exists.
4830 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4833 case "\$ac_option" in
4834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4835 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4836 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4837 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4838 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4840 -help | --help | --hel | --he | --h)
4841 echo "\$ac_cs_usage"; exit 0 ;;
4842 *) echo "\$ac_cs_usage"; exit 1 ;;
4846 ac_given_srcdir=$srcdir
4847 ac_given_INSTALL="$INSTALL"
4849 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4851 cat >> $CONFIG_STATUS <<EOF
4853 # Protect against being on the right side of a sed subst in config.status.
4854 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4855 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4859 s%@CFLAGS@%$CFLAGS%g
4860 s%@CPPFLAGS@%$CPPFLAGS%g
4861 s%@CXXFLAGS@%$CXXFLAGS%g
4862 s%@FFLAGS@%$FFLAGS%g
4864 s%@LDFLAGS@%$LDFLAGS%g
4866 s%@exec_prefix@%$exec_prefix%g
4867 s%@prefix@%$prefix%g
4868 s%@program_transform_name@%$program_transform_name%g
4869 s%@bindir@%$bindir%g
4870 s%@sbindir@%$sbindir%g
4871 s%@libexecdir@%$libexecdir%g
4872 s%@datadir@%$datadir%g
4873 s%@sysconfdir@%$sysconfdir%g
4874 s%@sharedstatedir@%$sharedstatedir%g
4875 s%@localstatedir@%$localstatedir%g
4876 s%@libdir@%$libdir%g
4877 s%@includedir@%$includedir%g
4878 s%@oldincludedir@%$oldincludedir%g
4879 s%@infodir@%$infodir%g
4880 s%@mandir@%$mandir%g
4882 s%@host_alias@%$host_alias%g
4883 s%@host_cpu@%$host_cpu%g
4884 s%@host_vendor@%$host_vendor%g
4885 s%@host_os@%$host_os%g
4886 s%@VLC_VERSION@%$VLC_VERSION%g
4887 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
4888 s%@VLC_CODENAME@%$VLC_CODENAME%g
4889 s%@SET_MAKE@%$SET_MAKE%g
4892 s%@RANLIB@%$RANLIB%g
4893 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4894 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4895 s%@INSTALL_DATA@%$INSTALL_DATA%g
4896 s%@ESD_CONFIG@%$ESD_CONFIG%g
4897 s%@SDL_CONFIG@%$SDL_CONFIG%g
4898 s%@GTK_CONFIG@%$GTK_CONFIG%g
4901 s%@PLUGINS@%$PLUGINS%g
4902 s%@BUILTINS@%$BUILTINS%g
4903 s%@ALIASES@%$ALIASES%g
4904 s%@DEFINE@%$DEFINE%g
4905 s%@INCLUDE@%$INCLUDE%g
4910 s%@PROFILING@%$PROFILING%g
4911 s%@OPTIMS@%$OPTIMS%g
4912 s%@GETOPT@%$GETOPT%g
4915 s%@WINDRES@%$WINDRES%g
4916 s%@LCFLAGS@%$LCFLAGS%g
4917 s%@PLCFLAGS@%$PLCFLAGS%g
4919 s%@LIB_ALSA@%$LIB_ALSA%g
4920 s%@LIB_BEOS@%$LIB_BEOS%g
4921 s%@LIB_DARWIN@%$LIB_DARWIN%g
4922 s%@LIB_DVD@%$LIB_DVD%g
4923 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
4924 s%@LIB_ESD@%$LIB_ESD%g
4925 s%@LIB_GGI@%$LIB_GGI%g
4926 s%@LIB_GLIDE@%$LIB_GLIDE%g
4927 s%@LIB_GNOME@%$LIB_GNOME%g
4928 s%@LIB_GTK@%$LIB_GTK%g
4929 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4930 s%@LIB_KDE@%$LIB_KDE%g
4931 s%@LIB_MACOSX@%$LIB_MACOSX%g
4932 s%@LIB_QNX@%$LIB_QNX%g
4933 s%@LIB_NCURSES@%$LIB_NCURSES%g
4934 s%@LIB_QT@%$LIB_QT%g
4935 s%@LIB_TS@%$LIB_TS%g
4936 s%@LIB_SDL@%$LIB_SDL%g
4937 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4938 s%@LIB_X11@%$LIB_X11%g
4939 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4940 s%@LIB_YUV@%$LIB_YUV%g
4941 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4942 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
4943 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4944 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
4945 s%@CFLAGS_X11@%$CFLAGS_X11%g
4946 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
4951 cat >> $CONFIG_STATUS <<\EOF
4953 # Split the substitutions into bite-sized pieces for seds with
4954 # small command number limits, like on Digital OSF/1 and HP-UX.
4955 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4956 ac_file=1 # Number of current file.
4957 ac_beg=1 # First line for current file.
4958 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4961 while $ac_more_lines; do
4962 if test $ac_beg -gt 1; then
4963 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4965 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4967 if test ! -s conftest.s$ac_file; then
4969 rm -f conftest.s$ac_file
4971 if test -z "$ac_sed_cmds"; then
4972 ac_sed_cmds="sed -f conftest.s$ac_file"
4974 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4976 ac_file=`expr $ac_file + 1`
4978 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4981 if test -z "$ac_sed_cmds"; then
4986 cat >> $CONFIG_STATUS <<EOF
4988 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4990 cat >> $CONFIG_STATUS <<\EOF
4991 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4992 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4994 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4995 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4996 *) ac_file_in="${ac_file}.in" ;;
4999 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5001 # Remove last slash and all that follows it. Not all systems have dirname.
5002 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5004 # The file is in a subdirectory.
5005 test ! -d "$ac_dir" && mkdir "$ac_dir"
5006 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5007 # A "../" for each directory in $ac_dir_suffix.
5008 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5010 ac_dir_suffix= ac_dots=
5013 case "$ac_given_srcdir" in
5015 if test -z "$ac_dots"; then top_srcdir=.
5016 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5017 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5019 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5020 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5023 case "$ac_given_INSTALL" in
5024 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5025 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5028 echo creating "$ac_file"
5030 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5032 *Makefile*) ac_comsub="1i\\
5033 # $configure_input" ;;
5037 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5039 s%@configure_input@%$configure_input%g
5040 s%@srcdir@%$srcdir%g
5041 s%@top_srcdir@%$top_srcdir%g
5042 s%@INSTALL@%$INSTALL%g
5043 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5047 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5048 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5050 # ac_d sets the value in "#define NAME VALUE" lines.
5051 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5052 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5055 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5056 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5057 ac_uB='\([ ]\)%\1#\2define\3'
5060 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5061 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5062 ac_eB='$%\1#\2define\3'
5066 if test "${CONFIG_HEADERS+set}" != set; then
5068 cat >> $CONFIG_STATUS <<EOF
5069 CONFIG_HEADERS="include/defs.h"
5071 cat >> $CONFIG_STATUS <<\EOF
5073 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5076 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5077 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5078 *) ac_file_in="${ac_file}.in" ;;
5081 echo creating $ac_file
5083 rm -f conftest.frag conftest.in conftest.out
5084 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5085 cat $ac_file_inputs > conftest.in
5089 # Transform confdefs.h into a sed script conftest.vals that substitutes
5090 # the proper values into config.h.in to produce config.h. And first:
5091 # Protect against being on the right side of a sed subst in config.status.
5092 # Protect against being in an unquoted here document in config.status.
5094 cat > conftest.hdr <<\EOF
5097 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5101 sed -n -f conftest.hdr confdefs.h > conftest.vals
5104 # This sed command replaces #undef with comments. This is necessary, for
5105 # example, in the case of _POSIX_SOURCE, which is predefined and required
5106 # on some systems where configure will not decide to define it.
5107 cat >> conftest.vals <<\EOF
5108 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5111 # Break up conftest.vals because some shells have a limit on
5112 # the size of here documents, and old seds have small limits too.
5117 ac_lines=`grep -c . conftest.vals`
5118 # grep -c gives empty output for an empty file on some AIX systems.
5119 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5120 # Write a limited-size here document to conftest.frag.
5121 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5122 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5124 sed -f conftest.frag conftest.in > conftest.out
5126 mv conftest.out conftest.in
5128 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5130 mv conftest.tail conftest.vals
5134 cat >> $CONFIG_STATUS <<\EOF
5135 rm -f conftest.frag conftest.h
5136 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5137 cat conftest.in >> conftest.h
5139 if cmp -s $ac_file conftest.h 2>/dev/null; then
5140 echo "$ac_file is unchanged"
5143 # Remove last slash and all that follows it. Not all systems have dirname.
5144 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5145 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5146 # The file is in a subdirectory.
5147 test ! -d "$ac_dir" && mkdir "$ac_dir"
5150 mv conftest.h $ac_file
5155 cat >> $CONFIG_STATUS <<EOF
5158 cat >> $CONFIG_STATUS <<\EOF
5162 chmod +x $CONFIG_STATUS
5163 rm -fr confdefs* $ac_clean_files
5164 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5168 global configuration
5169 --------------------
5171 architecture : ${ARCH}
5172 optimizations : ${OPTIMS}
5176 vlc version : ${VLC_VERSION}
5177 debug mode : ${DEBUG}
5178 statistics : ${STATS}
5179 trace mode : ${TRACE}
5180 profiling : ${PROFILING}
5181 need builtin getopt : ${GETOPT}
5182 built-in modules :${BUILTINS}
5183 plugin modules :${PLUGINS}
5184 vlc aliases :${ALIASES}
5186 libdvdcss configuration
5187 -----------------------
5188 need to be built : ${LOCAL_LIBDVDCSS}"
5190 if test x${LOCAL_LIBDVDCSS} = x1
5192 echo "link statically : ${STATIC_LIBDVDCSS}
5193 CSS decryption : ${CSS}"
5197 You may now tune Makefile.opts at your convenience. To build vlc, type
5198 \`make vlc'. To build libdvdcss only, type \`make libdvdcss'."