3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
30 --enable-debug Enable debug mode (default disabled)"
32 --enable-trace Enable trace mode (default disabled)"
34 --enable-gprof Enable gprof profiling (default disabled)"
36 --enable-cprof Enable cprof profiling (default disabled)"
38 --disable-optimizations Disable compiler optimizations (default enabled)"
40 --enable-pth Enable GNU Pth support (default disabled)"
42 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
43 or 'local-static', 'local-shared', or a path to
44 another libdvdcss such as '/usr/local'
45 (default 'local-static')"
47 --enable-dvdread Enable dvdread support (default disabled)"
49 --enable-vcd VCD support for Linux (default enabled)"
51 --disable-dummy dummy module (default enabled)"
53 --disable-null Null module (default enabled)"
55 --disable-rc Remote Control module (default enabled)"
57 --with-mad[=PATH] libmad module (default disabled)"
59 --disable-dsp Linux /dev/dsp support (default enabled)"
61 --enable-esd Esound library support (default disabled)"
63 --enable-arts aRts sound server (default disabled)"
65 --enable-macosx MacOS X support (default enabled on MacOS X)"
67 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
69 --enable-fb Linux framebuffer support (default disabled)"
71 --enable-mga Linux kernel Matrox support (default disabled)"
73 --with-ggi[=name] GGI support (default disabled)"
75 --disable-sdl SDL support (default enabled)"
77 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
79 --disable-directx Windows DirectX support (default enabled on WIN32)"
81 --with-directx-path=path Windows DirectX headers and libraries"
83 --with-glide[=name] Glide (3dfx) support (default disabled)"
85 --enable-ncurses ncurses interface support (default disabled)"
87 --enable-qt Qt interface support (default disabled)"
89 --enable-kde KDE interface support (default disabled)"
91 --enable-gnome Gnome interface support (default disabled)"
93 --disable-gtk Gtk+ support (default enabled)"
95 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
97 --disable-x11 X11 support (default enabled)"
99 --disable-xvideo XVideo support (default enabled)"
101 --enable-alsa Alsa sound drivers support (Only for linux)
104 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
106 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
112 cache_file=./config.cache
121 program_transform_name=s,x,x,
129 bindir='${exec_prefix}/bin'
130 sbindir='${exec_prefix}/sbin'
131 libexecdir='${exec_prefix}/libexec'
132 datadir='${prefix}/share'
133 sysconfdir='${prefix}/etc'
134 sharedstatedir='${prefix}/com'
135 localstatedir='${prefix}/var'
136 libdir='${exec_prefix}/lib'
137 includedir='${prefix}/include'
138 oldincludedir='/usr/include'
139 infodir='${prefix}/info'
140 mandir='${prefix}/man'
142 # Initialize some other variables.
145 SHELL=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
153 # If the previous option needs an argument, assign it.
154 if test -n "$ac_prev"; then
155 eval "$ac_prev=\$ac_option"
161 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
165 # Accept the important Cygnus configure options, so we can diagnose typos.
169 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
172 bindir="$ac_optarg" ;;
174 -build | --build | --buil | --bui | --bu)
176 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
177 build="$ac_optarg" ;;
179 -cache-file | --cache-file | --cache-fil | --cache-fi \
180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
181 ac_prev=cache_file ;;
182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
184 cache_file="$ac_optarg" ;;
186 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
188 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
190 datadir="$ac_optarg" ;;
192 -disable-* | --disable-*)
193 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}=no" ;;
201 -enable-* | --enable-*)
202 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
212 eval "enable_${ac_feature}='$ac_optarg'" ;;
214 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
215 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
216 | --exec | --exe | --ex)
217 ac_prev=exec_prefix ;;
218 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
219 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
220 | --exec=* | --exe=* | --ex=*)
221 exec_prefix="$ac_optarg" ;;
223 -gas | --gas | --ga | --g)
224 # Obsolete; use --with-gas.
227 -help | --help | --hel | --he)
228 # Omit some internal or obsolete options to make the list less imposing.
229 # This message is too long to be a string in the A/UX 3.1 sh.
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
234 --cache-file=FILE cache test results in FILE
235 --help print this message
236 --no-create do not create output files
237 --quiet, --silent do not print \`checking...' messages
238 --version print the version of autoconf that created configure
239 Directory and file names:
240 --prefix=PREFIX install architecture-independent files in PREFIX
242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
244 --bindir=DIR user executables in DIR [EPREFIX/bin]
245 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
246 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
247 --datadir=DIR read-only architecture-independent data in DIR
249 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
250 --sharedstatedir=DIR modifiable architecture-independent data in DIR
252 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
253 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
254 --includedir=DIR C header files in DIR [PREFIX/include]
255 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
256 --infodir=DIR info documentation in DIR [PREFIX/info]
257 --mandir=DIR man documentation in DIR [PREFIX/man]
258 --srcdir=DIR find the sources in DIR [configure dir or ..]
259 --program-prefix=PREFIX prepend PREFIX to installed program names
260 --program-suffix=SUFFIX append SUFFIX to installed program names
261 --program-transform-name=PROGRAM
262 run sed PROGRAM on installed program names
266 --build=BUILD configure for building on BUILD [BUILD=HOST]
267 --host=HOST configure for HOST [guessed]
268 --target=TARGET configure for TARGET [TARGET=HOST]
269 Features and packages:
270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
274 --x-includes=DIR X include files are in DIR
275 --x-libraries=DIR X library files are in DIR
277 if test -n "$ac_help"; then
278 echo "--enable and --with options recognized:$ac_help"
282 -host | --host | --hos | --ho)
284 -host=* | --host=* | --hos=* | --ho=*)
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir="$ac_optarg" ;;
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir="$ac_optarg" ;;
299 -libdir | --libdir | --libdi | --libd)
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 libdir="$ac_optarg" ;;
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir="$ac_optarg" ;;
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir="$ac_optarg" ;;
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 mandir="$ac_optarg" ;;
326 # Obsolete; use --without-fp.
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir="$ac_optarg" ;;
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 prefix="$ac_optarg" ;;
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix="$ac_optarg" ;;
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix="$ac_optarg" ;;
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name="$ac_optarg" ;;
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
390 sbindir="$ac_optarg" ;;
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
401 sharedstatedir="$ac_optarg" ;;
403 -site | --site | --sit)
405 -site=* | --site=* | --sit=*)
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 srcdir="$ac_optarg" ;;
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir="$ac_optarg" ;;
420 -target | --target | --targe | --targ | --tar | --ta | --t)
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target="$ac_optarg" ;;
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
428 -version | --version | --versio | --versi | --vers)
429 echo "configure generated by autoconf version 2.13"
433 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
451 ac_package=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes="$ac_optarg" ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries="$ac_optarg" ;;
472 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
476 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477 echo "configure: warning: $ac_option: invalid host type" 1>&2
479 if test "x$nonopt" != xNONE; then
480 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
488 if test -n "$ac_prev"; then
489 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
494 # File descriptor usage:
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
520 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
521 | --no-cr | --no-c) ;;
522 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
524 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
526 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
531 # Only set these to C if already set. These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
536 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file=include/main.h
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
567 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
570 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574 if test "x$prefix" != xNONE; then
575 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
577 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
580 for ac_site_file in $CONFIG_SITE; do
581 if test -r "$ac_site_file"; then
582 echo "loading site script $ac_site_file"
587 if test -r "$cache_file"; then
588 echo "loading cache $cache_file"
591 echo "creating cache $cache_file"
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp='$CPP $CPPFLAGS'
598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling=$ac_cv_prog_cc_cross
604 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
613 ac_n= ac_c='\c' ac_t=
620 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621 if test -f $ac_dir/install-sh; then
623 ac_install_sh="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh; then
627 ac_install_sh="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
634 ac_config_guess=$ac_aux_dir/config.guess
635 ac_config_sub=$ac_aux_dir/config.sub
636 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
639 # Do some error checking and defaulting for the host and target type.
641 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
644 # 1. You are not allowed to specify --host, --target, and nonopt at the
646 # 2. Host defaults to nonopt.
647 # 3. If nonopt is not specified, then host defaults to the current host,
648 # as determined by config.guess.
649 # 4. Target and build default to nonopt.
650 # 5. If nonopt is not specified, then target and build default to host.
652 # The aliases save the names the user supplied, while $host etc.
653 # will get canonicalized.
654 case $host---$target---$nonopt in
655 NONE---*---* | *---NONE---* | *---*---NONE) ;;
656 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
660 # Make sure we can run config.sub.
661 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
662 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
665 echo $ac_n "checking host system type""... $ac_c" 1>&6
666 echo "configure:667: checking host system type" >&5
669 case "$host_alias" in
673 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
674 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
676 *) host_alias=$nonopt ;;
680 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
681 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$host" 1>&6
686 echo $ac_n "checking target system type""... $ac_c" 1>&6
687 echo "configure:688: checking target system type" >&5
690 case "$target_alias" in
693 NONE) target_alias=$host_alias ;;
694 *) target_alias=$nonopt ;;
698 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
699 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$target" 1>&6
704 echo $ac_n "checking build system type""... $ac_c" 1>&6
705 echo "configure:706: checking build system type" >&5
708 case "$build_alias" in
711 NONE) build_alias=$host_alias ;;
712 *) build_alias=$nonopt ;;
716 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
717 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo "$ac_t""$build" 1>&6
722 test "$host_alias" != "$target_alias" &&
723 test "$program_prefix$program_suffix$program_transform_name" = \
725 program_prefix=${target_alias}-
729 if test -r src/interface/main.c; then
731 VLC_VERSION="0.2.92-dev"
736 if test -r extras/libdvdcss/libdvdcss.c; then
738 LIBDVDCSS_VERSION="1.0.1-dev"
740 if test -r extras/libdvdcss/csskeys.h; then
741 cat >> confdefs.h <<\EOF
742 #define HAVE_CSSKEYS 1
748 save_CFLAGS="${CFLAGS}"
749 save_LDFLAGS="${LDFLAGS}"
751 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
752 echo "configure:753: checking whether ${MAKE-make} sets \${MAKE}" >&5
753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
754 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
757 cat > conftestmake <<\EOF
759 @echo 'ac_maketemp="${MAKE}"'
761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
762 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
763 if test -n "$ac_maketemp"; then
764 eval ac_cv_prog_make_${ac_make}_set=yes
766 eval ac_cv_prog_make_${ac_make}_set=no
770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
771 echo "$ac_t""yes" 1>&6
774 echo "$ac_t""no" 1>&6
775 SET_MAKE="MAKE=${MAKE-make}"
778 # Extract the first word of "gcc", so it can be a program name with args.
779 set dummy gcc; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$CC"; then
786 ac_cv_prog_CC="$CC" # Let the user override the test.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
801 if test -n "$CC"; then
802 echo "$ac_t""$CC" 1>&6
804 echo "$ac_t""no" 1>&6
807 if test -z "$CC"; then
808 # Extract the first word of "cc", so it can be a program name with args.
809 set dummy cc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
824 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
833 if test $ac_prog_rejected = yes; then
834 # We found a bogon in the path, so make sure we never use it.
835 set dummy $ac_cv_prog_CC
837 if test $# -gt 0; then
838 # We chose a different compiler from the bogus one.
839 # However, it has the same basename, so the bogon will be chosen
840 # first if we set CC to just the basename; use the full file name.
842 set dummy "$ac_dir/$ac_word" "$@"
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
853 echo "$ac_t""no" 1>&6
856 if test -z "$CC"; then
859 # Extract the first word of "cl", so it can be a program name with args.
860 set dummy cl; ac_word=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 if test -n "$CC"; then
867 ac_cv_prog_CC="$CC" # Let the user override the test.
869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
871 for ac_dir in $ac_dummy; do
872 test -z "$ac_dir" && ac_dir=.
873 if test -f $ac_dir/$ac_word; then
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
890 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
894 echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp='$CPP $CPPFLAGS'
899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling=$ac_cv_prog_cc_cross
903 cat > conftest.$ac_ext << EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
911 ac_cv_prog_cc_works=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (./conftest; exit) 2>/dev/null; then
914 ac_cv_prog_cc_cross=no
916 ac_cv_prog_cc_cross=yes
919 echo "configure: failed program was:" >&5
920 cat conftest.$ac_ext >&5
921 ac_cv_prog_cc_works=no
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
932 if test $ac_cv_prog_cc_works = no; then
933 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
938 cross_compiling=$ac_cv_prog_cc_cross
940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
941 echo "configure:942: checking whether we are using GNU C" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 cat > conftest.c <<EOF
950 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
957 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
959 if test $ac_cv_prog_gcc = yes; then
965 ac_test_CFLAGS="${CFLAGS+set}"
966 ac_save_CFLAGS="$CFLAGS"
968 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
969 echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 echo 'void f(){}' > conftest.c
974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
984 if test "$ac_test_CFLAGS" = set; then
985 CFLAGS="$ac_save_CFLAGS"
986 elif test $ac_cv_prog_cc_g = yes; then
987 if test "$GCC" = yes; then
993 if test "$GCC" = yes; then
1000 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1001 echo "configure:1002: checking how to run the C preprocessor" >&5
1002 # On Suns, sometimes $CPP names a directory.
1003 if test -n "$CPP" && test -d "$CPP"; then
1006 if test -z "$CPP"; then
1007 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 # This must be in double quotes, not single quotes, because CPP may get
1011 # substituted into the Makefile and "${CC-cc}" will confuse make.
1013 # On the NeXT, cc -E runs the code through the compiler's parser,
1014 # not just through cpp.
1015 cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1022 { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1024 if test -z "$ac_err"; then
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1031 CPP="${CC-cc} -E -traditional-cpp"
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1041 if test -z "$ac_err"; then
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1048 CPP="${CC-cc} -nologo -E"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1072 ac_cv_prog_CPP="$CPP"
1074 CPP="$ac_cv_prog_CPP"
1076 ac_cv_prog_CPP="$CPP"
1078 echo "$ac_t""$CPP" 1>&6
1081 ALL_LINGUAS="de fr ru"
1083 cat >> confdefs.h <<EOF
1084 #define PACKAGE "vlc"
1087 cat >> confdefs.h <<EOF
1088 #define VERSION "$VLC_VERSION"
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_RANLIB="ranlib"
1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116 echo "$ac_t""$RANLIB" 1>&6
1118 echo "$ac_t""no" 1>&6
1122 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1123 echo "configure:1124: checking for strerror in -lcposix" >&5
1124 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 ac_save_LIBS="$LIBS"
1129 LIBS="-lcposix $LIBS"
1130 cat > conftest.$ac_ext <<EOF
1131 #line 1132 "configure"
1132 #include "confdefs.h"
1133 /* Override any gcc2 internal prototype to avoid an error. */
1134 /* We use char because int might match the return type of a gcc2
1135 builtin and then its argument prototype would still apply. */
1142 if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1144 eval "ac_cv_lib_$ac_lib_var=yes"
1146 echo "configure: failed program was:" >&5
1147 cat conftest.$ac_ext >&5
1149 eval "ac_cv_lib_$ac_lib_var=no"
1152 LIBS="$ac_save_LIBS"
1155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1156 echo "$ac_t""yes" 1>&6
1157 LIBS="$LIBS -lcposix"
1159 echo "$ac_t""no" 1>&6
1164 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1165 echo "configure:1166: checking for ANSI C header files" >&5
1166 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 cat > conftest.$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1178 { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1180 if test -z "$ac_err"; then
1182 ac_cv_header_stdc=yes
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1188 ac_cv_header_stdc=no
1192 if test $ac_cv_header_stdc = yes; then
1193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1200 egrep "memchr" >/dev/null 2>&1; then
1204 ac_cv_header_stdc=no
1210 if test $ac_cv_header_stdc = yes; then
1211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1212 cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218 egrep "free" >/dev/null 2>&1; then
1222 ac_cv_header_stdc=no
1228 if test $ac_cv_header_stdc = yes; then
1229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1230 if test "$cross_compiling" = yes; then
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1237 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1238 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1240 int main () { int i; for (i = 0; i < 256; i++)
1241 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1245 if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1252 ac_cv_header_stdc=no
1260 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1261 if test $ac_cv_header_stdc = yes; then
1262 cat >> confdefs.h <<\EOF
1263 #define STDC_HEADERS 1
1268 echo $ac_n "checking for working const""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working const" >&5
1270 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 cat > conftest.$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1279 /* Ultrix mips cc rejects this. */
1280 typedef int charset[2]; const charset x;
1281 /* SunOS 4.1.1 cc rejects this. */
1282 char const *const *ccp;
1284 /* NEC SVR4.0.2 mips cc rejects this. */
1285 struct point {int x, y;};
1286 static struct point const zero = {0,0};
1287 /* AIX XL C 1.02.0.0 rejects this.
1288 It does not let you subtract one const X* pointer from another in an arm
1289 of an if-expression whose if-part is not a constant expression */
1290 const char *g = "string";
1291 ccp = &g + (g ? g-g : 0);
1292 /* HPUX 7.0 cc rejects these. */
1295 ccp = (char const *const *) p;
1296 { /* SCO 3.2v4 cc rejects this. */
1298 char const *s = 0 ? (char *) 0 : (char const *) 0;
1302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1304 const int *foo = &x[0];
1307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1308 typedef const int *iptr;
1312 { /* AIX XL C 1.02.0.0 rejects this saying
1313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1314 struct s { int j; const int *ap[3]; };
1315 struct s *b; b->j = 5;
1317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1323 if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1335 echo "$ac_t""$ac_cv_c_const" 1>&6
1336 if test $ac_cv_c_const = no; then
1337 cat >> confdefs.h <<\EOF
1343 echo $ac_n "checking for inline""... $ac_c" 1>&6
1344 echo "configure:1345: checking for inline" >&5
1345 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1349 for ac_kw in inline __inline__ __inline; do
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1358 if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 ac_cv_c_inline=$ac_kw; break
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1370 echo "$ac_t""$ac_cv_c_inline" 1>&6
1371 case "$ac_cv_c_inline" in
1373 no) cat >> confdefs.h <<\EOF
1377 *) cat >> confdefs.h <<EOF
1378 #define inline $ac_cv_c_inline
1383 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1384 echo "configure:1385: checking for off_t" >&5
1385 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 #include <sys/types.h>
1397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1398 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1400 ac_cv_type_off_t=yes
1408 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1409 if test $ac_cv_type_off_t = no; then
1410 cat >> confdefs.h <<\EOF
1416 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1417 echo "configure:1418: checking for size_t" >&5
1418 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1424 #include <sys/types.h>
1430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1431 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1433 ac_cv_type_size_t=yes
1436 ac_cv_type_size_t=no
1441 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1442 if test $ac_cv_type_size_t = no; then
1443 cat >> confdefs.h <<\EOF
1444 #define size_t unsigned
1449 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1450 # for constant arguments. Useless!
1451 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1452 echo "configure:1453: checking for working alloca.h" >&5
1453 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1461 char *p = alloca(2 * sizeof(int));
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1466 ac_cv_header_alloca_h=yes
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1471 ac_cv_header_alloca_h=no
1476 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1477 if test $ac_cv_header_alloca_h = yes; then
1478 cat >> confdefs.h <<\EOF
1479 #define HAVE_ALLOCA_H 1
1484 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1485 echo "configure:1486: checking for alloca" >&5
1486 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1494 # define alloca __builtin_alloca
1497 # include <malloc.h>
1498 # define alloca _alloca
1501 # include <alloca.h>
1506 # ifndef alloca /* predefined by HP cc +Olibcalls */
1515 char *p = (char *) alloca(1);
1518 if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1520 ac_cv_func_alloca_works=yes
1522 echo "configure: failed program was:" >&5
1523 cat conftest.$ac_ext >&5
1525 ac_cv_func_alloca_works=no
1530 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1531 if test $ac_cv_func_alloca_works = yes; then
1532 cat >> confdefs.h <<\EOF
1533 #define HAVE_ALLOCA 1
1538 if test $ac_cv_func_alloca_works = no; then
1539 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1540 # that cause trouble. Some versions do not even contain alloca or
1541 # contain a buggy version. If you still want to use their alloca,
1542 # use ar to extract alloca.o from them instead of compiling alloca.c.
1543 ALLOCA=alloca.${ac_objext}
1544 cat >> confdefs.h <<\EOF
1549 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1550 echo "configure:1551: checking whether alloca needs Cray hooks" >&5
1551 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #if defined(CRAY) && ! defined(CRAY2)
1564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1565 egrep "webecray" >/dev/null 2>&1; then
1576 echo "$ac_t""$ac_cv_os_cray" 1>&6
1577 if test $ac_cv_os_cray = yes; then
1578 for ac_func in _getb67 GETB67 getb67; do
1579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_func" >&5
1581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 /* System header to define __stub macros and hopefully few prototypes,
1588 which can conflict with char $ac_func(); below. */
1590 /* Override any gcc2 internal prototype to avoid an error. */
1591 /* We use char because int might match the return type of a gcc2
1592 builtin and then its argument prototype would still apply. */
1597 /* The GNU C library defines this for functions which it implements
1598 to always fail with ENOSYS. Some functions are actually named
1599 something starting with __ and the normal name is an alias. */
1600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1610 eval "ac_cv_func_$ac_func=yes"
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 eval "ac_cv_func_$ac_func=no"
1620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1621 echo "$ac_t""yes" 1>&6
1622 cat >> confdefs.h <<EOF
1623 #define CRAY_STACKSEG_END $ac_func
1628 echo "$ac_t""no" 1>&6
1634 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1635 echo "configure:1636: checking stack direction for C alloca" >&5
1636 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 if test "$cross_compiling" = yes; then
1640 ac_cv_c_stack_direction=0
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 find_stack_direction ()
1647 static char *addr = 0;
1652 return find_stack_direction ();
1655 return (&dummy > addr) ? 1 : -1;
1659 exit (find_stack_direction() < 0);
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1664 ac_cv_c_stack_direction=1
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1669 ac_cv_c_stack_direction=-1
1676 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1677 cat >> confdefs.h <<EOF
1678 #define STACK_DIRECTION $ac_cv_c_stack_direction
1683 for ac_hdr in unistd.h
1685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_hdr" >&5
1688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1701 eval "ac_cv_header_$ac_safe=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 eval "ac_cv_header_$ac_safe=no"
1711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1714 cat >> confdefs.h <<EOF
1715 #define $ac_tr_hdr 1
1719 echo "$ac_t""no" 1>&6
1723 for ac_func in getpagesize
1725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_func" >&5
1727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $ac_func(); below. */
1736 /* Override any gcc2 internal prototype to avoid an error. */
1737 /* We use char because int might match the return type of a gcc2
1738 builtin and then its argument prototype would still apply. */
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 eval "ac_cv_func_$ac_func=yes"
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 eval "ac_cv_func_$ac_func=no"
1766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1767 echo "$ac_t""yes" 1>&6
1768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1769 cat >> confdefs.h <<EOF
1770 #define $ac_tr_func 1
1774 echo "$ac_t""no" 1>&6
1778 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1779 echo "configure:1780: checking for working mmap" >&5
1780 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 if test "$cross_compiling" = yes; then
1784 ac_cv_func_mmap_fixed_mapped=no
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1790 /* Thanks to Mike Haertel and Jim Avera for this test.
1791 Here is a matrix of mmap possibilities:
1792 mmap private not fixed
1793 mmap private fixed at somewhere currently unmapped
1794 mmap private fixed at somewhere already mapped
1795 mmap shared not fixed
1796 mmap shared fixed at somewhere currently unmapped
1797 mmap shared fixed at somewhere already mapped
1798 For private mappings, we should verify that changes cannot be read()
1799 back from the file, nor mmap's back from the file at a different
1800 address. (There have been systems where private was not correctly
1801 implemented like the infamous i386 svr4.0, and systems where the
1802 VM page cache was not coherent with the filesystem buffer cache
1803 like early versions of FreeBSD and possibly contemporary NetBSD.)
1804 For shared mappings, we should conversely verify that changes get
1805 propogated back to all the places they're supposed to be.
1807 Grep wants private fixed already mapped.
1808 The main things grep needs to know about mmap are:
1809 * does it exist and is it safe to write into the mmap'd area
1810 * how to use it (BSD variants) */
1811 #include <sys/types.h>
1813 #include <sys/mman.h>
1815 /* This mess was copied from the GNU getpagesize.h. */
1816 #ifndef HAVE_GETPAGESIZE
1817 # ifdef HAVE_UNISTD_H
1818 # include <unistd.h>
1821 /* Assume that all systems that can run configure have sys/param.h. */
1822 # ifndef HAVE_SYS_PARAM_H
1823 # define HAVE_SYS_PARAM_H 1
1826 # ifdef _SC_PAGESIZE
1827 # define getpagesize() sysconf(_SC_PAGESIZE)
1828 # else /* no _SC_PAGESIZE */
1829 # ifdef HAVE_SYS_PARAM_H
1830 # include <sys/param.h>
1831 # ifdef EXEC_PAGESIZE
1832 # define getpagesize() EXEC_PAGESIZE
1833 # else /* no EXEC_PAGESIZE */
1835 # define getpagesize() NBPG * CLSIZE
1838 # endif /* no CLSIZE */
1839 # else /* no NBPG */
1841 # define getpagesize() NBPC
1842 # else /* no NBPC */
1844 # define getpagesize() PAGESIZE
1845 # endif /* PAGESIZE */
1846 # endif /* no NBPC */
1847 # endif /* no NBPG */
1848 # endif /* no EXEC_PAGESIZE */
1849 # else /* no HAVE_SYS_PARAM_H */
1850 # define getpagesize() 8192 /* punt totally */
1851 # endif /* no HAVE_SYS_PARAM_H */
1852 # endif /* no _SC_PAGESIZE */
1854 #endif /* no HAVE_GETPAGESIZE */
1857 extern "C" { void *malloc(unsigned); }
1865 char *data, *data2, *data3;
1869 pagesize = getpagesize();
1872 * First, make a file with some known garbage in it.
1874 data = malloc(pagesize);
1877 for (i = 0; i < pagesize; ++i)
1878 *(data + i) = rand();
1880 fd = creat("conftestmmap", 0600);
1883 if (write(fd, data, pagesize) != pagesize)
1888 * Next, try to mmap the file at a fixed address which
1889 * already has something else allocated at it. If we can,
1890 * also make sure that we see the same garbage.
1892 fd = open("conftestmmap", O_RDWR);
1895 data2 = malloc(2 * pagesize);
1898 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1899 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1900 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1902 for (i = 0; i < pagesize; ++i)
1903 if (*(data + i) != *(data2 + i))
1907 * Finally, make sure that changes to the mapped area
1908 * do not percolate back to the file as seen by read().
1909 * (This is a bug on some variants of i386 svr4.0.)
1911 for (i = 0; i < pagesize; ++i)
1912 *(data2 + i) = *(data2 + i) + 1;
1913 data3 = malloc(pagesize);
1916 if (read(fd, data3, pagesize) != pagesize)
1918 for (i = 0; i < pagesize; ++i)
1919 if (*(data + i) != *(data3 + i))
1922 unlink("conftestmmap");
1927 if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1929 ac_cv_func_mmap_fixed_mapped=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 ac_cv_func_mmap_fixed_mapped=no
1941 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1942 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1943 cat >> confdefs.h <<\EOF
1950 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether we are using the GNU C Library 2.1 or newer" >&5
1952 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1959 #include <features.h>
1960 #ifdef __GNU_LIBRARY__
1961 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
1967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968 egrep "Lucky GNU user" >/dev/null 2>&1; then
1970 ac_cv_gnu_library_2_1=yes
1973 ac_cv_gnu_library_2_1=no
1981 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
1983 GLIBC21="$ac_cv_gnu_library_2_1"
1987 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
1988 stdlib.h string.h unistd.h sys/param.h
1990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_hdr" >&5
1993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
2001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002 { (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2004 if test -z "$ac_err"; then
2006 eval "ac_cv_header_$ac_safe=yes"
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2012 eval "ac_cv_header_$ac_safe=no"
2016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2019 cat >> confdefs.h <<EOF
2020 #define $ac_tr_hdr 1
2024 echo "$ac_t""no" 1>&6
2028 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2029 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2030 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_func" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char $ac_func(); below. */
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2061 if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2063 eval "ac_cv_func_$ac_func=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2068 eval "ac_cv_func_$ac_func=no"
2073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2076 cat >> confdefs.h <<EOF
2077 #define $ac_tr_func 1
2081 echo "$ac_t""no" 1>&6
2088 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2089 if test "${with_libiconv_prefix+set}" = set; then
2090 withval="$with_libiconv_prefix"
2092 for dir in `echo "$withval" | tr : ' '`; do
2093 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2094 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2100 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2101 echo "configure:2102: checking for iconv" >&5
2102 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2106 am_cv_func_iconv="no, consider installing GNU libiconv"
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2114 iconv_t cd = iconv_open("","");
2115 iconv(cd,NULL,NULL,NULL,NULL);
2119 if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2121 am_cv_func_iconv=yes
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2127 if test "$am_cv_func_iconv" != yes; then
2128 am_save_LIBS="$LIBS"
2129 LIBS="$LIBS -liconv"
2130 cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2136 iconv_t cd = iconv_open("","");
2137 iconv(cd,NULL,NULL,NULL,NULL);
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2144 am_cv_func_iconv=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2150 LIBS="$am_save_LIBS"
2155 echo "$ac_t""$am_cv_func_iconv" 1>&6
2156 if test "$am_cv_func_iconv" = yes; then
2157 cat >> confdefs.h <<\EOF
2158 #define HAVE_ICONV 1
2161 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2162 echo "configure:2163: checking for iconv declaration" >&5
2163 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2177 #if defined(__STDC__) || defined(__cplusplus)
2178 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2187 if { (eval echo configure:2188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2189 am_cv_proto_iconv_arg1=""
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 am_cv_proto_iconv_arg1="const"
2197 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2200 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2201 echo "$ac_t""${ac_t:-
2202 }$am_cv_proto_iconv" 1>&6
2203 cat >> confdefs.h <<EOF
2204 #define ICONV_CONST $am_cv_proto_iconv_arg1
2209 if test "$am_cv_lib_iconv" = yes; then
2215 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2216 echo "configure:2217: checking for nl_langinfo and CODESET" >&5
2217 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <langinfo.h>
2225 char* cs = nl_langinfo(CODESET);
2228 if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2230 am_cv_langinfo_codeset=yes
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2235 am_cv_langinfo_codeset=no
2241 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2242 if test $am_cv_langinfo_codeset = yes; then
2243 cat >> confdefs.h <<\EOF
2244 #define HAVE_LANGINFO_CODESET 1
2249 if test $ac_cv_header_locale_h = yes; then
2250 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2251 echo "configure:2252: checking for LC_MESSAGES" >&5
2252 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2263 if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2265 am_cv_val_LC_MESSAGES=yes
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2270 am_cv_val_LC_MESSAGES=no
2275 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2276 if test $am_cv_val_LC_MESSAGES = yes; then
2277 cat >> confdefs.h <<\EOF
2278 #define HAVE_LC_MESSAGES 1
2283 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2284 echo "configure:2285: checking whether NLS is requested" >&5
2285 # Check whether --enable-nls or --disable-nls was given.
2286 if test "${enable_nls+set}" = set; then
2287 enableval="$enable_nls"
2293 echo "$ac_t""$USE_NLS" 1>&6
2296 BUILD_INCLUDED_LIBINTL=no
2297 USE_INCLUDED_LIBINTL=no
2300 if test "$USE_NLS" = "yes"; then
2301 cat >> confdefs.h <<\EOF
2302 #define ENABLE_NLS 1
2305 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2306 echo "configure:2307: checking whether included gettext is requested" >&5
2307 # Check whether --with-included-gettext or --without-included-gettext was given.
2308 if test "${with_included_gettext+set}" = set; then
2309 withval="$with_included_gettext"
2310 nls_cv_force_use_gnu_gettext=$withval
2312 nls_cv_force_use_gnu_gettext=no
2315 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2317 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2318 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2324 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2325 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2326 echo "configure:2327: checking for libintl.h" >&5
2327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <libintl.h>
2335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2336 { (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2338 if test -z "$ac_err"; then
2340 eval "ac_cv_header_$ac_safe=yes"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2346 eval "ac_cv_header_$ac_safe=no"
2350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2352 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2353 echo "configure:2354: checking for GNU gettext in libc" >&5
2354 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 #include <libintl.h>
2361 extern int _nl_msg_cat_cntr;
2363 bindtextdomain ("", "");
2364 return (int) gettext ("") + _nl_msg_cat_cntr
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369 gt_cv_func_gnugettext1_libc=yes
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 gt_cv_func_gnugettext1_libc=no
2379 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2381 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2382 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2383 echo "configure:2384: checking for GNU gettext in libintl" >&5
2384 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 gt_save_LIBS="$LIBS"
2388 LIBS="$LIBS -lintl $LIBICONV"
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 #include <libintl.h>
2393 extern int _nl_msg_cat_cntr;
2395 bindtextdomain ("", "");
2396 return (int) gettext ("") + _nl_msg_cat_cntr
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401 gt_cv_func_gnugettext1_libintl=yes
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 gt_cv_func_gnugettext1_libintl=no
2409 LIBS="$gt_save_LIBS"
2412 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2415 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2416 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2417 && test "$PACKAGE" != gettext; }; then
2418 cat >> confdefs.h <<\EOF
2419 #define HAVE_GETTEXT 1
2423 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2424 INTLLIBS="-lintl $LIBICONV"
2427 gt_save_LIBS="$LIBS"
2428 LIBS="$LIBS $INTLLIBS"
2429 for ac_func in dcgettext
2431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2432 echo "configure:2433: checking for $ac_func" >&5
2433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 /* System header to define __stub macros and hopefully few prototypes,
2440 which can conflict with char $ac_func(); below. */
2442 /* Override any gcc2 internal prototype to avoid an error. */
2443 /* We use char because int might match the return type of a gcc2
2444 builtin and then its argument prototype would still apply. */
2449 /* The GNU C library defines this for functions which it implements
2450 to always fail with ENOSYS. Some functions are actually named
2451 something starting with __ and the normal name is an alias. */
2452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 eval "ac_cv_func_$ac_func=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 eval "ac_cv_func_$ac_func=no"
2472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2475 cat >> confdefs.h <<EOF
2476 #define $ac_tr_func 1
2480 echo "$ac_t""no" 1>&6
2484 LIBS="$gt_save_LIBS"
2486 # Extract the first word of "msgfmt", so it can be a program name with args.
2487 set dummy msgfmt; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2495 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2499 for ac_dir in $PATH; do
2500 test -z "$ac_dir" && ac_dir=.
2501 if test -f $ac_dir/$ac_word; then
2502 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2503 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2509 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2513 MSGFMT="$ac_cv_path_MSGFMT"
2514 if test "$MSGFMT" != ":"; then
2515 echo "$ac_t""$MSGFMT" 1>&6
2517 echo "$ac_t""no" 1>&6
2520 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2521 set dummy gmsgfmt; ac_word=$2
2522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2523 echo "configure:2524: checking for $ac_word" >&5
2524 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2529 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2532 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2537 for ac_dir in $ac_dummy; do
2538 test -z "$ac_dir" && ac_dir=.
2539 if test -f $ac_dir/$ac_word; then
2540 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2545 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2549 GMSGFMT="$ac_cv_path_GMSGFMT"
2550 if test -n "$GMSGFMT"; then
2551 echo "$ac_t""$GMSGFMT" 1>&6
2553 echo "$ac_t""no" 1>&6
2557 # Extract the first word of "xgettext", so it can be a program name with args.
2558 set dummy xgettext; ac_word=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5
2561 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2566 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2570 for ac_dir in $PATH; do
2571 test -z "$ac_dir" && ac_dir=.
2572 if test -f $ac_dir/$ac_word; then
2573 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2574 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2580 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2584 XGETTEXT="$ac_cv_path_XGETTEXT"
2585 if test "$XGETTEXT" != ":"; then
2586 echo "$ac_t""$XGETTEXT" 1>&6
2588 echo "$ac_t""no" 1>&6
2596 echo "$ac_t""no" 1>&6
2600 if test "$CATOBJEXT" = "NONE"; then
2601 nls_cv_use_gnu_gettext=yes
2605 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2606 INTLOBJS="\$(GETTOBJS)"
2607 # Extract the first word of "msgfmt", so it can be a program name with args.
2608 set dummy msgfmt; ac_word=$2
2609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_word" >&5
2611 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2616 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2620 for ac_dir in $PATH; do
2621 test -z "$ac_dir" && ac_dir=.
2622 if test -f $ac_dir/$ac_word; then
2623 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2624 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2630 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2634 MSGFMT="$ac_cv_path_MSGFMT"
2635 if test "$MSGFMT" != ":"; then
2636 echo "$ac_t""$MSGFMT" 1>&6
2638 echo "$ac_t""no" 1>&6
2641 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2642 set dummy gmsgfmt; ac_word=$2
2643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_word" >&5
2645 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2650 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2653 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2658 for ac_dir in $ac_dummy; do
2659 test -z "$ac_dir" && ac_dir=.
2660 if test -f $ac_dir/$ac_word; then
2661 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2666 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2670 GMSGFMT="$ac_cv_path_GMSGFMT"
2671 if test -n "$GMSGFMT"; then
2672 echo "$ac_t""$GMSGFMT" 1>&6
2674 echo "$ac_t""no" 1>&6
2677 # Extract the first word of "xgettext", so it can be a program name with args.
2678 set dummy xgettext; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2686 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2690 for ac_dir in $PATH; do
2691 test -z "$ac_dir" && ac_dir=.
2692 if test -f $ac_dir/$ac_word; then
2693 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2694 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2700 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2704 XGETTEXT="$ac_cv_path_XGETTEXT"
2705 if test "$XGETTEXT" != ":"; then
2706 echo "$ac_t""$XGETTEXT" 1>&6
2708 echo "$ac_t""no" 1>&6
2712 BUILD_INCLUDED_LIBINTL=yes
2713 USE_INCLUDED_LIBINTL=yes
2715 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2716 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2719 if test "$GMSGFMT" != ":"; then
2720 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2723 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2728 if test "$XGETTEXT" != ":"; then
2729 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2732 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2742 if test "$PACKAGE" = gettext; then
2743 BUILD_INCLUDED_LIBINTL=yes
2746 for ac_prog in bison
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_word" >&5
2752 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 if test -n "$INTLBISON"; then
2756 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2760 for ac_dir in $ac_dummy; do
2761 test -z "$ac_dir" && ac_dir=.
2762 if test -f $ac_dir/$ac_word; then
2763 ac_cv_prog_INTLBISON="$ac_prog"
2770 INTLBISON="$ac_cv_prog_INTLBISON"
2771 if test -n "$INTLBISON"; then
2772 echo "$ac_t""$INTLBISON" 1>&6
2774 echo "$ac_t""no" 1>&6
2777 test -n "$INTLBISON" && break
2780 if test -z "$INTLBISON"; then
2783 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2784 echo "configure:2785: checking version of bison" >&5
2785 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2786 case $ac_prog_version in
2787 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2788 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2789 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2790 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2792 echo "$ac_t""$ac_prog_version" 1>&6
2794 if test $ac_verc_fail = yes; then
2798 for lang in $ALL_LINGUAS; do
2799 GMOFILES="$GMOFILES $lang.gmo"
2800 POFILES="$POFILES $lang.po"
2814 nls_cv_header_libgt=
2826 if test "x$CATOBJEXT" != "x"; then
2827 if test "x$ALL_LINGUAS" = "x"; then
2830 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2831 echo "configure:2832: checking for catalogs to be installed" >&5
2833 for presentlang in $ALL_LINGUAS; do
2835 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2836 # Use the presentlang catalog if desiredlang is
2837 # a. equal to presentlang, or
2838 # b. a variant of presentlang (because in this case,
2839 # presentlang can be used as a fallback for messages
2840 # which are not translated in the desiredlang catalog).
2841 case "$desiredlang" in
2842 "$presentlang"*) useit=yes;;
2845 if test $useit = yes; then
2846 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2849 LINGUAS=$NEW_LINGUAS
2850 echo "$ac_t""$LINGUAS" 1>&6
2853 if test -n "$LINGUAS"; then
2854 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2859 if test -n "$ac_aux_dir"; then
2860 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2862 if test -z "$MKINSTALLDIRS"; then
2863 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2867 INTL_LIBTOOL_SUFFIX_PREFIX=
2871 # Find a good install program. We prefer a C program (faster),
2872 # so one script is as good as another. But avoid the broken or
2873 # incompatible versions:
2874 # SysV /etc/install, /usr/sbin/install
2875 # SunOS /usr/etc/install
2876 # IRIX /sbin/install
2878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2881 # ./install, which can be erroneously created by make from ./install.sh.
2882 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2883 echo "configure:2884: checking for a BSD compatible install" >&5
2884 if test -z "$INSTALL"; then
2885 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2889 for ac_dir in $PATH; do
2890 # Account for people who put trailing slashes in PATH elements.
2892 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2894 # OSF1 and SCO ODT 3.0 have their own names for install.
2895 # Don't use installbsd from OSF since it installs stuff as root
2897 for ac_prog in ginstall scoinst install; do
2898 if test -f $ac_dir/$ac_prog; then
2899 if test $ac_prog = install &&
2900 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2901 # AIX install. It has an incompatible calling convention.
2904 ac_cv_path_install="$ac_dir/$ac_prog -c"
2915 if test "${ac_cv_path_install+set}" = set; then
2916 INSTALL="$ac_cv_path_install"
2918 # As a last resort, use the slow shell script. We don't cache a
2919 # path for INSTALL within a source directory, because that will
2920 # break other packages using the cache if that directory is
2921 # removed, or if the path is relative.
2922 INSTALL="$ac_install_sh"
2925 echo "$ac_t""$INSTALL" 1>&6
2927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2928 # It thinks the first close brace ends the variable substitution.
2929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2936 # Check whether --with-words or --without-words was given.
2937 if test "${with_words+set}" = set; then
2938 withval="$with_words"
2944 ac_cv_c_bigendian=yes
2947 ac_cv_c_bigendian=no
2950 ac_cv_c_bigendian=unknown
2951 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
2952 echo "configure:2953: checking what the byte order looks to be" >&5
2953 cat >conftest.c <<EOF
2954 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
2955 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
2956 void _a(void) { char*s = (char*)am; s = (char *)ai; }
2957 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
2958 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
2959 void _e(void) { char*s = (char*)em; s = (char*)ei; }
2960 int main(void) { _a(); _e(); return 0; }
2963 if test -f conftest.c
2965 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
2966 && test -f conftest.o
2968 if test `grep -l BIGenDianSyS conftest.o`
2970 echo "$ac_t"""big endian"" 1>&6
2971 ac_cv_c_bigendian=yes
2973 if test `grep -l LiTTleEnDian conftest.o`
2975 echo "$ac_t"""little endian"" 1>&6
2976 ac_cv_c_bigendian=no
2980 if test $ac_cv_c_bigendian = xunknown
2982 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
2984 if test $ac_cv_c_bigendian = yes
2986 cat >> confdefs.h <<\EOF
2987 #define WORDS_BIGENDIAN 1
2993 for ac_func in gettimeofday select strerror strtod strtol isatty
2995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2996 echo "configure:2997: checking for $ac_func" >&5
2997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 /* System header to define __stub macros and hopefully few prototypes,
3004 which can conflict with char $ac_func(); below. */
3006 /* Override any gcc2 internal prototype to avoid an error. */
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3013 /* The GNU C library defines this for functions which it implements
3014 to always fail with ENOSYS. Some functions are actually named
3015 something starting with __ and the normal name is an alias. */
3016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3026 eval "ac_cv_func_$ac_func=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 eval "ac_cv_func_$ac_func=no"
3036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3037 echo "$ac_t""yes" 1>&6
3038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3039 cat >> confdefs.h <<EOF
3040 #define $ac_tr_func 1
3044 echo "$ac_t""no" 1>&6
3048 echo $ac_n "checking for connect""... $ac_c" 1>&6
3049 echo "configure:3050: checking for connect" >&5
3050 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 /* System header to define __stub macros and hopefully few prototypes,
3057 which can conflict with char connect(); below. */
3059 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3066 /* The GNU C library defines this for functions which it implements
3067 to always fail with ENOSYS. Some functions are actually named
3068 something starting with __ and the normal name is an alias. */
3069 #if defined (__stub_connect) || defined (__stub___connect)
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3079 eval "ac_cv_func_connect=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 eval "ac_cv_func_connect=no"
3089 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3093 echo "$ac_t""no" 1>&6
3095 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3096 echo "configure:3097: checking for connect in -lsocket" >&5
3097 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 ac_save_LIBS="$LIBS"
3102 LIBS="-lsocket $LIBS"
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 /* Override any gcc2 internal prototype to avoid an error. */
3107 /* We use char because int might match the return type of a gcc2
3108 builtin and then its argument prototype would still apply. */
3115 if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3117 eval "ac_cv_lib_$ac_lib_var=yes"
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3122 eval "ac_cv_lib_$ac_lib_var=no"
3125 LIBS="$ac_save_LIBS"
3128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 LIB="${LIB} -lsocket"
3132 echo "$ac_t""no" 1>&6
3138 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3139 echo "configure:3140: checking for gethostbyname" >&5
3140 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 /* System header to define __stub macros and hopefully few prototypes,
3147 which can conflict with char gethostbyname(); below. */
3149 /* Override any gcc2 internal prototype to avoid an error. */
3150 /* We use char because int might match the return type of a gcc2
3151 builtin and then its argument prototype would still apply. */
3152 char gethostbyname();
3156 /* The GNU C library defines this for functions which it implements
3157 to always fail with ENOSYS. Some functions are actually named
3158 something starting with __ and the normal name is an alias. */
3159 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3167 if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3169 eval "ac_cv_func_gethostbyname=yes"
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3174 eval "ac_cv_func_gethostbyname=no"
3179 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3180 echo "$ac_t""yes" 1>&6
3183 echo "$ac_t""no" 1>&6
3185 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3186 echo "configure:3187: checking for gethostbyname in -lnsl" >&5
3187 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 ac_save_LIBS="$LIBS"
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 /* We use char because int might match the return type of a gcc2
3198 builtin and then its argument prototype would still apply. */
3199 char gethostbyname();
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207 eval "ac_cv_lib_$ac_lib_var=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3212 eval "ac_cv_lib_$ac_lib_var=no"
3215 LIBS="$ac_save_LIBS"
3218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3222 echo "$ac_t""no" 1>&6
3228 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3229 echo "configure:3230: checking for nanosleep" >&5
3230 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 /* System header to define __stub macros and hopefully few prototypes,
3237 which can conflict with char nanosleep(); below. */
3239 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3246 /* The GNU C library defines this for functions which it implements
3247 to always fail with ENOSYS. Some functions are actually named
3248 something starting with __ and the normal name is an alias. */
3249 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3259 eval "ac_cv_func_nanosleep=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_func_nanosleep=no"
3269 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3270 echo "$ac_t""yes" 1>&6
3273 echo "$ac_t""no" 1>&6
3275 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3276 echo "configure:3277: checking for nanosleep in -lrt" >&5
3277 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 ac_save_LIBS="$LIBS"
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 /* Override any gcc2 internal prototype to avoid an error. */
3287 /* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3297 eval "ac_cv_lib_$ac_lib_var=yes"
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3302 eval "ac_cv_lib_$ac_lib_var=no"
3305 LIBS="$ac_save_LIBS"
3308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3312 echo "$ac_t""no" 1>&6
3314 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3315 echo "configure:3316: checking for nanosleep in -lposix4" >&5
3316 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_save_LIBS="$LIBS"
3321 LIBS="-lposix4 $LIBS"
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3336 eval "ac_cv_lib_$ac_lib_var=yes"
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 eval "ac_cv_lib_$ac_lib_var=no"
3344 LIBS="$ac_save_LIBS"
3347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 LIB="${LIB} -lposix4"
3351 echo "$ac_t""no" 1>&6
3360 for ac_func in usleep
3362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3363 echo "configure:3364: checking for $ac_func" >&5
3364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 /* System header to define __stub macros and hopefully few prototypes,
3371 which can conflict with char $ac_func(); below. */
3373 /* Override any gcc2 internal prototype to avoid an error. */
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3380 /* The GNU C library defines this for functions which it implements
3381 to always fail with ENOSYS. Some functions are actually named
3382 something starting with __ and the normal name is an alias. */
3383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3393 eval "ac_cv_func_$ac_func=yes"
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3398 eval "ac_cv_func_$ac_func=no"
3403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3404 echo "$ac_t""yes" 1>&6
3405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3406 cat >> confdefs.h <<EOF
3407 #define $ac_tr_func 1
3411 echo "$ac_t""no" 1>&6
3415 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3416 echo "configure:3417: checking for inet_aton" >&5
3417 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 /* System header to define __stub macros and hopefully few prototypes,
3424 which can conflict with char inet_aton(); below. */
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3433 /* The GNU C library defines this for functions which it implements
3434 to always fail with ENOSYS. Some functions are actually named
3435 something starting with __ and the normal name is an alias. */
3436 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 eval "ac_cv_func_inet_aton=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_func_inet_aton=no"
3456 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3460 echo "$ac_t""no" 1>&6
3462 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3463 echo "configure:3464: checking for inet_aton in -lresolv" >&5
3464 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 ac_save_LIBS="$LIBS"
3469 LIBS="-lresolv $LIBS"
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 eval "ac_cv_lib_$ac_lib_var=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3489 eval "ac_cv_lib_$ac_lib_var=no"
3492 LIBS="$ac_save_LIBS"
3495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 LIB="${LIB} -lresolv"
3499 echo "$ac_t""no" 1>&6
3505 for ac_func in vasprintf
3507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $ac_func" >&5
3509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 /* System header to define __stub macros and hopefully few prototypes,
3516 which can conflict with char $ac_func(); below. */
3518 /* Override any gcc2 internal prototype to avoid an error. */
3519 /* We use char because int might match the return type of a gcc2
3520 builtin and then its argument prototype would still apply. */
3525 /* The GNU C library defines this for functions which it implements
3526 to always fail with ENOSYS. Some functions are actually named
3527 something starting with __ and the normal name is an alias. */
3528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3536 if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3538 eval "ac_cv_func_$ac_func=yes"
3540 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3543 eval "ac_cv_func_$ac_func=no"
3548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3549 echo "$ac_t""yes" 1>&6
3550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3551 cat >> confdefs.h <<EOF
3552 #define $ac_tr_func 1
3556 echo "$ac_t""no" 1>&6
3562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3563 echo "configure:3564: checking for $ac_func" >&5
3564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* System header to define __stub macros and hopefully few prototypes,
3571 which can conflict with char $ac_func(); below. */
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3580 /* The GNU C library defines this for functions which it implements
3581 to always fail with ENOSYS. Some functions are actually named
3582 something starting with __ and the normal name is an alias. */
3583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3591 if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3593 eval "ac_cv_func_$ac_func=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 eval "ac_cv_func_$ac_func=no"
3603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3606 cat >> confdefs.h <<EOF
3607 #define $ac_tr_func 1
3611 echo "$ac_t""no" 1>&6
3615 for ac_func in memalign valloc
3617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3618 echo "configure:3619: checking for $ac_func" >&5
3619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* System header to define __stub macros and hopefully few prototypes,
3626 which can conflict with char $ac_func(); below. */
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3635 /* The GNU C library defines this for functions which it implements
3636 to always fail with ENOSYS. Some functions are actually named
3637 something starting with __ and the normal name is an alias. */
3638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3648 eval "ac_cv_func_$ac_func=yes"
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3653 eval "ac_cv_func_$ac_func=no"
3658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3661 cat >> confdefs.h <<EOF
3662 #define $ac_tr_func 1
3666 echo "$ac_t""no" 1>&6
3671 for ac_func in sigrelse
3673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3674 echo "configure:3675: checking for $ac_func" >&5
3675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* System header to define __stub macros and hopefully few prototypes,
3682 which can conflict with char $ac_func(); below. */
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. */
3691 /* The GNU C library defines this for functions which it implements
3692 to always fail with ENOSYS. Some functions are actually named
3693 something starting with __ and the normal name is an alias. */
3694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3704 eval "ac_cv_func_$ac_func=yes"
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3709 eval "ac_cv_func_$ac_func=no"
3714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3715 echo "$ac_t""yes" 1>&6
3716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3717 cat >> confdefs.h <<EOF
3718 #define $ac_tr_func 1
3722 echo "$ac_t""no" 1>&6
3728 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3729 echo "configure:3730: checking for getopt_long" >&5
3730 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 /* System header to define __stub macros and hopefully few prototypes,
3737 which can conflict with char getopt_long(); below. */
3739 /* Override any gcc2 internal prototype to avoid an error. */
3740 /* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3746 /* The GNU C library defines this for functions which it implements
3747 to always fail with ENOSYS. Some functions are actually named
3748 something starting with __ and the normal name is an alias. */
3749 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3757 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3759 eval "ac_cv_func_getopt_long=yes"
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3764 eval "ac_cv_func_getopt_long=no"
3769 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 cat >> confdefs.h <<\EOF
3772 #define HAVE_GETOPT_LONG 1
3776 echo "$ac_t""no" 1>&6
3777 # FreeBSD has a gnugetopt library for this:
3778 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3779 echo "configure:3780: checking for getopt_long in -lgnugetopt" >&5
3780 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 ac_save_LIBS="$LIBS"
3785 LIBS="-lgnugetopt $LIBS"
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3800 eval "ac_cv_lib_$ac_lib_var=yes"
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3805 eval "ac_cv_lib_$ac_lib_var=no"
3808 LIBS="$ac_save_LIBS"
3811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3813 cat >> confdefs.h <<\EOF
3814 #define HAVE_GETOPT_LONG 1
3816 LIB="${LIB} -lgnugetopt"
3818 echo "$ac_t""no" 1>&6
3825 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3826 echo "configure:3827: checking return type of signal handlers" >&5
3827 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <sys/types.h>
3839 extern "C" void (*signal (int, void (*)(int)))(int);
3841 void (*signal ()) ();
3848 if { (eval echo configure:3849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3850 ac_cv_type_signal=void
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3855 ac_cv_type_signal=int
3860 echo "$ac_t""$ac_cv_type_signal" 1>&6
3861 cat >> confdefs.h <<EOF
3862 #define RETSIGTYPE $ac_cv_type_signal
3866 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3867 echo "configure:3868: checking for dlopen in -ldl" >&5
3868 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 ac_save_LIBS="$LIBS"
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 /* We use char because int might match the return type of a gcc2
3879 builtin and then its argument prototype would still apply. */
3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 eval "ac_cv_lib_$ac_lib_var=yes"
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 eval "ac_cv_lib_$ac_lib_var=no"
3896 LIBS="$ac_save_LIBS"
3899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3903 echo "$ac_t""no" 1>&6
3906 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3907 echo "configure:3908: checking for cos in -lm" >&5
3908 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 ac_save_LIBS="$LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3928 eval "ac_cv_lib_$ac_lib_var=yes"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 eval "ac_cv_lib_$ac_lib_var=no"
3936 LIBS="$ac_save_LIBS"
3939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 LIB_IMDCT="${LIB_IMDCT} -lm"
3942 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
3944 echo "$ac_t""no" 1>&6
3947 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
3948 echo "configure:3949: checking for pow in -lm" >&5
3949 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
3950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 ac_save_LIBS="$LIBS"
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969 eval "ac_cv_lib_$ac_lib_var=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 eval "ac_cv_lib_$ac_lib_var=no"
3977 LIBS="$ac_save_LIBS"
3980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3982 LIB_IMDCT="${LIB_IMDCT} -lm"
3983 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
3984 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
3987 echo "$ac_t""no" 1>&6
3992 if test "x${THREAD_LIB}" = xerror; then
3993 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
3994 echo "configure:3995: checking for pthread_attr_init in -lpthread" >&5
3995 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
3996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_save_LIBS="$LIBS"
4000 LIBS="-lpthread $LIBS"
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4007 char pthread_attr_init();
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 eval "ac_cv_lib_$ac_lib_var=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 eval "ac_cv_lib_$ac_lib_var=no"
4023 LIBS="$ac_save_LIBS"
4026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027 echo "$ac_t""yes" 1>&6
4028 THREAD_LIB="-lpthread"
4030 echo "$ac_t""no" 1>&6
4034 if test "x${THREAD_LIB}" = xerror; then
4035 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4036 echo "configure:4037: checking for pthread_attr_init in -lpthreads" >&5
4037 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 ac_save_LIBS="$LIBS"
4042 LIBS="-lpthreads $LIBS"
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 /* Override any gcc2 internal prototype to avoid an error. */
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4049 char pthread_attr_init();
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4057 eval "ac_cv_lib_$ac_lib_var=yes"
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4062 eval "ac_cv_lib_$ac_lib_var=no"
4065 LIBS="$ac_save_LIBS"
4068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4069 echo "$ac_t""yes" 1>&6
4070 THREAD_LIB="-lpthreads"
4072 echo "$ac_t""no" 1>&6
4076 if test "x${THREAD_LIB}" = xerror; then
4077 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4078 echo "configure:4079: checking for pthread_attr_init in -lc_r" >&5
4079 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4083 ac_save_LIBS="$LIBS"
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4091 char pthread_attr_init();
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4099 eval "ac_cv_lib_$ac_lib_var=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 eval "ac_cv_lib_$ac_lib_var=no"
4107 LIBS="$ac_save_LIBS"
4110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4111 echo "$ac_t""yes" 1>&6
4114 echo "$ac_t""no" 1>&6
4118 if test "x${THREAD_LIB}" = xerror; then
4119 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4120 echo "configure:4121: checking for pthread_attr_init" >&5
4121 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 /* System header to define __stub macros and hopefully few prototypes,
4128 which can conflict with char pthread_attr_init(); below. */
4130 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4133 char pthread_attr_init();
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4143 pthread_attr_init();
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4150 eval "ac_cv_func_pthread_attr_init=yes"
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 eval "ac_cv_func_pthread_attr_init=no"
4160 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4164 echo "$ac_t""no" 1>&6
4170 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4171 echo "configure:4172: checking for cthread_fork in -lthreads" >&5
4172 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 ac_save_LIBS="$LIBS"
4177 LIBS="-lthreads $LIBS"
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4184 char cthread_fork();
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4192 eval "ac_cv_lib_$ac_lib_var=yes"
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 eval "ac_cv_lib_$ac_lib_var=no"
4200 LIBS="$ac_save_LIBS"
4203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4205 THREAD_LIB="-lthreads"
4207 echo "$ac_t""no" 1>&6
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 #include <pthread.h>
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 egrep "pthread_cond_t" >/dev/null 2>&1; then
4220 cat >> confdefs.h <<\EOF
4221 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 #include <strings.h>
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 egrep "strncasecmp" >/dev/null 2>&1; then
4236 cat >> confdefs.h <<\EOF
4237 #define STRNCASECMP_IN_STRINGS_H 1
4244 for ac_hdr in getopt.h strings.h
4246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4248 echo "configure:4249: checking for $ac_hdr" >&5
4249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4258 { (eval echo configure:4259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4260 if test -z "$ac_err"; then
4262 eval "ac_cv_header_$ac_safe=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_header_$ac_safe=no"
4272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4275 cat >> confdefs.h <<EOF
4276 #define $ac_tr_hdr 1
4280 echo "$ac_t""no" 1>&6
4284 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4288 echo "configure:4289: checking for $ac_hdr" >&5
4289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4298 { (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4300 if test -z "$ac_err"; then
4302 eval "ac_cv_header_$ac_safe=yes"
4305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4308 eval "ac_cv_header_$ac_safe=no"
4312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4315 cat >> confdefs.h <<EOF
4316 #define $ac_tr_hdr 1
4320 echo "$ac_t""no" 1>&6
4324 for ac_hdr in sys/soundcard.h machine/soundcard.h
4326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4328 echo "configure:4329: checking for $ac_hdr" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4340 if test -z "$ac_err"; then
4342 eval "ac_cv_header_$ac_safe=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_header_$ac_safe=no"
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4355 cat >> confdefs.h <<EOF
4356 #define $ac_tr_hdr 1
4360 echo "$ac_t""no" 1>&6
4364 for ac_hdr in dlfcn.h image.h
4366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_hdr" >&5
4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4382 eval "ac_cv_header_$ac_safe=yes"
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4388 eval "ac_cv_header_$ac_safe=no"
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4395 cat >> confdefs.h <<EOF
4396 #define $ac_tr_hdr 1
4400 echo "$ac_t""no" 1>&6
4404 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4408 echo "configure:4409: checking for $ac_hdr" >&5
4409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4418 { (eval echo configure:4419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4420 if test -z "$ac_err"; then
4422 eval "ac_cv_header_$ac_safe=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 eval "ac_cv_header_$ac_safe=no"
4432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4435 cat >> confdefs.h <<EOF
4436 #define $ac_tr_hdr 1
4440 echo "$ac_t""no" 1>&6
4444 for ac_hdr in machine/param.h
4446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_hdr" >&5
4449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4458 { (eval echo configure:4459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4460 if test -z "$ac_err"; then
4462 eval "ac_cv_header_$ac_safe=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 eval "ac_cv_header_$ac_safe=no"
4472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4475 cat >> confdefs.h <<EOF
4476 #define $ac_tr_hdr 1
4480 echo "$ac_t""no" 1>&6
4485 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4486 echo "configure:4487: checking whether time.h and sys/time.h may both be included" >&5
4487 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 #include <sys/types.h>
4494 #include <sys/time.h>
4500 if { (eval echo configure:4501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4502 ac_cv_header_time=yes
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 ac_cv_header_time=no
4512 echo "$ac_t""$ac_cv_header_time" 1>&6
4513 if test $ac_cv_header_time = yes; then
4514 cat >> confdefs.h <<\EOF
4515 #define TIME_WITH_SYS_TIME 1
4521 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_hdr" >&5
4526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4535 { (eval echo configure:4536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4537 if test -z "$ac_err"; then
4539 eval "ac_cv_header_$ac_safe=yes"
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4545 eval "ac_cv_header_$ac_safe=no"
4549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4552 cat >> confdefs.h <<EOF
4553 #define $ac_tr_hdr 1
4557 echo "$ac_t""no" 1>&6
4562 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4563 echo "configure:4564: checking for ntohl in sys/param.h" >&5
4564 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 CFLAGS="${save_CFLAGS} -Wall -Werror"
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <sys/param.h>
4573 void foo() { int meuh; ntohl(meuh); }
4576 if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4578 ac_cv_c_ntohl_sys_param_h=yes
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 ac_cv_c_ntohl_sys_param_h=no
4588 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4589 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4590 cat >> confdefs.h <<\EOF
4591 #define NTOHL_IN_SYS_PARAM_H 1
4596 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4597 echo "configure:4598: checking if \$CC accepts -finline-limit" >&5
4598 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4610 if { (eval echo configure:4611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4612 ac_cv_c_inline_limit=yes
4614 echo "configure: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4617 ac_cv_c_inline_limit=no
4622 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4623 if test x"$ac_cv_c_inline_limit" != x"no"; then
4624 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4627 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
4628 echo "configure:4629: checking if \$CC accepts -bundle -undefined error" >&5
4629 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 CFLAGS="${save_CFLAGS} -bundle -undefined error"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4641 if { (eval echo configure:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4653 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
4654 if test x"$ac_cv_ld_darwin" != x"no"; then
4655 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
4658 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
4659 echo "configure:4660: checking if \$CC accepts -shared" >&5
4660 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 CFLAGS="${save_CFLAGS} -shared"
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4672 if { (eval echo configure:4673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4674 ac_cv_ld_plugins=yes
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4684 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
4685 if test x"$ac_cv_ld_plugins" != x"no"; then
4686 PLDFLAGS="${PLDFLAGS} -shared"
4689 if test x"${SOFLAGS}" = x; then
4690 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
4691 echo "configure:4692: checking for soname setting" >&5
4692 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4697 try_SOFLAGS="-Wl,-soname -Wl,"
4698 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
4699 cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 ac_cv_ld_soname="${try_SOFLAGS}"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4716 try_SOFLAGS="-Wl,-h -Wl,"
4717 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 ac_cv_ld_soname="${try_SOFLAGS}"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4733 ac_cv_ld_soname=none
4741 echo "$ac_t""$ac_cv_ld_soname" 1>&6
4742 if test x"$ac_cv_ld_soname" != x"none"; then
4743 SOFLAGS=$ac_cv_ld_soname
4747 Your system doesn't seem to have support for dynamic linking. You may
4748 have problems using libdvdcss.
4754 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
4755 echo "configure:4756: checking __attribute__ ((aligned ())) support" >&5
4756 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 ac_cv_c_attribute_aligned=0
4760 CFLAGS="${save_CFLAGS} -Werror"
4761 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4767 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
4770 if { (eval echo configure:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4772 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4781 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
4782 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
4783 cat >> confdefs.h <<EOF
4784 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
4789 CFLAGS="${save_CFLAGS}"
4790 LDFLAGS="${save_LDFLAGS}"
4792 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
4793 echo "configure:4794: checking for boolean_t in sys/types.h" >&5
4794 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 #include <sys/types.h>
4805 if { (eval echo configure:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4807 ac_cv_c_boolean_t_sys_types_h=yes
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4812 ac_cv_c_boolean_t_sys_types_h=no
4817 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
4818 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
4819 cat >> confdefs.h <<\EOF
4820 #define BOOLEAN_T_IN_SYS_TYPES_H 1
4825 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
4826 echo "configure:4827: checking for boolean_t in pthread.h" >&5
4827 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <pthread.h>
4838 if { (eval echo configure:4839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4840 ac_cv_c_boolean_t_pthread_h=yes
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 ac_cv_c_boolean_t_pthread_h=no
4850 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
4851 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
4852 cat >> confdefs.h <<\EOF
4853 #define BOOLEAN_T_IN_PTHREAD_H 1
4858 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
4859 echo "configure:4860: checking for boolean_t in cthreads.h" >&5
4860 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 #include <cthreads.h>
4871 if { (eval echo configure:4872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4873 ac_cv_c_boolean_t_cthreads_h=yes
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4878 ac_cv_c_boolean_t_cthreads_h=no
4883 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
4884 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
4885 cat >> confdefs.h <<\EOF
4886 #define BOOLEAN_T_IN_CTHREADS_H 1
4891 case x"${target_cpu}" in
4900 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
4901 PLUGINS="${PLUGINS} ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
4903 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
4904 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
4905 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
4906 SSE_MODULES="imdctsse downmixsse"
4907 ALTIVEC_MODULES="idctaltivec motionaltivec"
4909 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
4910 echo "configure:4911: checking if \$CC groks MMX inline assembly" >&5
4911 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4919 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
4922 if { (eval echo configure:4923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4924 ac_cv_mmx_inline=yes
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4934 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
4935 if test x"$ac_cv_mmx_inline" != x"no"; then
4936 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
4939 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
4940 echo "configure:4941: checking if \$CC groks MMX EXT inline assembly" >&5
4941 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4949 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
4952 if { (eval echo configure:4953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4954 ac_cv_mmxext_inline=yes
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 ac_cv_mmxext_inline=no
4964 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
4965 if test x"$ac_cv_mmxext_inline" != x"no"; then
4966 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
4969 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
4970 echo "configure:4971: checking if \$CC groks 3D Now! inline assembly" >&5
4971 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 cat > conftest.$ac_ext <<EOF
4975 #line 4976 "configure"
4976 #include "confdefs.h"
4979 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
4982 if { (eval echo configure:4983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4984 ac_cv_3dnow_inline=yes
4986 echo "configure: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4989 ac_cv_3dnow_inline=no
4994 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
4995 if test x"$ac_cv_3dnow_inline" != x"no"; then
4996 cat >> confdefs.h <<\EOF
4997 #define CAN_COMPILE_3DNOW 1
5000 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5003 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5004 echo "configure:5005: checking if \$CC groks SSE inline assembly" >&5
5005 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5013 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5016 if { (eval echo configure:5017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5018 ac_cv_sse_inline=yes
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5028 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5029 if test x"$ac_cv_sse_inline" != x"no"; then
5030 cat >> confdefs.h <<\EOF
5031 #define CAN_COMPILE_SSE 1
5034 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5037 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5038 echo "configure:5039: checking if \$CC groks Altivec inline assembly" >&5
5039 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5047 asm volatile("vperm 0,1,2,3");
5050 if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052 ac_cv_altivec_inline=yes
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5058 CFLAGS="$CFLAGS -Wa,-m7400"
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5064 asm volatile("vperm 0,1,2,3");
5067 if { (eval echo configure:5068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5069 ac_cv_altivec_inline="-Wa,-m7400"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 ac_cv_altivec_inline=no
5083 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5084 if test x"$ac_cv_altivec_inline" != x"no"; then
5085 cat >> confdefs.h <<\EOF
5086 #define CAN_COMPILE_ALTIVEC 1
5089 if test x"$ac_cv_altivec_inline" != x"yes"; then
5090 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5091 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5092 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5094 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5097 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5098 echo "configure:5099: checking if \$CC groks Altivec C extensions" >&5
5099 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5103 CFLAGS="$CFLAGS -faltivec"
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5110 vec_mtvscr((vector unsigned int)(0));
5113 if { (eval echo configure:5114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5115 ac_cv_c_altivec=-faltivec
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5122 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5128 vec_mtvscr((vector unsigned int)(0));
5131 if { (eval echo configure:5132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5133 ac_cv_c_altivec="-fvec"
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5148 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5149 if test x"$ac_cv_c_altivec" != x"no"; then
5150 cat >> confdefs.h <<\EOF
5151 #define CAN_COMPILE_C_ALTIVEC 1
5154 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5155 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5156 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5157 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5160 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5161 echo "configure:5162: checking if linker needs -framework vecLib" >&5
5162 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 save_LDFLAGS=$LDFLAGS
5166 LDFLAGS="$LDFLAGS -framework vecLib"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 ac_cv_ld_altivec=yes
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5185 LDFLAGS=$save_LDFLAGS
5189 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5190 if test x"$ac_cv_ld_altivec" != x"no"; then
5191 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5192 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5193 LIB="${LIB} -framework vecLib"
5196 case x"${target_os}" in
5211 if test $host != $build; then
5212 ac_tool_prefix=${host_alias}-
5217 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5218 set dummy ${ac_tool_prefix}windres; ac_word=$2
5219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5220 echo "configure:5221: checking for $ac_word" >&5
5221 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 if test -n "$WINDRES"; then
5225 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5229 for ac_dir in $ac_dummy; do
5230 test -z "$ac_dir" && ac_dir=.
5231 if test -f $ac_dir/$ac_word; then
5232 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5239 WINDRES="$ac_cv_prog_WINDRES"
5240 if test -n "$WINDRES"; then
5241 echo "$ac_t""$WINDRES" 1>&6
5243 echo "$ac_t""no" 1>&6
5247 if test -z "$ac_cv_prog_WINDRES"; then
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "windres", so it can be a program name with args.
5250 set dummy windres; ac_word=$2
5251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_word" >&5
5253 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5256 if test -n "$WINDRES"; then
5257 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5261 for ac_dir in $ac_dummy; do
5262 test -z "$ac_dir" && ac_dir=.
5263 if test -f $ac_dir/$ac_word; then
5264 ac_cv_prog_WINDRES="windres"
5269 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5272 WINDRES="$ac_cv_prog_WINDRES"
5273 if test -n "$WINDRES"; then
5274 echo "$ac_t""$WINDRES" 1>&6
5276 echo "$ac_t""no" 1>&6
5284 LIB_MPEG_TS="-lws2_32"
5289 LIB_X11="${LIB_X11} -lsocket"
5290 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5295 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
5296 PLDFLAGS="${PLDFLAGS} -nostart"
5309 DVD_DEVICE="/dev/dvd"
5310 VCD_DEVICE="/dev/cdrom"
5314 cat >> confdefs.h <<EOF
5315 #define DVD_DEVICE "$DVD_DEVICE"
5318 cat >> confdefs.h <<EOF
5319 #define VCD_DEVICE "$VCD_DEVICE"
5325 CAN_BUILD_LIBDVDCSS=0
5327 for ac_hdr in winioctl.h
5329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_hdr" >&5
5332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5341 { (eval echo configure:5342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5343 if test -z "$ac_err"; then
5345 eval "ac_cv_header_$ac_safe=yes"
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5351 eval "ac_cv_header_$ac_safe=no"
5355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5358 cat >> confdefs.h <<EOF
5359 #define $ac_tr_hdr 1
5362 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5365 echo "$ac_t""no" 1>&6
5370 for ac_hdr in sys/ioctl.h
5372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5374 echo "configure:5375: checking for $ac_hdr" >&5
5375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5384 { (eval echo configure:5385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5386 if test -z "$ac_err"; then
5388 eval "ac_cv_header_$ac_safe=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 eval "ac_cv_header_$ac_safe=no"
5398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5399 echo "$ac_t""yes" 1>&6
5400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5401 cat >> confdefs.h <<EOF
5402 #define $ac_tr_hdr 1
5405 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5406 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5410 echo "configure:5411: checking for $ac_hdr" >&5
5411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5420 { (eval echo configure:5421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5422 if test -z "$ac_err"; then
5424 eval "ac_cv_header_$ac_safe=yes"
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5430 eval "ac_cv_header_$ac_safe=no"
5434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5435 echo "$ac_t""yes" 1>&6
5436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5437 cat >> confdefs.h <<EOF
5438 #define $ac_tr_hdr 1
5442 echo "$ac_t""no" 1>&6
5448 OPENBSD_DVD_STRUCT=0
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 #include <sys/cdio.h>
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 egrep "dvd_struct" >/dev/null 2>&1; then
5458 cat >> confdefs.h <<\EOF
5459 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 #include <sys/cdio.h>
5467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5468 egrep "struct dvd_struct" >/dev/null 2>&1; then
5474 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 #include <sys/dvdio.h>
5487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488 egrep "dvd_struct" >/dev/null 2>&1; then
5491 cat >> confdefs.h <<\EOF
5492 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5498 #include <sys/dvdio.h>
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 egrep "struct dvd_struct" >/dev/null 2>&1; then
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <linux/cdrom.h>
5520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521 egrep "dvd_struct" >/dev/null 2>&1; then
5524 cat >> confdefs.h <<\EOF
5525 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 egrep "dvd_struct" >/dev/null 2>&1; then
5543 cat >> confdefs.h <<\EOF
5544 #define DVD_STRUCT_IN_DVD_H 1
5547 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5553 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_hdr" >&5
5558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5567 { (eval echo configure:5568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5569 if test -z "$ac_err"; then
5571 eval "ac_cv_header_$ac_safe=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 eval "ac_cv_header_$ac_safe=no"
5581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_hdr 1
5589 cat >> confdefs.h <<\EOF
5590 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
5593 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
5597 echo "$ac_t""no" 1>&6
5605 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
5606 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
5607 echo "configure:5608: checking for sys/scsi/scsi_types.h" >&5
5608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 #include <sys/scsi/scsi_types.h>
5616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5617 { (eval echo configure:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5619 if test -z "$ac_err"; then
5621 eval "ac_cv_header_$ac_safe=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 eval "ac_cv_header_$ac_safe=no"
5631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5634 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
5635 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
5636 echo "configure:5637: checking for sys/scsi/impl/uscsi.h" >&5
5637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 #include <sys/scsi/impl/uscsi.h>
5645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5646 { (eval echo configure:5647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5648 if test -z "$ac_err"; then
5650 eval "ac_cv_header_$ac_safe=yes"
5653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5656 eval "ac_cv_header_$ac_safe=no"
5660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5661 echo "$ac_t""yes" 1>&6
5663 cat >> confdefs.h <<\EOF
5664 #define SOLARIS_USCSI 1
5669 echo "$ac_t""no" 1>&6
5674 echo "$ac_t""no" 1>&6
5677 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
5678 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
5679 echo "configure:5680: checking for sys/scsi.h" >&5
5680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 cat > conftest.$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5686 #include <sys/scsi.h>
5688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5689 { (eval echo configure:5690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5691 if test -z "$ac_err"; then
5693 eval "ac_cv_header_$ac_safe=yes"
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5699 eval "ac_cv_header_$ac_safe=no"
5703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 #include <sys/scsi.h>
5711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5712 egrep "sctl_io" >/dev/null 2>&1; then
5715 cat >> confdefs.h <<\EOF
5716 #define HPUX_SCTL_IO 1
5725 echo "$ac_t""no" 1>&6
5728 if test x$LINUX_DVD_STRUCT = x1; then
5729 cat >> confdefs.h <<\EOF
5730 #define HAVE_LINUX_DVD_STRUCT 1
5733 if test x$OPENBSD_DVD_STRUCT = x1; then
5734 cat >> confdefs.h <<\EOF
5735 #define HAVE_OPENBSD_DVD_STRUCT 1
5740 if test x$BSD_DVD_STRUCT = x1; then
5741 cat >> confdefs.h <<\EOF
5742 #define HAVE_BSD_DVD_STRUCT 1
5749 echo "$ac_t""no" 1>&6
5754 # Check whether --with-tuning or --without-tuning was given.
5755 if test "${with_tuning+set}" = set; then
5756 withval="$with_tuning"
5760 if test "x$withval" != "x"; then
5763 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5765 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5769 # Check whether --enable-release or --disable-release was given.
5770 if test "${enable_release+set}" = set; then
5771 enableval="$enable_release"
5772 if test x$enableval = xyes; then RELEASE=1; fi
5774 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
5775 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
5779 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5782 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5785 # Check whether --enable-altivec or --disable-altivec was given.
5786 if test "${enable_altivec+set}" = set; then
5787 enableval="$enable_altivec"
5788 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5789 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5791 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5792 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5797 # Check whether --enable-debug or --disable-debug was given.
5798 if test "${enable_debug+set}" = set; then
5799 enableval="$enable_debug"
5800 if test x$enableval = xyes; then DEBUG=1; fi
5805 # Check whether --enable-trace or --disable-trace was given.
5806 if test "${enable_trace+set}" = set; then
5807 enableval="$enable_trace"
5808 if test x$enableval = xyes; then TRACE=1; fi
5813 # Check whether --enable-gprof or --disable-gprof was given.
5814 if test "${enable_gprof+set}" = set; then
5815 enableval="$enable_gprof"
5816 if test x$enableval = xyes; then GPROF=1; fi
5821 # Check whether --enable-cprof or --disable-cprof was given.
5822 if test "${enable_cprof+set}" = set; then
5823 enableval="$enable_cprof"
5824 if test x$enableval = xyes;
5826 LIB="${LIB} -lcprof"
5833 # Check whether --enable-optimizations or --disable-optimizations was given.
5834 if test "${enable_optimizations+set}" = set; then
5835 enableval="$enable_optimizations"
5836 if test x$enableval = xno; then OPTIMS=0; fi
5842 # Check whether --enable-pth or --disable-pth was given.
5843 if test "${enable_pth+set}" = set; then
5844 enableval="$enable_pth"
5845 if test x$enableval = xyes; then
5846 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
5847 echo "configure:5848: checking for pth_init in -lpth" >&5
5848 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
5849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 ac_save_LIBS="$LIBS"
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5868 eval "ac_cv_lib_$ac_lib_var=yes"
5870 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5873 eval "ac_cv_lib_$ac_lib_var=no"
5876 LIBS="$ac_save_LIBS"
5879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5880 echo "$ac_t""yes" 1>&6
5881 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5883 cat >> confdefs.h <<EOF
5884 #define $ac_tr_lib 1
5890 echo "$ac_t""no" 1>&6
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 egrep "pth_init" >/dev/null 2>&1; then
5902 cat >> confdefs.h <<\EOF
5903 #define PTH_INIT_IN_PTH_H 1
5915 LIB="${LIB} ${THREAD_LIB}"
5920 # Check whether --with-dvdcss or --without-dvdcss was given.
5921 if test "${with_dvdcss+set}" = set; then
5922 withval="$with_dvdcss"
5923 case "x${withval}" in
5925 # local libdvdcss, statically linked
5926 if test x${CAN_BUILD_LIBDVDCSS} = x1
5930 BUILTINS="${BUILTINS} dvd"
5931 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5932 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5933 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5934 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5938 # local libdvdcss, dynamically linked
5939 if test x${CAN_BUILD_LIBDVDCSS} = x1
5942 BUILTINS="${BUILTINS} dvd"
5943 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5944 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
5945 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
5946 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L../../lib -ldvdcss"
5950 # don't use libdvdcss at all, build a DVD module that can dlopen() it
5952 BUILTINS="${BUILTINS} dvd"
5953 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
5954 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5955 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
5956 LIB_DVD="${LIB_DVD} -ldl"
5957 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
5958 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
5961 # existing libdvdcss
5962 BUILTINS="${BUILTINS} dvd"
5963 if test "x$withval" != "xyes"
5965 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
5966 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L"$withval"/lib"
5967 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
5969 LIB_DVD="${LIB_DVD} -ldvdcss"
5970 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
5971 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldvdcss"
5974 # user didn't decide, we choose to use local libdvdcss and link statically
5975 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
5976 if test x${CAN_BUILD_LIBDVDCSS} = x1
5980 BUILTINS="${BUILTINS} dvd"
5981 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5982 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5983 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5984 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5986 # XXX: no check for libdl is done, don't try this at home !
5988 BUILTINS="${BUILTINS} dvd"
5989 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
5990 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5991 LIB_DVD="${LIB_DVD} -ldl"
5992 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
5993 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
5998 # Check whether --enable-dvdread or --disable-dvdread was given.
5999 if test "${enable_dvdread+set}" = set; then
6000 enableval="$enable_dvdread"
6001 if test x$enableval = xyes
6005 BUILTINS="${BUILTINS} dvdread"
6006 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6007 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
6012 # Check whether --enable-vcd or --disable-vcd was given.
6013 if test "${enable_vcd+set}" = set; then
6014 enableval="$enable_vcd"
6019 if test x$enable_vcd != xno
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 #include <linux/cdrom.h>
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 egrep "cdrom_msf0" >/dev/null 2>&1; then
6030 BUILTINS="${BUILTINS} vcd"
6037 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6039 BUILTINS="${BUILTINS} vcd"
6042 # Check whether --enable-dummy or --disable-dummy was given.
6043 if test "${enable_dummy+set}" = set; then
6044 enableval="$enable_dummy"
6049 if test x$enable_dummy != xno
6051 BUILTINS="${BUILTINS} dummy"
6054 # Check whether --enable-null or --disable-null was given.
6055 if test "${enable_null+set}" = set; then
6056 enableval="$enable_null"
6061 if test x$enable_null != xno
6063 BUILTINS="${BUILTINS} null"
6066 # Check whether --enable-rc or --disable-rc was given.
6067 if test "${enable_rc+set}" = set; then
6068 enableval="$enable_rc"
6073 if test x$enable_rc != xno
6075 BUILTINS="${BUILTINS} rc"
6078 # Check whether --with-mad or --without-mad was given.
6079 if test "${with_mad+set}" = set; then
6081 if test "x$with_val" != "xno"; then
6082 if test -n $with_val; then
6083 CFLAGS_MAD="-I$with_val/include"
6084 LIB_MAD="-L$with_val/lib -lmad"
6089 save_LDFLAGS=$LDFLAGS
6090 CFLAGS="$CFLAGS $CFLAGS_MAD"
6091 LDFLAGS="$LDFLAGS $LIB_MAD"
6094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6096 echo "configure:6097: checking for $ac_hdr" >&5
6097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6100 cat > conftest.$ac_ext <<EOF
6101 #line 6102 "configure"
6102 #include "confdefs.h"
6105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6106 { (eval echo configure:6107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6108 if test -z "$ac_err"; then
6110 eval "ac_cv_header_$ac_safe=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6116 eval "ac_cv_header_$ac_safe=no"
6120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6121 echo "$ac_t""yes" 1>&6
6122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6123 cat >> confdefs.h <<EOF
6124 #define $ac_tr_hdr 1
6128 echo "$ac_t""no" 1>&6
6129 echo "Cannot find development headers for libmad..."
6135 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6136 echo "configure:6137: checking for mad_bit_init in -lmad" >&5
6137 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6141 ac_save_LIBS="$LIBS"
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char mad_bit_init();
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 eval "ac_cv_lib_$ac_lib_var=yes"
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 eval "ac_cv_lib_$ac_lib_var=no"
6165 LIBS="$ac_save_LIBS"
6168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6172 cat >> confdefs.h <<EOF
6173 #define $ac_tr_lib 1
6179 echo "$ac_t""no" 1>&6
6180 echo "Cannot find libmad library..."
6186 LDFLAGS=$save_LDFLAGS
6187 PLUGINS="${PLUGINS} mad"
6192 if test x$SYS = xbeos
6194 BUILTINS="${BUILTINS} beos"
6198 # Check whether --enable-dsp or --disable-dsp was given.
6199 if test "${enable_dsp+set}" = set; then
6200 enableval="$enable_dsp"
6205 if test x$enable_dsp != xno &&
6206 (test $SYS != mingw32 || test x$enable_dsp = xyes)
6210 PLUGINS="${PLUGINS} dsp"
6214 # Check whether --enable-esd or --disable-esd was given.
6215 if test "${enable_esd+set}" = set; then
6216 enableval="$enable_esd"
6217 if test x$enable_esd = xyes
6219 # Extract the first word of "esd-config", so it can be a program name with args.
6220 set dummy esd-config; ac_word=$2
6221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6222 echo "configure:6223: checking for $ac_word" >&5
6223 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6224 echo $ac_n "(cached) $ac_c" 1>&6
6226 case "$ESD_CONFIG" in
6228 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6231 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6236 for ac_dir in $ac_dummy; do
6237 test -z "$ac_dir" && ac_dir=.
6238 if test -f $ac_dir/$ac_word; then
6239 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6244 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6248 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6249 if test -n "$ESD_CONFIG"; then
6250 echo "$ac_t""$ESD_CONFIG" 1>&6
6252 echo "$ac_t""no" 1>&6
6255 if test x${ESD_CONFIG} != xno
6257 PLUGINS="${PLUGINS} esd"
6258 CFLAGS_ESD="`${ESD_CONFIG} --cflags`"
6259 LIB_ESD="`${ESD_CONFIG} --libs`"
6265 # Check whether --enable-arts or --disable-arts was given.
6266 if test "${enable_arts+set}" = set; then
6267 enableval="$enable_arts"
6268 if test x$enable_arts = xyes
6270 # Extract the first word of "artsc-config", so it can be a program name with args.
6271 set dummy artsc-config; ac_word=$2
6272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6273 echo "configure:6274: checking for $ac_word" >&5
6274 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 case "$ARTS_CONFIG" in
6279 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6282 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6287 for ac_dir in $ac_dummy; do
6288 test -z "$ac_dir" && ac_dir=.
6289 if test -f $ac_dir/$ac_word; then
6290 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6295 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6299 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6300 if test -n "$ARTS_CONFIG"; then
6301 echo "$ac_t""$ARTS_CONFIG" 1>&6
6303 echo "$ac_t""no" 1>&6
6306 if test x${ARTS_CONFIG} != xno
6308 PLUGINS="${PLUGINS} arts"
6309 CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`"
6310 LIB_ARTS="`${ARTS_CONFIG} --libs `"
6316 # Check whether --enable-macosx or --disable-macosx was given.
6317 if test "${enable_macosx+set}" = set; then
6318 enableval="$enable_macosx"
6319 if test x$enable_macosx = xyes
6321 BUILTINS="${BUILTINS} macosx"
6322 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6323 CFLAGS_MACOSX="-ObjC"
6327 for ac_hdr in Cocoa/Cocoa.h
6329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6331 echo "configure:6332: checking for $ac_hdr" >&5
6332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6333 echo $ac_n "(cached) $ac_c" 1>&6
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6341 { (eval echo configure:6342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6343 if test -z "$ac_err"; then
6345 eval "ac_cv_header_$ac_safe=yes"
6348 echo "configure: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6351 eval "ac_cv_header_$ac_safe=no"
6355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6356 echo "$ac_t""yes" 1>&6
6357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6358 cat >> confdefs.h <<EOF
6359 #define $ac_tr_hdr 1
6361 BUILTINS="${BUILTINS} macosx"
6362 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6363 CFLAGS_MACOSX="-ObjC"
6367 echo "$ac_t""no" 1>&6
6374 # Check whether --enable-qnx or --disable-qnx was given.
6375 if test "${enable_qnx+set}" = set; then
6376 enableval="$enable_qnx"
6380 if test x$enable_qnx != xno
6384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6386 echo "configure:6387: checking for $ac_hdr" >&5
6387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6396 { (eval echo configure:6397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6398 if test -z "$ac_err"; then
6400 eval "ac_cv_header_$ac_safe=yes"
6403 echo "configure: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 eval "ac_cv_header_$ac_safe=no"
6410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6411 echo "$ac_t""yes" 1>&6
6412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6413 cat >> confdefs.h <<EOF
6414 #define $ac_tr_hdr 1
6417 PLUGINS="${PLUGINS} qnx"
6418 LIB_QNX="-lasound -lph"
6421 echo "$ac_t""no" 1>&6
6427 # Check whether --enable-fb or --disable-fb was given.
6428 if test "${enable_fb+set}" = set; then
6429 enableval="$enable_fb"
6430 if test x$enable_fb = xyes
6432 PLUGINS="${PLUGINS} fb"
6437 # Check whether --enable-mga or --disable-mga was given.
6438 if test "${enable_mga+set}" = set; then
6439 enableval="$enable_mga"
6440 if test x$enable_mga = xyes
6442 PLUGINS="${PLUGINS} mga xmga"
6447 # Check whether --with-ggi or --without-ggi was given.
6448 if test "${with_ggi+set}" = set; then
6450 if test "x$withval" != "xno"
6452 PLUGINS="${PLUGINS} ggi"
6453 if test "x$withval" != "xyes"
6455 LIB_GGI="-l"$withval
6463 # Check whether --enable-sdl or --disable-sdl was given.
6464 if test "${enable_sdl+set}" = set; then
6465 enableval="$enable_sdl"
6469 if test "x$enable_sdl" != "xno"
6472 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6473 if test "${with_sdl_config_path+set}" = set; then
6474 withval="$with_sdl_config_path"
6475 if test "x$withval" != "xno"
6477 SDL_PATH=$withval:$PATH
6481 # Extract the first word of "sdl12-config", so it can be a program name with args.
6482 set dummy sdl12-config; ac_word=$2
6483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6484 echo "configure:6485: checking for $ac_word" >&5
6485 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 case "$SDL12_CONFIG" in
6490 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6493 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6497 ac_dummy="$SDL_PATH"
6498 for ac_dir in $ac_dummy; do
6499 test -z "$ac_dir" && ac_dir=.
6500 if test -f $ac_dir/$ac_word; then
6501 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6506 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6510 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6511 if test -n "$SDL12_CONFIG"; then
6512 echo "$ac_t""$SDL12_CONFIG" 1>&6
6514 echo "$ac_t""no" 1>&6
6517 SDL_CONFIG=${SDL12_CONFIG}
6518 SDL_HEADER="SDL12/SDL.h"
6519 if test x${SDL_CONFIG} = xno
6521 # Extract the first word of "sdl11-config", so it can be a program name with args.
6522 set dummy sdl11-config; ac_word=$2
6523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6524 echo "configure:6525: checking for $ac_word" >&5
6525 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 case "$SDL11_CONFIG" in
6530 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6533 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6537 ac_dummy="$SDL_PATH"
6538 for ac_dir in $ac_dummy; do
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f $ac_dir/$ac_word; then
6541 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6546 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6550 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6551 if test -n "$SDL11_CONFIG"; then
6552 echo "$ac_t""$SDL11_CONFIG" 1>&6
6554 echo "$ac_t""no" 1>&6
6557 SDL_CONFIG=${SDL11_CONFIG}
6558 SDL_HEADER="SDL11/SDL.h"
6560 if test x${SDL_CONFIG} = xno
6562 # Extract the first word of "sdl-config", so it can be a program name with args.
6563 set dummy sdl-config; ac_word=$2
6564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6565 echo "configure:6566: checking for $ac_word" >&5
6566 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6567 echo $ac_n "(cached) $ac_c" 1>&6
6569 case "$SDL_CONFIG" in
6571 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6574 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6578 ac_dummy="$SDL_PATH"
6579 for ac_dir in $ac_dummy; do
6580 test -z "$ac_dir" && ac_dir=.
6581 if test -f $ac_dir/$ac_word; then
6582 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6587 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6591 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6592 if test -n "$SDL_CONFIG"; then
6593 echo "$ac_t""$SDL_CONFIG" 1>&6
6595 echo "$ac_t""no" 1>&6
6598 SDL_HEADER="SDL/SDL.h"
6600 if test x${SDL_CONFIG} != xno
6602 PLUGINS="${PLUGINS} sdl"
6603 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
6604 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6605 save_CPPFLAGS=$CPPFLAGS
6606 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6607 for ac_hdr in ${SDL_HEADER}
6609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6611 echo "configure:6612: checking for $ac_hdr" >&5
6612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6613 echo $ac_n "(cached) $ac_c" 1>&6
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6621 { (eval echo configure:6622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6623 if test -z "$ac_err"; then
6625 eval "ac_cv_header_$ac_safe=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_header_$ac_safe=no"
6635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6636 echo "$ac_t""yes" 1>&6
6637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6638 cat >> confdefs.h <<EOF
6639 #define $ac_tr_hdr 1
6641 cat >> confdefs.h <<EOF
6642 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6646 echo "$ac_t""no" 1>&6
6647 { echo "configure: error: The development package for SDL is not installed.
6648 Please install it and try again. Alternatively you can also configure with
6649 --disable-sdl." 1>&2; exit 1; }
6654 CPPFLAGS=$save_CPPFLAGS
6655 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6657 { echo "configure: error: The development package for SDL is not installed.
6658 Please install it and try again. Alternatively you can also configure with
6659 --disable-sdl." 1>&2; exit 1; }
6661 elif test "x$enable_sdl" = "xyes"
6663 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6664 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6669 # Check whether --enable-directx or --disable-directx was given.
6670 if test "${enable_directx+set}" = set; then
6671 enableval="$enable_directx"
6675 if test "x$enableval" != "xno"
6677 if test $SYS = mingw32
6679 # Check whether --with-directx-path or --without-directx-path was given.
6680 if test "${with_directx_path+set}" = set; then
6681 withval="$with_directx_path"
6685 if test "x$with_directx_path" = "x"
6687 for ac_hdr in directx.h
6689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6691 echo "configure:6692: checking for $ac_hdr" >&5
6692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6701 { (eval echo configure:6702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6703 if test -z "$ac_err"; then
6705 eval "ac_cv_header_$ac_safe=yes"
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6711 eval "ac_cv_header_$ac_safe=no"
6715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6718 cat >> confdefs.h <<EOF
6719 #define $ac_tr_hdr 1
6721 PLUGINS="${PLUGINS} directx"
6722 LIB_DIRECTX="-lgdi32 -ldxguid"
6724 echo "$ac_t""no" 1>&6
6729 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6730 echo "configure:6731: checking for directX headers in ${withval}" >&5
6731 if test -f ${withval}/include/directx.h
6733 PLUGINS="${PLUGINS} directx"
6734 LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
6735 INCLUDE="${INCLUDE} -I${withval}/include"
6736 echo "$ac_t""yes" 1>&6
6738 echo "$ac_t""no" 1>&6
6739 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
6745 # Check whether --with-glide or --without-glide was given.
6746 if test "${with_glide+set}" = set; then
6747 withval="$with_glide"
6748 if test "x$withval" != "xno"
6750 PLUGINS="${PLUGINS} glide"
6751 if test "x$withval" != "xyes"
6753 LIB_GLIDE="-l"$withval" -lm"
6755 LIB_GLIDE="-lglide2x -lm"
6757 CFLAGS_GLIDE="-I/usr/include/glide"
6762 # Check whether --enable-ncurses or --disable-ncurses was given.
6763 if test "${enable_ncurses+set}" = set; then
6764 enableval="$enable_ncurses"
6765 if test x$enable_ncurses = xyes; then
6766 PLUGINS="${PLUGINS} ncurses"
6767 LIB_NCURSES="-lncurses"
6772 # Check whether --enable-qt or --disable-qt was given.
6773 if test "${enable_qt+set}" = set; then
6774 enableval="$enable_qt"
6775 if test x$enable_qt = xyes; then
6776 PLUGINS="${PLUGINS} qt"
6777 ALIASES="${ALIASES} qvlc"
6778 LIB_QT="-lqt -L${QTDIR}/lib"
6779 CFLAGS_QT="-I/usr/include/qt -I${QTDIR}/include"
6780 if test -x ${QTDIR}/bin/moc
6782 MOC=${QTDIR}/bin/moc
6790 # Check whether --enable-kde or --disable-kde was given.
6791 if test "${enable_kde+set}" = set; then
6792 enableval="$enable_kde"
6793 if test x$enable_kde = xyes; then
6794 PLUGINS="${PLUGINS} kde"
6795 ALIASES="${ALIASES} kvlc"
6796 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
6797 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
6798 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
6799 if test -x ${QTDIR}/bin/moc
6801 MOC=${QTDIR}/bin/moc
6809 # Check whether --enable-gnome or --disable-gnome was given.
6810 if test "${enable_gnome+set}" = set; then
6811 enableval="$enable_gnome"
6812 if test x$enable_gnome = xyes; then
6813 # look for gnome-config
6814 # Extract the first word of "gnome-config", so it can be a program name with args.
6815 set dummy gnome-config; ac_word=$2
6816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6817 echo "configure:6818: checking for $ac_word" >&5
6818 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 case "$GNOME_CONFIG" in
6823 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
6826 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
6829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6831 for ac_dir in $ac_dummy; do
6832 test -z "$ac_dir" && ac_dir=.
6833 if test -f $ac_dir/$ac_word; then
6834 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
6839 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
6843 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
6844 if test -n "$GNOME_CONFIG"; then
6845 echo "$ac_t""$GNOME_CONFIG" 1>&6
6847 echo "$ac_t""no" 1>&6
6850 if test -x ${GNOME_CONFIG}
6852 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gtk gnomeui`"
6853 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
6855 # now look for the gnome.h header
6856 saved_CPPFLAGS=$CPPFLAGS
6857 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
6858 for ac_hdr in gnome.h
6860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_hdr" >&5
6863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6872 { (eval echo configure:6873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6874 if test -z "$ac_err"; then
6876 eval "ac_cv_header_$ac_safe=yes"
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 eval "ac_cv_header_$ac_safe=no"
6886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6887 echo "$ac_t""yes" 1>&6
6888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6889 cat >> confdefs.h <<EOF
6890 #define $ac_tr_hdr 1
6893 PLUGINS="${PLUGINS} gnome"
6894 ALIASES="${ALIASES} gnome-vlc"
6897 echo "$ac_t""no" 1>&6
6898 { echo "configure: error: Can't find gnome headers. Please install the gnome
6899 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
6905 CPPFLAGS=$saved_CPPFLAGS
6910 # Check whether --enable-gtk or --disable-gtk was given.
6911 if test "${enable_gtk+set}" = set; then
6912 enableval="$enable_gtk"
6916 if test x$enable_gtk != xno
6919 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
6920 if test "${with_gtk_config_path+set}" = set; then
6921 withval="$with_gtk_config_path"
6922 if test "x$withval" != "xno"
6924 GTK_PATH=$withval:$PATH
6928 # look for gtk-config
6929 # Extract the first word of "gtk-config", so it can be a program name with args.
6930 set dummy gtk-config; ac_word=$2
6931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6932 echo "configure:6933: checking for $ac_word" >&5
6933 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6934 echo $ac_n "(cached) $ac_c" 1>&6
6936 case "$GTK_CONFIG" in
6938 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6941 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6945 ac_dummy="$GTK_PATH"
6946 for ac_dir in $ac_dummy; do
6947 test -z "$ac_dir" && ac_dir=.
6948 if test -f $ac_dir/$ac_word; then
6949 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6954 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6958 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6959 if test -n "$GTK_CONFIG"; then
6960 echo "$ac_t""$GTK_CONFIG" 1>&6
6962 echo "$ac_t""no" 1>&6
6965 if test -x ${GTK_CONFIG}
6967 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
6969 { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
6971 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
6972 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
6974 # now look for the gtk.h header
6975 saved_CPPFLAGS=$CPPFLAGS
6976 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
6977 ac_cv_gtk_headers=yes
6978 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
6980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6982 echo "configure:6983: checking for $ac_hdr" >&5
6983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6992 { (eval echo configure:6993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6994 if test -z "$ac_err"; then
6996 eval "ac_cv_header_$ac_safe=yes"
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7002 eval "ac_cv_header_$ac_safe=no"
7006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7009 cat >> confdefs.h <<EOF
7010 #define $ac_tr_hdr 1
7014 echo "$ac_t""no" 1>&6
7015 ac_cv_gtk_headers=no
7016 echo "Cannot find gtk development headers."
7021 if test "x$ac_cv_gtk_headers" = xyes
7023 PLUGINS="${PLUGINS} gtk"
7024 ALIASES="${ALIASES} gvlc"
7026 CPPFLAGS=$saved_CPPFLAGS
7029 # Check whether --enable-x11 or --disable-x11 was given.
7030 if test "${enable_x11+set}" = set; then
7031 enableval="$enable_x11"
7035 if test x$enable_x11 != xno &&
7036 (test $SYS != mingw32 || test x$enable_x11 = xyes); then
7037 if test x$x_includes = xNONE; then
7038 x_includes=/usr/X11R6/include
7040 if test x$x_libraries = xNONE; then
7041 x_libraries=/usr/X11R6/lib
7043 saved_CPPFLAGS=$CPPFLAGS
7044 CPPFLAGS="$CPPFLAGS -I$x_includes"
7045 for ac_hdr in X11/Xlib.h
7047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7049 echo "configure:7050: checking for $ac_hdr" >&5
7050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7059 { (eval echo configure:7060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7061 if test -z "$ac_err"; then
7063 eval "ac_cv_header_$ac_safe=yes"
7066 echo "configure: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7069 eval "ac_cv_header_$ac_safe=no"
7073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7074 echo "$ac_t""yes" 1>&6
7075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7076 cat >> confdefs.h <<EOF
7077 #define $ac_tr_hdr 1
7080 PLUGINS="${PLUGINS} x11"
7081 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7082 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7084 CPPFLAGS=$saved_CPPFLAGS
7086 echo "$ac_t""no" 1>&6
7092 # Check whether --enable-xvideo or --disable-xvideo was given.
7093 if test "${enable_xvideo+set}" = set; then
7094 enableval="$enable_xvideo"
7098 if test x$enable_xvideo != xno &&
7099 (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
7100 if test x$x_includes = xNONE; then
7101 x_includes=/usr/X11R6/include
7103 if test x$x_libraries = xNONE; then
7104 x_libraries=/usr/X11R6/lib
7106 saved_CPPFLAGS=$CPPFLAGS
7107 CPPFLAGS="$CPPFLAGS -I$x_includes"
7108 for ac_hdr in X11/extensions/Xv.h
7110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7112 echo "configure:7113: checking for $ac_hdr" >&5
7113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7114 echo $ac_n "(cached) $ac_c" 1>&6
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7122 { (eval echo configure:7123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7124 if test -z "$ac_err"; then
7126 eval "ac_cv_header_$ac_safe=yes"
7129 echo "configure: failed program was:" >&5
7130 cat conftest.$ac_ext >&5
7132 eval "ac_cv_header_$ac_safe=no"
7136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7137 echo "$ac_t""yes" 1>&6
7138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7139 cat >> confdefs.h <<EOF
7140 #define $ac_tr_hdr 1
7143 BUILTINS="${BUILTINS} xvideo"
7144 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7145 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7147 CPPFLAGS=$saved_CPPFLAGS
7149 echo "$ac_t""no" 1>&6
7155 # Check whether --enable-alsa or --disable-alsa was given.
7156 if test "${enable_alsa+set}" = set; then
7157 enableval="$enable_alsa"
7158 if test x$enable_alsa = xyes
7160 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7161 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7162 echo "configure:7163: checking for alsa/asoundlib.h" >&5
7163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7164 echo $ac_n "(cached) $ac_c" 1>&6
7166 cat > conftest.$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7169 #include <alsa/asoundlib.h>
7171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7172 { (eval echo configure:7173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7174 if test -z "$ac_err"; then
7176 eval "ac_cv_header_$ac_safe=yes"
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 eval "ac_cv_header_$ac_safe=no"
7186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7187 echo "$ac_t""yes" 1>&6
7188 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7189 echo "configure:7190: checking for main in -lasound" >&5
7190 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 ac_save_LIBS="$LIBS"
7195 LIBS="-lasound $LIBS"
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 eval "ac_cv_lib_$ac_lib_var=yes"
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 eval "ac_cv_lib_$ac_lib_var=no"
7214 LIBS="$ac_save_LIBS"
7217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7221 echo "$ac_t""no" 1>&6
7226 echo "$ac_t""no" 1>&6
7230 if test x$have_alsa = xtrue
7232 PLUGINS="${PLUGINS} alsa"
7233 LIB_ALSA="-lasound -lm -ldl"
7241 # Check whether --enable-plugins or --disable-plugins was given.
7242 if test "${enable_plugins+set}" = set; then
7243 enableval="$enable_plugins"
7244 if test x$enable_plugins = xno
7246 BUILTINS="${BUILTINS} ${PLUGINS}"
7253 # Check whether --with-dll-path or --without-dll-path was given.
7254 if test "${with_dll_path+set}" = set; then
7255 withval="$with_dll_path"
7256 if test "x$withval" != "xno"
7263 cat >> confdefs.h <<EOF
7264 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
7267 cat >> confdefs.h <<EOF
7268 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
7272 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
7273 cat >> confdefs.h <<EOF
7274 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7277 cat >> confdefs.h <<EOF
7278 #define MODULE_SYMBOL $VLC_SYMBOL
7282 DATA_PATH="${ac_tool_prefix}/share/videolan"
7284 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
7374 cat > confcache <<\EOF
7375 # This file is a shell script that caches the results of configure
7376 # tests run on this system so they can be shared between configure
7377 # scripts and configure runs. It is not useful on other systems.
7378 # If it contains results you don't want to keep, you may remove or edit it.
7380 # By default, configure uses ./config.cache as the cache file,
7381 # creating it if it does not exist already. You can give configure
7382 # the --cache-file=FILE option to use a different cache file; that is
7383 # what configure does when it calls configure scripts in
7384 # subdirectories, so they share the cache.
7385 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7386 # config.status only pays attention to the cache file if you give it the
7387 # --recheck option to rerun configure.
7390 # The following way of writing the cache mishandles newlines in values,
7391 # but we know of no workaround that is simple, portable, and efficient.
7392 # So, don't put newlines in cache variables' values.
7393 # Ultrix sh set writes to stderr and can't be redirected directly,
7394 # and sets the high bit in the cache file unless we assign to the vars.
7396 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7398 # `set' does not quote correctly, so add quotes (double-quote substitution
7399 # turns \\\\ into \\, and sed turns \\ into \).
7401 -e "s/'/'\\\\''/g" \
7402 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7405 # `set' quotes correctly as required by POSIX, so do not add quotes.
7406 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7409 if cmp -s $cache_file confcache; then
7412 if test -w $cache_file; then
7413 echo "updating cache $cache_file"
7414 cat confcache > $cache_file
7416 echo "not updating unwritable cache $cache_file"
7421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7424 # Let make expand exec_prefix.
7425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7427 # Any assignment to VPATH causes Sun make to only execute
7428 # the first set of double-colon rules, so remove it if not needed.
7429 # If there is a colon in the path, we need to keep it.
7430 if test "x$srcdir" = x.; then
7431 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7434 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7436 DEFS=-DHAVE_CONFIG_H
7438 # Without the "./", some shells look in PATH for config.status.
7439 : ${CONFIG_STATUS=./config.status}
7441 echo creating $CONFIG_STATUS
7442 rm -f $CONFIG_STATUS
7443 cat > $CONFIG_STATUS <<EOF
7445 # Generated automatically by configure.
7446 # Run this file to recreate the current configuration.
7447 # This directory was configured as follows,
7448 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7450 # $0 $ac_configure_args
7452 # Compiler output produced by configure, useful for debugging
7453 # configure, is in ./config.log if it exists.
7455 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7458 case "\$ac_option" in
7459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7460 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7461 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7462 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7463 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7465 -help | --help | --hel | --he | --h)
7466 echo "\$ac_cs_usage"; exit 0 ;;
7467 *) echo "\$ac_cs_usage"; exit 1 ;;
7471 ac_given_srcdir=$srcdir
7472 ac_given_INSTALL="$INSTALL"
7474 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7476 cat >> $CONFIG_STATUS <<EOF
7478 # Protect against being on the right side of a sed subst in config.status.
7479 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7480 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7484 s%@CFLAGS@%$CFLAGS%g
7485 s%@CPPFLAGS@%$CPPFLAGS%g
7486 s%@CXXFLAGS@%$CXXFLAGS%g
7487 s%@FFLAGS@%$FFLAGS%g
7489 s%@LDFLAGS@%$LDFLAGS%g
7491 s%@exec_prefix@%$exec_prefix%g
7492 s%@prefix@%$prefix%g
7493 s%@program_transform_name@%$program_transform_name%g
7494 s%@bindir@%$bindir%g
7495 s%@sbindir@%$sbindir%g
7496 s%@libexecdir@%$libexecdir%g
7497 s%@datadir@%$datadir%g
7498 s%@sysconfdir@%$sysconfdir%g
7499 s%@sharedstatedir@%$sharedstatedir%g
7500 s%@localstatedir@%$localstatedir%g
7501 s%@libdir@%$libdir%g
7502 s%@includedir@%$includedir%g
7503 s%@oldincludedir@%$oldincludedir%g
7504 s%@infodir@%$infodir%g
7505 s%@mandir@%$mandir%g
7507 s%@host_alias@%$host_alias%g
7508 s%@host_cpu@%$host_cpu%g
7509 s%@host_vendor@%$host_vendor%g
7510 s%@host_os@%$host_os%g
7511 s%@target@%$target%g
7512 s%@target_alias@%$target_alias%g
7513 s%@target_cpu@%$target_cpu%g
7514 s%@target_vendor@%$target_vendor%g
7515 s%@target_os@%$target_os%g
7517 s%@build_alias@%$build_alias%g
7518 s%@build_cpu@%$build_cpu%g
7519 s%@build_vendor@%$build_vendor%g
7520 s%@build_os@%$build_os%g
7521 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
7522 s%@SET_MAKE@%$SET_MAKE%g
7525 s%@RANLIB@%$RANLIB%g
7526 s%@ALLOCA@%$ALLOCA%g
7527 s%@GLIBC21@%$GLIBC21%g
7528 s%@LIBICONV@%$LIBICONV%g
7529 s%@USE_NLS@%$USE_NLS%g
7530 s%@MSGFMT@%$MSGFMT%g
7531 s%@GMSGFMT@%$GMSGFMT%g
7532 s%@XGETTEXT@%$XGETTEXT%g
7533 s%@INTLBISON@%$INTLBISON%g
7534 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
7535 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7536 s%@CATALOGS@%$CATALOGS%g
7537 s%@CATOBJEXT@%$CATOBJEXT%g
7538 s%@GMOFILES@%$GMOFILES%g
7539 s%@INTLLIBS@%$INTLLIBS%g
7540 s%@INTLOBJS@%$INTLOBJS%g
7541 s%@POFILES@%$POFILES%g
7543 s%@DATADIRNAME@%$DATADIRNAME%g
7544 s%@INSTOBJEXT@%$INSTOBJEXT%g
7545 s%@GENCAT@%$GENCAT%g
7546 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7547 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
7548 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7549 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7550 s%@INSTALL_DATA@%$INSTALL_DATA%g
7551 s%@WINDRES@%$WINDRES%g
7552 s%@ESD_CONFIG@%$ESD_CONFIG%g
7553 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
7554 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
7555 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
7556 s%@SDL_CONFIG@%$SDL_CONFIG%g
7557 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
7558 s%@GTK_CONFIG@%$GTK_CONFIG%g
7559 s%@DATA_PATH@%$DATA_PATH%g
7560 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
7563 s%@PLUGINS@%$PLUGINS%g
7564 s%@BUILTINS@%$BUILTINS%g
7565 s%@ALIASES@%$ALIASES%g
7566 s%@DEFINE@%$DEFINE%g
7567 s%@INCLUDE@%$INCLUDE%g
7573 s%@OPTIMS@%$OPTIMS%g
7574 s%@TUNING@%$TUNING%g
7575 s%@RELEASE@%$RELEASE%g
7577 s%@DLL_PATH@%$DLL_PATH%g
7578 s%@PACKAGE@%$PACKAGE%g
7579 s%@VERSION@%$VERSION%g
7580 s%@VCD_DEVICE@%$VCD_DEVICE%g
7581 s%@DVD_DEVICE@%$DVD_DEVICE%g
7582 s%@PLDFLAGS@%$PLDFLAGS%g
7583 s%@SOFLAGS@%$SOFLAGS%g
7585 s%@LIB_ALSA@%$LIB_ALSA%g
7586 s%@LIB_ARTS@%$LIB_ARTS%g
7587 s%@LIB_BEOS@%$LIB_BEOS%g
7588 s%@LIB_DARWIN@%$LIB_DARWIN%g
7589 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
7590 s%@LIB_DVD@%$LIB_DVD%g
7591 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
7592 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
7593 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
7594 s%@LIB_ESD@%$LIB_ESD%g
7595 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
7596 s%@LIB_GGI@%$LIB_GGI%g
7597 s%@LIB_GLIDE@%$LIB_GLIDE%g
7598 s%@LIB_GNOME@%$LIB_GNOME%g
7599 s%@LIB_GTK@%$LIB_GTK%g
7600 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
7601 s%@LIB_IMDCT@%$LIB_IMDCT%g
7602 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
7603 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
7604 s%@LIB_KDE@%$LIB_KDE%g
7605 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
7606 s%@LIB_MACOSX@%$LIB_MACOSX%g
7607 s%@LIB_MAD@%$LIB_MAD%g
7608 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
7609 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
7610 s%@LIB_NCURSES@%$LIB_NCURSES%g
7611 s%@LIB_QNX@%$LIB_QNX%g
7612 s%@LIB_QT@%$LIB_QT%g
7613 s%@LIB_RC@%$LIB_RC%g
7614 s%@LIB_SDL@%$LIB_SDL%g
7615 s%@LIB_X11@%$LIB_X11%g
7616 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
7617 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
7618 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
7619 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
7620 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
7621 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
7622 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
7623 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
7624 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
7625 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
7626 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
7627 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
7628 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
7629 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
7630 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
7631 s%@CFLAGS_QT@%$CFLAGS_QT%g
7632 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
7633 s%@CFLAGS_X11@%$CFLAGS_X11%g
7634 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
7635 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
7636 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
7637 s%@NEED_GETOPT@%$NEED_GETOPT%g
7638 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
7643 cat >> $CONFIG_STATUS <<\EOF
7645 # Split the substitutions into bite-sized pieces for seds with
7646 # small command number limits, like on Digital OSF/1 and HP-UX.
7647 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7648 ac_file=1 # Number of current file.
7649 ac_beg=1 # First line for current file.
7650 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7653 while $ac_more_lines; do
7654 if test $ac_beg -gt 1; then
7655 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7657 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7659 if test ! -s conftest.s$ac_file; then
7661 rm -f conftest.s$ac_file
7663 if test -z "$ac_sed_cmds"; then
7664 ac_sed_cmds="sed -f conftest.s$ac_file"
7666 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7668 ac_file=`expr $ac_file + 1`
7670 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7673 if test -z "$ac_sed_cmds"; then
7678 cat >> $CONFIG_STATUS <<EOF
7680 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
7682 cat >> $CONFIG_STATUS <<\EOF
7683 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7686 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7687 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7688 *) ac_file_in="${ac_file}.in" ;;
7691 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7693 # Remove last slash and all that follows it. Not all systems have dirname.
7694 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7695 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7696 # The file is in a subdirectory.
7697 test ! -d "$ac_dir" && mkdir "$ac_dir"
7698 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7699 # A "../" for each directory in $ac_dir_suffix.
7700 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7702 ac_dir_suffix= ac_dots=
7705 case "$ac_given_srcdir" in
7707 if test -z "$ac_dots"; then top_srcdir=.
7708 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7709 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7711 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7712 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7715 case "$ac_given_INSTALL" in
7716 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7717 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7720 echo creating "$ac_file"
7722 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7724 *Makefile*) ac_comsub="1i\\
7725 # $configure_input" ;;
7729 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7731 s%@configure_input@%$configure_input%g
7732 s%@srcdir@%$srcdir%g
7733 s%@top_srcdir@%$top_srcdir%g
7734 s%@INSTALL@%$INSTALL%g
7735 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7739 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7740 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7742 # ac_d sets the value in "#define NAME VALUE" lines.
7743 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7744 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7747 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7748 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7749 ac_uB='\([ ]\)%\1#\2define\3'
7752 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7753 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7754 ac_eB='$%\1#\2define\3'
7758 if test "${CONFIG_HEADERS+set}" != set; then
7760 cat >> $CONFIG_STATUS <<EOF
7761 CONFIG_HEADERS="include/defs.h"
7763 cat >> $CONFIG_STATUS <<\EOF
7765 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7766 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7768 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7769 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7770 *) ac_file_in="${ac_file}.in" ;;
7773 echo creating $ac_file
7775 rm -f conftest.frag conftest.in conftest.out
7776 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7777 cat $ac_file_inputs > conftest.in
7781 # Transform confdefs.h into a sed script conftest.vals that substitutes
7782 # the proper values into config.h.in to produce config.h. And first:
7783 # Protect against being on the right side of a sed subst in config.status.
7784 # Protect against being in an unquoted here document in config.status.
7786 cat > conftest.hdr <<\EOF
7789 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7793 sed -n -f conftest.hdr confdefs.h > conftest.vals
7796 # This sed command replaces #undef with comments. This is necessary, for
7797 # example, in the case of _POSIX_SOURCE, which is predefined and required
7798 # on some systems where configure will not decide to define it.
7799 cat >> conftest.vals <<\EOF
7800 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7803 # Break up conftest.vals because some shells have a limit on
7804 # the size of here documents, and old seds have small limits too.
7809 ac_lines=`grep -c . conftest.vals`
7810 # grep -c gives empty output for an empty file on some AIX systems.
7811 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7812 # Write a limited-size here document to conftest.frag.
7813 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7814 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7816 sed -f conftest.frag conftest.in > conftest.out
7818 mv conftest.out conftest.in
7820 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7822 mv conftest.tail conftest.vals
7826 cat >> $CONFIG_STATUS <<\EOF
7827 rm -f conftest.frag conftest.h
7828 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7829 cat conftest.in >> conftest.h
7831 if cmp -s $ac_file conftest.h 2>/dev/null; then
7832 echo "$ac_file is unchanged"
7835 # Remove last slash and all that follows it. Not all systems have dirname.
7836 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7837 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7838 # The file is in a subdirectory.
7839 test ! -d "$ac_dir" && mkdir "$ac_dir"
7842 mv conftest.h $ac_file
7847 cat >> $CONFIG_STATUS <<EOF
7851 cat >> $CONFIG_STATUS <<\EOF
7852 for ac_file in $CONFIG_FILES; do
7853 # Support "outfile[:infile[:infile...]]"
7855 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7857 # PO directories have a Makefile.in generated from Makefile.in.in.
7858 case "$ac_file" in */Makefile.in)
7859 # Adjust a relative srcdir.
7860 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7861 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7862 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7863 # In autoconf-2.13 it is called $ac_given_srcdir.
7864 # In autoconf-2.50 it is called $srcdir.
7865 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7866 case "$ac_given_srcdir" in
7867 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7868 /*) top_srcdir="$ac_given_srcdir" ;;
7869 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7871 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7872 rm -f "$ac_dir/POTFILES"
7873 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7874 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7875 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7876 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7884 chmod +x $CONFIG_STATUS
7885 rm -fr confdefs* $ac_clean_files
7886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7890 global configuration
7891 --------------------
7893 architecture : ${ARCH}
7894 optimizations : ${OPTIMS}
7896 release: : ${RELEASE}"
7898 if test x${HAVE_VLC} = x1
7903 vlc version : ${VLC_VERSION}
7904 debug mode : ${DEBUG}
7905 trace mode : ${TRACE}
7906 cprof/gprof support : ${CPROF}/${GPROF}
7907 need builtin getopt : ${NEED_GETOPT}
7908 built-in modules :${BUILTINS}
7909 plug-in modules :${PLUGINS}
7910 vlc aliases :${ALIASES}"
7914 libdvdcss configuration
7915 -----------------------
7916 can be built : ${CAN_BUILD_LIBDVDCSS}
7917 will be built : ${NEED_LIBDVDCSS}"
7918 if test x${NEED_LIBDVDCSS} = x1
7920 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
7921 echo "link statically : ${STATIC_LIBDVDCSS}"
7923 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
7927 You may now tune Makefile.opts at your convenience, for instance to choose
7928 which modules get compiled as plugins.
7930 if test x${HAVE_VLC} = x1
7932 echo "To build vlc and its plugins, type \`make vlc plugins'."
7934 if test x${HAVE_LIBDVDCSS} = x1
7936 echo "To build libdvdcss only, type \`make libdvdcss'."