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 --disable-css Disable DVD CSS decryption (default enabled)"
35 --disable-dummy dummy module (default enabled)"
37 --disable-null Null module (default enabled)"
39 --disable-rc rc module (default enabled)"
41 --disable-dsp Linux /dev/dsp support (default enabled)"
43 --enable-esd Esound library support (default disabled)"
45 --enable-darwin Darwin sound support (default disabled)"
47 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
49 --disable-qnx QNX RTOS support (default enabled)"
51 --enable-fb Linux framebuffer support (default disabled)"
53 --with-ggi[=name] GGI support (default disabled)"
55 --disable-sdl SDL support (default enabled)"
57 --with-directx[=name] Windows DirectX support (default enabled)"
59 --with-glide[=name] Glide (3dfx) support (default disabled)"
61 --enable-ncurses ncurses interface support (default disabled)"
63 --enable-qt Qt interface support (default disabled)"
65 --enable-kde KDE interface support (default disabled)"
67 --enable-gnome Gnome interface support (default disabled)"
69 --disable-gtk Gtk+ support (default enabled)"
71 --disable-x11 X11 support (default enabled)"
73 --disable-xvideo XVideo support (default enabled)"
75 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=include/main.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
592 ac_install_sh="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh; then
596 ac_install_sh="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608 # Make sure we can run config.sub.
609 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
610 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
613 echo $ac_n "checking host system type""... $ac_c" 1>&6
614 echo "configure:615: checking host system type" >&5
617 case "$host_alias" in
621 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
622 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
624 *) host_alias=$nonopt ;;
628 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
629 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$host" 1>&6
637 LIBDVDCSS_VERSION=0.0.1
642 save_CFLAGS="${CFLAGS}"
644 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
645 echo "configure:646: checking whether ${MAKE-make} sets \${MAKE}" >&5
646 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
647 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 cat > conftestmake <<\EOF
652 @echo 'ac_maketemp="${MAKE}"'
654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
655 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
656 if test -n "$ac_maketemp"; then
657 eval ac_cv_prog_make_${ac_make}_set=yes
659 eval ac_cv_prog_make_${ac_make}_set=no
663 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
664 echo "$ac_t""yes" 1>&6
667 echo "$ac_t""no" 1>&6
668 SET_MAKE="MAKE=${MAKE-make}"
671 # Extract the first word of "gcc", so it can be a program name with args.
672 set dummy gcc; ac_word=$2
673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674 echo "configure:675: checking for $ac_word" >&5
675 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 if test -n "$CC"; then
679 ac_cv_prog_CC="$CC" # Let the user override the test.
681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 for ac_dir in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
694 if test -n "$CC"; then
695 echo "$ac_t""$CC" 1>&6
697 echo "$ac_t""no" 1>&6
700 if test -z "$CC"; then
701 # Extract the first word of "cc", so it can be a program name with args.
702 set dummy cc; ac_word=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 echo "configure:705: checking for $ac_word" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
708 if test -n "$CC"; then
709 ac_cv_prog_CC="$CC" # Let the user override the test.
711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
714 for ac_dir in $ac_dummy; do
715 test -z "$ac_dir" && ac_dir=.
716 if test -f $ac_dir/$ac_word; then
717 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
726 if test $ac_prog_rejected = yes; then
727 # We found a bogon in the path, so make sure we never use it.
728 set dummy $ac_cv_prog_CC
730 if test $# -gt 0; then
731 # We chose a different compiler from the bogus one.
732 # However, it has the same basename, so the bogon will be chosen
733 # first if we set CC to just the basename; use the full file name.
735 set dummy "$ac_dir/$ac_word" "$@"
743 if test -n "$CC"; then
744 echo "$ac_t""$CC" 1>&6
746 echo "$ac_t""no" 1>&6
749 if test -z "$CC"; then
752 # Extract the first word of "cl", so it can be a program name with args.
753 set dummy cl; ac_word=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 if test -n "$CC"; then
760 ac_cv_prog_CC="$CC" # Let the user override the test.
762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
764 for ac_dir in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir=.
766 if test -f $ac_dir/$ac_word; then
775 if test -n "$CC"; then
776 echo "$ac_t""$CC" 1>&6
778 echo "$ac_t""no" 1>&6
783 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
786 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp='$CPP $CPPFLAGS'
792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling=$ac_cv_prog_cc_cross
796 cat > conftest.$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
803 if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
804 ac_cv_prog_cc_works=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (./conftest; exit) 2>/dev/null; then
807 ac_cv_prog_cc_cross=no
809 ac_cv_prog_cc_cross=yes
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
814 ac_cv_prog_cc_works=no
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp='$CPP $CPPFLAGS'
820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
825 if test $ac_cv_prog_cc_works = no; then
826 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
831 cross_compiling=$ac_cv_prog_cc_cross
833 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.c <<EOF
843 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
850 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
852 if test $ac_cv_prog_gcc = yes; then
858 ac_test_CFLAGS="${CFLAGS+set}"
859 ac_save_CFLAGS="$CFLAGS"
861 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CC-cc} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.c
867 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
877 if test "$ac_test_CFLAGS" = set; then
878 CFLAGS="$ac_save_CFLAGS"
879 elif test $ac_cv_prog_cc_g = yes; then
880 if test "$GCC" = yes; then
886 if test "$GCC" = yes; then
893 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
894 echo "configure:895: checking how to run the C preprocessor" >&5
895 # On Suns, sometimes $CPP names a directory.
896 if test -n "$CPP" && test -d "$CPP"; then
899 if test -z "$CPP"; then
900 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 # This must be in double quotes, not single quotes, because CPP may get
904 # substituted into the Makefile and "${CC-cc}" will confuse make.
906 # On the NeXT, cc -E runs the code through the compiler's parser,
907 # not just through cpp.
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917 if test -z "$ac_err"; then
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
924 CPP="${CC-cc} -E -traditional-cpp"
925 cat > conftest.$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
941 CPP="${CC-cc} -nologo -E"
942 cat > conftest.$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949 { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
951 if test -z "$ac_err"; then
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
965 ac_cv_prog_CPP="$CPP"
967 CPP="$ac_cv_prog_CPP"
969 ac_cv_prog_CPP="$CPP"
971 echo "$ac_t""$CPP" 1>&6
973 # Extract the first word of "ranlib", so it can be a program name with args.
974 set dummy ranlib; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 if test -n "$RANLIB"; then
981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 for ac_dir in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_RANLIB="ranlib"
993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
996 RANLIB="$ac_cv_prog_RANLIB"
997 if test -n "$RANLIB"; then
998 echo "$ac_t""$RANLIB" 1>&6
1000 echo "$ac_t""no" 1>&6
1004 # Find a good install program. We prefer a C program (faster),
1005 # so one script is as good as another. But avoid the broken or
1006 # incompatible versions:
1007 # SysV /etc/install, /usr/sbin/install
1008 # SunOS /usr/etc/install
1009 # IRIX /sbin/install
1011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1014 # ./install, which can be erroneously created by make from ./install.sh.
1015 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1016 echo "configure:1017: checking for a BSD compatible install" >&5
1017 if test -z "$INSTALL"; then
1018 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1022 for ac_dir in $PATH; do
1023 # Account for people who put trailing slashes in PATH elements.
1025 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1027 # OSF1 and SCO ODT 3.0 have their own names for install.
1028 # Don't use installbsd from OSF since it installs stuff as root
1030 for ac_prog in ginstall scoinst install; do
1031 if test -f $ac_dir/$ac_prog; then
1032 if test $ac_prog = install &&
1033 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1034 # AIX install. It has an incompatible calling convention.
1037 ac_cv_path_install="$ac_dir/$ac_prog -c"
1048 if test "${ac_cv_path_install+set}" = set; then
1049 INSTALL="$ac_cv_path_install"
1051 # As a last resort, use the slow shell script. We don't cache a
1052 # path for INSTALL within a source directory, because that will
1053 # break other packages using the cache if that directory is
1054 # removed, or if the path is relative.
1055 INSTALL="$ac_install_sh"
1058 echo "$ac_t""$INSTALL" 1>&6
1060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1061 # It thinks the first close brace ends the variable substitution.
1062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1069 echo $ac_n "checking for working const""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working const" >&5
1071 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1080 /* Ultrix mips cc rejects this. */
1081 typedef int charset[2]; const charset x = {0,0};
1082 /* SunOS 4.1.1 cc rejects this. */
1083 char const *const *ccp;
1085 /* NEC SVR4.0.2 mips cc rejects this. */
1086 struct point {int x, y;};
1087 static struct point const zero = {0,0};
1088 /* AIX XL C 1.02.0.0 rejects this.
1089 It does not let you subtract one const X* pointer from another in an arm
1090 of an if-expression whose if-part is not a constant expression */
1091 const char *g = "string";
1092 ccp = &g + (g ? g-g : 0);
1093 /* HPUX 7.0 cc rejects these. */
1096 ccp = (char const *const *) p;
1097 { /* SCO 3.2v4 cc rejects this. */
1099 char const *s = 0 ? (char *) 0 : (char const *) 0;
1103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1105 const int *foo = &x[0];
1108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1109 typedef const int *iptr;
1113 { /* AIX XL C 1.02.0.0 rejects this saying
1114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1115 struct s { int j; const int *ap[3]; };
1116 struct s *b; b->j = 5;
1118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1124 if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1136 echo "$ac_t""$ac_cv_c_const" 1>&6
1137 if test $ac_cv_c_const = no; then
1138 cat >> confdefs.h <<\EOF
1145 if test x${cross_compiling} != xyes; then
1146 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether byte ordering is bigendian" >&5
1148 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 ac_cv_c_bigendian=unknown
1152 # See if sys/param.h defines the BYTE_ORDER macro.
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1156 #include <sys/types.h>
1157 #include <sys/param.h>
1160 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1165 if { (eval echo configure:1166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1167 # It does; now see whether it defined to BIG_ENDIAN or not.
1168 cat > conftest.$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1171 #include <sys/types.h>
1172 #include <sys/param.h>
1175 #if BYTE_ORDER != BIG_ENDIAN
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1182 ac_cv_c_bigendian=yes
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1187 ac_cv_c_bigendian=no
1191 echo "configure: failed program was:" >&5
1192 cat conftest.$ac_ext >&5
1195 if test $ac_cv_c_bigendian = unknown; then
1196 if test "$cross_compiling" = yes; then
1197 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1203 /* Are we little or big endian? From Harbison&Steele. */
1207 char c[sizeof (long)];
1210 exit (u.c[sizeof (long) - 1] == 1);
1213 if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1215 ac_cv_c_bigendian=no
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1220 ac_cv_c_bigendian=yes
1228 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1229 if test $ac_cv_c_bigendian = yes; then
1230 cat >> confdefs.h <<\EOF
1231 #define WORDS_BIGENDIAN 1
1238 for ac_func in gettimeofday select strerror strtod strtol
1240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_func" >&5
1242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 /* System header to define __stub macros and hopefully few prototypes,
1249 which can conflict with char $ac_func(); below. */
1251 /* Override any gcc2 internal prototype to avoid an error. */
1252 /* We use char because int might match the return type of a gcc2
1253 builtin and then its argument prototype would still apply. */
1258 /* The GNU C library defines this for functions which it implements
1259 to always fail with ENOSYS. Some functions are actually named
1260 something starting with __ and the normal name is an alias. */
1261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1269 if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1271 eval "ac_cv_func_$ac_func=yes"
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1276 eval "ac_cv_func_$ac_func=no"
1281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1282 echo "$ac_t""yes" 1>&6
1283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1284 cat >> confdefs.h <<EOF
1285 #define $ac_tr_func 1
1289 echo "$ac_t""no" 1>&6
1293 for ac_func in setenv putenv
1295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_func" >&5
1297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1303 /* System header to define __stub macros and hopefully few prototypes,
1304 which can conflict with char $ac_func(); below. */
1306 /* Override any gcc2 internal prototype to avoid an error. */
1307 /* We use char because int might match the return type of a gcc2
1308 builtin and then its argument prototype would still apply. */
1313 /* The GNU C library defines this for functions which it implements
1314 to always fail with ENOSYS. Some functions are actually named
1315 something starting with __ and the normal name is an alias. */
1316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1324 if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1326 eval "ac_cv_func_$ac_func=yes"
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1331 eval "ac_cv_func_$ac_func=no"
1336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1339 cat >> confdefs.h <<EOF
1340 #define $ac_tr_func 1
1344 echo "$ac_t""no" 1>&6
1348 echo $ac_n "checking for connect""... $ac_c" 1>&6
1349 echo "configure:1350: checking for connect" >&5
1350 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* System header to define __stub macros and hopefully few prototypes,
1357 which can conflict with char connect(); below. */
1359 /* Override any gcc2 internal prototype to avoid an error. */
1360 /* We use char because int might match the return type of a gcc2
1361 builtin and then its argument prototype would still apply. */
1366 /* The GNU C library defines this for functions which it implements
1367 to always fail with ENOSYS. Some functions are actually named
1368 something starting with __ and the normal name is an alias. */
1369 #if defined (__stub_connect) || defined (__stub___connect)
1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1379 eval "ac_cv_func_connect=yes"
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1384 eval "ac_cv_func_connect=no"
1389 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1393 echo "$ac_t""no" 1>&6
1395 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1396 echo "configure:1397: checking for connect in -lsocket" >&5
1397 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 ac_save_LIBS="$LIBS"
1402 LIBS="-lsocket $LIBS"
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 /* Override any gcc2 internal prototype to avoid an error. */
1407 /* We use char because int might match the return type of a gcc2
1408 builtin and then its argument prototype would still apply. */
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1417 eval "ac_cv_lib_$ac_lib_var=yes"
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1422 eval "ac_cv_lib_$ac_lib_var=no"
1425 LIBS="$ac_save_LIBS"
1428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1429 echo "$ac_t""yes" 1>&6
1430 LIB="${LIB} -lsocket"
1432 echo "$ac_t""no" 1>&6
1438 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1439 echo "configure:1440: checking for gethostbyname" >&5
1440 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1446 /* System header to define __stub macros and hopefully few prototypes,
1447 which can conflict with char gethostbyname(); below. */
1449 /* Override any gcc2 internal prototype to avoid an error. */
1450 /* We use char because int might match the return type of a gcc2
1451 builtin and then its argument prototype would still apply. */
1452 char gethostbyname();
1456 /* The GNU C library defines this for functions which it implements
1457 to always fail with ENOSYS. Some functions are actually named
1458 something starting with __ and the normal name is an alias. */
1459 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1469 eval "ac_cv_func_gethostbyname=yes"
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1474 eval "ac_cv_func_gethostbyname=no"
1479 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1483 echo "$ac_t""no" 1>&6
1485 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1486 echo "configure:1487: checking for gethostbyname in -lnsl" >&5
1487 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 ac_save_LIBS="$LIBS"
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 /* Override any gcc2 internal prototype to avoid an error. */
1497 /* We use char because int might match the return type of a gcc2
1498 builtin and then its argument prototype would still apply. */
1499 char gethostbyname();
1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1507 eval "ac_cv_lib_$ac_lib_var=yes"
1509 echo "configure: failed program was:" >&5
1510 cat conftest.$ac_ext >&5
1512 eval "ac_cv_lib_$ac_lib_var=no"
1515 LIBS="$ac_save_LIBS"
1518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1519 echo "$ac_t""yes" 1>&6
1522 echo "$ac_t""no" 1>&6
1528 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1529 echo "configure:1530: checking for nanosleep" >&5
1530 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 /* System header to define __stub macros and hopefully few prototypes,
1537 which can conflict with char nanosleep(); below. */
1539 /* Override any gcc2 internal prototype to avoid an error. */
1540 /* We use char because int might match the return type of a gcc2
1541 builtin and then its argument prototype would still apply. */
1546 /* The GNU C library defines this for functions which it implements
1547 to always fail with ENOSYS. Some functions are actually named
1548 something starting with __ and the normal name is an alias. */
1549 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1559 eval "ac_cv_func_nanosleep=yes"
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 eval "ac_cv_func_nanosleep=no"
1569 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1570 echo "$ac_t""yes" 1>&6
1573 echo "$ac_t""no" 1>&6
1575 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1576 echo "configure:1577: checking for nanosleep in -lrt" >&5
1577 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 ac_save_LIBS="$LIBS"
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1586 /* Override any gcc2 internal prototype to avoid an error. */
1587 /* We use char because int might match the return type of a gcc2
1588 builtin and then its argument prototype would still apply. */
1595 if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597 eval "ac_cv_lib_$ac_lib_var=yes"
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 eval "ac_cv_lib_$ac_lib_var=no"
1605 LIBS="$ac_save_LIBS"
1608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1609 echo "$ac_t""yes" 1>&6
1612 echo "$ac_t""no" 1>&6
1614 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1615 echo "configure:1616: checking for nanosleep in -lposix4" >&5
1616 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 ac_save_LIBS="$LIBS"
1621 LIBS="-lposix4 $LIBS"
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1641 eval "ac_cv_lib_$ac_lib_var=no"
1644 LIBS="$ac_save_LIBS"
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1649 LIB="${LIB} -lposix4"
1651 echo "$ac_t""no" 1>&6
1660 for ac_func in usleep
1662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_func" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char $ac_func(); below. */
1673 /* Override any gcc2 internal prototype to avoid an error. */
1674 /* We use char because int might match the return type of a gcc2
1675 builtin and then its argument prototype would still apply. */
1680 /* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 eval "ac_cv_func_$ac_func=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 eval "ac_cv_func_$ac_func=no"
1703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1706 cat >> confdefs.h <<EOF
1707 #define $ac_tr_func 1
1711 echo "$ac_t""no" 1>&6
1715 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1716 echo "configure:1717: checking for inet_aton" >&5
1717 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char inet_aton(); below. */
1726 /* Override any gcc2 internal prototype to avoid an error. */
1727 /* We use char because int might match the return type of a gcc2
1728 builtin and then its argument prototype would still apply. */
1733 /* The GNU C library defines this for functions which it implements
1734 to always fail with ENOSYS. Some functions are actually named
1735 something starting with __ and the normal name is an alias. */
1736 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 eval "ac_cv_func_inet_aton=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_func_inet_aton=no"
1756 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1757 echo "$ac_t""yes" 1>&6
1760 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1763 echo "configure:1764: checking for inet_aton in -lresolv" >&5
1764 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 ac_save_LIBS="$LIBS"
1769 LIBS="-lresolv $LIBS"
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 /* Override any gcc2 internal prototype to avoid an error. */
1774 /* We use char because int might match the return type of a gcc2
1775 builtin and then its argument prototype would still apply. */
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 eval "ac_cv_lib_$ac_lib_var=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 eval "ac_cv_lib_$ac_lib_var=no"
1792 LIBS="$ac_save_LIBS"
1795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1796 echo "$ac_t""yes" 1>&6
1797 LIB="${LIB} -lresolv"
1799 echo "$ac_t""no" 1>&6
1805 for ac_func in vasprintf
1807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_func" >&5
1809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 eval "ac_cv_func_$ac_func=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_func_$ac_func=no"
1848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1851 cat >> confdefs.h <<EOF
1852 #define $ac_tr_func 1
1856 echo "$ac_t""no" 1>&6
1862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $ac_func" >&5
1864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $ac_func(); below. */
1873 /* Override any gcc2 internal prototype to avoid an error. */
1874 /* We use char because int might match the return type of a gcc2
1875 builtin and then its argument prototype would still apply. */
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1893 eval "ac_cv_func_$ac_func=yes"
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1898 eval "ac_cv_func_$ac_func=no"
1903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1906 cat >> confdefs.h <<EOF
1907 #define $ac_tr_func 1
1911 echo "$ac_t""no" 1>&6
1916 for ac_func in sigrelse
1918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1919 echo "configure:1920: checking for $ac_func" >&5
1920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $ac_func(); below. */
1929 /* Override any gcc2 internal prototype to avoid an error. */
1930 /* We use char because int might match the return type of a gcc2
1931 builtin and then its argument prototype would still apply. */
1936 /* The GNU C library defines this for functions which it implements
1937 to always fail with ENOSYS. Some functions are actually named
1938 something starting with __ and the normal name is an alias. */
1939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949 eval "ac_cv_func_$ac_func=yes"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 eval "ac_cv_func_$ac_func=no"
1959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1960 echo "$ac_t""yes" 1>&6
1961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1962 cat >> confdefs.h <<EOF
1963 #define $ac_tr_func 1
1967 echo "$ac_t""no" 1>&6
1972 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1973 echo "configure:1974: checking for getopt_long" >&5
1974 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char getopt_long(); below. */
1983 /* Override any gcc2 internal prototype to avoid an error. */
1984 /* We use char because int might match the return type of a gcc2
1985 builtin and then its argument prototype would still apply. */
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2003 eval "ac_cv_func_getopt_long=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 eval "ac_cv_func_getopt_long=no"
2013 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 cat >> confdefs.h <<\EOF
2016 #define HAVE_GETOPT_LONG 1
2020 echo "$ac_t""no" 1>&6
2021 # FreeBSD has a gnugetopt library for this:
2022 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2023 echo "configure:2024: checking for getopt_long in -lgnugetopt" >&5
2024 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 ac_save_LIBS="$LIBS"
2029 LIBS="-lgnugetopt $LIBS"
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2042 if { (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2044 eval "ac_cv_lib_$ac_lib_var=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2049 eval "ac_cv_lib_$ac_lib_var=no"
2052 LIBS="$ac_save_LIBS"
2055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 cat >> confdefs.h <<\EOF
2058 #define HAVE_GETOPT_LONG 1
2060 LIB="${LIB} -lgnugetopt"
2062 echo "$ac_t""no" 1>&6
2070 for ac_hdr in unistd.h
2072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_hdr" >&5
2075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2084 { (eval echo configure:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2086 if test -z "$ac_err"; then
2088 eval "ac_cv_header_$ac_safe=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 eval "ac_cv_header_$ac_safe=no"
2098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2101 cat >> confdefs.h <<EOF
2102 #define $ac_tr_hdr 1
2106 echo "$ac_t""no" 1>&6
2110 for ac_func in getpagesize
2112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2113 echo "configure:2114: checking for $ac_func" >&5
2114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 /* System header to define __stub macros and hopefully few prototypes,
2121 which can conflict with char $ac_func(); below. */
2123 /* Override any gcc2 internal prototype to avoid an error. */
2124 /* We use char because int might match the return type of a gcc2
2125 builtin and then its argument prototype would still apply. */
2130 /* The GNU C library defines this for functions which it implements
2131 to always fail with ENOSYS. Some functions are actually named
2132 something starting with __ and the normal name is an alias. */
2133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2143 eval "ac_cv_func_$ac_func=yes"
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 eval "ac_cv_func_$ac_func=no"
2153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2156 cat >> confdefs.h <<EOF
2157 #define $ac_tr_func 1
2161 echo "$ac_t""no" 1>&6
2165 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2166 echo "configure:2167: checking for working mmap" >&5
2167 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test "$cross_compiling" = yes; then
2171 ac_cv_func_mmap_fixed_mapped=no
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2177 /* Thanks to Mike Haertel and Jim Avera for this test.
2178 Here is a matrix of mmap possibilities:
2179 mmap private not fixed
2180 mmap private fixed at somewhere currently unmapped
2181 mmap private fixed at somewhere already mapped
2182 mmap shared not fixed
2183 mmap shared fixed at somewhere currently unmapped
2184 mmap shared fixed at somewhere already mapped
2185 For private mappings, we should verify that changes cannot be read()
2186 back from the file, nor mmap's back from the file at a different
2187 address. (There have been systems where private was not correctly
2188 implemented like the infamous i386 svr4.0, and systems where the
2189 VM page cache was not coherent with the filesystem buffer cache
2190 like early versions of FreeBSD and possibly contemporary NetBSD.)
2191 For shared mappings, we should conversely verify that changes get
2192 propogated back to all the places they're supposed to be.
2194 Grep wants private fixed already mapped.
2195 The main things grep needs to know about mmap are:
2196 * does it exist and is it safe to write into the mmap'd area
2197 * how to use it (BSD variants) */
2198 #include <sys/types.h>
2200 #include <sys/mman.h>
2202 #include <sys/stat.h>
2204 #ifdef HAVE_UNISTD_H
2205 # include <unistd.h>
2208 /* This mess was copied from the GNU getpagesize.h. */
2209 #ifndef HAVE_GETPAGESIZE
2211 /* Assume that all systems that can run configure have sys/param.h. */
2212 # ifndef HAVE_SYS_PARAM_H
2213 # define HAVE_SYS_PARAM_H 1
2216 # ifdef _SC_PAGESIZE
2217 # define getpagesize() sysconf(_SC_PAGESIZE)
2218 # else /* no _SC_PAGESIZE */
2219 # ifdef HAVE_SYS_PARAM_H
2220 # include <sys/param.h>
2221 # ifdef EXEC_PAGESIZE
2222 # define getpagesize() EXEC_PAGESIZE
2223 # else /* no EXEC_PAGESIZE */
2225 # define getpagesize() NBPG * CLSIZE
2228 # endif /* no CLSIZE */
2229 # else /* no NBPG */
2231 # define getpagesize() NBPC
2232 # else /* no NBPC */
2234 # define getpagesize() PAGESIZE
2235 # endif /* PAGESIZE */
2236 # endif /* no NBPC */
2237 # endif /* no NBPG */
2238 # endif /* no EXEC_PAGESIZE */
2239 # else /* no HAVE_SYS_PARAM_H */
2240 # define getpagesize() 8192 /* punt totally */
2241 # endif /* no HAVE_SYS_PARAM_H */
2242 # endif /* no _SC_PAGESIZE */
2244 #endif /* no HAVE_GETPAGESIZE */
2247 extern "C" { void *malloc(unsigned); }
2255 char *data, *data2, *data3;
2259 pagesize = getpagesize();
2262 * First, make a file with some known garbage in it.
2264 data = (char*)malloc(pagesize);
2267 for (i = 0; i < pagesize; ++i)
2268 *(data + i) = rand();
2270 fd = creat("conftestmmap", 0600);
2273 if (write(fd, data, pagesize) != pagesize)
2278 * Next, try to mmap the file at a fixed address which
2279 * already has something else allocated at it. If we can,
2280 * also make sure that we see the same garbage.
2282 fd = open("conftestmmap", O_RDWR);
2285 data2 = (char*)malloc(2 * pagesize);
2288 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2289 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2290 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2292 for (i = 0; i < pagesize; ++i)
2293 if (*(data + i) != *(data2 + i))
2297 * Finally, make sure that changes to the mapped area
2298 * do not percolate back to the file as seen by read().
2299 * (This is a bug on some variants of i386 svr4.0.)
2301 for (i = 0; i < pagesize; ++i)
2302 *(data2 + i) = *(data2 + i) + 1;
2303 data3 = (char*)malloc(pagesize);
2306 if (read(fd, data3, pagesize) != pagesize)
2308 for (i = 0; i < pagesize; ++i)
2309 if (*(data + i) != *(data3 + i))
2312 unlink("conftestmmap");
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2319 ac_cv_func_mmap_fixed_mapped=yes
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 ac_cv_func_mmap_fixed_mapped=no
2331 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2332 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2333 cat >> confdefs.h <<\EOF
2339 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2340 echo "configure:2341: checking return type of signal handlers" >&5
2341 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 #include <sys/types.h>
2353 extern "C" void (*signal (int, void (*)(int)))(int);
2355 void (*signal ()) ();
2362 if { (eval echo configure:2363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2364 ac_cv_type_signal=void
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 ac_cv_type_signal=int
2374 echo "$ac_t""$ac_cv_type_signal" 1>&6
2375 cat >> confdefs.h <<EOF
2376 #define RETSIGTYPE $ac_cv_type_signal
2380 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2381 echo "configure:2382: checking for dlopen in -ldl" >&5
2382 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 ac_save_LIBS="$LIBS"
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2400 if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2402 eval "ac_cv_lib_$ac_lib_var=yes"
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 eval "ac_cv_lib_$ac_lib_var=no"
2410 LIBS="$ac_save_LIBS"
2413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2414 echo "$ac_t""yes" 1>&6
2417 echo "$ac_t""no" 1>&6
2420 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2421 echo "configure:2422: checking for pow in -lm" >&5
2422 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 ac_save_LIBS="$LIBS"
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 /* Override any gcc2 internal prototype to avoid an error. */
2432 /* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2440 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2442 eval "ac_cv_lib_$ac_lib_var=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_lib_$ac_lib_var=no"
2450 LIBS="$ac_save_LIBS"
2453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 LIB_YUV="${LIB_YUV} -lm"
2457 echo "$ac_t""no" 1>&6
2461 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2462 CFLAGS="${CFLAGS} -I/usr/local/include"
2465 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2466 echo "configure:2467: checking for pthread_attr_init in -lpthread" >&5
2467 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 ac_save_LIBS="$LIBS"
2472 LIBS="-lpthread $LIBS"
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 /* Override any gcc2 internal prototype to avoid an error. */
2477 /* We use char because int might match the return type of a gcc2
2478 builtin and then its argument prototype would still apply. */
2479 char pthread_attr_init();
2485 if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 eval "ac_cv_lib_$ac_lib_var=yes"
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 eval "ac_cv_lib_$ac_lib_var=no"
2495 LIBS="$ac_save_LIBS"
2498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 THREAD_LIB="-lpthread"
2502 echo "$ac_t""no" 1>&6
2505 if test "x${THREAD_LIB}" = xerror; then
2506 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2507 echo "configure:2508: checking for pthread_attr_init in -lpthreads" >&5
2508 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 ac_save_LIBS="$LIBS"
2513 LIBS="-lpthreads $LIBS"
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 /* Override any gcc2 internal prototype to avoid an error. */
2518 /* We use char because int might match the return type of a gcc2
2519 builtin and then its argument prototype would still apply. */
2520 char pthread_attr_init();
2526 if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2528 eval "ac_cv_lib_$ac_lib_var=yes"
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2533 eval "ac_cv_lib_$ac_lib_var=no"
2536 LIBS="$ac_save_LIBS"
2539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2540 echo "$ac_t""yes" 1>&6
2541 THREAD_LIB="-lpthreads"
2543 echo "$ac_t""no" 1>&6
2547 if test "x${THREAD_LIB}" = xerror; then
2548 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2549 echo "configure:2550: checking for pthread_attr_init in -lc_r" >&5
2550 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 ac_save_LIBS="$LIBS"
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 /* Override any gcc2 internal prototype to avoid an error. */
2560 /* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562 char pthread_attr_init();
2568 if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2570 eval "ac_cv_lib_$ac_lib_var=yes"
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2575 eval "ac_cv_lib_$ac_lib_var=no"
2578 LIBS="$ac_save_LIBS"
2581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2582 echo "$ac_t""yes" 1>&6
2585 echo "$ac_t""no" 1>&6
2589 if test "x${THREAD_LIB}" = xerror; then
2591 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2592 echo "configure:2593: checking for pthread_attr_init" >&5
2593 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 /* System header to define __stub macros and hopefully few prototypes,
2600 which can conflict with char pthread_attr_init(); below. */
2602 /* Override any gcc2 internal prototype to avoid an error. */
2603 /* We use char because int might match the return type of a gcc2
2604 builtin and then its argument prototype would still apply. */
2605 char pthread_attr_init();
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2615 pthread_attr_init();
2620 if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2622 eval "ac_cv_func_pthread_attr_init=yes"
2624 echo "configure: failed program was:" >&5
2625 cat conftest.$ac_ext >&5
2627 eval "ac_cv_func_pthread_attr_init=no"
2632 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2636 echo "$ac_t""no" 1>&6
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 #include <pthread.h>
2646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2647 egrep "pthread_cond_t" >/dev/null 2>&1; then
2650 cat >> confdefs.h <<\EOF
2651 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <strings.h>
2662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2663 egrep "strncasecmp" >/dev/null 2>&1; then
2666 cat >> confdefs.h <<\EOF
2667 #define STRNCASECMP_IN_STRINGS_H 1
2674 for ac_hdr in stddef.h getopt.h strings.h
2676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2678 echo "configure:2679: checking for $ac_hdr" >&5
2679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2688 { (eval echo configure:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2690 if test -z "$ac_err"; then
2692 eval "ac_cv_header_$ac_safe=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2698 eval "ac_cv_header_$ac_safe=no"
2702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2705 cat >> confdefs.h <<EOF
2706 #define $ac_tr_hdr 1
2710 echo "$ac_t""no" 1>&6
2714 for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h
2716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_hdr" >&5
2719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728 { (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2730 if test -z "$ac_err"; then
2732 eval "ac_cv_header_$ac_safe=yes"
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2738 eval "ac_cv_header_$ac_safe=no"
2742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2745 cat >> confdefs.h <<EOF
2746 #define $ac_tr_hdr 1
2750 echo "$ac_t""no" 1>&6
2754 for ac_hdr in sys/soundcard.h machine/soundcard.h
2756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_hdr" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2772 eval "ac_cv_header_$ac_safe=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2778 eval "ac_cv_header_$ac_safe=no"
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2785 cat >> confdefs.h <<EOF
2786 #define $ac_tr_hdr 1
2790 echo "$ac_t""no" 1>&6
2794 for ac_hdr in dlfcn.h image.h
2796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_hdr" >&5
2799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2808 { (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2810 if test -z "$ac_err"; then
2812 eval "ac_cv_header_$ac_safe=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2818 eval "ac_cv_header_$ac_safe=no"
2822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2825 cat >> confdefs.h <<EOF
2826 #define $ac_tr_hdr 1
2830 echo "$ac_t""no" 1>&6
2834 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_hdr" >&5
2839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2848 { (eval echo configure:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2850 if test -z "$ac_err"; then
2852 eval "ac_cv_header_$ac_safe=yes"
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2858 eval "ac_cv_header_$ac_safe=no"
2862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2865 cat >> confdefs.h <<EOF
2866 #define $ac_tr_hdr 1
2870 echo "$ac_t""no" 1>&6
2874 for ac_hdr in machine/param.h
2876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_hdr" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888 { (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2890 if test -z "$ac_err"; then
2892 eval "ac_cv_header_$ac_safe=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 eval "ac_cv_header_$ac_safe=no"
2902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2905 cat >> confdefs.h <<EOF
2906 #define $ac_tr_hdr 1
2910 echo "$ac_t""no" 1>&6
2915 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_hdr" >&5
2920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2929 { (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2931 if test -z "$ac_err"; then
2933 eval "ac_cv_header_$ac_safe=yes"
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 eval "ac_cv_header_$ac_safe=no"
2943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2944 echo "$ac_t""yes" 1>&6
2945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2946 cat >> confdefs.h <<EOF
2947 #define $ac_tr_hdr 1
2951 echo "$ac_t""no" 1>&6
2956 CFLAGS="${save_CFLAGS} -Wall -Werror"
2957 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2958 echo "configure:2959: checking for ntohl in sys/param.h" >&5
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2962 #include <sys/param.h>
2963 void foo() { int meuh; ntohl(meuh); }
2968 if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2970 cat >> confdefs.h <<\EOF
2971 #define NTOHL_IN_SYS_PARAM_H 1
2974 echo "$ac_t""yes" 1>&6
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2979 echo "$ac_t""no" 1>&6
2983 CFLAGS="${save_CFLAGS} -finline-limit=12"
2984 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2985 echo "configure:2986: checking if \$CC accepts -finline-limit" >&5
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2994 if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2996 save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; echo "$ac_t""yes" 1>&6
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3001 echo "$ac_t""no" 1>&6
3005 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
3006 echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
3007 echo "configure:3008: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3016 if { (eval echo configure:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3023 echo "$ac_t""no" 1>&6
3027 CFLAGS="${save_CFLAGS} -shared"
3028 echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
3029 echo "configure:3030: checking if \$CC compiles plugins with -shared" >&5
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3038 if { (eval echo configure:3039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3040 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3045 echo "$ac_t""no" 1>&6
3049 CFLAGS="${save_CFLAGS}"
3051 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3052 echo "configure:3053: checking for boolean_t in sys/types.h" >&5
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 #include <sys/types.h>
3057 void quux() { boolean_t foo; }
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3064 cat >> confdefs.h <<\EOF
3065 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3068 echo "$ac_t""yes" 1>&6
3070 echo "configure: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3073 echo "$ac_t""no" 1>&6
3076 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3077 echo "configure:3078: checking for boolean_t in pthread.h" >&5
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <pthread.h>
3082 void quux() { boolean_t foo; }
3087 if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3089 cat >> confdefs.h <<\EOF
3090 #define BOOLEAN_T_IN_PTHREAD_H 1
3093 echo "$ac_t""yes" 1>&6
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3098 echo "$ac_t""no" 1>&6
3102 echo $ac_n "checking for working const""... $ac_c" 1>&6
3103 echo "configure:3104: checking for working const" >&5
3104 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3113 /* Ultrix mips cc rejects this. */
3114 typedef int charset[2]; const charset x = {0,0};
3115 /* SunOS 4.1.1 cc rejects this. */
3116 char const *const *ccp;
3118 /* NEC SVR4.0.2 mips cc rejects this. */
3119 struct point {int x, y;};
3120 static struct point const zero = {0,0};
3121 /* AIX XL C 1.02.0.0 rejects this.
3122 It does not let you subtract one const X* pointer from another in an arm
3123 of an if-expression whose if-part is not a constant expression */
3124 const char *g = "string";
3125 ccp = &g + (g ? g-g : 0);
3126 /* HPUX 7.0 cc rejects these. */
3129 ccp = (char const *const *) p;
3130 { /* SCO 3.2v4 cc rejects this. */
3132 char const *s = 0 ? (char *) 0 : (char const *) 0;
3136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3138 const int *foo = &x[0];
3141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3142 typedef const int *iptr;
3146 { /* AIX XL C 1.02.0.0 rejects this saying
3147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3148 struct s { int j; const int *ap[3]; };
3149 struct s *b; b->j = 5;
3151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3157 if { (eval echo configure:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 echo "configure: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3169 echo "$ac_t""$ac_cv_c_const" 1>&6
3170 if test $ac_cv_c_const = no; then
3171 cat >> confdefs.h <<\EOF
3177 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3178 echo "configure:3179: checking for ANSI C header files" >&5
3179 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3191 { (eval echo configure:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3193 if test -z "$ac_err"; then
3195 ac_cv_header_stdc=yes
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3201 ac_cv_header_stdc=no
3205 if test $ac_cv_header_stdc = yes; then
3206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 egrep "memchr" >/dev/null 2>&1; then
3217 ac_cv_header_stdc=no
3223 if test $ac_cv_header_stdc = yes; then
3224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231 egrep "free" >/dev/null 2>&1; then
3235 ac_cv_header_stdc=no
3241 if test $ac_cv_header_stdc = yes; then
3242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3243 if test "$cross_compiling" = yes; then
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3250 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3251 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3253 int main () { int i; for (i = 0; i < 256; i++)
3254 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3258 if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 ac_cv_header_stdc=no
3273 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3274 if test $ac_cv_header_stdc = yes; then
3275 cat >> confdefs.h <<\EOF
3276 #define STDC_HEADERS 1
3281 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3282 echo "configure:3283: checking for size_t" >&5
3283 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3298 ac_cv_type_size_t=yes
3301 ac_cv_type_size_t=no
3306 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3307 if test $ac_cv_type_size_t = no; then
3308 cat >> confdefs.h <<\EOF
3309 #define size_t unsigned
3314 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3315 echo "configure:3316: checking whether time.h and sys/time.h may both be included" >&5
3316 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3323 #include <sys/time.h>
3329 if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331 ac_cv_header_time=yes
3333 echo "configure: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3336 ac_cv_header_time=no
3341 echo "$ac_t""$ac_cv_header_time" 1>&6
3342 if test $ac_cv_header_time = yes; then
3343 cat >> confdefs.h <<\EOF
3344 #define TIME_WITH_SYS_TIME 1
3352 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3353 PLUGINS="${PLUGINS}"
3355 MMX_MODULES="yuvmmx idctmmx motionmmx"
3356 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3358 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3359 echo "configure:3360: checking if \$CC groks MMX inline assembly" >&5
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3371 echo "$ac_t""yes" 1>&6
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3376 echo "$ac_t""no" 1>&6
3380 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3381 echo "configure:3382: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3393 echo "$ac_t""yes" 1>&6
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3398 echo "$ac_t""no" 1>&6
3403 for ac_hdr in winioctl.h
3405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3407 echo "configure:3408: checking for $ac_hdr" >&5
3408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3417 { (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3419 if test -z "$ac_err"; then
3421 eval "ac_cv_header_$ac_safe=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_header_$ac_safe=no"
3431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3434 cat >> confdefs.h <<EOF
3435 #define $ac_tr_hdr 1
3441 echo "$ac_t""no" 1>&6
3446 for ac_hdr in sys/ioctl.h
3448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_hdr" >&5
3451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3460 { (eval echo configure:3461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3462 if test -z "$ac_err"; then
3464 eval "ac_cv_header_$ac_safe=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_header_$ac_safe=no"
3474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3475 echo "$ac_t""yes" 1>&6
3476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3477 cat >> confdefs.h <<EOF
3478 #define $ac_tr_hdr 1
3482 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_hdr" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3498 if test -z "$ac_err"; then
3500 eval "ac_cv_header_$ac_safe=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_header_$ac_safe=no"
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3513 cat >> confdefs.h <<EOF
3514 #define $ac_tr_hdr 1
3518 echo "$ac_t""no" 1>&6
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <sys/dvdio.h>
3528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3529 egrep "dvd_struct" >/dev/null 2>&1; then
3532 cat >> confdefs.h <<\EOF
3533 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <sys/cdio.h>
3546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3547 egrep "dvd_struct" >/dev/null 2>&1; then
3550 cat >> confdefs.h <<\EOF
3551 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3559 if test x$BSD_DVD_STRUCT = x1; then
3560 cat >> confdefs.h <<\EOF
3561 #define HAVE_BSD_DVD_STRUCT 1
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 #include <linux/cdrom.h>
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 egrep "dvd_struct" >/dev/null 2>&1; then
3574 cat >> confdefs.h <<\EOF
3575 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3584 echo "$ac_t""no" 1>&6
3598 # Check whether --enable-ppro or --disable-ppro was given.
3599 if test "${enable_ppro+set}" = set; then
3600 enableval="$enable_ppro"
3601 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3603 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3607 # Check whether --enable-mmx or --disable-mmx was given.
3608 if test "${enable_mmx+set}" = set; then
3609 enableval="$enable_mmx"
3610 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3611 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3613 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";
3614 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3618 # Check whether --enable-altivec or --disable-altivec was given.
3619 if test "${enable_altivec+set}" = set; then
3620 enableval="$enable_altivec"
3621 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
3622 BUILTINS="${BUILTINS} idctaltivec"
3623 LIB_IDCTALTIVEC="-framework vecLib"
3627 #[ 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
3636 # Check whether --enable-stats or --disable-stats was given.
3637 if test "${enable_stats+set}" = set; then
3638 enableval="$enable_stats"
3639 if test x$enableval = xyes; then STATS=1; fi
3643 # Check whether --enable-trace or --disable-trace was given.
3644 if test "${enable_trace+set}" = set; then
3645 enableval="$enable_trace"
3646 if test x$enableval = xyes; then TRACE=1; fi
3650 # Check whether --enable-profiling or --disable-profiling was given.
3651 if test "${enable_profiling+set}" = set; then
3652 enableval="$enable_profiling"
3653 if test x$enableval = xyes; then PROFILING=1; fi
3657 # Check whether --enable-optimizations or --disable-optimizations was given.
3658 if test "${enable_optimizations+set}" = set; then
3659 enableval="$enable_optimizations"
3660 if test x$enableval = xno; then OPTIMS=0; fi
3666 # Check whether --enable-pth or --disable-pth was given.
3667 if test "${enable_pth+set}" = set; then
3668 enableval="$enable_pth"
3669 if test x$enableval = xyes; then
3670 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3671 echo "configure:3672: checking for pth_init in -lpth" >&5
3672 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 ac_save_LIBS="$LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* Override any gcc2 internal prototype to avoid an error. */
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3690 if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3692 eval "ac_cv_lib_$ac_lib_var=yes"
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3697 eval "ac_cv_lib_$ac_lib_var=no"
3700 LIBS="$ac_save_LIBS"
3703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3707 cat >> confdefs.h <<EOF
3708 #define $ac_tr_lib 1
3714 echo "$ac_t""no" 1>&6
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3723 egrep "pth_init" >/dev/null 2>&1; then
3726 cat >> confdefs.h <<\EOF
3727 #define PTH_INIT_IN_PTH_H 1
3739 LIB="${LIB} ${THREAD_LIB}"
3741 # Check whether --enable-css or --disable-css was given.
3742 if test "${enable_css+set}" = set; then
3743 enableval="$enable_css"
3744 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3749 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3754 for ac_hdr in videolan/dvdcss.h
3756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3758 echo "configure:3759: checking for $ac_hdr" >&5
3759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3768 { (eval echo configure:3769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3770 if test -z "$ac_err"; then
3772 eval "ac_cv_header_$ac_safe=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 eval "ac_cv_header_$ac_safe=no"
3782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3785 cat >> confdefs.h <<EOF
3786 #define $ac_tr_hdr 1
3789 # installed libdvdcss
3790 BUILTINS="${BUILTINS} dvd"
3791 LIB_DVD="${LIB_DVD} -ldvdcss"
3793 echo "$ac_t""no" 1>&6
3794 if test x${LIBDVDCSS} = x1; then
3797 BUILTINS="${BUILTINS} dvd"
3798 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3804 # Check whether --enable-dummy or --disable-dummy was given.
3805 if test "${enable_dummy+set}" = set; then
3806 enableval="$enable_dummy"
3810 if test x$enable_dummy != xno; then
3811 BUILTINS="${BUILTINS} dummy"; fi
3813 # Check whether --enable-null or --disable-null was given.
3814 if test "${enable_null+set}" = set; then
3815 enableval="$enable_null"
3819 if test x$enable_null != xno; then
3820 BUILTINS="${BUILTINS} null"; fi
3822 # Check whether --enable-rc or --disable-rc was given.
3823 if test "${enable_rc+set}" = set; then
3824 enableval="$enable_rc"
3828 if test x$enable_rc != xno; then
3829 BUILTINS="${BUILTINS} rc"; fi
3831 if test x$SYS = xbeos; then
3832 BUILTINS="${BUILTINS} beos"
3833 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3834 PLCFLAGS="${PLCFLAGS} -nostart"
3838 # Check whether --enable-dsp or --disable-dsp was given.
3839 if test "${enable_dsp+set}" = set; then
3840 enableval="$enable_dsp"
3844 if test x$enable_dsp != xno; then
3845 if test -c /dev/dsp; then
3846 PLUGINS="${PLUGINS} dsp"
3850 # Check whether --enable-esd or --disable-esd was given.
3851 if test "${enable_esd+set}" = set; then
3852 enableval="$enable_esd"
3853 if test x$enable_esd = xyes; then
3854 # Extract the first word of "esd-config", so it can be a program name with args.
3855 set dummy esd-config; ac_word=$2
3856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3857 echo "configure:3858: checking for $ac_word" >&5
3858 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 case "$ESD_CONFIG" in
3863 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3866 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3871 for ac_dir in $ac_dummy; do
3872 test -z "$ac_dir" && ac_dir=.
3873 if test -f $ac_dir/$ac_word; then
3874 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3879 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3883 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3884 if test -n "$ESD_CONFIG"; then
3885 echo "$ac_t""$ESD_CONFIG" 1>&6
3887 echo "$ac_t""no" 1>&6
3890 if test x${ESD_CONFIG} != xno; then
3891 PLUGINS="${PLUGINS} esd"
3892 LIB_ESD="`${ESD_CONFIG} --libs`"
3898 # Check whether --enable-darwin or --disable-darwin was given.
3899 if test "${enable_darwin+set}" = set; then
3900 enableval="$enable_darwin"
3901 if test x$enable_darwin = xyes; then
3902 PLUGINS="${PLUGINS} darwin"
3903 LIB_DARWIN="-framework CoreAudio"
3908 # Check whether --enable-macosx or --disable-macosx was given.
3909 if test "${enable_macosx+set}" = set; then
3910 enableval="$enable_macosx"
3911 if test x$enable_macosx = xyes; then
3912 BUILTINS="${BUILTINS} macosx"
3913 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3914 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3915 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3918 for ac_hdr in Carbon/Carbon.h
3920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3922 echo "configure:3923: checking for $ac_hdr" >&5
3923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3932 { (eval echo configure:3933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3934 if test -z "$ac_err"; then
3936 eval "ac_cv_header_$ac_safe=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 eval "ac_cv_header_$ac_safe=no"
3946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3949 cat >> confdefs.h <<EOF
3950 #define $ac_tr_hdr 1
3952 BUILTINS="${BUILTINS} macosx"
3953 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3954 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3955 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3958 echo "$ac_t""no" 1>&6
3965 # Check whether --enable-qnx or --disable-qnx was given.
3966 if test "${enable_qnx+set}" = set; then
3967 enableval="$enable_qnx"
3971 if test x$enable_qnx != xno; then
3974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3976 echo "configure:3977: checking for $ac_hdr" >&5
3977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3986 { (eval echo configure:3987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3988 if test -z "$ac_err"; then
3990 eval "ac_cv_header_$ac_safe=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3996 eval "ac_cv_header_$ac_safe=no"
4000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4003 cat >> confdefs.h <<EOF
4004 #define $ac_tr_hdr 1
4007 PLUGINS="${PLUGINS} qnx"
4008 LIB_QNX="-lasound -lph"
4011 echo "$ac_t""no" 1>&6
4017 # Check whether --enable-fb or --disable-fb was given.
4018 if test "${enable_fb+set}" = set; then
4019 enableval="$enable_fb"
4020 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
4024 # Check whether --with-ggi or --without-ggi was given.
4025 if test "${with_ggi+set}" = set; then
4027 if test "x$withval" != "xno";
4029 PLUGINS="${PLUGINS} ggi";
4030 if test "x$withval" != "xyes";
4032 LIB_GGI="-l"$withval
4040 # Check whether --enable-sdl or --disable-sdl was given.
4041 if test "${enable_sdl+set}" = set; then
4042 enableval="$enable_sdl"
4046 if test "x$withval" != "xno";
4048 cat >> confdefs.h <<\EOF
4049 #define HAVE_SDL_SDL_H 0
4052 cat >> confdefs.h <<\EOF
4053 #define HAVE_SDL11_SDL_H 0
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_SDL12_SDL_H 0
4060 # Extract the first word of "sdl-config", so it can be a program name with args.
4061 set dummy sdl-config; ac_word=$2
4062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_word" >&5
4064 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 case "$SDL_CONFIG" in
4069 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4072 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4077 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 if test -f $ac_dir/$ac_word; then
4080 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4085 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4089 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4090 if test -n "$SDL_CONFIG"; then
4091 echo "$ac_t""$SDL_CONFIG" 1>&6
4093 echo "$ac_t""no" 1>&6
4096 SDL_HEADER="SDL/SDL.h"
4097 if test x${SDL_CONFIG} = xno; then
4098 # Extract the first word of "sdl11-config", so it can be a program name with args.
4099 set dummy sdl11-config; ac_word=$2
4100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_word" >&5
4102 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 case "$SDL_CONFIG" in
4107 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4110 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4115 for ac_dir in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir=.
4117 if test -f $ac_dir/$ac_word; then
4118 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4123 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4127 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4128 if test -n "$SDL_CONFIG"; then
4129 echo "$ac_t""$SDL_CONFIG" 1>&6
4131 echo "$ac_t""no" 1>&6
4134 SDL_HEADER="SDL11/SDL.h"
4136 if test x${SDL_CONFIG} = xno; then
4137 # Extract the first word of "sdl12-config", so it can be a program name with args.
4138 set dummy sdl12-config; ac_word=$2
4139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4140 echo "configure:4141: checking for $ac_word" >&5
4141 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 case "$SDL_CONFIG" in
4146 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4149 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4154 for ac_dir in $ac_dummy; do
4155 test -z "$ac_dir" && ac_dir=.
4156 if test -f $ac_dir/$ac_word; then
4157 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4162 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4166 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4167 if test -n "$SDL_CONFIG"; then
4168 echo "$ac_t""$SDL_CONFIG" 1>&6
4170 echo "$ac_t""no" 1>&6
4173 SDL_HEADER="SDL12/SDL.h"
4175 if test x${SDL_CONFIG} != xno; then
4176 for ac_hdr in $SDL_HEADER
4178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4180 echo "configure:4181: checking for $ac_hdr" >&5
4181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4190 { (eval echo configure:4191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4192 if test -z "$ac_err"; then
4194 eval "ac_cv_header_$ac_safe=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 eval "ac_cv_header_$ac_safe=no"
4204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4207 cat >> confdefs.h <<EOF
4208 #define $ac_tr_hdr 1
4212 echo "$ac_t""no" 1>&6
4213 echo "The development package for SDL is not installed. Please install it"
4214 echo "and try again."
4219 if expr 1.1.5 \> $($SDL_CONFIG --version); then
4220 echo "You need SDL version 1.1.5 or later."
4223 PLUGINS="${PLUGINS} sdl"
4224 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4225 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4226 elif test "x$withval" = "xyes"; then
4227 echo "I couldn't find the SDL package. You can download libSDL from"
4228 echo "http://www.libsdl.org/."
4233 # Check whether --with-directx or --without-directx was given.
4234 if test "${with_directx+set}" = set; then
4235 withval="$with_directx"
4236 if test "x$withval" != "xno";
4238 PLUGINS="${PLUGINS} directx";
4239 if test "x$withval" != "xyes";
4241 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4242 INCLUDE="${INCLUDE} -I"$withval"/include"
4244 for ac_hdr in directx.h
4246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4248 echo "configure:4249: checking for $ac_hdr" >&5
4249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4258 { (eval echo configure:4259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4260 if test -z "$ac_err"; then
4262 eval "ac_cv_header_$ac_safe=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_header_$ac_safe=no"
4272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4275 cat >> confdefs.h <<EOF
4276 #define $ac_tr_hdr 1
4280 echo "$ac_t""no" 1>&6
4281 echo "Cannot find DirectX headers !"; exit
4285 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4290 if test "x$withval" = "x";
4292 for ac_hdr in directx.h
4294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4296 echo "configure:4297: checking for $ac_hdr" >&5
4297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4306 { (eval echo configure:4307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4308 if test -z "$ac_err"; then
4310 eval "ac_cv_header_$ac_safe=yes"
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4316 eval "ac_cv_header_$ac_safe=no"
4320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4323 cat >> confdefs.h <<EOF
4324 #define $ac_tr_hdr 1
4326 PLUGINS="${PLUGINS} directx"
4327 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4329 echo "$ac_t""no" 1>&6
4335 # Check whether --with-glide or --without-glide was given.
4336 if test "${with_glide+set}" = set; then
4337 withval="$with_glide"
4338 if test "x$withval" != "xno";
4340 PLUGINS="${PLUGINS} glide";
4341 if test "x$withval" != "xyes";
4343 LIB_GLIDE="-l"$withval" -lm"
4345 LIB_GLIDE="-lglide2x -lm"
4351 # Check whether --enable-ncurses or --disable-ncurses was given.
4352 if test "${enable_ncurses+set}" = set; then
4353 enableval="$enable_ncurses"
4354 if test x$enable_ncurses = xyes; then
4355 PLUGINS="${PLUGINS} ncurses"
4356 LIB_NCURSES="-lncurses"
4361 # Check whether --enable-qt or --disable-qt was given.
4362 if test "${enable_qt+set}" = set; then
4363 enableval="$enable_qt"
4364 if test x$enable_qt = xyes; then
4365 PLUGINS="${PLUGINS} qt"
4366 ALIASES="${ALIASES} qvlc"
4367 LIB_QT="-lqt -L${QTDIR}/lib"
4368 if test -x ${QTDIR}/bin/moc ;
4370 MOC=${QTDIR}/bin/moc
4378 # Check whether --enable-kde or --disable-kde was given.
4379 if test "${enable_kde+set}" = set; then
4380 enableval="$enable_kde"
4381 if test x$enable_kde = xyes; then
4382 PLUGINS="${PLUGINS} kde";
4383 ALIASES="${ALIASES} kvlc";
4389 # Check whether --enable-gnome or --disable-gnome was given.
4390 if test "${enable_gnome+set}" = set; then
4391 enableval="$enable_gnome"
4392 if test x$enable_gnome = xyes; then
4393 PLUGINS="${PLUGINS} gnome"
4394 ALIASES="${ALIASES} gnome-vlc"
4395 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4400 # Check whether --enable-gtk or --disable-gtk was given.
4401 if test "${enable_gtk+set}" = set; then
4402 enableval="$enable_gtk"
4406 if test x$enable_gtk != xno; then
4407 # Extract the first word of "gtk-config", so it can be a program name with args.
4408 set dummy gtk-config; ac_word=$2
4409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4410 echo "configure:4411: checking for $ac_word" >&5
4411 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 case "$GTK_CONFIG" in
4416 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4419 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4424 for ac_dir in $ac_dummy; do
4425 test -z "$ac_dir" && ac_dir=.
4426 if test -f $ac_dir/$ac_word; then
4427 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4432 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4436 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4437 if test -n "$GTK_CONFIG"; then
4438 echo "$ac_t""$GTK_CONFIG" 1>&6
4440 echo "$ac_t""no" 1>&6
4443 if test x${GTK_CONFIG} != xno; then
4444 PLUGINS="${PLUGINS} gtk"
4445 ALIASES="${ALIASES} gvlc"
4446 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4447 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4451 # Check whether --enable-x11 or --disable-x11 was given.
4452 if test "${enable_x11+set}" = set; then
4453 enableval="$enable_x11"
4457 if test x$enable_x11 != xno; then
4458 if test x$x_includes = xNONE; then
4459 x_includes=/usr/X11R6/include
4461 if test x$x_libraries = xNONE; then
4462 x_libraries=/usr/X11R6/lib
4464 saved_CPPFLAGS=$CPPFLAGS
4465 CPPFLAGS="$CPPFLAGS -I$x_includes"
4466 for ac_hdr in X11/Xlib.h
4468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4470 echo "configure:4471: checking for $ac_hdr" >&5
4471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4480 { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4482 if test -z "$ac_err"; then
4484 eval "ac_cv_header_$ac_safe=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_header_$ac_safe=no"
4494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4497 cat >> confdefs.h <<EOF
4498 #define $ac_tr_hdr 1
4501 PLUGINS="${PLUGINS} x11"
4502 LIB_X11="-L$x_libraries -lX11 -lXext"
4503 CFLAGS_X11="-I$x_includes"
4505 CPPFLAGS=$saved_CPPFLAGS
4507 echo "$ac_t""no" 1>&6
4513 # Check whether --enable-xvideo or --disable-xvideo was given.
4514 if test "${enable_xvideo+set}" = set; then
4515 enableval="$enable_xvideo"
4519 if test x$enable_xvideo != xno; then
4520 if test x$x_includes = xNONE; then
4521 x_includes=/usr/X11R6/include
4523 if test x$x_libraries = xNONE; then
4524 x_libraries=/usr/X11R6/lib
4526 saved_CPPFLAGS=$CPPFLAGS
4527 CPPFLAGS="$CPPFLAGS -I$x_includes"
4528 for ac_hdr in X11/extensions/Xv.h
4530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4532 echo "configure:4533: checking for $ac_hdr" >&5
4533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4542 { (eval echo configure:4543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4544 if test -z "$ac_err"; then
4546 eval "ac_cv_header_$ac_safe=yes"
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4552 eval "ac_cv_header_$ac_safe=no"
4556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4559 cat >> confdefs.h <<EOF
4560 #define $ac_tr_hdr 1
4563 PLUGINS="${PLUGINS} xvideo"
4564 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4565 CFLAGS_X11="-I$x_includes"
4567 CPPFLAGS=$saved_CPPFLAGS
4569 echo "$ac_t""no" 1>&6
4575 # Check whether --enable-alsa or --disable-alsa was given.
4576 if test "${enable_alsa+set}" = set; then
4577 enableval="$enable_alsa"
4578 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4580 echo "configure:4581: checking for sys/asoundlib.h" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4587 #include <sys/asoundlib.h>
4589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592 if test -z "$ac_err"; then
4594 eval "ac_cv_header_$ac_safe=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_header_$ac_safe=no"
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4607 echo "configure:4608: checking for main in -lasound" >&5
4608 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 ac_save_LIBS="$LIBS"
4613 LIBS="-lasound $LIBS"
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4624 eval "ac_cv_lib_$ac_lib_var=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 eval "ac_cv_lib_$ac_lib_var=no"
4632 LIBS="$ac_save_LIBS"
4635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4639 echo "$ac_t""no" 1>&6
4644 echo "$ac_t""no" 1>&6
4647 if test x$have_alsa = xtrue; then
4648 PLUGINS="${PLUGINS} alsa"
4708 cat > confcache <<\EOF
4709 # This file is a shell script that caches the results of configure
4710 # tests run on this system so they can be shared between configure
4711 # scripts and configure runs. It is not useful on other systems.
4712 # If it contains results you don't want to keep, you may remove or edit it.
4714 # By default, configure uses ./config.cache as the cache file,
4715 # creating it if it does not exist already. You can give configure
4716 # the --cache-file=FILE option to use a different cache file; that is
4717 # what configure does when it calls configure scripts in
4718 # subdirectories, so they share the cache.
4719 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4720 # config.status only pays attention to the cache file if you give it the
4721 # --recheck option to rerun configure.
4724 # The following way of writing the cache mishandles newlines in values,
4725 # but we know of no workaround that is simple, portable, and efficient.
4726 # So, don't put newlines in cache variables' values.
4727 # Ultrix sh set writes to stderr and can't be redirected directly,
4728 # and sets the high bit in the cache file unless we assign to the vars.
4730 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4732 # `set' does not quote correctly, so add quotes (double-quote substitution
4733 # turns \\\\ into \\, and sed turns \\ into \).
4735 -e "s/'/'\\\\''/g" \
4736 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4739 # `set' quotes correctly as required by POSIX, so do not add quotes.
4740 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4743 if cmp -s $cache_file confcache; then
4746 if test -w $cache_file; then
4747 echo "updating cache $cache_file"
4748 cat confcache > $cache_file
4750 echo "not updating unwritable cache $cache_file"
4755 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4758 # Let make expand exec_prefix.
4759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4761 # Any assignment to VPATH causes Sun make to only execute
4762 # the first set of double-colon rules, so remove it if not needed.
4763 # If there is a colon in the path, we need to keep it.
4764 if test "x$srcdir" = x.; then
4765 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4768 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4770 DEFS=-DHAVE_CONFIG_H
4772 # Without the "./", some shells look in PATH for config.status.
4773 : ${CONFIG_STATUS=./config.status}
4775 echo creating $CONFIG_STATUS
4776 rm -f $CONFIG_STATUS
4777 cat > $CONFIG_STATUS <<EOF
4779 # Generated automatically by configure.
4780 # Run this file to recreate the current configuration.
4781 # This directory was configured as follows,
4782 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4784 # $0 $ac_configure_args
4786 # Compiler output produced by configure, useful for debugging
4787 # configure, is in ./config.log if it exists.
4789 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4792 case "\$ac_option" in
4793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4794 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4795 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4796 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4797 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4799 -help | --help | --hel | --he | --h)
4800 echo "\$ac_cs_usage"; exit 0 ;;
4801 *) echo "\$ac_cs_usage"; exit 1 ;;
4805 ac_given_srcdir=$srcdir
4806 ac_given_INSTALL="$INSTALL"
4808 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4810 cat >> $CONFIG_STATUS <<EOF
4812 # Protect against being on the right side of a sed subst in config.status.
4813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4814 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4818 s%@CFLAGS@%$CFLAGS%g
4819 s%@CPPFLAGS@%$CPPFLAGS%g
4820 s%@CXXFLAGS@%$CXXFLAGS%g
4821 s%@FFLAGS@%$FFLAGS%g
4823 s%@LDFLAGS@%$LDFLAGS%g
4825 s%@exec_prefix@%$exec_prefix%g
4826 s%@prefix@%$prefix%g
4827 s%@program_transform_name@%$program_transform_name%g
4828 s%@bindir@%$bindir%g
4829 s%@sbindir@%$sbindir%g
4830 s%@libexecdir@%$libexecdir%g
4831 s%@datadir@%$datadir%g
4832 s%@sysconfdir@%$sysconfdir%g
4833 s%@sharedstatedir@%$sharedstatedir%g
4834 s%@localstatedir@%$localstatedir%g
4835 s%@libdir@%$libdir%g
4836 s%@includedir@%$includedir%g
4837 s%@oldincludedir@%$oldincludedir%g
4838 s%@infodir@%$infodir%g
4839 s%@mandir@%$mandir%g
4841 s%@host_alias@%$host_alias%g
4842 s%@host_cpu@%$host_cpu%g
4843 s%@host_vendor@%$host_vendor%g
4844 s%@host_os@%$host_os%g
4845 s%@VLC_VERSION@%$VLC_VERSION%g
4846 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
4847 s%@VLC_CODENAME@%$VLC_CODENAME%g
4848 s%@SET_MAKE@%$SET_MAKE%g
4851 s%@RANLIB@%$RANLIB%g
4852 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4853 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4854 s%@INSTALL_DATA@%$INSTALL_DATA%g
4855 s%@GETOPT@%$GETOPT%g
4856 s%@ESD_CONFIG@%$ESD_CONFIG%g
4857 s%@SDL_CONFIG@%$SDL_CONFIG%g
4858 s%@GTK_CONFIG@%$GTK_CONFIG%g
4861 s%@PLUGINS@%$PLUGINS%g
4862 s%@BUILTINS@%$BUILTINS%g
4863 s%@ALIASES@%$ALIASES%g
4864 s%@DEFINE@%$DEFINE%g
4865 s%@INCLUDE@%$INCLUDE%g
4870 s%@PROFILING@%$PROFILING%g
4871 s%@OPTIMS@%$OPTIMS%g
4874 s%@WINDRES@%$WINDRES%g
4875 s%@LCFLAGS@%$LCFLAGS%g
4876 s%@PLCFLAGS@%$PLCFLAGS%g
4878 s%@LIB_ALSA@%$LIB_ALSA%g
4879 s%@LIB_BEOS@%$LIB_BEOS%g
4880 s%@LIB_DARWIN@%$LIB_DARWIN%g
4881 s%@LIB_DVD@%$LIB_DVD%g
4882 s%@LIB_ESD@%$LIB_ESD%g
4883 s%@LIB_GGI@%$LIB_GGI%g
4884 s%@LIB_GLIDE@%$LIB_GLIDE%g
4885 s%@LIB_GNOME@%$LIB_GNOME%g
4886 s%@LIB_GTK@%$LIB_GTK%g
4887 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4888 s%@LIB_KDE@%$LIB_KDE%g
4889 s%@LIB_MACOSX@%$LIB_MACOSX%g
4890 s%@LIB_QNX@%$LIB_QNX%g
4891 s%@LIB_NCURSES@%$LIB_NCURSES%g
4892 s%@LIB_QT@%$LIB_QT%g
4893 s%@LIB_TS@%$LIB_TS%g
4894 s%@LIB_SDL@%$LIB_SDL%g
4895 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4896 s%@LIB_X11@%$LIB_X11%g
4897 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4898 s%@LIB_YUV@%$LIB_YUV%g
4899 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4900 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
4901 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4902 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
4903 s%@CFLAGS_X11@%$CFLAGS_X11%g
4904 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
4909 cat >> $CONFIG_STATUS <<\EOF
4911 # Split the substitutions into bite-sized pieces for seds with
4912 # small command number limits, like on Digital OSF/1 and HP-UX.
4913 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4914 ac_file=1 # Number of current file.
4915 ac_beg=1 # First line for current file.
4916 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4919 while $ac_more_lines; do
4920 if test $ac_beg -gt 1; then
4921 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4923 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4925 if test ! -s conftest.s$ac_file; then
4927 rm -f conftest.s$ac_file
4929 if test -z "$ac_sed_cmds"; then
4930 ac_sed_cmds="sed -f conftest.s$ac_file"
4932 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4934 ac_file=`expr $ac_file + 1`
4936 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4939 if test -z "$ac_sed_cmds"; then
4944 cat >> $CONFIG_STATUS <<EOF
4946 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4948 cat >> $CONFIG_STATUS <<\EOF
4949 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4952 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4953 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4954 *) ac_file_in="${ac_file}.in" ;;
4957 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4959 # Remove last slash and all that follows it. Not all systems have dirname.
4960 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4961 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4962 # The file is in a subdirectory.
4963 test ! -d "$ac_dir" && mkdir "$ac_dir"
4964 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4965 # A "../" for each directory in $ac_dir_suffix.
4966 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4968 ac_dir_suffix= ac_dots=
4971 case "$ac_given_srcdir" in
4973 if test -z "$ac_dots"; then top_srcdir=.
4974 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4975 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4977 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4978 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4981 case "$ac_given_INSTALL" in
4982 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4983 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4986 echo creating "$ac_file"
4988 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4990 *Makefile*) ac_comsub="1i\\
4991 # $configure_input" ;;
4995 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4997 s%@configure_input@%$configure_input%g
4998 s%@srcdir@%$srcdir%g
4999 s%@top_srcdir@%$top_srcdir%g
5000 s%@INSTALL@%$INSTALL%g
5001 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5005 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5006 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5008 # ac_d sets the value in "#define NAME VALUE" lines.
5009 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5010 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5013 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5014 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5015 ac_uB='\([ ]\)%\1#\2define\3'
5018 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5019 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5020 ac_eB='$%\1#\2define\3'
5024 if test "${CONFIG_HEADERS+set}" != set; then
5026 cat >> $CONFIG_STATUS <<EOF
5027 CONFIG_HEADERS="include/defs.h"
5029 cat >> $CONFIG_STATUS <<\EOF
5031 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5034 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5035 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5036 *) ac_file_in="${ac_file}.in" ;;
5039 echo creating $ac_file
5041 rm -f conftest.frag conftest.in conftest.out
5042 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5043 cat $ac_file_inputs > conftest.in
5047 # Transform confdefs.h into a sed script conftest.vals that substitutes
5048 # the proper values into config.h.in to produce config.h. And first:
5049 # Protect against being on the right side of a sed subst in config.status.
5050 # Protect against being in an unquoted here document in config.status.
5052 cat > conftest.hdr <<\EOF
5055 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5059 sed -n -f conftest.hdr confdefs.h > conftest.vals
5062 # This sed command replaces #undef with comments. This is necessary, for
5063 # example, in the case of _POSIX_SOURCE, which is predefined and required
5064 # on some systems where configure will not decide to define it.
5065 cat >> conftest.vals <<\EOF
5066 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5069 # Break up conftest.vals because some shells have a limit on
5070 # the size of here documents, and old seds have small limits too.
5075 ac_lines=`grep -c . conftest.vals`
5076 # grep -c gives empty output for an empty file on some AIX systems.
5077 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5078 # Write a limited-size here document to conftest.frag.
5079 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5080 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5082 sed -f conftest.frag conftest.in > conftest.out
5084 mv conftest.out conftest.in
5086 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5088 mv conftest.tail conftest.vals
5092 cat >> $CONFIG_STATUS <<\EOF
5093 rm -f conftest.frag conftest.h
5094 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5095 cat conftest.in >> conftest.h
5097 if cmp -s $ac_file conftest.h 2>/dev/null; then
5098 echo "$ac_file is unchanged"
5101 # Remove last slash and all that follows it. Not all systems have dirname.
5102 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5103 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5104 # The file is in a subdirectory.
5105 test ! -d "$ac_dir" && mkdir "$ac_dir"
5108 mv conftest.h $ac_file
5113 cat >> $CONFIG_STATUS <<EOF
5116 cat >> $CONFIG_STATUS <<\EOF
5120 chmod +x $CONFIG_STATUS
5121 rm -fr confdefs* $ac_clean_files
5122 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5126 global configuration
5127 --------------------
5129 architecture : ${ARCH}
5130 optimizations : ${OPTIMS}
5131 inline assembly : ${ASM}
5135 vlc version : ${VLC_VERSION}
5136 debug mode : ${DEBUG}
5137 statistics : ${STATS}
5138 trace mode : ${TRACE}
5139 profiling : ${PROFILING}
5140 need builtin getopt : ${GETOPT}
5141 built-in modules :${BUILTINS}
5142 plugin modules :${PLUGINS}
5143 vlc aliases :${ALIASES}
5145 libdvdcss configuration
5146 -----------------------
5147 CSS decryption : ${CSS}
5149 You may now tune Makefile.opts at your convenience. To build vlc, type
5150 \`make vlc'. To build libdvdcss only, type \`make libdvdcss'."