3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --enable-trace Enable trace mode (default disabled)"
27 --enable-profiling Enable gprof profiling (default disabled)"
29 --disable-optimizations Disable compiler optimizations (default enabled)"
31 --enable-pth Enable GNU Pth support (default disabled)"
33 --with-dvdcss[=name] use another libdvdcss (default is local one)"
35 --disable-css Disable DVD CSS decryption (default enabled)"
37 --disable-dummy dummy module (default enabled)"
39 --disable-null Null module (default enabled)"
41 --disable-rc rc module (default enabled)"
43 --disable-dsp Linux /dev/dsp support (default enabled)"
45 --enable-esd Esound library support (default disabled)"
47 --enable-darwin Darwin sound support (default disabled)"
49 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
51 --disable-qnx QNX RTOS support (default enabled in QNX RTOS)"
53 --enable-fb Linux framebuffer support (default disabled)"
55 --with-ggi[=name] GGI support (default disabled)"
57 --disable-sdl SDL support (default enabled)"
59 --with-directx[=name] Windows DirectX support (default enabled)"
61 --with-glide[=name] Glide (3dfx) support (default disabled)"
63 --enable-ncurses ncurses interface support (default disabled)"
65 --enable-qt Qt interface support (default disabled)"
67 --enable-kde KDE interface support (default disabled)"
69 --enable-gnome Gnome interface support (default disabled)"
71 --disable-gtk Gtk+ support (default enabled)"
73 --disable-x11 X11 support (default enabled)"
75 --disable-xvideo XVideo support (default enabled)"
77 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file=./config.cache
92 program_transform_name=s,x,x,
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
113 # Initialize some other variables.
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143 bindir="$ac_optarg" ;;
145 -build | --build | --buil | --bui | --bu)
147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148 build="$ac_optarg" ;;
150 -cache-file | --cache-file | --cache-fil | --cache-fi \
151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152 ac_prev=cache_file ;;
153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155 cache_file="$ac_optarg" ;;
157 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 datadir="$ac_optarg" ;;
163 -disable-* | --disable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* | --enable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187 | --exec | --exe | --ex)
188 ac_prev=exec_prefix ;;
189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191 | --exec=* | --exe=* | --ex=*)
192 exec_prefix="$ac_optarg" ;;
194 -gas | --gas | --ga | --g)
195 # Obsolete; use --with-gas.
198 -help | --help | --hel | --he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host | --host | --hos | --ho)
255 -host=* | --host=* | --hos=* | --ho=*)
258 -includedir | --includedir | --includedi | --included | --include \
259 | --includ | --inclu | --incl | --inc)
260 ac_prev=includedir ;;
261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262 | --includ=* | --inclu=* | --incl=* | --inc=*)
263 includedir="$ac_optarg" ;;
265 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268 infodir="$ac_optarg" ;;
270 -libdir | --libdir | --libdi | --libd)
272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
273 libdir="$ac_optarg" ;;
275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276 | --libexe | --libex | --libe)
277 ac_prev=libexecdir ;;
278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279 | --libexe=* | --libex=* | --libe=*)
280 libexecdir="$ac_optarg" ;;
282 -localstatedir | --localstatedir | --localstatedi | --localstated \
283 | --localstate | --localstat | --localsta | --localst \
284 | --locals | --local | --loca | --loc | --lo)
285 ac_prev=localstatedir ;;
286 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289 localstatedir="$ac_optarg" ;;
291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294 mandir="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310 | --oldin | --oldi | --old | --ol | --o)
311 ac_prev=oldincludedir ;;
312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315 oldincludedir="$ac_optarg" ;;
317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320 prefix="$ac_optarg" ;;
322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
323 | --program-pre | --program-pr | --program-p)
324 ac_prev=program_prefix ;;
325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327 program_prefix="$ac_optarg" ;;
329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
330 | --program-suf | --program-su | --program-s)
331 ac_prev=program_suffix ;;
332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334 program_suffix="$ac_optarg" ;;
336 -program-transform-name | --program-transform-name \
337 | --program-transform-nam | --program-transform-na \
338 | --program-transform-n | --program-transform- \
339 | --program-transform | --program-transfor \
340 | --program-transfo | --program-transf \
341 | --program-trans | --program-tran \
342 | --progr-tra | --program-tr | --program-t)
343 ac_prev=program_transform_name ;;
344 -program-transform-name=* | --program-transform-name=* \
345 | --program-transform-nam=* | --program-transform-na=* \
346 | --program-transform-n=* | --program-transform-=* \
347 | --program-transform=* | --program-transfor=* \
348 | --program-transfo=* | --program-transf=* \
349 | --program-trans=* | --program-tran=* \
350 | --progr-tra=* | --program-tr=* | --program-t=*)
351 program_transform_name="$ac_optarg" ;;
353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354 | -silent | --silent | --silen | --sile | --sil)
357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 sbindir="$ac_optarg" ;;
363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365 | --sharedst | --shareds | --shared | --share | --shar \
367 ac_prev=sharedstatedir ;;
368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 sharedstatedir="$ac_optarg" ;;
374 -site | --site | --sit)
376 -site=* | --site=* | --sit=*)
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=include/main.h
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE; then
546 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='\c' ac_t=
591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
592 if test -f $ac_dir/install-sh; then
594 ac_install_sh="$ac_aux_dir/install-sh -c"
596 elif test -f $ac_dir/install.sh; then
598 ac_install_sh="$ac_aux_dir/install.sh -c"
602 if test -z "$ac_aux_dir"; then
603 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
605 ac_config_guess=$ac_aux_dir/config.guess
606 ac_config_sub=$ac_aux_dir/config.sub
607 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
610 # Make sure we can run config.sub.
611 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
615 echo $ac_n "checking host system type""... $ac_c" 1>&6
616 echo "configure:617: checking host system type" >&5
619 case "$host_alias" in
623 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
624 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 *) host_alias=$nonopt ;;
630 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$host" 1>&6
639 LIBDVDCSS_VERSION=0.0.1
644 save_CFLAGS="${CFLAGS}"
646 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
647 echo "configure:648: checking whether ${MAKE-make} sets \${MAKE}" >&5
648 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
649 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 cat > conftestmake <<\EOF
654 @echo 'ac_maketemp="${MAKE}"'
656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
657 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
658 if test -n "$ac_maketemp"; then
659 eval ac_cv_prog_make_${ac_make}_set=yes
661 eval ac_cv_prog_make_${ac_make}_set=no
665 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
666 echo "$ac_t""yes" 1>&6
669 echo "$ac_t""no" 1>&6
670 SET_MAKE="MAKE=${MAKE-make}"
673 # Extract the first word of "gcc", so it can be a program name with args.
674 set dummy gcc; ac_word=$2
675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676 echo "configure:677: checking for $ac_word" >&5
677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 if test -n "$CC"; then
681 ac_cv_prog_CC="$CC" # Let the user override the test.
683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
696 if test -n "$CC"; then
697 echo "$ac_t""$CC" 1>&6
699 echo "$ac_t""no" 1>&6
702 if test -z "$CC"; then
703 # Extract the first word of "cc", so it can be a program name with args.
704 set dummy cc; ac_word=$2
705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706 echo "configure:707: checking for $ac_word" >&5
707 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 if test -n "$CC"; then
711 ac_cv_prog_CC="$CC" # Let the user override the test.
713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
716 for ac_dir in $ac_dummy; do
717 test -z "$ac_dir" && ac_dir=.
718 if test -f $ac_dir/$ac_word; then
719 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
728 if test $ac_prog_rejected = yes; then
729 # We found a bogon in the path, so make sure we never use it.
730 set dummy $ac_cv_prog_CC
732 if test $# -gt 0; then
733 # We chose a different compiler from the bogus one.
734 # However, it has the same basename, so the bogon will be chosen
735 # first if we set CC to just the basename; use the full file name.
737 set dummy "$ac_dir/$ac_word" "$@"
745 if test -n "$CC"; then
746 echo "$ac_t""$CC" 1>&6
748 echo "$ac_t""no" 1>&6
751 if test -z "$CC"; then
754 # Extract the first word of "cl", so it can be a program name with args.
755 set dummy cl; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 for ac_dir in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
780 echo "$ac_t""no" 1>&6
785 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
788 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CPP $CPPFLAGS'
794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cc_cross
798 cat > conftest.$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
805 if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
806 ac_cv_prog_cc_works=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (./conftest; exit) 2>/dev/null; then
809 ac_cv_prog_cc_cross=no
811 ac_cv_prog_cc_cross=yes
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 ac_cv_prog_cc_works=no
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp='$CPP $CPPFLAGS'
822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
827 if test $ac_cv_prog_cc_works = no; then
828 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
833 cross_compiling=$ac_cv_prog_cc_cross
835 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
836 echo "configure:837: checking whether we are using GNU C" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 cat > conftest.c <<EOF
845 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
852 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
854 if test $ac_cv_prog_gcc = yes; then
860 ac_test_CFLAGS="${CFLAGS+set}"
861 ac_save_CFLAGS="$CFLAGS"
863 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
864 echo "configure:865: checking whether ${CC-cc} accepts -g" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 echo 'void f(){}' > conftest.c
869 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
878 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
879 if test "$ac_test_CFLAGS" = set; then
880 CFLAGS="$ac_save_CFLAGS"
881 elif test $ac_cv_prog_cc_g = yes; then
882 if test "$GCC" = yes; then
888 if test "$GCC" = yes; then
895 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
896 echo "configure:897: checking how to run the C preprocessor" >&5
897 # On Suns, sometimes $CPP names a directory.
898 if test -n "$CPP" && test -d "$CPP"; then
901 if test -z "$CPP"; then
902 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 # This must be in double quotes, not single quotes, because CPP may get
906 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 # On the NeXT, cc -E runs the code through the compiler's parser,
909 # not just through cpp.
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
917 { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
919 if test -z "$ac_err"; then
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
926 CPP="${CC-cc} -E -traditional-cpp"
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
936 if test -z "$ac_err"; then
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
943 CPP="${CC-cc} -nologo -E"
944 cat > conftest.$ac_ext <<EOF
945 #line 946 "configure"
946 #include "confdefs.h"
950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
951 { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
953 if test -z "$ac_err"; then
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
967 ac_cv_prog_CPP="$CPP"
969 CPP="$ac_cv_prog_CPP"
971 ac_cv_prog_CPP="$CPP"
973 echo "$ac_t""$CPP" 1>&6
975 # Extract the first word of "ranlib", so it can be a program name with args.
976 set dummy ranlib; ac_word=$2
977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978 echo "configure:979: checking for $ac_word" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 if test -n "$RANLIB"; then
983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
987 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_prog_RANLIB="ranlib"
995 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
998 RANLIB="$ac_cv_prog_RANLIB"
999 if test -n "$RANLIB"; then
1000 echo "$ac_t""$RANLIB" 1>&6
1002 echo "$ac_t""no" 1>&6
1006 # Find a good install program. We prefer a C program (faster),
1007 # so one script is as good as another. But avoid the broken or
1008 # incompatible versions:
1009 # SysV /etc/install, /usr/sbin/install
1010 # SunOS /usr/etc/install
1011 # IRIX /sbin/install
1013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1016 # ./install, which can be erroneously created by make from ./install.sh.
1017 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1018 echo "configure:1019: checking for a BSD compatible install" >&5
1019 if test -z "$INSTALL"; then
1020 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1024 for ac_dir in $PATH; do
1025 # Account for people who put trailing slashes in PATH elements.
1027 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1029 # OSF1 and SCO ODT 3.0 have their own names for install.
1030 # Don't use installbsd from OSF since it installs stuff as root
1032 for ac_prog in ginstall scoinst install; do
1033 if test -f $ac_dir/$ac_prog; then
1034 if test $ac_prog = install &&
1035 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1036 # AIX install. It has an incompatible calling convention.
1039 ac_cv_path_install="$ac_dir/$ac_prog -c"
1050 if test "${ac_cv_path_install+set}" = set; then
1051 INSTALL="$ac_cv_path_install"
1053 # As a last resort, use the slow shell script. We don't cache a
1054 # path for INSTALL within a source directory, because that will
1055 # break other packages using the cache if that directory is
1056 # removed, or if the path is relative.
1057 INSTALL="$ac_install_sh"
1060 echo "$ac_t""$INSTALL" 1>&6
1062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1063 # It thinks the first close brace ends the variable substitution.
1064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1071 echo $ac_n "checking for working const""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working const" >&5
1073 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1082 /* Ultrix mips cc rejects this. */
1083 typedef int charset[2]; const charset x;
1084 /* SunOS 4.1.1 cc rejects this. */
1085 char const *const *ccp;
1087 /* NEC SVR4.0.2 mips cc rejects this. */
1088 struct point {int x, y;};
1089 static struct point const zero = {0,0};
1090 /* AIX XL C 1.02.0.0 rejects this.
1091 It does not let you subtract one const X* pointer from another in an arm
1092 of an if-expression whose if-part is not a constant expression */
1093 const char *g = "string";
1094 ccp = &g + (g ? g-g : 0);
1095 /* HPUX 7.0 cc rejects these. */
1098 ccp = (char const *const *) p;
1099 { /* SCO 3.2v4 cc rejects this. */
1101 char const *s = 0 ? (char *) 0 : (char const *) 0;
1105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1107 const int *foo = &x[0];
1110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1111 typedef const int *iptr;
1115 { /* AIX XL C 1.02.0.0 rejects this saying
1116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1117 struct s { int j; const int *ap[3]; };
1118 struct s *b; b->j = 5;
1120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1126 if { (eval echo configure:1127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1138 echo "$ac_t""$ac_cv_c_const" 1>&6
1139 if test $ac_cv_c_const = no; then
1140 cat >> confdefs.h <<\EOF
1147 if test x${cross_compiling} != xyes; then
1148 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether byte ordering is bigendian" >&5
1150 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 ac_cv_c_bigendian=unknown
1154 # See if sys/param.h defines the BYTE_ORDER macro.
1155 cat > conftest.$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1158 #include <sys/types.h>
1159 #include <sys/param.h>
1162 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1167 if { (eval echo configure:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1169 # It does; now see whether it defined to BIG_ENDIAN or not.
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 #include <sys/types.h>
1174 #include <sys/param.h>
1177 #if BYTE_ORDER != BIG_ENDIAN
1182 if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1184 ac_cv_c_bigendian=yes
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1189 ac_cv_c_bigendian=no
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1197 if test $ac_cv_c_bigendian = unknown; then
1198 if test "$cross_compiling" = yes; then
1199 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1205 /* Are we little or big endian? From Harbison&Steele. */
1209 char c[sizeof (long)];
1212 exit (u.c[sizeof (long) - 1] == 1);
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1217 ac_cv_c_bigendian=no
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1222 ac_cv_c_bigendian=yes
1230 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1231 if test $ac_cv_c_bigendian = yes; then
1232 cat >> confdefs.h <<\EOF
1233 #define WORDS_BIGENDIAN 1
1240 for ac_func in gettimeofday select strerror strtod strtol
1242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_func" >&5
1244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1250 /* System header to define __stub macros and hopefully few prototypes,
1251 which can conflict with char $ac_func(); below. */
1253 /* Override any gcc2 internal prototype to avoid an error. */
1254 /* We use char because int might match the return type of a gcc2
1255 builtin and then its argument prototype would still apply. */
1260 /* The GNU C library defines this for functions which it implements
1261 to always fail with ENOSYS. Some functions are actually named
1262 something starting with __ and the normal name is an alias. */
1263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1273 eval "ac_cv_func_$ac_func=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_func_$ac_func=no"
1283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1286 cat >> confdefs.h <<EOF
1287 #define $ac_tr_func 1
1291 echo "$ac_t""no" 1>&6
1295 for ac_func in setenv putenv
1297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_func" >&5
1299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 cat > conftest.$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1305 /* System header to define __stub macros and hopefully few prototypes,
1306 which can conflict with char $ac_func(); below. */
1308 /* Override any gcc2 internal prototype to avoid an error. */
1309 /* We use char because int might match the return type of a gcc2
1310 builtin and then its argument prototype would still apply. */
1315 /* The GNU C library defines this for functions which it implements
1316 to always fail with ENOSYS. Some functions are actually named
1317 something starting with __ and the normal name is an alias. */
1318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1328 eval "ac_cv_func_$ac_func=yes"
1330 echo "configure: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1333 eval "ac_cv_func_$ac_func=no"
1338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1339 echo "$ac_t""yes" 1>&6
1340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1341 cat >> confdefs.h <<EOF
1342 #define $ac_tr_func 1
1346 echo "$ac_t""no" 1>&6
1350 echo $ac_n "checking for connect""... $ac_c" 1>&6
1351 echo "configure:1352: checking for connect" >&5
1352 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 cat > conftest.$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1358 /* System header to define __stub macros and hopefully few prototypes,
1359 which can conflict with char connect(); below. */
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1368 /* The GNU C library defines this for functions which it implements
1369 to always fail with ENOSYS. Some functions are actually named
1370 something starting with __ and the normal name is an alias. */
1371 #if defined (__stub_connect) || defined (__stub___connect)
1379 if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1381 eval "ac_cv_func_connect=yes"
1383 echo "configure: failed program was:" >&5
1384 cat conftest.$ac_ext >&5
1386 eval "ac_cv_func_connect=no"
1391 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1395 echo "$ac_t""no" 1>&6
1397 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1398 echo "configure:1399: checking for connect in -lsocket" >&5
1399 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 ac_save_LIBS="$LIBS"
1404 LIBS="-lsocket $LIBS"
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* Override any gcc2 internal prototype to avoid an error. */
1409 /* We use char because int might match the return type of a gcc2
1410 builtin and then its argument prototype would still apply. */
1417 if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 eval "ac_cv_lib_$ac_lib_var=yes"
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1424 eval "ac_cv_lib_$ac_lib_var=no"
1427 LIBS="$ac_save_LIBS"
1430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1431 echo "$ac_t""yes" 1>&6
1432 LIB="${LIB} -lsocket"
1434 echo "$ac_t""no" 1>&6
1440 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1441 echo "configure:1442: checking for gethostbyname" >&5
1442 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 /* System header to define __stub macros and hopefully few prototypes,
1449 which can conflict with char gethostbyname(); below. */
1451 /* Override any gcc2 internal prototype to avoid an error. */
1452 /* We use char because int might match the return type of a gcc2
1453 builtin and then its argument prototype would still apply. */
1454 char gethostbyname();
1458 /* The GNU C library defines this for functions which it implements
1459 to always fail with ENOSYS. Some functions are actually named
1460 something starting with __ and the normal name is an alias. */
1461 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1471 eval "ac_cv_func_gethostbyname=yes"
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1476 eval "ac_cv_func_gethostbyname=no"
1481 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1485 echo "$ac_t""no" 1>&6
1487 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1488 echo "configure:1489: checking for gethostbyname in -lnsl" >&5
1489 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 ac_save_LIBS="$LIBS"
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 /* Override any gcc2 internal prototype to avoid an error. */
1499 /* We use char because int might match the return type of a gcc2
1500 builtin and then its argument prototype would still apply. */
1501 char gethostbyname();
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1509 eval "ac_cv_lib_$ac_lib_var=yes"
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1514 eval "ac_cv_lib_$ac_lib_var=no"
1517 LIBS="$ac_save_LIBS"
1520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1521 echo "$ac_t""yes" 1>&6
1524 echo "$ac_t""no" 1>&6
1530 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1531 echo "configure:1532: checking for nanosleep" >&5
1532 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 /* System header to define __stub macros and hopefully few prototypes,
1539 which can conflict with char nanosleep(); below. */
1541 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1548 /* The GNU C library defines this for functions which it implements
1549 to always fail with ENOSYS. Some functions are actually named
1550 something starting with __ and the normal name is an alias. */
1551 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1561 eval "ac_cv_func_nanosleep=yes"
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1566 eval "ac_cv_func_nanosleep=no"
1571 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1575 echo "$ac_t""no" 1>&6
1577 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1578 echo "configure:1579: checking for nanosleep in -lrt" >&5
1579 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 ac_save_LIBS="$LIBS"
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1588 /* Override any gcc2 internal prototype to avoid an error. */
1589 /* We use char because int might match the return type of a gcc2
1590 builtin and then its argument prototype would still apply. */
1597 if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1599 eval "ac_cv_lib_$ac_lib_var=yes"
1601 echo "configure: failed program was:" >&5
1602 cat conftest.$ac_ext >&5
1604 eval "ac_cv_lib_$ac_lib_var=no"
1607 LIBS="$ac_save_LIBS"
1610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1611 echo "$ac_t""yes" 1>&6
1614 echo "$ac_t""no" 1>&6
1616 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1617 echo "configure:1618: checking for nanosleep in -lposix4" >&5
1618 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 ac_save_LIBS="$LIBS"
1623 LIBS="-lposix4 $LIBS"
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* Override any gcc2 internal prototype to avoid an error. */
1628 /* We use char because int might match the return type of a gcc2
1629 builtin and then its argument prototype would still apply. */
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1638 eval "ac_cv_lib_$ac_lib_var=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1643 eval "ac_cv_lib_$ac_lib_var=no"
1646 LIBS="$ac_save_LIBS"
1649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1651 LIB="${LIB} -lposix4"
1653 echo "$ac_t""no" 1>&6
1662 for ac_func in usleep
1664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1665 echo "configure:1666: checking for $ac_func" >&5
1666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 /* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char $ac_func(); below. */
1675 /* Override any gcc2 internal prototype to avoid an error. */
1676 /* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1682 /* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 eval "ac_cv_func_$ac_func=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_func_$ac_func=no"
1705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1708 cat >> confdefs.h <<EOF
1709 #define $ac_tr_func 1
1713 echo "$ac_t""no" 1>&6
1717 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1718 echo "configure:1719: checking for inet_aton" >&5
1719 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char inet_aton(); below. */
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 eval "ac_cv_func_inet_aton=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 eval "ac_cv_func_inet_aton=no"
1758 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1759 echo "$ac_t""yes" 1>&6
1762 echo "$ac_t""no" 1>&6
1764 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1765 echo "configure:1766: checking for inet_aton in -lresolv" >&5
1766 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 ac_save_LIBS="$LIBS"
1771 LIBS="-lresolv $LIBS"
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 /* Override any gcc2 internal prototype to avoid an error. */
1776 /* We use char because int might match the return type of a gcc2
1777 builtin and then its argument prototype would still apply. */
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786 eval "ac_cv_lib_$ac_lib_var=yes"
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 eval "ac_cv_lib_$ac_lib_var=no"
1794 LIBS="$ac_save_LIBS"
1797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1798 echo "$ac_t""yes" 1>&6
1799 LIB="${LIB} -lresolv"
1801 echo "$ac_t""no" 1>&6
1807 for ac_func in vasprintf
1809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_func" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 eval "ac_cv_func_$ac_func=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_func_$ac_func=no"
1850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1853 cat >> confdefs.h <<EOF
1854 #define $ac_tr_func 1
1858 echo "$ac_t""no" 1>&6
1864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_func" >&5
1866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $ac_func(); below. */
1875 /* Override any gcc2 internal prototype to avoid an error. */
1876 /* We use char because int might match the return type of a gcc2
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1895 eval "ac_cv_func_$ac_func=yes"
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1900 eval "ac_cv_func_$ac_func=no"
1905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_func 1
1913 echo "$ac_t""no" 1>&6
1918 for ac_func in sigrelse
1920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_func" >&5
1922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $ac_func(); below. */
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1938 /* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1949 if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1951 eval "ac_cv_func_$ac_func=yes"
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 eval "ac_cv_func_$ac_func=no"
1961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1964 cat >> confdefs.h <<EOF
1965 #define $ac_tr_func 1
1969 echo "$ac_t""no" 1>&6
1975 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1976 echo "configure:1977: checking for getopt_long" >&5
1977 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char getopt_long(); below. */
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2006 eval "ac_cv_func_getopt_long=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_func_getopt_long=no"
2016 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 cat >> confdefs.h <<\EOF
2019 #define HAVE_GETOPT_LONG 1
2023 echo "$ac_t""no" 1>&6
2024 # FreeBSD has a gnugetopt library for this:
2025 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2026 echo "configure:2027: checking for getopt_long in -lgnugetopt" >&5
2027 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 ac_save_LIBS="$LIBS"
2032 LIBS="-lgnugetopt $LIBS"
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 /* We use char because int might match the return type of a gcc2
2038 builtin and then its argument prototype would still apply. */
2045 if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2047 eval "ac_cv_lib_$ac_lib_var=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 eval "ac_cv_lib_$ac_lib_var=no"
2055 LIBS="$ac_save_LIBS"
2058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2059 echo "$ac_t""yes" 1>&6
2060 cat >> confdefs.h <<\EOF
2061 #define HAVE_GETOPT_LONG 1
2063 LIB="${LIB} -lgnugetopt"
2065 echo "$ac_t""no" 1>&6
2072 for ac_hdr in unistd.h
2074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2076 echo "configure:2077: checking for $ac_hdr" >&5
2077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2086 { (eval echo configure:2087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2088 if test -z "$ac_err"; then
2090 eval "ac_cv_header_$ac_safe=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 eval "ac_cv_header_$ac_safe=no"
2100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2103 cat >> confdefs.h <<EOF
2104 #define $ac_tr_hdr 1
2108 echo "$ac_t""no" 1>&6
2112 for ac_func in getpagesize
2114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_func" >&5
2116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char $ac_func(); below. */
2125 /* Override any gcc2 internal prototype to avoid an error. */
2126 /* We use char because int might match the return type of a gcc2
2127 builtin and then its argument prototype would still apply. */
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2145 eval "ac_cv_func_$ac_func=yes"
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2150 eval "ac_cv_func_$ac_func=no"
2155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2158 cat >> confdefs.h <<EOF
2159 #define $ac_tr_func 1
2163 echo "$ac_t""no" 1>&6
2167 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2168 echo "configure:2169: checking for working mmap" >&5
2169 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 if test "$cross_compiling" = yes; then
2173 ac_cv_func_mmap_fixed_mapped=no
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2179 /* Thanks to Mike Haertel and Jim Avera for this test.
2180 Here is a matrix of mmap possibilities:
2181 mmap private not fixed
2182 mmap private fixed at somewhere currently unmapped
2183 mmap private fixed at somewhere already mapped
2184 mmap shared not fixed
2185 mmap shared fixed at somewhere currently unmapped
2186 mmap shared fixed at somewhere already mapped
2187 For private mappings, we should verify that changes cannot be read()
2188 back from the file, nor mmap's back from the file at a different
2189 address. (There have been systems where private was not correctly
2190 implemented like the infamous i386 svr4.0, and systems where the
2191 VM page cache was not coherent with the filesystem buffer cache
2192 like early versions of FreeBSD and possibly contemporary NetBSD.)
2193 For shared mappings, we should conversely verify that changes get
2194 propogated back to all the places they're supposed to be.
2196 Grep wants private fixed already mapped.
2197 The main things grep needs to know about mmap are:
2198 * does it exist and is it safe to write into the mmap'd area
2199 * how to use it (BSD variants) */
2200 #include <sys/types.h>
2202 #include <sys/mman.h>
2204 /* This mess was copied from the GNU getpagesize.h. */
2205 #ifndef HAVE_GETPAGESIZE
2206 # ifdef HAVE_UNISTD_H
2207 # include <unistd.h>
2210 /* Assume that all systems that can run configure have sys/param.h. */
2211 # ifndef HAVE_SYS_PARAM_H
2212 # define HAVE_SYS_PARAM_H 1
2215 # ifdef _SC_PAGESIZE
2216 # define getpagesize() sysconf(_SC_PAGESIZE)
2217 # else /* no _SC_PAGESIZE */
2218 # ifdef HAVE_SYS_PARAM_H
2219 # include <sys/param.h>
2220 # ifdef EXEC_PAGESIZE
2221 # define getpagesize() EXEC_PAGESIZE
2222 # else /* no EXEC_PAGESIZE */
2224 # define getpagesize() NBPG * CLSIZE
2227 # endif /* no CLSIZE */
2228 # else /* no NBPG */
2230 # define getpagesize() NBPC
2231 # else /* no NBPC */
2233 # define getpagesize() PAGESIZE
2234 # endif /* PAGESIZE */
2235 # endif /* no NBPC */
2236 # endif /* no NBPG */
2237 # endif /* no EXEC_PAGESIZE */
2238 # else /* no HAVE_SYS_PARAM_H */
2239 # define getpagesize() 8192 /* punt totally */
2240 # endif /* no HAVE_SYS_PARAM_H */
2241 # endif /* no _SC_PAGESIZE */
2243 #endif /* no HAVE_GETPAGESIZE */
2246 extern "C" { void *malloc(unsigned); }
2254 char *data, *data2, *data3;
2258 pagesize = getpagesize();
2261 * First, make a file with some known garbage in it.
2263 data = malloc(pagesize);
2266 for (i = 0; i < pagesize; ++i)
2267 *(data + i) = rand();
2269 fd = creat("conftestmmap", 0600);
2272 if (write(fd, data, pagesize) != pagesize)
2277 * Next, try to mmap the file at a fixed address which
2278 * already has something else allocated at it. If we can,
2279 * also make sure that we see the same garbage.
2281 fd = open("conftestmmap", O_RDWR);
2284 data2 = malloc(2 * pagesize);
2287 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2288 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2289 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2291 for (i = 0; i < pagesize; ++i)
2292 if (*(data + i) != *(data2 + i))
2296 * Finally, make sure that changes to the mapped area
2297 * do not percolate back to the file as seen by read().
2298 * (This is a bug on some variants of i386 svr4.0.)
2300 for (i = 0; i < pagesize; ++i)
2301 *(data2 + i) = *(data2 + i) + 1;
2302 data3 = malloc(pagesize);
2305 if (read(fd, data3, pagesize) != pagesize)
2307 for (i = 0; i < pagesize; ++i)
2308 if (*(data + i) != *(data3 + i))
2311 unlink("conftestmmap");
2316 if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2318 ac_cv_func_mmap_fixed_mapped=yes
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2323 ac_cv_func_mmap_fixed_mapped=no
2330 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2331 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2332 cat >> confdefs.h <<\EOF
2338 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2339 echo "configure:2340: checking return type of signal handlers" >&5
2340 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 #include <sys/types.h>
2352 extern "C" void (*signal (int, void (*)(int)))(int);
2354 void (*signal ()) ();
2361 if { (eval echo configure:2362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2363 ac_cv_type_signal=void
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 ac_cv_type_signal=int
2373 echo "$ac_t""$ac_cv_type_signal" 1>&6
2374 cat >> confdefs.h <<EOF
2375 #define RETSIGTYPE $ac_cv_type_signal
2379 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2380 echo "configure:2381: checking for dlopen in -ldl" >&5
2381 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS="$LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 eval "ac_cv_lib_$ac_lib_var=no"
2409 LIBS="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2416 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2420 echo "configure:2421: checking for pow in -lm" >&5
2421 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 ac_save_LIBS="$LIBS"
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441 eval "ac_cv_lib_$ac_lib_var=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_lib_$ac_lib_var=no"
2449 LIBS="$ac_save_LIBS"
2452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 LIB_YUV="${LIB_YUV} -lm"
2456 echo "$ac_t""no" 1>&6
2460 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2461 CFLAGS="${CFLAGS} -I/usr/local/include"
2464 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2465 echo "configure:2466: checking for pthread_attr_init in -lpthread" >&5
2466 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 ac_save_LIBS="$LIBS"
2471 LIBS="-lpthread $LIBS"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2478 char pthread_attr_init();
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 eval "ac_cv_lib_$ac_lib_var=yes"
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 eval "ac_cv_lib_$ac_lib_var=no"
2494 LIBS="$ac_save_LIBS"
2497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 THREAD_LIB="-lpthread"
2501 echo "$ac_t""no" 1>&6
2504 if test "x${THREAD_LIB}" = xerror; then
2505 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2506 echo "configure:2507: checking for pthread_attr_init in -lpthreads" >&5
2507 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 ac_save_LIBS="$LIBS"
2512 LIBS="-lpthreads $LIBS"
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516 /* Override any gcc2 internal prototype to avoid an error. */
2517 /* We use char because int might match the return type of a gcc2
2518 builtin and then its argument prototype would still apply. */
2519 char pthread_attr_init();
2525 if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2527 eval "ac_cv_lib_$ac_lib_var=yes"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 eval "ac_cv_lib_$ac_lib_var=no"
2535 LIBS="$ac_save_LIBS"
2538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2539 echo "$ac_t""yes" 1>&6
2540 THREAD_LIB="-lpthreads"
2542 echo "$ac_t""no" 1>&6
2546 if test "x${THREAD_LIB}" = xerror; then
2547 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2548 echo "configure:2549: checking for pthread_attr_init in -lc_r" >&5
2549 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 ac_save_LIBS="$LIBS"
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 /* Override any gcc2 internal prototype to avoid an error. */
2559 /* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561 char pthread_attr_init();
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2569 eval "ac_cv_lib_$ac_lib_var=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_lib_$ac_lib_var=no"
2577 LIBS="$ac_save_LIBS"
2580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2584 echo "$ac_t""no" 1>&6
2588 if test "x${THREAD_LIB}" = xerror; then
2590 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2591 echo "configure:2592: checking for pthread_attr_init" >&5
2592 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 /* System header to define __stub macros and hopefully few prototypes,
2599 which can conflict with char pthread_attr_init(); below. */
2601 /* Override any gcc2 internal prototype to avoid an error. */
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604 char pthread_attr_init();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2614 pthread_attr_init();
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 eval "ac_cv_func_pthread_attr_init=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 eval "ac_cv_func_pthread_attr_init=no"
2631 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2635 echo "$ac_t""no" 1>&6
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 #include <pthread.h>
2645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2646 egrep "pthread_cond_t" >/dev/null 2>&1; then
2649 cat >> confdefs.h <<\EOF
2650 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <strings.h>
2661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2662 egrep "strncasecmp" >/dev/null 2>&1; then
2665 cat >> confdefs.h <<\EOF
2666 #define STRNCASECMP_IN_STRINGS_H 1
2673 for ac_hdr in stddef.h getopt.h strings.h
2675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_hdr" >&5
2678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2687 { (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2689 if test -z "$ac_err"; then
2691 eval "ac_cv_header_$ac_safe=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 eval "ac_cv_header_$ac_safe=no"
2701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2704 cat >> confdefs.h <<EOF
2705 #define $ac_tr_hdr 1
2709 echo "$ac_t""no" 1>&6
2713 for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h
2715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_hdr" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727 { (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729 if test -z "$ac_err"; then
2731 eval "ac_cv_header_$ac_safe=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2737 eval "ac_cv_header_$ac_safe=no"
2741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
2743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2744 cat >> confdefs.h <<EOF
2745 #define $ac_tr_hdr 1
2749 echo "$ac_t""no" 1>&6
2753 for ac_hdr in sys/soundcard.h machine/soundcard.h
2755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_hdr" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2771 eval "ac_cv_header_$ac_safe=yes"
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2777 eval "ac_cv_header_$ac_safe=no"
2781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2784 cat >> confdefs.h <<EOF
2785 #define $ac_tr_hdr 1
2789 echo "$ac_t""no" 1>&6
2793 for ac_hdr in dlfcn.h image.h
2795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2797 echo "configure:2798: checking for $ac_hdr" >&5
2798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2811 eval "ac_cv_header_$ac_safe=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2817 eval "ac_cv_header_$ac_safe=no"
2821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2824 cat >> confdefs.h <<EOF
2825 #define $ac_tr_hdr 1
2829 echo "$ac_t""no" 1>&6
2833 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2837 echo "configure:2838: checking for $ac_hdr" >&5
2838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 cat > conftest.$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2847 { (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2849 if test -z "$ac_err"; then
2851 eval "ac_cv_header_$ac_safe=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 eval "ac_cv_header_$ac_safe=no"
2861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2864 cat >> confdefs.h <<EOF
2865 #define $ac_tr_hdr 1
2869 echo "$ac_t""no" 1>&6
2873 for ac_hdr in machine/param.h
2875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_hdr" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2891 eval "ac_cv_header_$ac_safe=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_header_$ac_safe=no"
2901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h <<EOF
2905 #define $ac_tr_hdr 1
2909 echo "$ac_t""no" 1>&6
2914 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_hdr" >&5
2919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2928 { (eval echo configure:2929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2930 if test -z "$ac_err"; then
2932 eval "ac_cv_header_$ac_safe=yes"
2935 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2938 eval "ac_cv_header_$ac_safe=no"
2942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2945 cat >> confdefs.h <<EOF
2946 #define $ac_tr_hdr 1
2950 echo "$ac_t""no" 1>&6
2955 CFLAGS="${save_CFLAGS} -Wall -Werror"
2956 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2957 echo "configure:2958: checking for ntohl in sys/param.h" >&5
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/param.h>
2962 void foo() { int meuh; ntohl(meuh); }
2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 cat >> confdefs.h <<\EOF
2970 #define NTOHL_IN_SYS_PARAM_H 1
2973 echo "$ac_t""yes" 1>&6
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 echo "$ac_t""no" 1>&6
2982 CFLAGS="${save_CFLAGS} -finline-limit=12"
2983 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
2984 echo "configure:2985: checking if \$CC accepts -finline-limit" >&5
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2993 if { (eval echo configure:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2995 save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; echo "$ac_t""yes" 1>&6
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 echo "$ac_t""no" 1>&6
3004 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
3005 echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
3006 echo "configure:3007: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3015 if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3017 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 echo "$ac_t""no" 1>&6
3026 CFLAGS="${save_CFLAGS} -shared"
3027 echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
3028 echo "configure:3029: checking if \$CC compiles plugins with -shared" >&5
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3037 if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 echo "$ac_t""no" 1>&6
3048 CFLAGS="${save_CFLAGS}"
3050 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3051 echo "configure:3052: checking for boolean_t in sys/types.h" >&5
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 #include <sys/types.h>
3056 void quux() { boolean_t foo; }
3061 if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063 cat >> confdefs.h <<\EOF
3064 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3067 echo "$ac_t""yes" 1>&6
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3072 echo "$ac_t""no" 1>&6
3075 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3076 echo "configure:3077: checking for boolean_t in pthread.h" >&5
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <pthread.h>
3081 void quux() { boolean_t foo; }
3086 if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3088 cat >> confdefs.h <<\EOF
3089 #define BOOLEAN_T_IN_PTHREAD_H 1
3092 echo "$ac_t""yes" 1>&6
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3097 echo "$ac_t""no" 1>&6
3101 echo $ac_n "checking for working const""... $ac_c" 1>&6
3102 echo "configure:3103: checking for working const" >&5
3103 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3112 /* Ultrix mips cc rejects this. */
3113 typedef int charset[2]; const charset x;
3114 /* SunOS 4.1.1 cc rejects this. */
3115 char const *const *ccp;
3117 /* NEC SVR4.0.2 mips cc rejects this. */
3118 struct point {int x, y;};
3119 static struct point const zero = {0,0};
3120 /* AIX XL C 1.02.0.0 rejects this.
3121 It does not let you subtract one const X* pointer from another in an arm
3122 of an if-expression whose if-part is not a constant expression */
3123 const char *g = "string";
3124 ccp = &g + (g ? g-g : 0);
3125 /* HPUX 7.0 cc rejects these. */
3128 ccp = (char const *const *) p;
3129 { /* SCO 3.2v4 cc rejects this. */
3131 char const *s = 0 ? (char *) 0 : (char const *) 0;
3135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3137 const int *foo = &x[0];
3140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3141 typedef const int *iptr;
3145 { /* AIX XL C 1.02.0.0 rejects this saying
3146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3147 struct s { int j; const int *ap[3]; };
3148 struct s *b; b->j = 5;
3150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3156 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3168 echo "$ac_t""$ac_cv_c_const" 1>&6
3169 if test $ac_cv_c_const = no; then
3170 cat >> confdefs.h <<\EOF
3176 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3177 echo "configure:3178: checking for ANSI C header files" >&5
3178 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3190 { (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3192 if test -z "$ac_err"; then
3194 ac_cv_header_stdc=yes
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 ac_cv_header_stdc=no
3204 if test $ac_cv_header_stdc = yes; then
3205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 egrep "memchr" >/dev/null 2>&1; then
3216 ac_cv_header_stdc=no
3222 if test $ac_cv_header_stdc = yes; then
3223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230 egrep "free" >/dev/null 2>&1; then
3234 ac_cv_header_stdc=no
3240 if test $ac_cv_header_stdc = yes; then
3241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3242 if test "$cross_compiling" = yes; then
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3249 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3250 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3252 int main () { int i; for (i = 0; i < 256; i++)
3253 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 ac_cv_header_stdc=no
3272 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3273 if test $ac_cv_header_stdc = yes; then
3274 cat >> confdefs.h <<\EOF
3275 #define STDC_HEADERS 1
3280 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3281 echo "configure:3282: checking for size_t" >&5
3282 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3297 ac_cv_type_size_t=yes
3300 ac_cv_type_size_t=no
3305 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3306 if test $ac_cv_type_size_t = no; then
3307 cat >> confdefs.h <<\EOF
3308 #define size_t unsigned
3313 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3314 echo "configure:3315: checking whether time.h and sys/time.h may both be included" >&5
3315 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #include <sys/time.h>
3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3330 ac_cv_header_time=yes
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 ac_cv_header_time=no
3340 echo "$ac_t""$ac_cv_header_time" 1>&6
3341 if test $ac_cv_header_time = yes; then
3342 cat >> confdefs.h <<\EOF
3343 #define TIME_WITH_SYS_TIME 1
3351 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3352 PLUGINS="${PLUGINS}"
3354 MMX_MODULES="yuvmmx idctmmx motionmmx"
3355 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3357 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3358 echo "configure:3359: checking if \$CC groks MMX inline assembly" >&5
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3367 if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3369 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3370 echo "$ac_t""yes" 1>&6
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3375 echo "$ac_t""no" 1>&6
3379 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3380 echo "configure:3381: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3392 echo "$ac_t""yes" 1>&6
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 echo "$ac_t""no" 1>&6
3402 for ac_hdr in winioctl.h
3404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_hdr" >&5
3407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3416 { (eval echo configure:3417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3418 if test -z "$ac_err"; then
3420 eval "ac_cv_header_$ac_safe=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_header_$ac_safe=no"
3430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3433 cat >> confdefs.h <<EOF
3434 #define $ac_tr_hdr 1
3437 CAN_BUILD_LIBDVDCSS=1
3440 echo "$ac_t""no" 1>&6
3445 for ac_hdr in sys/ioctl.h
3447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3449 echo "configure:3450: checking for $ac_hdr" >&5
3450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3459 { (eval echo configure:3460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3461 if test -z "$ac_err"; then
3463 eval "ac_cv_header_$ac_safe=yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 eval "ac_cv_header_$ac_safe=no"
3473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3476 cat >> confdefs.h <<EOF
3477 #define $ac_tr_hdr 1
3480 CAN_BUILD_LIBDVDCSS=1
3481 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3485 echo "configure:3486: checking for $ac_hdr" >&5
3486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3495 { (eval echo configure:3496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3497 if test -z "$ac_err"; then
3499 eval "ac_cv_header_$ac_safe=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 eval "ac_cv_header_$ac_safe=no"
3509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3512 cat >> confdefs.h <<EOF
3513 #define $ac_tr_hdr 1
3517 echo "$ac_t""no" 1>&6
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <sys/dvdio.h>
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 egrep "dvd_struct" >/dev/null 2>&1; then
3531 cat >> confdefs.h <<\EOF
3532 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 #include <sys/cdio.h>
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546 egrep "dvd_struct" >/dev/null 2>&1; then
3549 cat >> confdefs.h <<\EOF
3550 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3558 if test x$BSD_DVD_STRUCT = x1; then
3559 cat >> confdefs.h <<\EOF
3560 #define HAVE_BSD_DVD_STRUCT 1
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <linux/cdrom.h>
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "dvd_struct" >/dev/null 2>&1; then
3573 cat >> confdefs.h <<\EOF
3574 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3583 echo "$ac_t""no" 1>&6
3597 # Check whether --enable-ppro or --disable-ppro was given.
3598 if test "${enable_ppro+set}" = set; then
3599 enableval="$enable_ppro"
3600 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3602 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3606 # Check whether --enable-mmx or --disable-mmx was given.
3607 if test "${enable_mmx+set}" = set; then
3608 enableval="$enable_mmx"
3609 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3610 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3612 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx";
3613 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3617 # Check whether --enable-altivec or --disable-altivec was given.
3618 if test "${enable_altivec+set}" = set; then
3619 enableval="$enable_altivec"
3620 if test x$enableval = xyes; then ARCH="${ARCH} altivec"
3621 BUILTINS="${BUILTINS} idctaltivec"
3622 LIB_IDCTALTIVEC="-framework vecLib"
3626 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3629 # Check whether --enable-debug or --disable-debug was given.
3630 if test "${enable_debug+set}" = set; then
3631 enableval="$enable_debug"
3632 if test x$enableval = xyes; then DEBUG=1; fi
3637 # Check whether --enable-stats or --disable-stats was given.
3638 if test "${enable_stats+set}" = set; then
3639 enableval="$enable_stats"
3640 if test x$enableval = xyes; then STATS=1; fi
3645 # Check whether --enable-trace or --disable-trace was given.
3646 if test "${enable_trace+set}" = set; then
3647 enableval="$enable_trace"
3648 if test x$enableval = xyes; then TRACE=1; fi
3653 # Check whether --enable-profiling or --disable-profiling was given.
3654 if test "${enable_profiling+set}" = set; then
3655 enableval="$enable_profiling"
3656 if test x$enableval = xyes; then PROFILING=1; fi
3660 # Check whether --enable-optimizations or --disable-optimizations was given.
3661 if test "${enable_optimizations+set}" = set; then
3662 enableval="$enable_optimizations"
3663 if test x$enableval = xno; then OPTIMS=0; fi
3669 # Check whether --enable-pth or --disable-pth was given.
3670 if test "${enable_pth+set}" = set; then
3671 enableval="$enable_pth"
3672 if test x$enableval = xyes; then
3673 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3674 echo "configure:3675: checking for pth_init in -lpth" >&5
3675 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 ac_save_LIBS="$LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3710 cat >> confdefs.h <<EOF
3711 #define $ac_tr_lib 1
3717 echo "$ac_t""no" 1>&6
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "pth_init" >/dev/null 2>&1; then
3729 cat >> confdefs.h <<\EOF
3730 #define PTH_INIT_IN_PTH_H 1
3742 LIB="${LIB} ${THREAD_LIB}"
3746 # Check whether --with-dvdcss or --without-dvdcss was given.
3747 if test "${with_dvdcss+set}" = set; then
3748 withval="$with_dvdcss"
3749 if test "x$withval" == "xno"
3752 if test x${CAN_BUILD_LIBDVDCSS} = x1
3755 BUILTINS="${BUILTINS} dvd"
3756 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3757 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
3758 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
3761 # existing libdvdcss
3762 BUILTINS="${BUILTINS} dvd"
3763 if test "x$withval" != "xyes"
3765 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
3766 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
3768 LIB_DVD="${LIB_DVD} -ldvdcss"
3769 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
3772 # user didn't decide, we choose to use local libdvdcss and link statically
3773 if test x${CAN_BUILD_LIBDVDCSS} = x1
3777 BUILTINS="${BUILTINS} dvd"
3778 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3779 LIB_DVD="${LIB_DVD} lib/libdvdcss.a"
3780 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a"
3786 # Check whether --enable-css or --disable-css was given.
3787 if test "${enable_css+set}" = set; then
3788 enableval="$enable_css"
3789 if test x$enableval = xyes
3798 if test x${CSS} = x1
3800 cat >> confdefs.h <<\EOF
3806 # Check whether --enable-dummy or --disable-dummy was given.
3807 if test "${enable_dummy+set}" = set; then
3808 enableval="$enable_dummy"
3813 if test x$enable_dummy != xno
3815 BUILTINS="${BUILTINS} dummy"
3818 # Check whether --enable-null or --disable-null was given.
3819 if test "${enable_null+set}" = set; then
3820 enableval="$enable_null"
3825 if test x$enable_null != xno
3827 BUILTINS="${BUILTINS} null"
3830 # Check whether --enable-rc or --disable-rc was given.
3831 if test "${enable_rc+set}" = set; then
3832 enableval="$enable_rc"
3837 if test x$enable_rc != xno
3839 BUILTINS="${BUILTINS} rc"
3842 if test x$SYS = xbeos
3844 BUILTINS="${BUILTINS} beos"
3845 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3846 PLCFLAGS="${PLCFLAGS} -nostart"
3850 # Check whether --enable-dsp or --disable-dsp was given.
3851 if test "${enable_dsp+set}" = set; then
3852 enableval="$enable_dsp"
3857 if test x$enable_dsp != xno
3861 PLUGINS="${PLUGINS} dsp"
3865 # Check whether --enable-esd or --disable-esd was given.
3866 if test "${enable_esd+set}" = set; then
3867 enableval="$enable_esd"
3868 if test x$enable_esd = xyes
3870 # Extract the first word of "esd-config", so it can be a program name with args.
3871 set dummy esd-config; ac_word=$2
3872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3873 echo "configure:3874: checking for $ac_word" >&5
3874 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3877 case "$ESD_CONFIG" in
3879 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3882 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3887 for ac_dir in $ac_dummy; do
3888 test -z "$ac_dir" && ac_dir=.
3889 if test -f $ac_dir/$ac_word; then
3890 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3895 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3899 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3900 if test -n "$ESD_CONFIG"; then
3901 echo "$ac_t""$ESD_CONFIG" 1>&6
3903 echo "$ac_t""no" 1>&6
3906 if test x${ESD_CONFIG} != xno
3908 PLUGINS="${PLUGINS} esd"
3909 LIB_ESD="`${ESD_CONFIG} --libs`"
3915 # Check whether --enable-darwin or --disable-darwin was given.
3916 if test "${enable_darwin+set}" = set; then
3917 enableval="$enable_darwin"
3918 if test x$enable_darwin = xyes; then
3919 PLUGINS="${PLUGINS} darwin"
3920 LIB_DARWIN="-framework CoreAudio"
3925 # Check whether --enable-macosx or --disable-macosx was given.
3926 if test "${enable_macosx+set}" = set; then
3927 enableval="$enable_macosx"
3928 if test x$enable_macosx = xyes
3930 BUILTINS="${BUILTINS} macosx"
3931 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3932 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3933 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3936 for ac_hdr in Carbon/Carbon.h
3938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3940 echo "configure:3941: checking for $ac_hdr" >&5
3941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3950 { (eval echo configure:3951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3952 if test -z "$ac_err"; then
3954 eval "ac_cv_header_$ac_safe=yes"
3957 echo "configure: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
3960 eval "ac_cv_header_$ac_safe=no"
3964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3967 cat >> confdefs.h <<EOF
3968 #define $ac_tr_hdr 1
3970 BUILTINS="${BUILTINS} macosx"
3971 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3972 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3973 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3976 echo "$ac_t""no" 1>&6
3983 # Check whether --enable-qnx or --disable-qnx was given.
3984 if test "${enable_qnx+set}" = set; then
3985 enableval="$enable_qnx"
3989 if test x$enable_qnx != xno
3993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3995 echo "configure:3996: checking for $ac_hdr" >&5
3996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4005 { (eval echo configure:4006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4007 if test -z "$ac_err"; then
4009 eval "ac_cv_header_$ac_safe=yes"
4012 echo "configure: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4015 eval "ac_cv_header_$ac_safe=no"
4019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4020 echo "$ac_t""yes" 1>&6
4021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4022 cat >> confdefs.h <<EOF
4023 #define $ac_tr_hdr 1
4026 PLUGINS="${PLUGINS} qnx"
4027 LIB_QNX="-lasound -lph"
4030 echo "$ac_t""no" 1>&6
4036 # Check whether --enable-fb or --disable-fb was given.
4037 if test "${enable_fb+set}" = set; then
4038 enableval="$enable_fb"
4039 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
4043 # Check whether --with-ggi or --without-ggi was given.
4044 if test "${with_ggi+set}" = set; then
4046 if test "x$withval" != "xno"
4048 PLUGINS="${PLUGINS} ggi"
4049 if test "x$withval" != "xyes"
4051 LIB_GGI="-l"$withval
4059 # Check whether --enable-sdl or --disable-sdl was given.
4060 if test "${enable_sdl+set}" = set; then
4061 enableval="$enable_sdl"
4065 if test "x$withval" != "xno"
4067 cat >> confdefs.h <<\EOF
4068 #define HAVE_SDL_SDL_H 0
4071 cat >> confdefs.h <<\EOF
4072 #define HAVE_SDL11_SDL_H 0
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_SDL12_SDL_H 0
4079 # Extract the first word of "sdl-config", so it can be a program name with args.
4080 set dummy sdl-config; ac_word=$2
4081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4082 echo "configure:4083: checking for $ac_word" >&5
4083 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 case "$SDL_CONFIG" in
4088 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4091 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4096 for ac_dir in $ac_dummy; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f $ac_dir/$ac_word; then
4099 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4104 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4108 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4109 if test -n "$SDL_CONFIG"; then
4110 echo "$ac_t""$SDL_CONFIG" 1>&6
4112 echo "$ac_t""no" 1>&6
4115 SDL_HEADER="SDL/SDL.h"
4116 if test x${SDL_CONFIG} = xno; then
4117 # Extract the first word of "sdl11-config", so it can be a program name with args.
4118 set dummy sdl11-config; ac_word=$2
4119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4120 echo "configure:4121: checking for $ac_word" >&5
4121 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 case "$SDL_CONFIG" in
4126 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4129 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4134 for ac_dir in $ac_dummy; do
4135 test -z "$ac_dir" && ac_dir=.
4136 if test -f $ac_dir/$ac_word; then
4137 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4142 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4146 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4147 if test -n "$SDL_CONFIG"; then
4148 echo "$ac_t""$SDL_CONFIG" 1>&6
4150 echo "$ac_t""no" 1>&6
4153 SDL_HEADER="SDL11/SDL.h"
4155 if test x${SDL_CONFIG} = xno; then
4156 # Extract the first word of "sdl12-config", so it can be a program name with args.
4157 set dummy sdl12-config; ac_word=$2
4158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4159 echo "configure:4160: checking for $ac_word" >&5
4160 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 case "$SDL_CONFIG" in
4165 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4168 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4173 for ac_dir in $ac_dummy; do
4174 test -z "$ac_dir" && ac_dir=.
4175 if test -f $ac_dir/$ac_word; then
4176 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
4181 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4185 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
4186 if test -n "$SDL_CONFIG"; then
4187 echo "$ac_t""$SDL_CONFIG" 1>&6
4189 echo "$ac_t""no" 1>&6
4192 SDL_HEADER="SDL12/SDL.h"
4194 if test x${SDL_CONFIG} != xno; then
4195 for ac_hdr in $SDL_HEADER
4197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4199 echo "configure:4200: checking for $ac_hdr" >&5
4200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4209 { (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4211 if test -z "$ac_err"; then
4213 eval "ac_cv_header_$ac_safe=yes"
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 eval "ac_cv_header_$ac_safe=no"
4223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4226 cat >> confdefs.h <<EOF
4227 #define $ac_tr_hdr 1
4231 echo "$ac_t""no" 1>&6
4232 echo "The development package for SDL is not installed. Please install it"
4233 echo "and try again."
4238 if expr 1.1.5 \> $($SDL_CONFIG --version) >/dev/null
4240 echo "You need SDL version 1.1.5 or later."
4243 PLUGINS="${PLUGINS} sdl"
4244 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
4245 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
4246 elif test "x$withval" = "xyes"
4248 echo "I couldn't find the SDL package. You can download libSDL from"
4249 echo "http://www.libsdl.org/."
4254 # Check whether --with-directx or --without-directx was given.
4255 if test "${with_directx+set}" = set; then
4256 withval="$with_directx"
4257 if test "x$withval" != "xno"
4259 PLUGINS="${PLUGINS} directx"
4260 if test "x$withval" != "xyes"
4262 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4263 INCLUDE="${INCLUDE} -I"$withval"/include"
4265 for ac_hdr in directx.h
4267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4269 echo "configure:4270: checking for $ac_hdr" >&5
4270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4279 { (eval echo configure:4280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4281 if test -z "$ac_err"; then
4283 eval "ac_cv_header_$ac_safe=yes"
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 eval "ac_cv_header_$ac_safe=no"
4293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4294 echo "$ac_t""yes" 1>&6
4295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4296 cat >> confdefs.h <<EOF
4297 #define $ac_tr_hdr 1
4301 echo "$ac_t""no" 1>&6
4302 echo "Cannot find DirectX headers !"; exit
4306 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4311 if test "x$withval" = "x"
4313 for ac_hdr in directx.h
4315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4317 echo "configure:4318: checking for $ac_hdr" >&5
4318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4327 { (eval echo configure:4328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4329 if test -z "$ac_err"; then
4331 eval "ac_cv_header_$ac_safe=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 eval "ac_cv_header_$ac_safe=no"
4341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4344 cat >> confdefs.h <<EOF
4345 #define $ac_tr_hdr 1
4347 PLUGINS="${PLUGINS} directx"
4348 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4350 echo "$ac_t""no" 1>&6
4356 # Check whether --with-glide or --without-glide was given.
4357 if test "${with_glide+set}" = set; then
4358 withval="$with_glide"
4359 if test "x$withval" != "xno"
4361 PLUGINS="${PLUGINS} glide"
4362 if test "x$withval" != "xyes"
4364 LIB_GLIDE="-l"$withval" -lm"
4366 LIB_GLIDE="-lglide2x -lm"
4372 # Check whether --enable-ncurses or --disable-ncurses was given.
4373 if test "${enable_ncurses+set}" = set; then
4374 enableval="$enable_ncurses"
4375 if test x$enable_ncurses = xyes; then
4376 PLUGINS="${PLUGINS} ncurses"
4377 LIB_NCURSES="-lncurses"
4382 # Check whether --enable-qt or --disable-qt was given.
4383 if test "${enable_qt+set}" = set; then
4384 enableval="$enable_qt"
4385 if test x$enable_qt = xyes; then
4386 PLUGINS="${PLUGINS} qt"
4387 ALIASES="${ALIASES} qvlc"
4388 LIB_QT="-lqt -L${QTDIR}/lib"
4389 if test -x ${QTDIR}/bin/moc
4391 MOC=${QTDIR}/bin/moc
4399 # Check whether --enable-kde or --disable-kde was given.
4400 if test "${enable_kde+set}" = set; then
4401 enableval="$enable_kde"
4402 if test x$enable_kde = xyes; then
4403 PLUGINS="${PLUGINS} kde"
4404 ALIASES="${ALIASES} kvlc"
4410 # Check whether --enable-gnome or --disable-gnome was given.
4411 if test "${enable_gnome+set}" = set; then
4412 enableval="$enable_gnome"
4413 if test x$enable_gnome = xyes; then
4414 PLUGINS="${PLUGINS} gnome"
4415 ALIASES="${ALIASES} gnome-vlc"
4416 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4421 # Check whether --enable-gtk or --disable-gtk was given.
4422 if test "${enable_gtk+set}" = set; then
4423 enableval="$enable_gtk"
4427 if test x$enable_gtk != xno; then
4428 # Extract the first word of "gtk-config", so it can be a program name with args.
4429 set dummy gtk-config; ac_word=$2
4430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_word" >&5
4432 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 case "$GTK_CONFIG" in
4437 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4440 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4445 for ac_dir in $ac_dummy; do
4446 test -z "$ac_dir" && ac_dir=.
4447 if test -f $ac_dir/$ac_word; then
4448 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4453 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4457 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4458 if test -n "$GTK_CONFIG"; then
4459 echo "$ac_t""$GTK_CONFIG" 1>&6
4461 echo "$ac_t""no" 1>&6
4464 if test x${GTK_CONFIG} != xno; then
4465 PLUGINS="${PLUGINS} gtk"
4466 ALIASES="${ALIASES} gvlc"
4467 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4468 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4472 # Check whether --enable-x11 or --disable-x11 was given.
4473 if test "${enable_x11+set}" = set; then
4474 enableval="$enable_x11"
4478 if test x$enable_x11 != xno; then
4479 if test x$x_includes = xNONE; then
4480 x_includes=/usr/X11R6/include
4482 if test x$x_libraries = xNONE; then
4483 x_libraries=/usr/X11R6/lib
4485 saved_CPPFLAGS=$CPPFLAGS
4486 CPPFLAGS="$CPPFLAGS -I$x_includes"
4487 for ac_hdr in X11/Xlib.h
4489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4491 echo "configure:4492: checking for $ac_hdr" >&5
4492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4501 { (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4503 if test -z "$ac_err"; then
4505 eval "ac_cv_header_$ac_safe=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_header_$ac_safe=no"
4515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4518 cat >> confdefs.h <<EOF
4519 #define $ac_tr_hdr 1
4522 PLUGINS="${PLUGINS} x11"
4523 LIB_X11="-L$x_libraries -lX11 -lXext"
4524 CFLAGS_X11="-I$x_includes"
4526 CPPFLAGS=$saved_CPPFLAGS
4528 echo "$ac_t""no" 1>&6
4534 # Check whether --enable-xvideo or --disable-xvideo was given.
4535 if test "${enable_xvideo+set}" = set; then
4536 enableval="$enable_xvideo"
4540 if test x$enable_xvideo != xno; then
4541 if test x$x_includes = xNONE; then
4542 x_includes=/usr/X11R6/include
4544 if test x$x_libraries = xNONE; then
4545 x_libraries=/usr/X11R6/lib
4547 saved_CPPFLAGS=$CPPFLAGS
4548 CPPFLAGS="$CPPFLAGS -I$x_includes"
4549 for ac_hdr in X11/extensions/Xv.h
4551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4553 echo "configure:4554: checking for $ac_hdr" >&5
4554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4563 { (eval echo configure:4564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4565 if test -z "$ac_err"; then
4567 eval "ac_cv_header_$ac_safe=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 eval "ac_cv_header_$ac_safe=no"
4577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4580 cat >> confdefs.h <<EOF
4581 #define $ac_tr_hdr 1
4584 PLUGINS="${PLUGINS} xvideo"
4585 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4586 CFLAGS_X11="-I$x_includes"
4588 CPPFLAGS=$saved_CPPFLAGS
4590 echo "$ac_t""no" 1>&6
4596 # Check whether --enable-alsa or --disable-alsa was given.
4597 if test "${enable_alsa+set}" = set; then
4598 enableval="$enable_alsa"
4599 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4601 echo "configure:4602: checking for sys/asoundlib.h" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <sys/asoundlib.h>
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4615 eval "ac_cv_header_$ac_safe=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 eval "ac_cv_header_$ac_safe=no"
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626 echo "$ac_t""yes" 1>&6
4627 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4628 echo "configure:4629: checking for main in -lasound" >&5
4629 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 ac_save_LIBS="$LIBS"
4634 LIBS="-lasound $LIBS"
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4645 eval "ac_cv_lib_$ac_lib_var=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 eval "ac_cv_lib_$ac_lib_var=no"
4653 LIBS="$ac_save_LIBS"
4656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4660 echo "$ac_t""no" 1>&6
4665 echo "$ac_t""no" 1>&6
4668 if test x$have_alsa = xtrue; then
4669 PLUGINS="${PLUGINS} alsa"
4731 cat > confcache <<\EOF
4732 # This file is a shell script that caches the results of configure
4733 # tests run on this system so they can be shared between configure
4734 # scripts and configure runs. It is not useful on other systems.
4735 # If it contains results you don't want to keep, you may remove or edit it.
4737 # By default, configure uses ./config.cache as the cache file,
4738 # creating it if it does not exist already. You can give configure
4739 # the --cache-file=FILE option to use a different cache file; that is
4740 # what configure does when it calls configure scripts in
4741 # subdirectories, so they share the cache.
4742 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4743 # config.status only pays attention to the cache file if you give it the
4744 # --recheck option to rerun configure.
4747 # The following way of writing the cache mishandles newlines in values,
4748 # but we know of no workaround that is simple, portable, and efficient.
4749 # So, don't put newlines in cache variables' values.
4750 # Ultrix sh set writes to stderr and can't be redirected directly,
4751 # and sets the high bit in the cache file unless we assign to the vars.
4753 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4755 # `set' does not quote correctly, so add quotes (double-quote substitution
4756 # turns \\\\ into \\, and sed turns \\ into \).
4758 -e "s/'/'\\\\''/g" \
4759 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4762 # `set' quotes correctly as required by POSIX, so do not add quotes.
4763 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4766 if cmp -s $cache_file confcache; then
4769 if test -w $cache_file; then
4770 echo "updating cache $cache_file"
4771 cat confcache > $cache_file
4773 echo "not updating unwritable cache $cache_file"
4778 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4781 # Let make expand exec_prefix.
4782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4784 # Any assignment to VPATH causes Sun make to only execute
4785 # the first set of double-colon rules, so remove it if not needed.
4786 # If there is a colon in the path, we need to keep it.
4787 if test "x$srcdir" = x.; then
4788 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4791 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4793 DEFS=-DHAVE_CONFIG_H
4795 # Without the "./", some shells look in PATH for config.status.
4796 : ${CONFIG_STATUS=./config.status}
4798 echo creating $CONFIG_STATUS
4799 rm -f $CONFIG_STATUS
4800 cat > $CONFIG_STATUS <<EOF
4802 # Generated automatically by configure.
4803 # Run this file to recreate the current configuration.
4804 # This directory was configured as follows,
4805 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4807 # $0 $ac_configure_args
4809 # Compiler output produced by configure, useful for debugging
4810 # configure, is in ./config.log if it exists.
4812 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4815 case "\$ac_option" in
4816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4817 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4818 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4819 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4820 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4822 -help | --help | --hel | --he | --h)
4823 echo "\$ac_cs_usage"; exit 0 ;;
4824 *) echo "\$ac_cs_usage"; exit 1 ;;
4828 ac_given_srcdir=$srcdir
4829 ac_given_INSTALL="$INSTALL"
4831 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4833 cat >> $CONFIG_STATUS <<EOF
4835 # Protect against being on the right side of a sed subst in config.status.
4836 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4837 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4841 s%@CFLAGS@%$CFLAGS%g
4842 s%@CPPFLAGS@%$CPPFLAGS%g
4843 s%@CXXFLAGS@%$CXXFLAGS%g
4844 s%@FFLAGS@%$FFLAGS%g
4846 s%@LDFLAGS@%$LDFLAGS%g
4848 s%@exec_prefix@%$exec_prefix%g
4849 s%@prefix@%$prefix%g
4850 s%@program_transform_name@%$program_transform_name%g
4851 s%@bindir@%$bindir%g
4852 s%@sbindir@%$sbindir%g
4853 s%@libexecdir@%$libexecdir%g
4854 s%@datadir@%$datadir%g
4855 s%@sysconfdir@%$sysconfdir%g
4856 s%@sharedstatedir@%$sharedstatedir%g
4857 s%@localstatedir@%$localstatedir%g
4858 s%@libdir@%$libdir%g
4859 s%@includedir@%$includedir%g
4860 s%@oldincludedir@%$oldincludedir%g
4861 s%@infodir@%$infodir%g
4862 s%@mandir@%$mandir%g
4864 s%@host_alias@%$host_alias%g
4865 s%@host_cpu@%$host_cpu%g
4866 s%@host_vendor@%$host_vendor%g
4867 s%@host_os@%$host_os%g
4868 s%@VLC_VERSION@%$VLC_VERSION%g
4869 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
4870 s%@VLC_CODENAME@%$VLC_CODENAME%g
4871 s%@SET_MAKE@%$SET_MAKE%g
4874 s%@RANLIB@%$RANLIB%g
4875 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4876 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4877 s%@INSTALL_DATA@%$INSTALL_DATA%g
4878 s%@ESD_CONFIG@%$ESD_CONFIG%g
4879 s%@SDL_CONFIG@%$SDL_CONFIG%g
4880 s%@GTK_CONFIG@%$GTK_CONFIG%g
4883 s%@PLUGINS@%$PLUGINS%g
4884 s%@BUILTINS@%$BUILTINS%g
4885 s%@ALIASES@%$ALIASES%g
4886 s%@DEFINE@%$DEFINE%g
4887 s%@INCLUDE@%$INCLUDE%g
4892 s%@PROFILING@%$PROFILING%g
4893 s%@OPTIMS@%$OPTIMS%g
4894 s%@GETOPT@%$GETOPT%g
4897 s%@WINDRES@%$WINDRES%g
4898 s%@LCFLAGS@%$LCFLAGS%g
4899 s%@PLCFLAGS@%$PLCFLAGS%g
4901 s%@LIB_ALSA@%$LIB_ALSA%g
4902 s%@LIB_BEOS@%$LIB_BEOS%g
4903 s%@LIB_DARWIN@%$LIB_DARWIN%g
4904 s%@LIB_DVD@%$LIB_DVD%g
4905 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
4906 s%@LIB_ESD@%$LIB_ESD%g
4907 s%@LIB_GGI@%$LIB_GGI%g
4908 s%@LIB_GLIDE@%$LIB_GLIDE%g
4909 s%@LIB_GNOME@%$LIB_GNOME%g
4910 s%@LIB_GTK@%$LIB_GTK%g
4911 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4912 s%@LIB_KDE@%$LIB_KDE%g
4913 s%@LIB_MACOSX@%$LIB_MACOSX%g
4914 s%@LIB_QNX@%$LIB_QNX%g
4915 s%@LIB_NCURSES@%$LIB_NCURSES%g
4916 s%@LIB_QT@%$LIB_QT%g
4917 s%@LIB_TS@%$LIB_TS%g
4918 s%@LIB_SDL@%$LIB_SDL%g
4919 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4920 s%@LIB_X11@%$LIB_X11%g
4921 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4922 s%@LIB_YUV@%$LIB_YUV%g
4923 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4924 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
4925 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4926 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
4927 s%@CFLAGS_X11@%$CFLAGS_X11%g
4928 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
4933 cat >> $CONFIG_STATUS <<\EOF
4935 # Split the substitutions into bite-sized pieces for seds with
4936 # small command number limits, like on Digital OSF/1 and HP-UX.
4937 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4938 ac_file=1 # Number of current file.
4939 ac_beg=1 # First line for current file.
4940 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4943 while $ac_more_lines; do
4944 if test $ac_beg -gt 1; then
4945 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4947 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4949 if test ! -s conftest.s$ac_file; then
4951 rm -f conftest.s$ac_file
4953 if test -z "$ac_sed_cmds"; then
4954 ac_sed_cmds="sed -f conftest.s$ac_file"
4956 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4958 ac_file=`expr $ac_file + 1`
4960 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4963 if test -z "$ac_sed_cmds"; then
4968 cat >> $CONFIG_STATUS <<EOF
4970 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4972 cat >> $CONFIG_STATUS <<\EOF
4973 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4976 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4977 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4978 *) ac_file_in="${ac_file}.in" ;;
4981 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4983 # Remove last slash and all that follows it. Not all systems have dirname.
4984 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4985 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4986 # The file is in a subdirectory.
4987 test ! -d "$ac_dir" && mkdir "$ac_dir"
4988 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4989 # A "../" for each directory in $ac_dir_suffix.
4990 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4992 ac_dir_suffix= ac_dots=
4995 case "$ac_given_srcdir" in
4997 if test -z "$ac_dots"; then top_srcdir=.
4998 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4999 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5001 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5002 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5005 case "$ac_given_INSTALL" in
5006 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5007 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5010 echo creating "$ac_file"
5012 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5014 *Makefile*) ac_comsub="1i\\
5015 # $configure_input" ;;
5019 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5021 s%@configure_input@%$configure_input%g
5022 s%@srcdir@%$srcdir%g
5023 s%@top_srcdir@%$top_srcdir%g
5024 s%@INSTALL@%$INSTALL%g
5025 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5029 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5030 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5032 # ac_d sets the value in "#define NAME VALUE" lines.
5033 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5034 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5037 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5038 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5039 ac_uB='\([ ]\)%\1#\2define\3'
5042 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5043 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5044 ac_eB='$%\1#\2define\3'
5048 if test "${CONFIG_HEADERS+set}" != set; then
5050 cat >> $CONFIG_STATUS <<EOF
5051 CONFIG_HEADERS="include/defs.h"
5053 cat >> $CONFIG_STATUS <<\EOF
5055 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5056 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5058 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5059 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5060 *) ac_file_in="${ac_file}.in" ;;
5063 echo creating $ac_file
5065 rm -f conftest.frag conftest.in conftest.out
5066 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5067 cat $ac_file_inputs > conftest.in
5071 # Transform confdefs.h into a sed script conftest.vals that substitutes
5072 # the proper values into config.h.in to produce config.h. And first:
5073 # Protect against being on the right side of a sed subst in config.status.
5074 # Protect against being in an unquoted here document in config.status.
5076 cat > conftest.hdr <<\EOF
5079 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5083 sed -n -f conftest.hdr confdefs.h > conftest.vals
5086 # This sed command replaces #undef with comments. This is necessary, for
5087 # example, in the case of _POSIX_SOURCE, which is predefined and required
5088 # on some systems where configure will not decide to define it.
5089 cat >> conftest.vals <<\EOF
5090 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5093 # Break up conftest.vals because some shells have a limit on
5094 # the size of here documents, and old seds have small limits too.
5099 ac_lines=`grep -c . conftest.vals`
5100 # grep -c gives empty output for an empty file on some AIX systems.
5101 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5102 # Write a limited-size here document to conftest.frag.
5103 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5104 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5106 sed -f conftest.frag conftest.in > conftest.out
5108 mv conftest.out conftest.in
5110 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5112 mv conftest.tail conftest.vals
5116 cat >> $CONFIG_STATUS <<\EOF
5117 rm -f conftest.frag conftest.h
5118 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5119 cat conftest.in >> conftest.h
5121 if cmp -s $ac_file conftest.h 2>/dev/null; then
5122 echo "$ac_file is unchanged"
5125 # Remove last slash and all that follows it. Not all systems have dirname.
5126 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5127 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5128 # The file is in a subdirectory.
5129 test ! -d "$ac_dir" && mkdir "$ac_dir"
5132 mv conftest.h $ac_file
5137 cat >> $CONFIG_STATUS <<EOF
5140 cat >> $CONFIG_STATUS <<\EOF
5144 chmod +x $CONFIG_STATUS
5145 rm -fr confdefs* $ac_clean_files
5146 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5150 global configuration
5151 --------------------
5153 architecture : ${ARCH}
5154 optimizations : ${OPTIMS}
5158 vlc version : ${VLC_VERSION}
5159 debug mode : ${DEBUG}
5160 statistics : ${STATS}
5161 trace mode : ${TRACE}
5162 profiling : ${PROFILING}
5163 need builtin getopt : ${GETOPT}
5164 built-in modules :${BUILTINS}
5165 plugin modules :${PLUGINS}
5166 vlc aliases :${ALIASES}
5168 libdvdcss configuration
5169 -----------------------
5170 need to be built : ${LOCAL_LIBDVDCSS}"
5172 if test x${LOCAL_LIBDVDCSS} = x1
5174 echo "link statically : ${STATIC_LIBDVDCSS}
5175 CSS decryption : ${CSS}"
5179 You may now tune Makefile.opts at your convenience. To build vlc, type
5180 \`make vlc'. To build libdvdcss only, type \`make libdvdcss'."