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-mmx Disable MMX optimizations (default enabled for x86)"
30 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
32 --enable-debug Enable debug mode (default disabled)"
34 --enable-trace Enable trace mode (default disabled)"
36 --enable-gprof Enable gprof profiling (default disabled)"
38 --enable-cprof Enable cprof profiling (default disabled)"
40 --disable-optimizations Disable compiler optimizations (default enabled)"
42 --enable-pth Enable GNU Pth support (default disabled)"
44 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
45 or 'local-static', 'local-shared', or a path to
46 another libdvdcss such as '/usr/local'
47 (default 'local-static')"
49 --enable-dvdread Enable dvdread support (default disabled)"
51 --enable-vcd VCD support for Linux (default enabled)"
53 --disable-dummy dummy module (default enabled)"
55 --disable-null Null module (default enabled)"
57 --disable-rc Remote Control module (default enabled)"
59 --with-mad[=PATH] libmad module (default disabled)"
61 --disable-dsp Linux /dev/dsp support (default enabled)"
63 --enable-esd Esound library support (default disabled)"
65 --enable-arts aRts sound server (default disabled)"
67 --enable-macosx MacOS X support (default enabled on MacOS X)"
69 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
71 --enable-fb Linux framebuffer 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/common.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"
738 if test -r extras/libdvdcss/libdvdcss.c; then
740 LIBDVDCSS_VERSION="1.0.1-dev"
742 if test -r extras/libdvdcss/csskeys.h; then
743 cat >> confdefs.h <<\EOF
744 #define HAVE_CSSKEYS 1
750 save_CFLAGS="${CFLAGS}"
751 save_LDFLAGS="${LDFLAGS}"
753 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
754 echo "configure:755: checking whether ${MAKE-make} sets \${MAKE}" >&5
755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
756 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 cat > conftestmake <<\EOF
761 @echo 'ac_maketemp="${MAKE}"'
763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
764 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
765 if test -n "$ac_maketemp"; then
766 eval ac_cv_prog_make_${ac_make}_set=yes
768 eval ac_cv_prog_make_${ac_make}_set=no
772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
773 echo "$ac_t""yes" 1>&6
776 echo "$ac_t""no" 1>&6
777 SET_MAKE="MAKE=${MAKE-make}"
780 # Extract the first word of "gcc", so it can be a program name with args.
781 set dummy gcc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 if test -n "$CC"; then
788 ac_cv_prog_CC="$CC" # Let the user override the test.
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
803 if test -n "$CC"; then
804 echo "$ac_t""$CC" 1>&6
806 echo "$ac_t""no" 1>&6
809 if test -z "$CC"; then
810 # Extract the first word of "cc", so it can be a program name with args.
811 set dummy cc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
826 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
835 if test $ac_prog_rejected = yes; then
836 # We found a bogon in the path, so make sure we never use it.
837 set dummy $ac_cv_prog_CC
839 if test $# -gt 0; then
840 # We chose a different compiler from the bogus one.
841 # However, it has the same basename, so the bogon will be chosen
842 # first if we set CC to just the basename; use the full file name.
844 set dummy "$ac_dir/$ac_word" "$@"
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
855 echo "$ac_t""no" 1>&6
858 if test -z "$CC"; then
861 # Extract the first word of "cl", so it can be a program name with args.
862 set dummy cl; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$CC"; then
869 ac_cv_prog_CC="$CC" # Let the user override the test.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
887 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 cat > conftest.$ac_ext << EOF
907 #line 908 "configure"
908 #include "confdefs.h"
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913 ac_cv_prog_cc_works=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (./conftest; exit) 2>/dev/null; then
916 ac_cv_prog_cc_cross=no
918 ac_cv_prog_cc_cross=yes
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 ac_cv_prog_cc_works=no
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
934 if test $ac_cv_prog_cc_works = no; then
935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
943 echo "configure:944: checking whether we are using GNU C" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 cat > conftest.c <<EOF
952 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961 if test $ac_cv_prog_gcc = yes; then
967 ac_test_CFLAGS="${CFLAGS+set}"
968 ac_save_CFLAGS="$CFLAGS"
970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${CC-cc} accepts -g" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 echo 'void f(){}' > conftest.c
976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
986 if test "$ac_test_CFLAGS" = set; then
987 CFLAGS="$ac_save_CFLAGS"
988 elif test $ac_cv_prog_cc_g = yes; then
989 if test "$GCC" = yes; then
995 if test "$GCC" = yes; then
1002 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1003 echo "configure:1004: checking how to run the C preprocessor" >&5
1004 # On Suns, sometimes $CPP names a directory.
1005 if test -n "$CPP" && test -d "$CPP"; then
1008 if test -z "$CPP"; then
1009 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 # This must be in double quotes, not single quotes, because CPP may get
1013 # substituted into the Makefile and "${CC-cc}" will confuse make.
1015 # On the NeXT, cc -E runs the code through the compiler's parser,
1016 # not just through cpp.
1017 cat > conftest.$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1026 if test -z "$ac_err"; then
1030 echo "configure: failed program was:" >&5
1031 cat conftest.$ac_ext >&5
1033 CPP="${CC-cc} -E -traditional-cpp"
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041 { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1043 if test -z "$ac_err"; then
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1050 CPP="${CC-cc} -nologo -E"
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058 { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060 if test -z "$ac_err"; then
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1074 ac_cv_prog_CPP="$CPP"
1076 CPP="$ac_cv_prog_CPP"
1078 ac_cv_prog_CPP="$CPP"
1080 echo "$ac_t""$CPP" 1>&6
1082 if test $host != $build; then
1083 ac_tool_prefix=${host_alias}-
1088 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1089 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$RANLIB"; then
1096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1110 RANLIB="$ac_cv_prog_RANLIB"
1111 if test -n "$RANLIB"; then
1112 echo "$ac_t""$RANLIB" 1>&6
1114 echo "$ac_t""no" 1>&6
1118 if test -z "$ac_cv_prog_RANLIB"; then
1119 if test -n "$ac_tool_prefix"; then
1120 # Extract the first word of "ranlib", so it can be a program name with args.
1121 set dummy ranlib; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$RANLIB"; then
1128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1132 for ac_dir in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir=.
1134 if test -f $ac_dir/$ac_word; then
1135 ac_cv_prog_RANLIB="ranlib"
1140 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1143 RANLIB="$ac_cv_prog_RANLIB"
1144 if test -n "$RANLIB"; then
1145 echo "$ac_t""$RANLIB" 1>&6
1147 echo "$ac_t""no" 1>&6
1156 ALL_LINGUAS="de fr ru"
1158 VERSION="$VLC_VERSION"
1160 cat >> confdefs.h <<EOF
1161 #define PACKAGE "$PACKAGE"
1164 cat >> confdefs.h <<EOF
1165 #define VERSION "$VERSION"
1168 # Extract the first word of "ranlib", so it can be a program name with args.
1169 set dummy ranlib; ac_word=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 if test -n "$RANLIB"; then
1176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1180 for ac_dir in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_RANLIB="ranlib"
1188 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1191 RANLIB="$ac_cv_prog_RANLIB"
1192 if test -n "$RANLIB"; then
1193 echo "$ac_t""$RANLIB" 1>&6
1195 echo "$ac_t""no" 1>&6
1199 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1200 echo "configure:1201: checking for strerror in -lcposix" >&5
1201 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 ac_save_LIBS="$LIBS"
1206 LIBS="-lcposix $LIBS"
1207 cat > conftest.$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #include "confdefs.h"
1210 /* Override any gcc2 internal prototype to avoid an error. */
1211 /* We use char because int might match the return type of a gcc2
1212 builtin and then its argument prototype would still apply. */
1219 if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1221 eval "ac_cv_lib_$ac_lib_var=yes"
1223 echo "configure: failed program was:" >&5
1224 cat conftest.$ac_ext >&5
1226 eval "ac_cv_lib_$ac_lib_var=no"
1229 LIBS="$ac_save_LIBS"
1232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1233 echo "$ac_t""yes" 1>&6
1234 LIBS="$LIBS -lcposix"
1236 echo "$ac_t""no" 1>&6
1241 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1242 echo "configure:1243: checking for ANSI C header files" >&5
1243 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 cat > conftest.$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1255 { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1257 if test -z "$ac_err"; then
1259 ac_cv_header_stdc=yes
1262 echo "configure: failed program was:" >&5
1263 cat conftest.$ac_ext >&5
1265 ac_cv_header_stdc=no
1269 if test $ac_cv_header_stdc = yes; then
1270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1271 cat > conftest.$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1277 egrep "memchr" >/dev/null 2>&1; then
1281 ac_cv_header_stdc=no
1287 if test $ac_cv_header_stdc = yes; then
1288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1295 egrep "free" >/dev/null 2>&1; then
1299 ac_cv_header_stdc=no
1305 if test $ac_cv_header_stdc = yes; then
1306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1307 if test "$cross_compiling" = yes; then
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1314 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1315 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1317 int main () { int i; for (i = 0; i < 256; i++)
1318 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1329 ac_cv_header_stdc=no
1337 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1338 if test $ac_cv_header_stdc = yes; then
1339 cat >> confdefs.h <<\EOF
1340 #define STDC_HEADERS 1
1345 echo $ac_n "checking for working const""... $ac_c" 1>&6
1346 echo "configure:1347: checking for working const" >&5
1347 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1356 /* Ultrix mips cc rejects this. */
1357 typedef int charset[2]; const charset x;
1358 /* SunOS 4.1.1 cc rejects this. */
1359 char const *const *ccp;
1361 /* NEC SVR4.0.2 mips cc rejects this. */
1362 struct point {int x, y;};
1363 static struct point const zero = {0,0};
1364 /* AIX XL C 1.02.0.0 rejects this.
1365 It does not let you subtract one const X* pointer from another in an arm
1366 of an if-expression whose if-part is not a constant expression */
1367 const char *g = "string";
1368 ccp = &g + (g ? g-g : 0);
1369 /* HPUX 7.0 cc rejects these. */
1372 ccp = (char const *const *) p;
1373 { /* SCO 3.2v4 cc rejects this. */
1375 char const *s = 0 ? (char *) 0 : (char const *) 0;
1379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1381 const int *foo = &x[0];
1384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1385 typedef const int *iptr;
1389 { /* AIX XL C 1.02.0.0 rejects this saying
1390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1391 struct s { int j; const int *ap[3]; };
1392 struct s *b; b->j = 5;
1394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1400 if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1404 echo "configure: failed program was:" >&5
1405 cat conftest.$ac_ext >&5
1412 echo "$ac_t""$ac_cv_c_const" 1>&6
1413 if test $ac_cv_c_const = no; then
1414 cat >> confdefs.h <<\EOF
1420 echo $ac_n "checking for inline""... $ac_c" 1>&6
1421 echo "configure:1422: checking for inline" >&5
1422 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1426 for ac_kw in inline __inline__ __inline; do
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1435 if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1437 ac_cv_c_inline=$ac_kw; break
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1447 echo "$ac_t""$ac_cv_c_inline" 1>&6
1448 case "$ac_cv_c_inline" in
1450 no) cat >> confdefs.h <<\EOF
1454 *) cat >> confdefs.h <<EOF
1455 #define inline $ac_cv_c_inline
1460 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1461 echo "configure:1462: checking for off_t" >&5
1462 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 cat > conftest.$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1468 #include <sys/types.h>
1474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1475 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1477 ac_cv_type_off_t=yes
1485 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1486 if test $ac_cv_type_off_t = no; then
1487 cat >> confdefs.h <<\EOF
1493 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1494 echo "configure:1495: checking for size_t" >&5
1495 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 #include <sys/types.h>
1507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1508 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1510 ac_cv_type_size_t=yes
1513 ac_cv_type_size_t=no
1518 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1519 if test $ac_cv_type_size_t = no; then
1520 cat >> confdefs.h <<\EOF
1521 #define size_t unsigned
1526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1527 # for constant arguments. Useless!
1528 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1529 echo "configure:1530: checking for working alloca.h" >&5
1530 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1538 char *p = alloca(2 * sizeof(int));
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 ac_cv_header_alloca_h=yes
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 ac_cv_header_alloca_h=no
1553 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1554 if test $ac_cv_header_alloca_h = yes; then
1555 cat >> confdefs.h <<\EOF
1556 #define HAVE_ALLOCA_H 1
1561 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1562 echo "configure:1563: checking for alloca" >&5
1563 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1571 # define alloca __builtin_alloca
1574 # include <malloc.h>
1575 # define alloca _alloca
1578 # include <alloca.h>
1583 # ifndef alloca /* predefined by HP cc +Olibcalls */
1592 char *p = (char *) alloca(1);
1595 if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597 ac_cv_func_alloca_works=yes
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 ac_cv_func_alloca_works=no
1607 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1608 if test $ac_cv_func_alloca_works = yes; then
1609 cat >> confdefs.h <<\EOF
1610 #define HAVE_ALLOCA 1
1615 if test $ac_cv_func_alloca_works = no; then
1616 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1617 # that cause trouble. Some versions do not even contain alloca or
1618 # contain a buggy version. If you still want to use their alloca,
1619 # use ar to extract alloca.o from them instead of compiling alloca.c.
1620 ALLOCA=alloca.${ac_objext}
1621 cat >> confdefs.h <<\EOF
1626 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1627 echo "configure:1628: checking whether alloca needs Cray hooks" >&5
1628 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #if defined(CRAY) && ! defined(CRAY2)
1641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1642 egrep "webecray" >/dev/null 2>&1; then
1653 echo "$ac_t""$ac_cv_os_cray" 1>&6
1654 if test $ac_cv_os_cray = yes; then
1655 for ac_func in _getb67 GETB67 getb67; do
1656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_func" >&5
1658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 /* System header to define __stub macros and hopefully few prototypes,
1665 which can conflict with char $ac_func(); below. */
1667 /* Override any gcc2 internal prototype to avoid an error. */
1668 /* We use char because int might match the return type of a gcc2
1669 builtin and then its argument prototype would still apply. */
1674 /* The GNU C library defines this for functions which it implements
1675 to always fail with ENOSYS. Some functions are actually named
1676 something starting with __ and the normal name is an alias. */
1677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1685 if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1687 eval "ac_cv_func_$ac_func=yes"
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1692 eval "ac_cv_func_$ac_func=no"
1697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1698 echo "$ac_t""yes" 1>&6
1699 cat >> confdefs.h <<EOF
1700 #define CRAY_STACKSEG_END $ac_func
1705 echo "$ac_t""no" 1>&6
1711 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1712 echo "configure:1713: checking stack direction for C alloca" >&5
1713 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1716 if test "$cross_compiling" = yes; then
1717 ac_cv_c_stack_direction=0
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1722 find_stack_direction ()
1724 static char *addr = 0;
1729 return find_stack_direction ();
1732 return (&dummy > addr) ? 1 : -1;
1736 exit (find_stack_direction() < 0);
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1741 ac_cv_c_stack_direction=1
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 ac_cv_c_stack_direction=-1
1753 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1754 cat >> confdefs.h <<EOF
1755 #define STACK_DIRECTION $ac_cv_c_stack_direction
1760 for ac_hdr in unistd.h
1762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $ac_hdr" >&5
1765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1774 { (eval echo configure:1775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1776 if test -z "$ac_err"; then
1778 eval "ac_cv_header_$ac_safe=yes"
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1784 eval "ac_cv_header_$ac_safe=no"
1788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1791 cat >> confdefs.h <<EOF
1792 #define $ac_tr_hdr 1
1796 echo "$ac_t""no" 1>&6
1800 for ac_func in getpagesize
1802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_func" >&5
1804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $ac_func(); below. */
1813 /* Override any gcc2 internal prototype to avoid an error. */
1814 /* We use char because int might match the return type of a gcc2
1815 builtin and then its argument prototype would still apply. */
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 eval "ac_cv_func_$ac_func=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_func_$ac_func=no"
1843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1846 cat >> confdefs.h <<EOF
1847 #define $ac_tr_func 1
1851 echo "$ac_t""no" 1>&6
1855 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1856 echo "configure:1857: checking for working mmap" >&5
1857 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 if test "$cross_compiling" = yes; then
1861 ac_cv_func_mmap_fixed_mapped=no
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1867 /* Thanks to Mike Haertel and Jim Avera for this test.
1868 Here is a matrix of mmap possibilities:
1869 mmap private not fixed
1870 mmap private fixed at somewhere currently unmapped
1871 mmap private fixed at somewhere already mapped
1872 mmap shared not fixed
1873 mmap shared fixed at somewhere currently unmapped
1874 mmap shared fixed at somewhere already mapped
1875 For private mappings, we should verify that changes cannot be read()
1876 back from the file, nor mmap's back from the file at a different
1877 address. (There have been systems where private was not correctly
1878 implemented like the infamous i386 svr4.0, and systems where the
1879 VM page cache was not coherent with the filesystem buffer cache
1880 like early versions of FreeBSD and possibly contemporary NetBSD.)
1881 For shared mappings, we should conversely verify that changes get
1882 propogated back to all the places they're supposed to be.
1884 Grep wants private fixed already mapped.
1885 The main things grep needs to know about mmap are:
1886 * does it exist and is it safe to write into the mmap'd area
1887 * how to use it (BSD variants) */
1888 #include <sys/types.h>
1890 #include <sys/mman.h>
1892 /* This mess was copied from the GNU getpagesize.h. */
1893 #ifndef HAVE_GETPAGESIZE
1894 # ifdef HAVE_UNISTD_H
1895 # include <unistd.h>
1898 /* Assume that all systems that can run configure have sys/param.h. */
1899 # ifndef HAVE_SYS_PARAM_H
1900 # define HAVE_SYS_PARAM_H 1
1903 # ifdef _SC_PAGESIZE
1904 # define getpagesize() sysconf(_SC_PAGESIZE)
1905 # else /* no _SC_PAGESIZE */
1906 # ifdef HAVE_SYS_PARAM_H
1907 # include <sys/param.h>
1908 # ifdef EXEC_PAGESIZE
1909 # define getpagesize() EXEC_PAGESIZE
1910 # else /* no EXEC_PAGESIZE */
1912 # define getpagesize() NBPG * CLSIZE
1915 # endif /* no CLSIZE */
1916 # else /* no NBPG */
1918 # define getpagesize() NBPC
1919 # else /* no NBPC */
1921 # define getpagesize() PAGESIZE
1922 # endif /* PAGESIZE */
1923 # endif /* no NBPC */
1924 # endif /* no NBPG */
1925 # endif /* no EXEC_PAGESIZE */
1926 # else /* no HAVE_SYS_PARAM_H */
1927 # define getpagesize() 8192 /* punt totally */
1928 # endif /* no HAVE_SYS_PARAM_H */
1929 # endif /* no _SC_PAGESIZE */
1931 #endif /* no HAVE_GETPAGESIZE */
1934 extern "C" { void *malloc(unsigned); }
1942 char *data, *data2, *data3;
1946 pagesize = getpagesize();
1949 * First, make a file with some known garbage in it.
1951 data = malloc(pagesize);
1954 for (i = 0; i < pagesize; ++i)
1955 *(data + i) = rand();
1957 fd = creat("conftestmmap", 0600);
1960 if (write(fd, data, pagesize) != pagesize)
1965 * Next, try to mmap the file at a fixed address which
1966 * already has something else allocated at it. If we can,
1967 * also make sure that we see the same garbage.
1969 fd = open("conftestmmap", O_RDWR);
1972 data2 = malloc(2 * pagesize);
1975 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1976 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1977 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1979 for (i = 0; i < pagesize; ++i)
1980 if (*(data + i) != *(data2 + i))
1984 * Finally, make sure that changes to the mapped area
1985 * do not percolate back to the file as seen by read().
1986 * (This is a bug on some variants of i386 svr4.0.)
1988 for (i = 0; i < pagesize; ++i)
1989 *(data2 + i) = *(data2 + i) + 1;
1990 data3 = malloc(pagesize);
1993 if (read(fd, data3, pagesize) != pagesize)
1995 for (i = 0; i < pagesize; ++i)
1996 if (*(data + i) != *(data3 + i))
1999 unlink("conftestmmap");
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2006 ac_cv_func_mmap_fixed_mapped=yes
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 ac_cv_func_mmap_fixed_mapped=no
2018 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2019 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2020 cat >> confdefs.h <<\EOF
2027 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether we are using the GNU C Library 2.1 or newer" >&5
2029 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2036 #include <features.h>
2037 #ifdef __GNU_LIBRARY__
2038 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2045 egrep "Lucky GNU user" >/dev/null 2>&1; then
2047 ac_cv_gnu_library_2_1=yes
2050 ac_cv_gnu_library_2_1=no
2058 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2060 GLIBC21="$ac_cv_gnu_library_2_1"
2064 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2065 stdlib.h string.h unistd.h sys/param.h
2067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_hdr" >&5
2070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079 { (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2081 if test -z "$ac_err"; then
2083 eval "ac_cv_header_$ac_safe=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 eval "ac_cv_header_$ac_safe=no"
2093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2096 cat >> confdefs.h <<EOF
2097 #define $ac_tr_hdr 1
2101 echo "$ac_t""no" 1>&6
2105 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2106 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2107 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_func" >&5
2111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 /* System header to define __stub macros and hopefully few prototypes,
2118 which can conflict with char $ac_func(); below. */
2120 /* Override any gcc2 internal prototype to avoid an error. */
2121 /* We use char because int might match the return type of a gcc2
2122 builtin and then its argument prototype would still apply. */
2127 /* The GNU C library defines this for functions which it implements
2128 to always fail with ENOSYS. Some functions are actually named
2129 something starting with __ and the normal name is an alias. */
2130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2138 if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2140 eval "ac_cv_func_$ac_func=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2145 eval "ac_cv_func_$ac_func=no"
2150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2151 echo "$ac_t""yes" 1>&6
2152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2153 cat >> confdefs.h <<EOF
2154 #define $ac_tr_func 1
2158 echo "$ac_t""no" 1>&6
2165 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2166 if test "${with_libiconv_prefix+set}" = set; then
2167 withval="$with_libiconv_prefix"
2169 for dir in `echo "$withval" | tr : ' '`; do
2170 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2171 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2177 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2178 echo "configure:2179: checking for iconv" >&5
2179 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2183 am_cv_func_iconv="no, consider installing GNU libiconv"
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2191 iconv_t cd = iconv_open("","");
2192 iconv(cd,NULL,NULL,NULL,NULL);
2196 if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198 am_cv_func_iconv=yes
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2204 if test "$am_cv_func_iconv" != yes; then
2205 am_save_LIBS="$LIBS"
2206 LIBS="$LIBS -liconv"
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2213 iconv_t cd = iconv_open("","");
2214 iconv(cd,NULL,NULL,NULL,NULL);
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2221 am_cv_func_iconv=yes
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2227 LIBS="$am_save_LIBS"
2232 echo "$ac_t""$am_cv_func_iconv" 1>&6
2233 if test "$am_cv_func_iconv" = yes; then
2234 cat >> confdefs.h <<\EOF
2235 #define HAVE_ICONV 1
2238 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2239 echo "configure:2240: checking for iconv declaration" >&5
2240 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2254 #if defined(__STDC__) || defined(__cplusplus)
2255 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2264 if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2266 am_cv_proto_iconv_arg1=""
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2271 am_cv_proto_iconv_arg1="const"
2274 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);"
2277 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2278 echo "$ac_t""${ac_t:-
2279 }$am_cv_proto_iconv" 1>&6
2280 cat >> confdefs.h <<EOF
2281 #define ICONV_CONST $am_cv_proto_iconv_arg1
2286 if test "$am_cv_lib_iconv" = yes; then
2292 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2293 echo "configure:2294: checking for nl_langinfo and CODESET" >&5
2294 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2300 #include <langinfo.h>
2302 char* cs = nl_langinfo(CODESET);
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2307 am_cv_langinfo_codeset=yes
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 am_cv_langinfo_codeset=no
2318 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2319 if test $am_cv_langinfo_codeset = yes; then
2320 cat >> confdefs.h <<\EOF
2321 #define HAVE_LANGINFO_CODESET 1
2326 if test $ac_cv_header_locale_h = yes; then
2327 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2328 echo "configure:2329: checking for LC_MESSAGES" >&5
2329 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2342 am_cv_val_LC_MESSAGES=yes
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2347 am_cv_val_LC_MESSAGES=no
2352 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2353 if test $am_cv_val_LC_MESSAGES = yes; then
2354 cat >> confdefs.h <<\EOF
2355 #define HAVE_LC_MESSAGES 1
2360 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2361 echo "configure:2362: checking whether NLS is requested" >&5
2362 # Check whether --enable-nls or --disable-nls was given.
2363 if test "${enable_nls+set}" = set; then
2364 enableval="$enable_nls"
2370 echo "$ac_t""$USE_NLS" 1>&6
2373 BUILD_INCLUDED_LIBINTL=no
2374 USE_INCLUDED_LIBINTL=no
2377 if test "$USE_NLS" = "yes"; then
2378 cat >> confdefs.h <<\EOF
2379 #define ENABLE_NLS 1
2382 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2383 echo "configure:2384: checking whether included gettext is requested" >&5
2384 # Check whether --with-included-gettext or --without-included-gettext was given.
2385 if test "${with_included_gettext+set}" = set; then
2386 withval="$with_included_gettext"
2387 nls_cv_force_use_gnu_gettext=$withval
2389 nls_cv_force_use_gnu_gettext=no
2392 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2394 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2395 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2401 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2402 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2403 echo "configure:2404: checking for libintl.h" >&5
2404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2410 #include <libintl.h>
2412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2413 { (eval echo configure:2414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2415 if test -z "$ac_err"; then
2417 eval "ac_cv_header_$ac_safe=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 eval "ac_cv_header_$ac_safe=no"
2427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2430 echo "configure:2431: checking for GNU gettext in libc" >&5
2431 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2437 #include <libintl.h>
2438 extern int _nl_msg_cat_cntr;
2440 bindtextdomain ("", "");
2441 return (int) gettext ("") + _nl_msg_cat_cntr
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 gt_cv_func_gnugettext1_libc=yes
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2451 gt_cv_func_gnugettext1_libc=no
2456 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2458 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2459 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2460 echo "configure:2461: checking for GNU gettext in libintl" >&5
2461 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 gt_save_LIBS="$LIBS"
2465 LIBS="$LIBS -lintl $LIBICONV"
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 #include <libintl.h>
2470 extern int _nl_msg_cat_cntr;
2472 bindtextdomain ("", "");
2473 return (int) gettext ("") + _nl_msg_cat_cntr
2476 if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2478 gt_cv_func_gnugettext1_libintl=yes
2480 echo "configure: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2483 gt_cv_func_gnugettext1_libintl=no
2486 LIBS="$gt_save_LIBS"
2489 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2492 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2493 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2494 && test "$PACKAGE" != gettext; }; then
2495 cat >> confdefs.h <<\EOF
2496 #define HAVE_GETTEXT 1
2500 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2501 INTLLIBS="-lintl $LIBICONV"
2504 gt_save_LIBS="$LIBS"
2505 LIBS="$LIBS $INTLLIBS"
2506 for ac_func in dcgettext
2508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_func" >&5
2510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516 /* System header to define __stub macros and hopefully few prototypes,
2517 which can conflict with char $ac_func(); below. */
2519 /* Override any gcc2 internal prototype to avoid an error. */
2520 /* We use char because int might match the return type of a gcc2
2521 builtin and then its argument prototype would still apply. */
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2537 if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2539 eval "ac_cv_func_$ac_func=yes"
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2544 eval "ac_cv_func_$ac_func=no"
2549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2552 cat >> confdefs.h <<EOF
2553 #define $ac_tr_func 1
2557 echo "$ac_t""no" 1>&6
2561 LIBS="$gt_save_LIBS"
2563 # Extract the first word of "msgfmt", so it can be a program name with args.
2564 set dummy msgfmt; ac_word=$2
2565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_word" >&5
2567 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2572 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2576 for ac_dir in $PATH; do
2577 test -z "$ac_dir" && ac_dir=.
2578 if test -f $ac_dir/$ac_word; then
2579 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2580 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2586 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2590 MSGFMT="$ac_cv_path_MSGFMT"
2591 if test "$MSGFMT" != ":"; then
2592 echo "$ac_t""$MSGFMT" 1>&6
2594 echo "$ac_t""no" 1>&6
2597 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2598 set dummy gmsgfmt; ac_word=$2
2599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2600 echo "configure:2601: checking for $ac_word" >&5
2601 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2606 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2614 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 if test -f $ac_dir/$ac_word; then
2617 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2622 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2626 GMSGFMT="$ac_cv_path_GMSGFMT"
2627 if test -n "$GMSGFMT"; then
2628 echo "$ac_t""$GMSGFMT" 1>&6
2630 echo "$ac_t""no" 1>&6
2634 # Extract the first word of "xgettext", so it can be a program name with args.
2635 set dummy xgettext; ac_word=$2
2636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $ac_word" >&5
2638 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2643 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2647 for ac_dir in $PATH; do
2648 test -z "$ac_dir" && ac_dir=.
2649 if test -f $ac_dir/$ac_word; then
2650 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2651 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2657 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2661 XGETTEXT="$ac_cv_path_XGETTEXT"
2662 if test "$XGETTEXT" != ":"; then
2663 echo "$ac_t""$XGETTEXT" 1>&6
2665 echo "$ac_t""no" 1>&6
2673 echo "$ac_t""no" 1>&6
2677 if test "$CATOBJEXT" = "NONE"; then
2678 nls_cv_use_gnu_gettext=yes
2682 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2683 INTLOBJS="\$(GETTOBJS)"
2684 # Extract the first word of "msgfmt", so it can be a program name with args.
2685 set dummy msgfmt; ac_word=$2
2686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_word" >&5
2688 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2693 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2697 for ac_dir in $PATH; do
2698 test -z "$ac_dir" && ac_dir=.
2699 if test -f $ac_dir/$ac_word; then
2700 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2701 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2707 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2711 MSGFMT="$ac_cv_path_MSGFMT"
2712 if test "$MSGFMT" != ":"; then
2713 echo "$ac_t""$MSGFMT" 1>&6
2715 echo "$ac_t""no" 1>&6
2718 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2719 set dummy gmsgfmt; ac_word=$2
2720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_word" >&5
2722 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2727 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2730 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2735 for ac_dir in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2743 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2747 GMSGFMT="$ac_cv_path_GMSGFMT"
2748 if test -n "$GMSGFMT"; then
2749 echo "$ac_t""$GMSGFMT" 1>&6
2751 echo "$ac_t""no" 1>&6
2754 # Extract the first word of "xgettext", so it can be a program name with args.
2755 set dummy xgettext; ac_word=$2
2756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_word" >&5
2758 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2763 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2767 for ac_dir in $PATH; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2771 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2777 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2781 XGETTEXT="$ac_cv_path_XGETTEXT"
2782 if test "$XGETTEXT" != ":"; then
2783 echo "$ac_t""$XGETTEXT" 1>&6
2785 echo "$ac_t""no" 1>&6
2789 BUILD_INCLUDED_LIBINTL=yes
2790 USE_INCLUDED_LIBINTL=yes
2792 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2793 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2796 if test "$GMSGFMT" != ":"; then
2797 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2800 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2805 if test "$XGETTEXT" != ":"; then
2806 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2809 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2819 if test "$PACKAGE" = gettext; then
2820 BUILD_INCLUDED_LIBINTL=yes
2823 for ac_prog in bison
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826 set dummy $ac_prog; ac_word=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 if test -n "$INTLBISON"; then
2833 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2837 for ac_dir in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir=.
2839 if test -f $ac_dir/$ac_word; then
2840 ac_cv_prog_INTLBISON="$ac_prog"
2847 INTLBISON="$ac_cv_prog_INTLBISON"
2848 if test -n "$INTLBISON"; then
2849 echo "$ac_t""$INTLBISON" 1>&6
2851 echo "$ac_t""no" 1>&6
2854 test -n "$INTLBISON" && break
2857 if test -z "$INTLBISON"; then
2860 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2861 echo "configure:2862: checking version of bison" >&5
2862 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2863 case $ac_prog_version in
2864 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2865 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2866 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2867 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2869 echo "$ac_t""$ac_prog_version" 1>&6
2871 if test $ac_verc_fail = yes; then
2875 for lang in $ALL_LINGUAS; do
2876 GMOFILES="$GMOFILES $lang.gmo"
2877 POFILES="$POFILES $lang.po"
2891 nls_cv_header_libgt=
2903 if test "x$CATOBJEXT" != "x"; then
2904 if test "x$ALL_LINGUAS" = "x"; then
2907 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2908 echo "configure:2909: checking for catalogs to be installed" >&5
2910 for presentlang in $ALL_LINGUAS; do
2912 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2913 # Use the presentlang catalog if desiredlang is
2914 # a. equal to presentlang, or
2915 # b. a variant of presentlang (because in this case,
2916 # presentlang can be used as a fallback for messages
2917 # which are not translated in the desiredlang catalog).
2918 case "$desiredlang" in
2919 "$presentlang"*) useit=yes;;
2922 if test $useit = yes; then
2923 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2926 LINGUAS=$NEW_LINGUAS
2927 echo "$ac_t""$LINGUAS" 1>&6
2930 if test -n "$LINGUAS"; then
2931 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2936 if test -n "$ac_aux_dir"; then
2937 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2939 if test -z "$MKINSTALLDIRS"; then
2940 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2944 INTL_LIBTOOL_SUFFIX_PREFIX=
2948 # Find a good install program. We prefer a C program (faster),
2949 # so one script is as good as another. But avoid the broken or
2950 # incompatible versions:
2951 # SysV /etc/install, /usr/sbin/install
2952 # SunOS /usr/etc/install
2953 # IRIX /sbin/install
2955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2958 # ./install, which can be erroneously created by make from ./install.sh.
2959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2960 echo "configure:2961: checking for a BSD compatible install" >&5
2961 if test -z "$INSTALL"; then
2962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2966 for ac_dir in $PATH; do
2967 # Account for people who put trailing slashes in PATH elements.
2969 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2971 # OSF1 and SCO ODT 3.0 have their own names for install.
2972 # Don't use installbsd from OSF since it installs stuff as root
2974 for ac_prog in ginstall scoinst install; do
2975 if test -f $ac_dir/$ac_prog; then
2976 if test $ac_prog = install &&
2977 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2978 # AIX install. It has an incompatible calling convention.
2981 ac_cv_path_install="$ac_dir/$ac_prog -c"
2992 if test "${ac_cv_path_install+set}" = set; then
2993 INSTALL="$ac_cv_path_install"
2995 # As a last resort, use the slow shell script. We don't cache a
2996 # path for INSTALL within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the path is relative.
2999 INSTALL="$ac_install_sh"
3002 echo "$ac_t""$INSTALL" 1>&6
3004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3005 # It thinks the first close brace ends the variable substitution.
3006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3013 if test x${cross_compiling} != xyes; then
3014 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3015 echo "configure:3016: checking whether byte ordering is bigendian" >&5
3016 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 ac_cv_c_bigendian=unknown
3020 # See if sys/param.h defines the BYTE_ORDER macro.
3021 cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 #include <sys/types.h>
3025 #include <sys/param.h>
3028 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3033 if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 # It does; now see whether it defined to BIG_ENDIAN or not.
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 #include <sys/types.h>
3040 #include <sys/param.h>
3043 #if BYTE_ORDER != BIG_ENDIAN
3048 if { (eval echo configure:3049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3050 ac_cv_c_bigendian=yes
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3055 ac_cv_c_bigendian=no
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3063 if test $ac_cv_c_bigendian = unknown; then
3064 if test "$cross_compiling" = yes; then
3065 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3071 /* Are we little or big endian? From Harbison&Steele. */
3075 char c[sizeof (long)];
3078 exit (u.c[sizeof (long) - 1] == 1);
3081 if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3083 ac_cv_c_bigendian=no
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3088 ac_cv_c_bigendian=yes
3096 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3097 if test $ac_cv_c_bigendian = yes; then
3098 cat >> confdefs.h <<\EOF
3099 #define WORDS_BIGENDIAN 1
3105 # Check whether --with-words or --without-words was given.
3106 if test "${with_words+set}" = set; then
3107 withval="$with_words"
3113 ac_cv_c_bigendian=yes
3116 ac_cv_c_bigendian=no
3119 ac_cv_c_bigendian=unknown
3120 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
3121 echo "configure:3122: checking what the byte order looks to be" >&5
3122 cat >conftest.c <<EOF
3123 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
3124 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
3125 void _a(void) { char*s = (char*)am; s = (char *)ai; }
3126 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
3127 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
3128 void _e(void) { char*s = (char*)em; s = (char*)ei; }
3129 int main(void) { _a(); _e(); return 0; }
3132 if test -f conftest.c
3134 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
3135 && test -f conftest.o
3137 if test `grep -l BIGenDianSyS conftest.o`
3139 echo "$ac_t"""big endian"" 1>&6
3140 ac_cv_c_bigendian=yes
3142 if test `grep -l LiTTleEnDian conftest.o`
3144 echo "$ac_t"""little endian"" 1>&6
3145 ac_cv_c_bigendian=no
3149 if test $ac_cv_c_bigendian = xunknown
3151 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
3153 if test $ac_cv_c_bigendian = yes
3155 cat >> confdefs.h <<\EOF
3156 #define WORDS_BIGENDIAN 1
3163 for ac_func in gettimeofday select strerror strtod strtol
3165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3166 echo "configure:3167: checking for $ac_func" >&5
3167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3173 /* System header to define __stub macros and hopefully few prototypes,
3174 which can conflict with char $ac_func(); below. */
3176 /* Override any gcc2 internal prototype to avoid an error. */
3177 /* We use char because int might match the return type of a gcc2
3178 builtin and then its argument prototype would still apply. */
3183 /* The GNU C library defines this for functions which it implements
3184 to always fail with ENOSYS. Some functions are actually named
3185 something starting with __ and the normal name is an alias. */
3186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3194 if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3196 eval "ac_cv_func_$ac_func=yes"
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3201 eval "ac_cv_func_$ac_func=no"
3206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3207 echo "$ac_t""yes" 1>&6
3208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3209 cat >> confdefs.h <<EOF
3210 #define $ac_tr_func 1
3214 echo "$ac_t""no" 1>&6
3218 for ac_func in setenv putenv
3220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3221 echo "configure:3222: checking for $ac_func" >&5
3222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 /* System header to define __stub macros and hopefully few prototypes,
3229 which can conflict with char $ac_func(); below. */
3231 /* Override any gcc2 internal prototype to avoid an error. */
3232 /* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3238 /* The GNU C library defines this for functions which it implements
3239 to always fail with ENOSYS. Some functions are actually named
3240 something starting with __ and the normal name is an alias. */
3241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3249 if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3251 eval "ac_cv_func_$ac_func=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 eval "ac_cv_func_$ac_func=no"
3261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3262 echo "$ac_t""yes" 1>&6
3263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3264 cat >> confdefs.h <<EOF
3265 #define $ac_tr_func 1
3269 echo "$ac_t""no" 1>&6
3273 echo $ac_n "checking for connect""... $ac_c" 1>&6
3274 echo "configure:3275: checking for connect" >&5
3275 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 /* System header to define __stub macros and hopefully few prototypes,
3282 which can conflict with char connect(); below. */
3284 /* Override any gcc2 internal prototype to avoid an error. */
3285 /* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3291 /* The GNU C library defines this for functions which it implements
3292 to always fail with ENOSYS. Some functions are actually named
3293 something starting with __ and the normal name is an alias. */
3294 #if defined (__stub_connect) || defined (__stub___connect)
3302 if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3304 eval "ac_cv_func_connect=yes"
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3309 eval "ac_cv_func_connect=no"
3314 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3315 echo "$ac_t""yes" 1>&6
3318 echo "$ac_t""no" 1>&6
3320 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3321 echo "configure:3322: checking for connect in -lsocket" >&5
3322 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 ac_save_LIBS="$LIBS"
3327 LIBS="-lsocket $LIBS"
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3342 eval "ac_cv_lib_$ac_lib_var=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_lib_$ac_lib_var=no"
3350 LIBS="$ac_save_LIBS"
3353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 LIB="${LIB} -lsocket"
3357 echo "$ac_t""no" 1>&6
3363 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3364 echo "configure:3365: checking for gethostbyname" >&5
3365 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* System header to define __stub macros and hopefully few prototypes,
3372 which can conflict with char gethostbyname(); below. */
3374 /* Override any gcc2 internal prototype to avoid an error. */
3375 /* We use char because int might match the return type of a gcc2
3376 builtin and then its argument prototype would still apply. */
3377 char gethostbyname();
3381 /* The GNU C library defines this for functions which it implements
3382 to always fail with ENOSYS. Some functions are actually named
3383 something starting with __ and the normal name is an alias. */
3384 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3392 if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 eval "ac_cv_func_gethostbyname=yes"
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 eval "ac_cv_func_gethostbyname=no"
3404 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3408 echo "$ac_t""no" 1>&6
3410 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3411 echo "configure:3412: checking for gethostbyname in -lnsl" >&5
3412 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 ac_save_LIBS="$LIBS"
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3424 char gethostbyname();
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3432 eval "ac_cv_lib_$ac_lib_var=yes"
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3437 eval "ac_cv_lib_$ac_lib_var=no"
3440 LIBS="$ac_save_LIBS"
3443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3444 echo "$ac_t""yes" 1>&6
3447 echo "$ac_t""no" 1>&6
3453 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3454 echo "configure:3455: checking for nanosleep" >&5
3455 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 /* System header to define __stub macros and hopefully few prototypes,
3462 which can conflict with char nanosleep(); below. */
3464 /* Override any gcc2 internal prototype to avoid an error. */
3465 /* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3471 /* The GNU C library defines this for functions which it implements
3472 to always fail with ENOSYS. Some functions are actually named
3473 something starting with __ and the normal name is an alias. */
3474 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
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_func_nanosleep=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3489 eval "ac_cv_func_nanosleep=no"
3494 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3495 echo "$ac_t""yes" 1>&6
3498 echo "$ac_t""no" 1>&6
3500 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3501 echo "configure:3502: checking for nanosleep in -lrt" >&5
3502 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 ac_save_LIBS="$LIBS"
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 /* Override any gcc2 internal prototype to avoid an error. */
3512 /* We use char because int might match the return type of a gcc2
3513 builtin and then its argument prototype would still apply. */
3520 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3522 eval "ac_cv_lib_$ac_lib_var=yes"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 eval "ac_cv_lib_$ac_lib_var=no"
3530 LIBS="$ac_save_LIBS"
3533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3534 echo "$ac_t""yes" 1>&6
3537 echo "$ac_t""no" 1>&6
3539 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3540 echo "configure:3541: checking for nanosleep in -lposix4" >&5
3541 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 ac_save_LIBS="$LIBS"
3546 LIBS="-lposix4 $LIBS"
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 /* Override any gcc2 internal prototype to avoid an error. */
3551 /* We use char because int might match the return type of a gcc2
3552 builtin and then its argument prototype would still apply. */
3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3561 eval "ac_cv_lib_$ac_lib_var=yes"
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3566 eval "ac_cv_lib_$ac_lib_var=no"
3569 LIBS="$ac_save_LIBS"
3572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3573 echo "$ac_t""yes" 1>&6
3574 LIB="${LIB} -lposix4"
3576 echo "$ac_t""no" 1>&6
3585 for ac_func in usleep
3587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_func" >&5
3589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* System header to define __stub macros and hopefully few prototypes,
3596 which can conflict with char $ac_func(); below. */
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3605 /* The GNU C library defines this for functions which it implements
3606 to always fail with ENOSYS. Some functions are actually named
3607 something starting with __ and the normal name is an alias. */
3608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3618 eval "ac_cv_func_$ac_func=yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 eval "ac_cv_func_$ac_func=no"
3628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3629 echo "$ac_t""yes" 1>&6
3630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3631 cat >> confdefs.h <<EOF
3632 #define $ac_tr_func 1
3636 echo "$ac_t""no" 1>&6
3640 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3641 echo "configure:3642: checking for inet_aton" >&5
3642 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 /* System header to define __stub macros and hopefully few prototypes,
3649 which can conflict with char inet_aton(); below. */
3651 /* Override any gcc2 internal prototype to avoid an error. */
3652 /* We use char because int might match the return type of a gcc2
3653 builtin and then its argument prototype would still apply. */
3658 /* The GNU C library defines this for functions which it implements
3659 to always fail with ENOSYS. Some functions are actually named
3660 something starting with __ and the normal name is an alias. */
3661 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3671 eval "ac_cv_func_inet_aton=yes"
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3676 eval "ac_cv_func_inet_aton=no"
3681 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3682 echo "$ac_t""yes" 1>&6
3685 echo "$ac_t""no" 1>&6
3687 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3688 echo "configure:3689: checking for inet_aton in -lresolv" >&5
3689 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 ac_save_LIBS="$LIBS"
3694 LIBS="-lresolv $LIBS"
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 /* Override any gcc2 internal prototype to avoid an error. */
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3707 if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3709 eval "ac_cv_lib_$ac_lib_var=yes"
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3714 eval "ac_cv_lib_$ac_lib_var=no"
3717 LIBS="$ac_save_LIBS"
3720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 LIB="${LIB} -lresolv"
3724 echo "$ac_t""no" 1>&6
3730 for ac_func in vasprintf
3732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3733 echo "configure:3734: checking for $ac_func" >&5
3734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char $ac_func(); below. */
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3750 /* The GNU C library defines this for functions which it implements
3751 to always fail with ENOSYS. Some functions are actually named
3752 something starting with __ and the normal name is an alias. */
3753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3761 if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3763 eval "ac_cv_func_$ac_func=yes"
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3768 eval "ac_cv_func_$ac_func=no"
3773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3776 cat >> confdefs.h <<EOF
3777 #define $ac_tr_func 1
3781 echo "$ac_t""no" 1>&6
3787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3788 echo "configure:3789: checking for $ac_func" >&5
3789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 /* System header to define __stub macros and hopefully few prototypes,
3796 which can conflict with char $ac_func(); below. */
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 /* We use char because int might match the return type of a gcc2
3800 builtin and then its argument prototype would still apply. */
3805 /* The GNU C library defines this for functions which it implements
3806 to always fail with ENOSYS. Some functions are actually named
3807 something starting with __ and the normal name is an alias. */
3808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3816 if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3818 eval "ac_cv_func_$ac_func=yes"
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 eval "ac_cv_func_$ac_func=no"
3828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3831 cat >> confdefs.h <<EOF
3832 #define $ac_tr_func 1
3836 echo "$ac_t""no" 1>&6
3840 for ac_func in memalign valloc
3842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3843 echo "configure:3844: checking for $ac_func" >&5
3844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 /* System header to define __stub macros and hopefully few prototypes,
3851 which can conflict with char $ac_func(); below. */
3853 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3860 /* The GNU C library defines this for functions which it implements
3861 to always fail with ENOSYS. Some functions are actually named
3862 something starting with __ and the normal name is an alias. */
3863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3871 if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 eval "ac_cv_func_$ac_func=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 eval "ac_cv_func_$ac_func=no"
3883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3884 echo "$ac_t""yes" 1>&6
3885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3886 cat >> confdefs.h <<EOF
3887 #define $ac_tr_func 1
3891 echo "$ac_t""no" 1>&6
3896 for ac_func in sigrelse
3898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3899 echo "configure:3900: checking for $ac_func" >&5
3900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 /* System header to define __stub macros and hopefully few prototypes,
3907 which can conflict with char $ac_func(); below. */
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3916 /* The GNU C library defines this for functions which it implements
3917 to always fail with ENOSYS. Some functions are actually named
3918 something starting with __ and the normal name is an alias. */
3919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3929 eval "ac_cv_func_$ac_func=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_func_$ac_func=no"
3939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3942 cat >> confdefs.h <<EOF
3943 #define $ac_tr_func 1
3947 echo "$ac_t""no" 1>&6
3953 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3954 echo "configure:3955: checking for getopt_long" >&5
3955 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 /* System header to define __stub macros and hopefully few prototypes,
3962 which can conflict with char getopt_long(); below. */
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3971 /* The GNU C library defines this for functions which it implements
3972 to always fail with ENOSYS. Some functions are actually named
3973 something starting with __ and the normal name is an alias. */
3974 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984 eval "ac_cv_func_getopt_long=yes"
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 eval "ac_cv_func_getopt_long=no"
3994 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_GETOPT_LONG 1
4001 echo "$ac_t""no" 1>&6
4002 # FreeBSD has a gnugetopt library for this:
4003 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4004 echo "configure:4005: checking for getopt_long in -lgnugetopt" >&5
4005 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 ac_save_LIBS="$LIBS"
4010 LIBS="-lgnugetopt $LIBS"
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 /* Override any gcc2 internal prototype to avoid an error. */
4015 /* We use char because int might match the return type of a gcc2
4016 builtin and then its argument prototype would still apply. */
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025 eval "ac_cv_lib_$ac_lib_var=yes"
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 eval "ac_cv_lib_$ac_lib_var=no"
4033 LIBS="$ac_save_LIBS"
4036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4037 echo "$ac_t""yes" 1>&6
4038 cat >> confdefs.h <<\EOF
4039 #define HAVE_GETOPT_LONG 1
4041 LIB="${LIB} -lgnugetopt"
4043 echo "$ac_t""no" 1>&6
4050 for ac_hdr in unistd.h
4052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_hdr" >&5
4055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4064 { (eval echo configure:4065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4066 if test -z "$ac_err"; then
4068 eval "ac_cv_header_$ac_safe=yes"
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4074 eval "ac_cv_header_$ac_safe=no"
4078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4081 cat >> confdefs.h <<EOF
4082 #define $ac_tr_hdr 1
4086 echo "$ac_t""no" 1>&6
4090 for ac_func in getpagesize
4092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4093 echo "configure:4094: checking for $ac_func" >&5
4094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 /* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char $ac_func(); below. */
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4110 /* The GNU C library defines this for functions which it implements
4111 to always fail with ENOSYS. Some functions are actually named
4112 something starting with __ and the normal name is an alias. */
4113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4123 eval "ac_cv_func_$ac_func=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 eval "ac_cv_func_$ac_func=no"
4133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4136 cat >> confdefs.h <<EOF
4137 #define $ac_tr_func 1
4141 echo "$ac_t""no" 1>&6
4145 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4146 echo "configure:4147: checking for working mmap" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 if test "$cross_compiling" = yes; then
4151 ac_cv_func_mmap_fixed_mapped=no
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4157 /* Thanks to Mike Haertel and Jim Avera for this test.
4158 Here is a matrix of mmap possibilities:
4159 mmap private not fixed
4160 mmap private fixed at somewhere currently unmapped
4161 mmap private fixed at somewhere already mapped
4162 mmap shared not fixed
4163 mmap shared fixed at somewhere currently unmapped
4164 mmap shared fixed at somewhere already mapped
4165 For private mappings, we should verify that changes cannot be read()
4166 back from the file, nor mmap's back from the file at a different
4167 address. (There have been systems where private was not correctly
4168 implemented like the infamous i386 svr4.0, and systems where the
4169 VM page cache was not coherent with the filesystem buffer cache
4170 like early versions of FreeBSD and possibly contemporary NetBSD.)
4171 For shared mappings, we should conversely verify that changes get
4172 propogated back to all the places they're supposed to be.
4174 Grep wants private fixed already mapped.
4175 The main things grep needs to know about mmap are:
4176 * does it exist and is it safe to write into the mmap'd area
4177 * how to use it (BSD variants) */
4178 #include <sys/types.h>
4180 #include <sys/mman.h>
4182 /* This mess was copied from the GNU getpagesize.h. */
4183 #ifndef HAVE_GETPAGESIZE
4184 # ifdef HAVE_UNISTD_H
4185 # include <unistd.h>
4188 /* Assume that all systems that can run configure have sys/param.h. */
4189 # ifndef HAVE_SYS_PARAM_H
4190 # define HAVE_SYS_PARAM_H 1
4193 # ifdef _SC_PAGESIZE
4194 # define getpagesize() sysconf(_SC_PAGESIZE)
4195 # else /* no _SC_PAGESIZE */
4196 # ifdef HAVE_SYS_PARAM_H
4197 # include <sys/param.h>
4198 # ifdef EXEC_PAGESIZE
4199 # define getpagesize() EXEC_PAGESIZE
4200 # else /* no EXEC_PAGESIZE */
4202 # define getpagesize() NBPG * CLSIZE
4205 # endif /* no CLSIZE */
4206 # else /* no NBPG */
4208 # define getpagesize() NBPC
4209 # else /* no NBPC */
4211 # define getpagesize() PAGESIZE
4212 # endif /* PAGESIZE */
4213 # endif /* no NBPC */
4214 # endif /* no NBPG */
4215 # endif /* no EXEC_PAGESIZE */
4216 # else /* no HAVE_SYS_PARAM_H */
4217 # define getpagesize() 8192 /* punt totally */
4218 # endif /* no HAVE_SYS_PARAM_H */
4219 # endif /* no _SC_PAGESIZE */
4221 #endif /* no HAVE_GETPAGESIZE */
4224 extern "C" { void *malloc(unsigned); }
4232 char *data, *data2, *data3;
4236 pagesize = getpagesize();
4239 * First, make a file with some known garbage in it.
4241 data = malloc(pagesize);
4244 for (i = 0; i < pagesize; ++i)
4245 *(data + i) = rand();
4247 fd = creat("conftestmmap", 0600);
4250 if (write(fd, data, pagesize) != pagesize)
4255 * Next, try to mmap the file at a fixed address which
4256 * already has something else allocated at it. If we can,
4257 * also make sure that we see the same garbage.
4259 fd = open("conftestmmap", O_RDWR);
4262 data2 = malloc(2 * pagesize);
4265 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4266 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4267 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4269 for (i = 0; i < pagesize; ++i)
4270 if (*(data + i) != *(data2 + i))
4274 * Finally, make sure that changes to the mapped area
4275 * do not percolate back to the file as seen by read().
4276 * (This is a bug on some variants of i386 svr4.0.)
4278 for (i = 0; i < pagesize; ++i)
4279 *(data2 + i) = *(data2 + i) + 1;
4280 data3 = malloc(pagesize);
4283 if (read(fd, data3, pagesize) != pagesize)
4285 for (i = 0; i < pagesize; ++i)
4286 if (*(data + i) != *(data3 + i))
4289 unlink("conftestmmap");
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4296 ac_cv_func_mmap_fixed_mapped=yes
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4301 ac_cv_func_mmap_fixed_mapped=no
4308 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4310 cat >> confdefs.h <<\EOF
4316 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4317 echo "configure:4318: checking return type of signal handlers" >&5
4318 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 #include <sys/types.h>
4330 extern "C" void (*signal (int, void (*)(int)))(int);
4332 void (*signal ()) ();
4339 if { (eval echo configure:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 ac_cv_type_signal=void
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 ac_cv_type_signal=int
4351 echo "$ac_t""$ac_cv_type_signal" 1>&6
4352 cat >> confdefs.h <<EOF
4353 #define RETSIGTYPE $ac_cv_type_signal
4357 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4358 echo "configure:4359: checking for dlopen in -ldl" >&5
4359 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 ac_save_LIBS="$LIBS"
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 eval "ac_cv_lib_$ac_lib_var=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_lib_$ac_lib_var=no"
4387 LIBS="$ac_save_LIBS"
4390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4394 echo "$ac_t""no" 1>&6
4397 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4398 echo "configure:4399: checking for cos in -lm" >&5
4399 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 ac_save_LIBS="$LIBS"
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 eval "ac_cv_lib_$ac_lib_var=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 eval "ac_cv_lib_$ac_lib_var=no"
4427 LIBS="$ac_save_LIBS"
4430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 LIB_IMDCT="${LIB_IMDCT} -lm"
4433 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4435 echo "$ac_t""no" 1>&6
4438 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4439 echo "configure:4440: checking for pow in -lm" >&5
4440 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 ac_save_LIBS="$LIBS"
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 eval "ac_cv_lib_$ac_lib_var=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 eval "ac_cv_lib_$ac_lib_var=no"
4468 LIBS="$ac_save_LIBS"
4471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 LIB_IMDCT="${LIB_IMDCT} -lm"
4474 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4475 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4478 echo "$ac_t""no" 1>&6
4483 if test "x${THREAD_LIB}" = xerror; then
4484 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4485 echo "configure:4486: checking for pthread_attr_init in -lpthread" >&5
4486 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 ac_save_LIBS="$LIBS"
4491 LIBS="-lpthread $LIBS"
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4495 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4498 char pthread_attr_init();
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 eval "ac_cv_lib_$ac_lib_var=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_lib_$ac_lib_var=no"
4514 LIBS="$ac_save_LIBS"
4517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 THREAD_LIB="-lpthread"
4521 echo "$ac_t""no" 1>&6
4525 if test "x${THREAD_LIB}" = xerror; then
4526 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4527 echo "configure:4528: checking for pthread_attr_init in -lpthreads" >&5
4528 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 ac_save_LIBS="$LIBS"
4533 LIBS="-lpthreads $LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4540 char pthread_attr_init();
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548 eval "ac_cv_lib_$ac_lib_var=yes"
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 eval "ac_cv_lib_$ac_lib_var=no"
4556 LIBS="$ac_save_LIBS"
4559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 THREAD_LIB="-lpthreads"
4563 echo "$ac_t""no" 1>&6
4567 if test "x${THREAD_LIB}" = xerror; then
4568 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4569 echo "configure:4570: checking for pthread_attr_init in -lc_r" >&5
4570 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 ac_save_LIBS="$LIBS"
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4579 /* Override any gcc2 internal prototype to avoid an error. */
4580 /* We use char because int might match the return type of a gcc2
4581 builtin and then its argument prototype would still apply. */
4582 char pthread_attr_init();
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4590 eval "ac_cv_lib_$ac_lib_var=yes"
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4595 eval "ac_cv_lib_$ac_lib_var=no"
4598 LIBS="$ac_save_LIBS"
4601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4605 echo "$ac_t""no" 1>&6
4609 if test "x${THREAD_LIB}" = xerror; then
4610 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4611 echo "configure:4612: checking for pthread_attr_init" >&5
4612 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* System header to define __stub macros and hopefully few prototypes,
4619 which can conflict with char pthread_attr_init(); below. */
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4624 char pthread_attr_init();
4628 /* The GNU C library defines this for functions which it implements
4629 to always fail with ENOSYS. Some functions are actually named
4630 something starting with __ and the normal name is an alias. */
4631 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4634 pthread_attr_init();
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 eval "ac_cv_func_pthread_attr_init=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 eval "ac_cv_func_pthread_attr_init=no"
4651 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4655 echo "$ac_t""no" 1>&6
4661 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4662 echo "configure:4663: checking for cthread_fork in -lthreads" >&5
4663 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 ac_save_LIBS="$LIBS"
4668 LIBS="-lthreads $LIBS"
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4675 char cthread_fork();
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_lib_$ac_lib_var=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_lib_$ac_lib_var=no"
4691 LIBS="$ac_save_LIBS"
4694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 THREAD_LIB="-lthreads"
4698 echo "$ac_t""no" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <pthread.h>
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 egrep "pthread_cond_t" >/dev/null 2>&1; then
4711 cat >> confdefs.h <<\EOF
4712 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 #include <strings.h>
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 egrep "strncasecmp" >/dev/null 2>&1; then
4727 cat >> confdefs.h <<\EOF
4728 #define STRNCASECMP_IN_STRINGS_H 1
4735 for ac_hdr in stddef.h getopt.h strings.h
4737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_hdr" >&5
4740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4749 { (eval echo configure:4750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4751 if test -z "$ac_err"; then
4753 eval "ac_cv_header_$ac_safe=yes"
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4759 eval "ac_cv_header_$ac_safe=no"
4763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4764 echo "$ac_t""yes" 1>&6
4765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4766 cat >> confdefs.h <<EOF
4767 #define $ac_tr_hdr 1
4771 echo "$ac_t""no" 1>&6
4775 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4779 echo "configure:4780: checking for $ac_hdr" >&5
4780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 cat > conftest.$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4789 { (eval echo configure:4790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4791 if test -z "$ac_err"; then
4793 eval "ac_cv_header_$ac_safe=yes"
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4799 eval "ac_cv_header_$ac_safe=no"
4803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4806 cat >> confdefs.h <<EOF
4807 #define $ac_tr_hdr 1
4811 echo "$ac_t""no" 1>&6
4815 for ac_hdr in sys/soundcard.h machine/soundcard.h
4817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4819 echo "configure:4820: checking for $ac_hdr" >&5
4820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4829 { (eval echo configure:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4831 if test -z "$ac_err"; then
4833 eval "ac_cv_header_$ac_safe=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 eval "ac_cv_header_$ac_safe=no"
4843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4846 cat >> confdefs.h <<EOF
4847 #define $ac_tr_hdr 1
4851 echo "$ac_t""no" 1>&6
4855 for ac_hdr in dlfcn.h image.h
4857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4859 echo "configure:4860: checking for $ac_hdr" >&5
4860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
4868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4869 { (eval echo configure:4870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4871 if test -z "$ac_err"; then
4873 eval "ac_cv_header_$ac_safe=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4879 eval "ac_cv_header_$ac_safe=no"
4883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4886 cat >> confdefs.h <<EOF
4887 #define $ac_tr_hdr 1
4891 echo "$ac_t""no" 1>&6
4895 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4899 echo "configure:4900: checking for $ac_hdr" >&5
4900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4909 { (eval echo configure:4910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4911 if test -z "$ac_err"; then
4913 eval "ac_cv_header_$ac_safe=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4919 eval "ac_cv_header_$ac_safe=no"
4923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4926 cat >> confdefs.h <<EOF
4927 #define $ac_tr_hdr 1
4931 echo "$ac_t""no" 1>&6
4935 for ac_hdr in machine/param.h
4937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_hdr" >&5
4940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4949 { (eval echo configure:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4951 if test -z "$ac_err"; then
4953 eval "ac_cv_header_$ac_safe=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 eval "ac_cv_header_$ac_safe=no"
4963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4966 cat >> confdefs.h <<EOF
4967 #define $ac_tr_hdr 1
4971 echo "$ac_t""no" 1>&6
4976 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_hdr" >&5
4981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4990 { (eval echo configure:4991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4992 if test -z "$ac_err"; then
4994 eval "ac_cv_header_$ac_safe=yes"
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
5000 eval "ac_cv_header_$ac_safe=no"
5004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5005 echo "$ac_t""yes" 1>&6
5006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5007 cat >> confdefs.h <<EOF
5008 #define $ac_tr_hdr 1
5012 echo "$ac_t""no" 1>&6
5017 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5018 echo "configure:5019: checking for ntohl in sys/param.h" >&5
5019 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 CFLAGS="${save_CFLAGS} -Wall -Werror"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 #include <sys/param.h>
5028 void foo() { int meuh; ntohl(meuh); }
5031 if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5033 ac_cv_c_ntohl_sys_param_h=yes
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 ac_cv_c_ntohl_sys_param_h=no
5043 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5044 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5045 cat >> confdefs.h <<\EOF
5046 #define NTOHL_IN_SYS_PARAM_H 1
5051 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5052 echo "configure:5053: checking if \$CC accepts -finline-limit" >&5
5053 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5065 if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5067 ac_cv_c_inline_limit=yes
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5072 ac_cv_c_inline_limit=no
5077 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5078 if test x"$ac_cv_c_inline_limit" != x"no"; then
5079 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5082 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5083 echo "configure:5084: checking if \$CC accepts -bundle -undefined error" >&5
5084 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 CFLAGS="${save_CFLAGS} -bundle -undefined error"
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5096 if { (eval echo configure:5097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5108 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5109 if test x"$ac_cv_ld_darwin" != x"no"; then
5110 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
5113 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5114 echo "configure:5115: checking if \$CC accepts -shared" >&5
5115 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 CFLAGS="${save_CFLAGS} -shared"
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5127 if { (eval echo configure:5128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5129 ac_cv_ld_plugins=yes
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5139 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5140 if test x"$ac_cv_ld_plugins" != x"no"; then
5141 PLCFLAGS="${PLCFLAGS} -shared"
5144 if test x"${SOFLAGS}" = x; then
5145 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5146 echo "configure:5147: checking for soname setting" >&5
5147 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5152 try_SOFLAGS="-Wl,-soname -Wl,"
5153 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5164 ac_cv_ld_soname="${try_SOFLAGS}"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5171 try_SOFLAGS="-Wl,-h -Wl,"
5172 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5173 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183 ac_cv_ld_soname="${try_SOFLAGS}"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 ac_cv_ld_soname=none
5196 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5197 if test x"$ac_cv_ld_soname" != x"none"; then
5198 SOFLAGS=$ac_cv_ld_soname
5202 Your system doesn't seem to have support for dynamic linking. You may
5203 have problems using libdvdcss.
5209 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5210 echo "configure:5211: checking __attribute__ ((aligned ())) support" >&5
5211 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 ac_cv_c_attribute_aligned=0
5215 CFLAGS="${save_CFLAGS} -Werror"
5216 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5222 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5225 if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5236 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5237 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5238 cat >> confdefs.h <<EOF
5239 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5244 CFLAGS="${save_CFLAGS}"
5245 LDFLAGS="${save_LDFLAGS}"
5247 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5248 echo "configure:5249: checking for boolean_t in sys/types.h" >&5
5249 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5255 #include <sys/types.h>
5260 if { (eval echo configure:5261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5262 ac_cv_c_boolean_t_sys_types_h=yes
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5267 ac_cv_c_boolean_t_sys_types_h=no
5272 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5273 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5274 cat >> confdefs.h <<\EOF
5275 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5280 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5281 echo "configure:5282: checking for boolean_t in pthread.h" >&5
5282 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5288 #include <pthread.h>
5293 if { (eval echo configure:5294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5295 ac_cv_c_boolean_t_pthread_h=yes
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5300 ac_cv_c_boolean_t_pthread_h=no
5305 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5306 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5307 cat >> confdefs.h <<\EOF
5308 #define BOOLEAN_T_IN_PTHREAD_H 1
5313 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5314 echo "configure:5315: checking for boolean_t in cthreads.h" >&5
5315 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 #include <cthreads.h>
5326 if { (eval echo configure:5327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328 ac_cv_c_boolean_t_cthreads_h=yes
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 ac_cv_c_boolean_t_cthreads_h=no
5338 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5339 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5340 cat >> confdefs.h <<\EOF
5341 #define BOOLEAN_T_IN_CTHREADS_H 1
5346 echo $ac_n "checking for working const""... $ac_c" 1>&6
5347 echo "configure:5348: checking for working const" >&5
5348 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5357 /* Ultrix mips cc rejects this. */
5358 typedef int charset[2]; const charset x;
5359 /* SunOS 4.1.1 cc rejects this. */
5360 char const *const *ccp;
5362 /* NEC SVR4.0.2 mips cc rejects this. */
5363 struct point {int x, y;};
5364 static struct point const zero = {0,0};
5365 /* AIX XL C 1.02.0.0 rejects this.
5366 It does not let you subtract one const X* pointer from another in an arm
5367 of an if-expression whose if-part is not a constant expression */
5368 const char *g = "string";
5369 ccp = &g + (g ? g-g : 0);
5370 /* HPUX 7.0 cc rejects these. */
5373 ccp = (char const *const *) p;
5374 { /* SCO 3.2v4 cc rejects this. */
5376 char const *s = 0 ? (char *) 0 : (char const *) 0;
5380 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5382 const int *foo = &x[0];
5385 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5386 typedef const int *iptr;
5390 { /* AIX XL C 1.02.0.0 rejects this saying
5391 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5392 struct s { int j; const int *ap[3]; };
5393 struct s *b; b->j = 5;
5395 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5401 if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5413 echo "$ac_t""$ac_cv_c_const" 1>&6
5414 if test $ac_cv_c_const = no; then
5415 cat >> confdefs.h <<\EOF
5421 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5422 echo "configure:5423: checking for size_t" >&5
5423 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 #include <sys/types.h>
5435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5436 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5438 ac_cv_type_size_t=yes
5441 ac_cv_type_size_t=no
5446 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5447 if test $ac_cv_type_size_t = no; then
5448 cat >> confdefs.h <<\EOF
5449 #define size_t unsigned
5454 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5455 echo "configure:5456: checking whether time.h and sys/time.h may both be included" >&5
5456 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 #include <sys/types.h>
5463 #include <sys/time.h>
5469 if { (eval echo configure:5470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5471 ac_cv_header_time=yes
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 ac_cv_header_time=no
5481 echo "$ac_t""$ac_cv_header_time" 1>&6
5482 if test $ac_cv_header_time = yes; then
5483 cat >> confdefs.h <<\EOF
5484 #define TIME_WITH_SYS_TIME 1
5493 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
5494 PLUGINS="${PLUGINS} ac3_spdif spudec chroma_yv12_rgb8 filter_bob filter_invert filter_wall filter_transform filter_distort"
5496 MMX_MODULES="memcpymmx idctmmx motionmmx"
5497 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5498 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5499 SSE_MODULES="imdctsse downmixsse"
5500 ALTIVEC_MODULES="idctaltivec motionaltivec"
5502 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5503 echo "configure:5504: checking if \$CC groks MMX inline assembly" >&5
5504 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5512 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5515 if { (eval echo configure:5516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5517 ac_cv_mmx_inline=yes
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5527 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5528 if test x"$ac_cv_mmx_inline" != x"no"; then
5529 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5532 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5533 echo "configure:5534: checking if \$CC groks MMX EXT inline assembly" >&5
5534 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5542 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5545 if { (eval echo configure:5546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5547 ac_cv_mmxext_inline=yes
5549 echo "configure: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5552 ac_cv_mmxext_inline=no
5557 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5558 if test x"$ac_cv_mmxext_inline" != x"no"; then
5559 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5562 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5563 echo "configure:5564: checking if \$CC groks 3D Now! inline assembly" >&5
5564 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5572 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5575 if { (eval echo configure:5576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5577 ac_cv_3dnow_inline=yes
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 ac_cv_3dnow_inline=no
5587 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5588 if test x"$ac_cv_3dnow_inline" != x"no"; then
5589 cat >> confdefs.h <<\EOF
5590 #define CAN_COMPILE_3DNOW 1
5593 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5596 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5597 echo "configure:5598: checking if \$CC groks SSE inline assembly" >&5
5598 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5601 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5606 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5609 if { (eval echo configure:5610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5611 ac_cv_sse_inline=yes
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5621 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5622 if test x"$ac_cv_sse_inline" != x"no"; then
5623 cat >> confdefs.h <<\EOF
5624 #define CAN_COMPILE_SSE 1
5627 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5630 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5631 echo "configure:5632: checking if \$CC groks Altivec inline assembly" >&5
5632 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5640 asm volatile("vperm 0,1,2,3");
5643 if { (eval echo configure:5644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5645 ac_cv_altivec_inline=yes
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5651 CFLAGS="$CFLAGS -Wa,-m7400"
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5657 asm volatile("vperm 0,1,2,3");
5660 if { (eval echo configure:5661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5662 ac_cv_altivec_inline="-Wa,-m7400"
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5667 ac_cv_altivec_inline=no
5676 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5677 if test x"$ac_cv_altivec_inline" != x"no"; then
5678 cat >> confdefs.h <<\EOF
5679 #define CAN_COMPILE_ALTIVEC 1
5682 if test x"$ac_cv_altivec_inline" != x"yes"; then
5683 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_altivec_inline"
5684 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5686 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5689 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5690 echo "configure:5691: checking if \$CC groks Altivec C extensions" >&5
5691 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5695 CFLAGS="$CFLAGS -faltivec"
5697 cat > conftest.$ac_ext <<EOF
5698 #line 5699 "configure"
5699 #include "confdefs.h"
5702 vec_mtvscr((vector unsigned int)(0));
5705 if { (eval echo configure:5706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5707 ac_cv_c_altivec=-faltivec
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5714 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
5715 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5720 vec_mtvscr((vector unsigned int)(0));
5723 if { (eval echo configure:5724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5725 ac_cv_c_altivec="-fvec"
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5740 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5741 if test x"$ac_cv_c_altivec" != x"no"; then
5742 cat >> confdefs.h <<\EOF
5743 #define CAN_COMPILE_C_ALTIVEC 1
5746 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
5747 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5748 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5751 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5752 echo "configure:5753: checking if linker needs -framework vecLib" >&5
5753 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5756 save_LDFLAGS=$LDFLAGS
5757 LDFLAGS="$LDFLAGS -framework vecLib"
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5766 if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5768 ac_cv_ld_altivec=yes
5770 echo "configure: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5776 LDFLAGS=$save_LDFLAGS
5780 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5781 if test x"$ac_cv_ld_altivec" != x"no"; then
5782 LIB_ALTIVEC="-framework vecLib"
5785 case ${target_os} in
5800 LIB_X11="${LIB_X11} -lsocket"
5801 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5808 if test $SYS = mingw32; then
5809 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}windres; ac_word=$2
5811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_word" >&5
5813 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 if test -n "$WINDRES"; then
5817 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5821 for ac_dir in $ac_dummy; do
5822 test -z "$ac_dir" && ac_dir=.
5823 if test -f $ac_dir/$ac_word; then
5824 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5831 WINDRES="$ac_cv_prog_WINDRES"
5832 if test -n "$WINDRES"; then
5833 echo "$ac_t""$WINDRES" 1>&6
5835 echo "$ac_t""no" 1>&6
5839 if test -z "$ac_cv_prog_WINDRES"; then
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "windres", so it can be a program name with args.
5842 set dummy windres; ac_word=$2
5843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5844 echo "configure:5845: checking for $ac_word" >&5
5845 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5848 if test -n "$WINDRES"; then
5849 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5853 for ac_dir in $ac_dummy; do
5854 test -z "$ac_dir" && ac_dir=.
5855 if test -f $ac_dir/$ac_word; then
5856 ac_cv_prog_WINDRES="windres"
5861 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5864 WINDRES="$ac_cv_prog_WINDRES"
5865 if test -n "$WINDRES"; then
5866 echo "$ac_t""$WINDRES" 1>&6
5868 echo "$ac_t""no" 1>&6
5876 LIB_MPEG_TS="-lws2_32"
5881 CAN_BUILD_LIBDVDCSS=0
5883 for ac_hdr in winioctl.h
5885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5887 echo "configure:5888: checking for $ac_hdr" >&5
5888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5897 { (eval echo configure:5898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5899 if test -z "$ac_err"; then
5901 eval "ac_cv_header_$ac_safe=yes"
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 eval "ac_cv_header_$ac_safe=no"
5911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5912 echo "$ac_t""yes" 1>&6
5913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5914 cat >> confdefs.h <<EOF
5915 #define $ac_tr_hdr 1
5918 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5921 echo "$ac_t""no" 1>&6
5926 for ac_hdr in sys/ioctl.h
5928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5930 echo "configure:5931: checking for $ac_hdr" >&5
5931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5940 { (eval echo configure:5941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5942 if test -z "$ac_err"; then
5944 eval "ac_cv_header_$ac_safe=yes"
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 eval "ac_cv_header_$ac_safe=no"
5954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5955 echo "$ac_t""yes" 1>&6
5956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5957 cat >> confdefs.h <<EOF
5958 #define $ac_tr_hdr 1
5961 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5962 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_hdr" >&5
5967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then
5980 eval "ac_cv_header_$ac_safe=yes"
5983 echo "configure: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5986 eval "ac_cv_header_$ac_safe=no"
5990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5993 cat >> confdefs.h <<EOF
5994 #define $ac_tr_hdr 1
5998 echo "$ac_t""no" 1>&6
6004 OPENBSD_DVD_STRUCT=0
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6008 #include <sys/cdio.h>
6010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6011 egrep "dvd_struct" >/dev/null 2>&1; then
6014 cat >> confdefs.h <<\EOF
6015 #define DVD_STRUCT_IN_SYS_CDIO_H 1
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 #include <sys/cdio.h>
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 egrep "struct dvd_struct" >/dev/null 2>&1; then
6030 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 #include <sys/dvdio.h>
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 egrep "dvd_struct" >/dev/null 2>&1; then
6047 cat >> confdefs.h <<\EOF
6048 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 #include <sys/dvdio.h>
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 egrep "struct dvd_struct" >/dev/null 2>&1; then
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 #include <linux/cdrom.h>
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 egrep "dvd_struct" >/dev/null 2>&1; then
6080 cat >> confdefs.h <<\EOF
6081 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6096 egrep "dvd_struct" >/dev/null 2>&1; then
6099 cat >> confdefs.h <<\EOF
6100 #define DVD_STRUCT_IN_DVD_H 1
6103 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6109 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6111 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6113 echo "configure:6114: checking for $ac_hdr" >&5
6114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6123 { (eval echo configure:6124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6125 if test -z "$ac_err"; then
6127 eval "ac_cv_header_$ac_safe=yes"
6130 echo "configure: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6133 eval "ac_cv_header_$ac_safe=no"
6137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6138 echo "$ac_t""yes" 1>&6
6139 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6140 cat >> confdefs.h <<EOF
6141 #define $ac_tr_hdr 1
6145 cat >> confdefs.h <<\EOF
6146 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6149 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
6153 echo "$ac_t""no" 1>&6
6161 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6162 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6163 echo "configure:6164: checking for sys/scsi/scsi_types.h" >&5
6164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6170 #include <sys/scsi/scsi_types.h>
6172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6173 { (eval echo configure:6174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6175 if test -z "$ac_err"; then
6177 eval "ac_cv_header_$ac_safe=yes"
6180 echo "configure: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6183 eval "ac_cv_header_$ac_safe=no"
6187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6190 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6191 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6192 echo "configure:6193: checking for sys/scsi/impl/uscsi.h" >&5
6193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6199 #include <sys/scsi/impl/uscsi.h>
6201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6202 { (eval echo configure:6203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6204 if test -z "$ac_err"; then
6206 eval "ac_cv_header_$ac_safe=yes"
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6212 eval "ac_cv_header_$ac_safe=no"
6216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6217 echo "$ac_t""yes" 1>&6
6219 cat >> confdefs.h <<\EOF
6220 #define SOLARIS_USCSI 1
6225 echo "$ac_t""no" 1>&6
6230 echo "$ac_t""no" 1>&6
6233 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6234 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6235 echo "configure:6236: checking for sys/scsi.h" >&5
6236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6242 #include <sys/scsi.h>
6244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6245 { (eval echo configure:6246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6247 if test -z "$ac_err"; then
6249 eval "ac_cv_header_$ac_safe=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_header_$ac_safe=no"
6259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 #include <sys/scsi.h>
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 egrep "sctl_io" >/dev/null 2>&1; then
6271 cat >> confdefs.h <<\EOF
6272 #define HPUX_SCTL_IO 1
6281 echo "$ac_t""no" 1>&6
6284 if test x$LINUX_DVD_STRUCT = x1; then
6285 cat >> confdefs.h <<\EOF
6286 #define HAVE_LINUX_DVD_STRUCT 1
6289 if test x$OPENBSD_DVD_STRUCT = x1; then
6290 cat >> confdefs.h <<\EOF
6291 #define HAVE_OPENBSD_DVD_STRUCT 1
6296 if test x$BSD_DVD_STRUCT = x1; then
6297 cat >> confdefs.h <<\EOF
6298 #define HAVE_BSD_DVD_STRUCT 1
6305 echo "$ac_t""no" 1>&6
6311 # Check whether --with-tuning or --without-tuning was given.
6312 if test "${with_tuning+set}" = set; then
6313 withval="$with_tuning"
6317 if test "x$withval" != "x"; then
6320 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6322 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6326 # Check whether --enable-release or --disable-release was given.
6327 if test "${enable_release+set}" = set; then
6328 enableval="$enable_release"
6329 if test x$enableval = xyes; then RELEASE=1; fi
6331 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6332 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6336 # Check whether --enable-mmx or --disable-mmx was given.
6337 if test "${enable_mmx+set}" = set; then
6338 enableval="$enable_mmx"
6339 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
6340 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6342 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386; then ARCH="${ARCH} mmx";
6343 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6347 # Check whether --enable-altivec or --disable-altivec was given.
6348 if test "${enable_altivec+set}" = set; then
6349 enableval="$enable_altivec"
6350 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6351 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6353 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6354 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6359 # Check whether --enable-debug or --disable-debug was given.
6360 if test "${enable_debug+set}" = set; then
6361 enableval="$enable_debug"
6362 if test x$enableval = xyes; then DEBUG=1; fi
6367 # Check whether --enable-trace or --disable-trace was given.
6368 if test "${enable_trace+set}" = set; then
6369 enableval="$enable_trace"
6370 if test x$enableval = xyes; then TRACE=1; fi
6375 # Check whether --enable-gprof or --disable-gprof was given.
6376 if test "${enable_gprof+set}" = set; then
6377 enableval="$enable_gprof"
6378 if test x$enableval = xyes; then GPROF=1; fi
6383 # Check whether --enable-cprof or --disable-cprof was given.
6384 if test "${enable_cprof+set}" = set; then
6385 enableval="$enable_cprof"
6386 if test x$enableval = xyes;
6388 LIB="${LIB} -lcprof"
6395 # Check whether --enable-optimizations or --disable-optimizations was given.
6396 if test "${enable_optimizations+set}" = set; then
6397 enableval="$enable_optimizations"
6398 if test x$enableval = xno; then OPTIMS=0; fi
6404 # Check whether --enable-pth or --disable-pth was given.
6405 if test "${enable_pth+set}" = set; then
6406 enableval="$enable_pth"
6407 if test x$enableval = xyes; then
6408 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6409 echo "configure:6410: checking for pth_init in -lpth" >&5
6410 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
6411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6414 ac_save_LIBS="$LIBS"
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430 eval "ac_cv_lib_$ac_lib_var=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 eval "ac_cv_lib_$ac_lib_var=no"
6438 LIBS="$ac_save_LIBS"
6441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6442 echo "$ac_t""yes" 1>&6
6443 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6445 cat >> confdefs.h <<EOF
6446 #define $ac_tr_lib 1
6452 echo "$ac_t""no" 1>&6
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6461 egrep "pth_init" >/dev/null 2>&1; then
6464 cat >> confdefs.h <<\EOF
6465 #define PTH_INIT_IN_PTH_H 1
6477 LIB="${LIB} ${THREAD_LIB}"
6482 # Check whether --with-dvdcss or --without-dvdcss was given.
6483 if test "${with_dvdcss+set}" = set; then
6484 withval="$with_dvdcss"
6485 case "x${withval}" in
6487 # local libdvdcss, statically linked
6488 if test x${CAN_BUILD_LIBDVDCSS} = x1
6492 BUILTINS="${BUILTINS} dvd"
6493 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6494 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6495 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6499 # local libdvdcss, dynamically linked
6500 if test x${CAN_BUILD_LIBDVDCSS} = x1
6503 BUILTINS="${BUILTINS} dvd"
6504 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6505 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
6506 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
6510 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6512 BUILTINS="${BUILTINS} dvd"
6513 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
6514 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6515 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6516 LIB_DVD="${LIB_DVD} -ldl"
6517 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
6520 # existing libdvdcss
6521 BUILTINS="${BUILTINS} dvd"
6522 if test "x$withval" != "xyes"
6524 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
6525 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6527 LIB_DVD="${LIB_DVD} -ldvdcss"
6528 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
6531 # user didn't decide, we choose to use local libdvdcss and link statically
6532 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6533 if test x${CAN_BUILD_LIBDVDCSS} = x1
6537 BUILTINS="${BUILTINS} dvd"
6538 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6539 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6540 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6542 # XXX: no check for libdl is done, don't try this at home !
6544 BUILTINS="${BUILTINS} dvd"
6545 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
6546 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6547 LIB_DVD="${LIB_DVD} -ldl"
6548 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
6553 # Check whether --enable-dvdread or --disable-dvdread was given.
6554 if test "${enable_dvdread+set}" = set; then
6555 enableval="$enable_dvdread"
6556 if test x$enableval = xyes
6560 BUILTINS="${BUILTINS} dvdread"
6561 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6562 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
6567 # Check whether --enable-vcd or --disable-vcd was given.
6568 if test "${enable_vcd+set}" = set; then
6569 enableval="$enable_vcd"
6574 if test x$enable_vcd != xno
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 #include <linux/cdrom.h>
6581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6582 egrep "cdrom_msf0" >/dev/null 2>&1; then
6585 BUILTINS="${BUILTINS} vcd"
6592 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6594 BUILTINS="${BUILTINS} vcd"
6597 # Check whether --enable-dummy or --disable-dummy was given.
6598 if test "${enable_dummy+set}" = set; then
6599 enableval="$enable_dummy"
6604 if test x$enable_dummy != xno
6606 BUILTINS="${BUILTINS} dummy"
6609 # Check whether --enable-null or --disable-null was given.
6610 if test "${enable_null+set}" = set; then
6611 enableval="$enable_null"
6616 if test x$enable_null != xno
6618 BUILTINS="${BUILTINS} null"
6621 # Check whether --enable-rc or --disable-rc was given.
6622 if test "${enable_rc+set}" = set; then
6623 enableval="$enable_rc"
6628 if test x$enable_rc != xno
6630 BUILTINS="${BUILTINS} rc"
6633 # Check whether --with-mad or --without-mad was given.
6634 if test "${with_mad+set}" = set; then
6636 if test "x$with_val" != "xno"; then
6637 if test -n $with_val; then
6638 CFLAGS_MAD="-I$with_val/include"
6639 LIB_MAD="-L$with_val/lib -lmad"
6644 save_LDFLAGS=$LDFLAGS
6645 CFLAGS="$CFLAGS $CFLAGS_MAD"
6646 LDFLAGS="$LDFLAGS $LIB_MAD"
6649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_hdr" >&5
6652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6661 { (eval echo configure:6662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6663 if test -z "$ac_err"; then
6665 eval "ac_cv_header_$ac_safe=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6671 eval "ac_cv_header_$ac_safe=no"
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6678 cat >> confdefs.h <<EOF
6679 #define $ac_tr_hdr 1
6683 echo "$ac_t""no" 1>&6
6684 echo "Cannot find development headers for libmad..."
6690 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6691 echo "configure:6692: checking for mad_bit_init in -lmad" >&5
6692 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6696 ac_save_LIBS="$LIBS"
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6704 char mad_bit_init();
6710 if { (eval echo configure:6711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6712 eval "ac_cv_lib_$ac_lib_var=yes"
6714 echo "configure: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6717 eval "ac_cv_lib_$ac_lib_var=no"
6720 LIBS="$ac_save_LIBS"
6723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6724 echo "$ac_t""yes" 1>&6
6725 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6727 cat >> confdefs.h <<EOF
6728 #define $ac_tr_lib 1
6734 echo "$ac_t""no" 1>&6
6735 echo "Cannot find libmad library..."
6741 LDFLAGS=$save_LDFLAGS
6742 PLUGINS="${PLUGINS} mad"
6747 if test x$SYS = xbeos
6750 BUILTINS="${BUILTINS} beos"
6751 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
6752 PLCFLAGS="${PLCFLAGS} -nostart"
6756 # Check whether --enable-dsp or --disable-dsp was given.
6757 if test "${enable_dsp+set}" = set; then
6758 enableval="$enable_dsp"
6763 if test x$enable_dsp != xno &&
6764 (test $SYS != mingw32 || test x$enable_dsp = xyes)
6768 PLUGINS="${PLUGINS} dsp"
6772 # Check whether --enable-esd or --disable-esd was given.
6773 if test "${enable_esd+set}" = set; then
6774 enableval="$enable_esd"
6775 if test x$enable_esd = xyes
6777 # Extract the first word of "esd-config", so it can be a program name with args.
6778 set dummy esd-config; ac_word=$2
6779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6780 echo "configure:6781: checking for $ac_word" >&5
6781 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6784 case "$ESD_CONFIG" in
6786 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6789 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6794 for ac_dir in $ac_dummy; do
6795 test -z "$ac_dir" && ac_dir=.
6796 if test -f $ac_dir/$ac_word; then
6797 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6802 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6806 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6807 if test -n "$ESD_CONFIG"; then
6808 echo "$ac_t""$ESD_CONFIG" 1>&6
6810 echo "$ac_t""no" 1>&6
6813 if test x${ESD_CONFIG} != xno
6815 PLUGINS="${PLUGINS} esd"
6816 CFLAGS_ESD="`${ESD_CONFIG} --cflags`"
6817 LIB_ESD="`${ESD_CONFIG} --libs`"
6823 # Check whether --enable-arts or --disable-arts was given.
6824 if test "${enable_arts+set}" = set; then
6825 enableval="$enable_arts"
6826 if test x$enable_arts = xyes
6828 # Extract the first word of "artsc-config", so it can be a program name with args.
6829 set dummy artsc-config; ac_word=$2
6830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6831 echo "configure:6832: checking for $ac_word" >&5
6832 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6833 echo $ac_n "(cached) $ac_c" 1>&6
6835 case "$ARTS_CONFIG" in
6837 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6840 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6845 for ac_dir in $ac_dummy; do
6846 test -z "$ac_dir" && ac_dir=.
6847 if test -f $ac_dir/$ac_word; then
6848 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6853 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6857 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6858 if test -n "$ARTS_CONFIG"; then
6859 echo "$ac_t""$ARTS_CONFIG" 1>&6
6861 echo "$ac_t""no" 1>&6
6864 if test x${ARTS_CONFIG} != xno
6866 PLUGINS="${PLUGINS} arts"
6867 CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`"
6868 LIB_ARTS="`${ARTS_CONFIG} --libs `"
6874 # Check whether --enable-macosx or --disable-macosx was given.
6875 if test "${enable_macosx+set}" = set; then
6876 enableval="$enable_macosx"
6877 if test x$enable_macosx = xyes
6879 BUILTINS="${BUILTINS} macosx"
6880 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
6884 for ac_hdr in Cocoa/Cocoa.h
6886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6888 echo "configure:6889: checking for $ac_hdr" >&5
6889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6898 { (eval echo configure:6899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6900 if test -z "$ac_err"; then
6902 eval "ac_cv_header_$ac_safe=yes"
6905 echo "configure: failed program was:" >&5
6906 cat conftest.$ac_ext >&5
6908 eval "ac_cv_header_$ac_safe=no"
6912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6913 echo "$ac_t""yes" 1>&6
6914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6915 cat >> confdefs.h <<EOF
6916 #define $ac_tr_hdr 1
6918 BUILTINS="${BUILTINS} macosx"
6919 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
6923 echo "$ac_t""no" 1>&6
6930 # Check whether --enable-qnx or --disable-qnx was given.
6931 if test "${enable_qnx+set}" = set; then
6932 enableval="$enable_qnx"
6936 if test x$enable_qnx != xno
6940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6942 echo "configure:6943: checking for $ac_hdr" >&5
6943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6952 { (eval echo configure:6953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6954 if test -z "$ac_err"; then
6956 eval "ac_cv_header_$ac_safe=yes"
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 eval "ac_cv_header_$ac_safe=no"
6966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6967 echo "$ac_t""yes" 1>&6
6968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6969 cat >> confdefs.h <<EOF
6970 #define $ac_tr_hdr 1
6973 PLUGINS="${PLUGINS} qnx"
6974 LIB_QNX="-lasound -lph"
6977 echo "$ac_t""no" 1>&6
6983 # Check whether --enable-fb or --disable-fb was given.
6984 if test "${enable_fb+set}" = set; then
6985 enableval="$enable_fb"
6986 if test x$enable_fb = xyes
6988 PLUGINS="${PLUGINS} fb"
6993 # Check whether --with-ggi or --without-ggi was given.
6994 if test "${with_ggi+set}" = set; then
6996 if test "x$withval" != "xno"
6998 PLUGINS="${PLUGINS} ggi"
6999 if test "x$withval" != "xyes"
7001 LIB_GGI="-l"$withval
7009 # Check whether --enable-sdl or --disable-sdl was given.
7010 if test "${enable_sdl+set}" = set; then
7011 enableval="$enable_sdl"
7015 if test "x$enable_sdl" != "xno"
7018 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7019 if test "${with_sdl_config_path+set}" = set; then
7020 withval="$with_sdl_config_path"
7021 if test "x$withval" != "xno"
7023 SDL_PATH=$withval:$PATH
7027 # Extract the first word of "sdl12-config", so it can be a program name with args.
7028 set dummy sdl12-config; ac_word=$2
7029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7030 echo "configure:7031: checking for $ac_word" >&5
7031 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7032 echo $ac_n "(cached) $ac_c" 1>&6
7034 case "$SDL12_CONFIG" in
7036 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7039 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7043 ac_dummy="$SDL_PATH"
7044 for ac_dir in $ac_dummy; do
7045 test -z "$ac_dir" && ac_dir=.
7046 if test -f $ac_dir/$ac_word; then
7047 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7052 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7056 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7057 if test -n "$SDL12_CONFIG"; then
7058 echo "$ac_t""$SDL12_CONFIG" 1>&6
7060 echo "$ac_t""no" 1>&6
7063 SDL_CONFIG=${SDL12_CONFIG}
7064 SDL_HEADER="SDL12/SDL.h"
7065 if test x${SDL_CONFIG} = xno
7067 # Extract the first word of "sdl11-config", so it can be a program name with args.
7068 set dummy sdl11-config; ac_word=$2
7069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_word" >&5
7071 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7074 case "$SDL11_CONFIG" in
7076 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7079 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7083 ac_dummy="$SDL_PATH"
7084 for ac_dir in $ac_dummy; do
7085 test -z "$ac_dir" && ac_dir=.
7086 if test -f $ac_dir/$ac_word; then
7087 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7092 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7096 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7097 if test -n "$SDL11_CONFIG"; then
7098 echo "$ac_t""$SDL11_CONFIG" 1>&6
7100 echo "$ac_t""no" 1>&6
7103 SDL_CONFIG=${SDL11_CONFIG}
7104 SDL_HEADER="SDL11/SDL.h"
7106 if test x${SDL_CONFIG} = xno
7108 # Extract the first word of "sdl-config", so it can be a program name with args.
7109 set dummy sdl-config; ac_word=$2
7110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7111 echo "configure:7112: checking for $ac_word" >&5
7112 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6
7115 case "$SDL_CONFIG" in
7117 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7120 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7124 ac_dummy="$SDL_PATH"
7125 for ac_dir in $ac_dummy; do
7126 test -z "$ac_dir" && ac_dir=.
7127 if test -f $ac_dir/$ac_word; then
7128 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7133 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7137 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7138 if test -n "$SDL_CONFIG"; then
7139 echo "$ac_t""$SDL_CONFIG" 1>&6
7141 echo "$ac_t""no" 1>&6
7144 SDL_HEADER="SDL/SDL.h"
7146 if test x${SDL_CONFIG} != xno
7148 PLUGINS="${PLUGINS} sdl"
7149 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
7150 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7151 save_CPPFLAGS=$CPPFLAGS
7152 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7153 for ac_hdr in ${SDL_HEADER}
7155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7157 echo "configure:7158: checking for $ac_hdr" >&5
7158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7167 { (eval echo configure:7168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7169 if test -z "$ac_err"; then
7171 eval "ac_cv_header_$ac_safe=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7177 eval "ac_cv_header_$ac_safe=no"
7181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7184 cat >> confdefs.h <<EOF
7185 #define $ac_tr_hdr 1
7187 cat >> confdefs.h <<EOF
7188 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7192 echo "$ac_t""no" 1>&6
7193 { echo "configure: error: The development package for SDL is not installed.
7194 Please install it and try again. Alternatively you can also configure with
7195 --disable-sdl." 1>&2; exit 1; }
7200 CPPFLAGS=$save_CPPFLAGS
7201 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7203 { echo "configure: error: The development package for SDL is not installed.
7204 Please install it and try again. Alternatively you can also configure with
7205 --disable-sdl." 1>&2; exit 1; }
7207 elif test "x$enable_sdl" = "xyes"
7209 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7210 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7215 # Check whether --enable-directx or --disable-directx was given.
7216 if test "${enable_directx+set}" = set; then
7217 enableval="$enable_directx"
7221 if test "x$enableval" != "xno"
7223 if test $SYS = mingw32
7225 # Check whether --with-directx-path or --without-directx-path was given.
7226 if test "${with_directx_path+set}" = set; then
7227 withval="$with_directx_path"
7231 if test "x$with_directx_path" = "x"
7233 for ac_hdr in directx.h
7235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7237 echo "configure:7238: checking for $ac_hdr" >&5
7238 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7247 { (eval echo configure:7248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7249 if test -z "$ac_err"; then
7251 eval "ac_cv_header_$ac_safe=yes"
7254 echo "configure: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7257 eval "ac_cv_header_$ac_safe=no"
7261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7262 echo "$ac_t""yes" 1>&6
7263 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7264 cat >> confdefs.h <<EOF
7265 #define $ac_tr_hdr 1
7267 PLUGINS="${PLUGINS} directx"
7268 LIB_DIRECTX="-lgdi32 -ldxguid"
7270 echo "$ac_t""no" 1>&6
7275 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7276 echo "configure:7277: checking for directX headers in ${withval}" >&5
7277 if test -f ${withval}/include/directx.h
7279 PLUGINS="${PLUGINS} directx"
7280 LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
7281 INCLUDE="${INCLUDE} -I${withval}/include"
7282 echo "$ac_t""yes" 1>&6
7284 echo "$ac_t""no" 1>&6
7285 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
7291 # Check whether --with-glide or --without-glide was given.
7292 if test "${with_glide+set}" = set; then
7293 withval="$with_glide"
7294 if test "x$withval" != "xno"
7296 PLUGINS="${PLUGINS} glide"
7297 if test "x$withval" != "xyes"
7299 LIB_GLIDE="-l"$withval" -lm"
7301 LIB_GLIDE="-lglide2x -lm"
7307 # Check whether --enable-ncurses or --disable-ncurses was given.
7308 if test "${enable_ncurses+set}" = set; then
7309 enableval="$enable_ncurses"
7310 if test x$enable_ncurses = xyes; then
7311 PLUGINS="${PLUGINS} ncurses"
7312 LIB_NCURSES="-lncurses"
7317 # Check whether --enable-qt or --disable-qt was given.
7318 if test "${enable_qt+set}" = set; then
7319 enableval="$enable_qt"
7320 if test x$enable_qt = xyes; then
7321 PLUGINS="${PLUGINS} qt"
7322 ALIASES="${ALIASES} qvlc"
7323 LIB_QT="-lqt -L${QTDIR}/lib"
7324 if test -x ${QTDIR}/bin/moc
7326 MOC=${QTDIR}/bin/moc
7334 # Check whether --enable-kde or --disable-kde was given.
7335 if test "${enable_kde+set}" = set; then
7336 enableval="$enable_kde"
7337 if test x$enable_kde = xyes; then
7338 PLUGINS="${PLUGINS} kde"
7339 ALIASES="${ALIASES} kvlc"
7340 LIB_KDE="-L${KDEDIR}/lib -lkfile"
7341 if test -x ${QTDIR}/bin/moc
7343 MOC=${QTDIR}/bin/moc
7351 # Check whether --enable-gnome or --disable-gnome was given.
7352 if test "${enable_gnome+set}" = set; then
7353 enableval="$enable_gnome"
7354 if test x$enable_gnome = xyes; then
7355 # look for gnome-config
7356 # Extract the first word of "gnome-config", so it can be a program name with args.
7357 set dummy gnome-config; ac_word=$2
7358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7359 echo "configure:7360: checking for $ac_word" >&5
7360 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7361 echo $ac_n "(cached) $ac_c" 1>&6
7363 case "$GNOME_CONFIG" in
7365 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7368 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7373 for ac_dir in $ac_dummy; do
7374 test -z "$ac_dir" && ac_dir=.
7375 if test -f $ac_dir/$ac_word; then
7376 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7381 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7385 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7386 if test -n "$GNOME_CONFIG"; then
7387 echo "$ac_t""$GNOME_CONFIG" 1>&6
7389 echo "$ac_t""no" 1>&6
7392 if test -x ${GNOME_CONFIG}
7394 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
7395 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7397 # now look for the gnome.h header
7398 saved_CPPFLAGS=$CPPFLAGS
7399 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7400 for ac_hdr in gnome.h
7402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7404 echo "configure:7405: checking for $ac_hdr" >&5
7405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7414 { (eval echo configure:7415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7416 if test -z "$ac_err"; then
7418 eval "ac_cv_header_$ac_safe=yes"
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 eval "ac_cv_header_$ac_safe=no"
7428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7431 cat >> confdefs.h <<EOF
7432 #define $ac_tr_hdr 1
7435 PLUGINS="${PLUGINS} gnome"
7436 ALIASES="${ALIASES} gnome-vlc"
7439 echo "$ac_t""no" 1>&6
7440 { echo "configure: error: Can't find gnome headers. Please install the gnome
7441 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7447 CPPFLAGS=$saved_CPPFLAGS
7452 # Check whether --enable-gtk or --disable-gtk was given.
7453 if test "${enable_gtk+set}" = set; then
7454 enableval="$enable_gtk"
7458 if test x$enable_gtk != xno
7461 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7462 if test "${with_gtk_config_path+set}" = set; then
7463 withval="$with_gtk_config_path"
7464 if test "x$withval" != "xno"
7466 GTK_PATH=$withval:$PATH
7470 # look for gtk-config
7471 # Extract the first word of "gtk-config", so it can be a program name with args.
7472 set dummy gtk-config; ac_word=$2
7473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7474 echo "configure:7475: checking for $ac_word" >&5
7475 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 case "$GTK_CONFIG" in
7480 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7483 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7487 ac_dummy="$GTK_PATH"
7488 for ac_dir in $ac_dummy; do
7489 test -z "$ac_dir" && ac_dir=.
7490 if test -f $ac_dir/$ac_word; then
7491 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7496 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7500 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7501 if test -n "$GTK_CONFIG"; then
7502 echo "$ac_t""$GTK_CONFIG" 1>&6
7504 echo "$ac_t""no" 1>&6
7507 if test -x ${GTK_CONFIG}
7509 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
7510 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7512 # now look for the gtk.h header
7513 saved_CPPFLAGS=$CPPFLAGS
7514 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7516 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7520 echo "configure:7521: checking for $ac_hdr" >&5
7521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7524 cat > conftest.$ac_ext <<EOF
7525 #line 7526 "configure"
7526 #include "confdefs.h"
7529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7530 { (eval echo configure:7531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7532 if test -z "$ac_err"; then
7534 eval "ac_cv_header_$ac_safe=yes"
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7540 eval "ac_cv_header_$ac_safe=no"
7544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7547 cat >> confdefs.h <<EOF
7548 #define $ac_tr_hdr 1
7552 echo "$ac_t""no" 1>&6
7554 echo "Cannot find gtk development headers."
7559 if test -z $FOUND; then
7560 PLUGINS="${PLUGINS} gtk"
7561 ALIASES="${ALIASES} gvlc"
7563 CPPFLAGS=$saved_CPPFLAGS
7566 # Check whether --enable-x11 or --disable-x11 was given.
7567 if test "${enable_x11+set}" = set; then
7568 enableval="$enable_x11"
7572 if test x$enable_x11 != xno &&
7573 (test $SYS != mingw32 || test x$enable_x11 = xyes); then
7574 if test x$x_includes = xNONE; then
7575 x_includes=/usr/X11R6/include
7577 if test x$x_libraries = xNONE; then
7578 x_libraries=/usr/X11R6/lib
7580 saved_CPPFLAGS=$CPPFLAGS
7581 CPPFLAGS="$CPPFLAGS -I$x_includes"
7582 for ac_hdr in X11/Xlib.h
7584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7586 echo "configure:7587: checking for $ac_hdr" >&5
7587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7590 cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7596 { (eval echo configure:7597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7598 if test -z "$ac_err"; then
7600 eval "ac_cv_header_$ac_safe=yes"
7603 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7606 eval "ac_cv_header_$ac_safe=no"
7610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7613 cat >> confdefs.h <<EOF
7614 #define $ac_tr_hdr 1
7617 #PLUGINS="${PLUGINS} x11"
7618 LIB_X11="-L$x_libraries -lX11 -lXext"
7619 CFLAGS_X11="-I$x_includes"
7621 CPPFLAGS=$saved_CPPFLAGS
7623 echo "$ac_t""no" 1>&6
7629 # Check whether --enable-xvideo or --disable-xvideo was given.
7630 if test "${enable_xvideo+set}" = set; then
7631 enableval="$enable_xvideo"
7635 if test x$enable_xvideo != xno &&
7636 (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
7637 if test x$x_includes = xNONE; then
7638 x_includes=/usr/X11R6/include
7640 if test x$x_libraries = xNONE; then
7641 x_libraries=/usr/X11R6/lib
7643 saved_CPPFLAGS=$CPPFLAGS
7644 CPPFLAGS="$CPPFLAGS -I$x_includes"
7645 for ac_hdr in X11/extensions/Xv.h
7647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7649 echo "configure:7650: checking for $ac_hdr" >&5
7650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7659 { (eval echo configure:7660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7661 if test -z "$ac_err"; then
7663 eval "ac_cv_header_$ac_safe=yes"
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7669 eval "ac_cv_header_$ac_safe=no"
7673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7674 echo "$ac_t""yes" 1>&6
7675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7676 cat >> confdefs.h <<EOF
7677 #define $ac_tr_hdr 1
7680 BUILTINS="${BUILTINS} xvideo"
7681 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
7682 CFLAGS_XVIDEO="-I$x_includes"
7684 CPPFLAGS=$saved_CPPFLAGS
7686 echo "$ac_t""no" 1>&6
7692 # Check whether --enable-alsa or --disable-alsa was given.
7693 if test "${enable_alsa+set}" = set; then
7694 enableval="$enable_alsa"
7695 if test x$enable_alsa = xyes
7697 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7698 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7699 echo "configure:7700: checking for alsa/asoundlib.h" >&5
7700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 #include <alsa/asoundlib.h>
7708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7709 { (eval echo configure:7710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7711 if test -z "$ac_err"; then
7713 eval "ac_cv_header_$ac_safe=yes"
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 eval "ac_cv_header_$ac_safe=no"
7723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7725 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7726 echo "configure:7727: checking for main in -lasound" >&5
7727 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7731 ac_save_LIBS="$LIBS"
7732 LIBS="-lasound $LIBS"
7733 cat > conftest.$ac_ext <<EOF
7734 #line 7735 "configure"
7735 #include "confdefs.h"
7741 if { (eval echo configure:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7743 eval "ac_cv_lib_$ac_lib_var=yes"
7745 echo "configure: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7748 eval "ac_cv_lib_$ac_lib_var=no"
7751 LIBS="$ac_save_LIBS"
7754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7755 echo "$ac_t""yes" 1>&6
7758 echo "$ac_t""no" 1>&6
7763 echo "$ac_t""no" 1>&6
7767 if test x$have_alsa = xtrue
7769 PLUGINS="${PLUGINS} alsa"
7778 # Check whether --enable-plugins or --disable-plugins was given.
7779 if test "${enable_plugins+set}" = set; then
7780 enableval="$enable_plugins"
7781 if test x$enable_plugins = xno
7783 BUILTINS="${BUILTINS} ${PLUGINS}"
7790 # Check whether --with-dll-path or --without-dll-path was given.
7791 if test "${with_dll_path+set}" = set; then
7792 withval="$with_dll_path"
7793 if test "x$withval" != "xno"
7878 cat > confcache <<\EOF
7879 # This file is a shell script that caches the results of configure
7880 # tests run on this system so they can be shared between configure
7881 # scripts and configure runs. It is not useful on other systems.
7882 # If it contains results you don't want to keep, you may remove or edit it.
7884 # By default, configure uses ./config.cache as the cache file,
7885 # creating it if it does not exist already. You can give configure
7886 # the --cache-file=FILE option to use a different cache file; that is
7887 # what configure does when it calls configure scripts in
7888 # subdirectories, so they share the cache.
7889 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7890 # config.status only pays attention to the cache file if you give it the
7891 # --recheck option to rerun configure.
7894 # The following way of writing the cache mishandles newlines in values,
7895 # but we know of no workaround that is simple, portable, and efficient.
7896 # So, don't put newlines in cache variables' values.
7897 # Ultrix sh set writes to stderr and can't be redirected directly,
7898 # and sets the high bit in the cache file unless we assign to the vars.
7900 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7902 # `set' does not quote correctly, so add quotes (double-quote substitution
7903 # turns \\\\ into \\, and sed turns \\ into \).
7905 -e "s/'/'\\\\''/g" \
7906 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7909 # `set' quotes correctly as required by POSIX, so do not add quotes.
7910 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7913 if cmp -s $cache_file confcache; then
7916 if test -w $cache_file; then
7917 echo "updating cache $cache_file"
7918 cat confcache > $cache_file
7920 echo "not updating unwritable cache $cache_file"
7925 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7928 # Let make expand exec_prefix.
7929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7931 # Any assignment to VPATH causes Sun make to only execute
7932 # the first set of double-colon rules, so remove it if not needed.
7933 # If there is a colon in the path, we need to keep it.
7934 if test "x$srcdir" = x.; then
7935 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7938 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7940 DEFS=-DHAVE_CONFIG_H
7942 # Without the "./", some shells look in PATH for config.status.
7943 : ${CONFIG_STATUS=./config.status}
7945 echo creating $CONFIG_STATUS
7946 rm -f $CONFIG_STATUS
7947 cat > $CONFIG_STATUS <<EOF
7949 # Generated automatically by configure.
7950 # Run this file to recreate the current configuration.
7951 # This directory was configured as follows,
7952 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7954 # $0 $ac_configure_args
7956 # Compiler output produced by configure, useful for debugging
7957 # configure, is in ./config.log if it exists.
7959 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7962 case "\$ac_option" in
7963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7964 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7965 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7966 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7967 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7969 -help | --help | --hel | --he | --h)
7970 echo "\$ac_cs_usage"; exit 0 ;;
7971 *) echo "\$ac_cs_usage"; exit 1 ;;
7975 ac_given_srcdir=$srcdir
7976 ac_given_INSTALL="$INSTALL"
7978 trap 'rm -fr `echo "Makefile.opts include/config.h po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7980 cat >> $CONFIG_STATUS <<EOF
7982 # Protect against being on the right side of a sed subst in config.status.
7983 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7984 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7988 s%@CFLAGS@%$CFLAGS%g
7989 s%@CPPFLAGS@%$CPPFLAGS%g
7990 s%@CXXFLAGS@%$CXXFLAGS%g
7991 s%@FFLAGS@%$FFLAGS%g
7993 s%@LDFLAGS@%$LDFLAGS%g
7995 s%@exec_prefix@%$exec_prefix%g
7996 s%@prefix@%$prefix%g
7997 s%@program_transform_name@%$program_transform_name%g
7998 s%@bindir@%$bindir%g
7999 s%@sbindir@%$sbindir%g
8000 s%@libexecdir@%$libexecdir%g
8001 s%@datadir@%$datadir%g
8002 s%@sysconfdir@%$sysconfdir%g
8003 s%@sharedstatedir@%$sharedstatedir%g
8004 s%@localstatedir@%$localstatedir%g
8005 s%@libdir@%$libdir%g
8006 s%@includedir@%$includedir%g
8007 s%@oldincludedir@%$oldincludedir%g
8008 s%@infodir@%$infodir%g
8009 s%@mandir@%$mandir%g
8011 s%@host_alias@%$host_alias%g
8012 s%@host_cpu@%$host_cpu%g
8013 s%@host_vendor@%$host_vendor%g
8014 s%@host_os@%$host_os%g
8015 s%@target@%$target%g
8016 s%@target_alias@%$target_alias%g
8017 s%@target_cpu@%$target_cpu%g
8018 s%@target_vendor@%$target_vendor%g
8019 s%@target_os@%$target_os%g
8021 s%@build_alias@%$build_alias%g
8022 s%@build_cpu@%$build_cpu%g
8023 s%@build_vendor@%$build_vendor%g
8024 s%@build_os@%$build_os%g
8025 s%@VLC_VERSION@%$VLC_VERSION%g
8026 s%@VLC_CODENAME@%$VLC_CODENAME%g
8027 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8028 s%@SET_MAKE@%$SET_MAKE%g
8031 s%@RANLIB@%$RANLIB%g
8032 s%@ALLOCA@%$ALLOCA%g
8033 s%@GLIBC21@%$GLIBC21%g
8034 s%@LIBICONV@%$LIBICONV%g
8035 s%@USE_NLS@%$USE_NLS%g
8036 s%@MSGFMT@%$MSGFMT%g
8037 s%@GMSGFMT@%$GMSGFMT%g
8038 s%@XGETTEXT@%$XGETTEXT%g
8039 s%@INTLBISON@%$INTLBISON%g
8040 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8041 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8042 s%@CATALOGS@%$CATALOGS%g
8043 s%@CATOBJEXT@%$CATOBJEXT%g
8044 s%@GMOFILES@%$GMOFILES%g
8045 s%@INTLLIBS@%$INTLLIBS%g
8046 s%@INTLOBJS@%$INTLOBJS%g
8047 s%@POFILES@%$POFILES%g
8049 s%@DATADIRNAME@%$DATADIRNAME%g
8050 s%@INSTOBJEXT@%$INSTOBJEXT%g
8051 s%@GENCAT@%$GENCAT%g
8052 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8053 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8054 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8055 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8056 s%@INSTALL_DATA@%$INSTALL_DATA%g
8057 s%@WINDRES@%$WINDRES%g
8058 s%@ESD_CONFIG@%$ESD_CONFIG%g
8059 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8060 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8061 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8062 s%@SDL_CONFIG@%$SDL_CONFIG%g
8063 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8064 s%@GTK_CONFIG@%$GTK_CONFIG%g
8067 s%@PLUGINS@%$PLUGINS%g
8068 s%@BUILTINS@%$BUILTINS%g
8069 s%@ALIASES@%$ALIASES%g
8070 s%@DEFINE@%$DEFINE%g
8071 s%@INCLUDE@%$INCLUDE%g
8077 s%@OPTIMS@%$OPTIMS%g
8078 s%@TUNING@%$TUNING%g
8079 s%@RELEASE@%$RELEASE%g
8081 s%@DLL_PATH@%$DLL_PATH%g
8082 s%@PACKAGE@%$PACKAGE%g
8083 s%@VERSION@%$VERSION%g
8084 s%@LCFLAGS@%$LCFLAGS%g
8085 s%@PLCFLAGS@%$PLCFLAGS%g
8086 s%@SOFLAGS@%$SOFLAGS%g
8088 s%@LIB_ALSA@%$LIB_ALSA%g
8089 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
8090 s%@LIB_ARTS@%$LIB_ARTS%g
8091 s%@LIB_BEOS@%$LIB_BEOS%g
8092 s%@LIB_DARWIN@%$LIB_DARWIN%g
8093 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8094 s%@LIB_DVD@%$LIB_DVD%g
8095 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
8096 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8097 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
8098 s%@LIB_ESD@%$LIB_ESD%g
8099 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8100 s%@LIB_GGI@%$LIB_GGI%g
8101 s%@LIB_GLIDE@%$LIB_GLIDE%g
8102 s%@LIB_GNOME@%$LIB_GNOME%g
8103 s%@LIB_GTK@%$LIB_GTK%g
8104 s%@LIB_IMDCT@%$LIB_IMDCT%g
8105 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8106 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8107 s%@LIB_KDE@%$LIB_KDE%g
8108 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8109 s%@LIB_MACOSX@%$LIB_MACOSX%g
8110 s%@LIB_MAD@%$LIB_MAD%g
8111 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8112 s%@LIB_NCURSES@%$LIB_NCURSES%g
8113 s%@LIB_QNX@%$LIB_QNX%g
8114 s%@LIB_QT@%$LIB_QT%g
8115 s%@LIB_RC@%$LIB_RC%g
8116 s%@LIB_SDL@%$LIB_SDL%g
8117 s%@LIB_X11@%$LIB_X11%g
8118 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8119 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8120 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
8121 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8122 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8123 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8124 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8125 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8126 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8127 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8128 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8129 s%@CFLAGS_X11@%$CFLAGS_X11%g
8130 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8131 s%@OBJ_DVD@%$OBJ_DVD%g
8132 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
8133 s%@NEED_GETOPT@%$NEED_GETOPT%g
8134 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8139 cat >> $CONFIG_STATUS <<\EOF
8141 # Split the substitutions into bite-sized pieces for seds with
8142 # small command number limits, like on Digital OSF/1 and HP-UX.
8143 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8144 ac_file=1 # Number of current file.
8145 ac_beg=1 # First line for current file.
8146 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8149 while $ac_more_lines; do
8150 if test $ac_beg -gt 1; then
8151 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8153 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8155 if test ! -s conftest.s$ac_file; then
8157 rm -f conftest.s$ac_file
8159 if test -z "$ac_sed_cmds"; then
8160 ac_sed_cmds="sed -f conftest.s$ac_file"
8162 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8164 ac_file=`expr $ac_file + 1`
8166 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8169 if test -z "$ac_sed_cmds"; then
8174 cat >> $CONFIG_STATUS <<EOF
8176 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h po/Makefile.in"}
8178 cat >> $CONFIG_STATUS <<\EOF
8179 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8180 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8182 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8183 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8184 *) ac_file_in="${ac_file}.in" ;;
8187 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8189 # Remove last slash and all that follows it. Not all systems have dirname.
8190 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8191 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8192 # The file is in a subdirectory.
8193 test ! -d "$ac_dir" && mkdir "$ac_dir"
8194 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8195 # A "../" for each directory in $ac_dir_suffix.
8196 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8198 ac_dir_suffix= ac_dots=
8201 case "$ac_given_srcdir" in
8203 if test -z "$ac_dots"; then top_srcdir=.
8204 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8205 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8207 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8208 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8211 case "$ac_given_INSTALL" in
8212 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8213 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8216 echo creating "$ac_file"
8218 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8220 *Makefile*) ac_comsub="1i\\
8221 # $configure_input" ;;
8225 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8227 s%@configure_input@%$configure_input%g
8228 s%@srcdir@%$srcdir%g
8229 s%@top_srcdir@%$top_srcdir%g
8230 s%@INSTALL@%$INSTALL%g
8231 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8238 # ac_d sets the value in "#define NAME VALUE" lines.
8239 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8240 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8243 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8244 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8245 ac_uB='\([ ]\)%\1#\2define\3'
8248 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8249 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8250 ac_eB='$%\1#\2define\3'
8254 if test "${CONFIG_HEADERS+set}" != set; then
8256 cat >> $CONFIG_STATUS <<EOF
8257 CONFIG_HEADERS="include/defs.h"
8259 cat >> $CONFIG_STATUS <<\EOF
8261 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8264 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8265 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8266 *) ac_file_in="${ac_file}.in" ;;
8269 echo creating $ac_file
8271 rm -f conftest.frag conftest.in conftest.out
8272 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8273 cat $ac_file_inputs > conftest.in
8277 # Transform confdefs.h into a sed script conftest.vals that substitutes
8278 # the proper values into config.h.in to produce config.h. And first:
8279 # Protect against being on the right side of a sed subst in config.status.
8280 # Protect against being in an unquoted here document in config.status.
8282 cat > conftest.hdr <<\EOF
8285 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8289 sed -n -f conftest.hdr confdefs.h > conftest.vals
8292 # This sed command replaces #undef with comments. This is necessary, for
8293 # example, in the case of _POSIX_SOURCE, which is predefined and required
8294 # on some systems where configure will not decide to define it.
8295 cat >> conftest.vals <<\EOF
8296 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8299 # Break up conftest.vals because some shells have a limit on
8300 # the size of here documents, and old seds have small limits too.
8305 ac_lines=`grep -c . conftest.vals`
8306 # grep -c gives empty output for an empty file on some AIX systems.
8307 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8308 # Write a limited-size here document to conftest.frag.
8309 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8310 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8312 sed -f conftest.frag conftest.in > conftest.out
8314 mv conftest.out conftest.in
8316 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8318 mv conftest.tail conftest.vals
8322 cat >> $CONFIG_STATUS <<\EOF
8323 rm -f conftest.frag conftest.h
8324 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8325 cat conftest.in >> conftest.h
8327 if cmp -s $ac_file conftest.h 2>/dev/null; then
8328 echo "$ac_file is unchanged"
8331 # Remove last slash and all that follows it. Not all systems have dirname.
8332 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8333 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8334 # The file is in a subdirectory.
8335 test ! -d "$ac_dir" && mkdir "$ac_dir"
8338 mv conftest.h $ac_file
8343 cat >> $CONFIG_STATUS <<EOF
8347 cat >> $CONFIG_STATUS <<\EOF
8348 for ac_file in $CONFIG_FILES; do
8349 # Support "outfile[:infile[:infile...]]"
8351 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8353 # PO directories have a Makefile.in generated from Makefile.in.in.
8354 case "$ac_file" in */Makefile.in)
8355 # Adjust a relative srcdir.
8356 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8357 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8358 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8359 # In autoconf-2.13 it is called $ac_given_srcdir.
8360 # In autoconf-2.50 it is called $srcdir.
8361 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8362 case "$ac_given_srcdir" in
8363 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8364 /*) top_srcdir="$ac_given_srcdir" ;;
8365 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8367 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8368 rm -f "$ac_dir/POTFILES"
8369 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8370 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8371 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8372 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8380 chmod +x $CONFIG_STATUS
8381 rm -fr confdefs* $ac_clean_files
8382 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8386 global configuration
8387 --------------------
8389 architecture : ${ARCH}
8390 optimizations : ${OPTIMS}
8392 release: : ${RELEASE}"
8394 if test x${HAVE_VLC} = x1
8399 vlc version : ${VLC_VERSION}
8400 debug mode : ${DEBUG}
8401 trace mode : ${TRACE}
8402 cprof/gprof support : ${CPROF}/${GPROF}
8403 need builtin getopt : ${NEED_GETOPT}
8404 built-in modules :${BUILTINS}
8405 plug-in modules :${PLUGINS}
8406 vlc aliases :${ALIASES}"
8410 libdvdcss configuration
8411 -----------------------
8412 can be built : ${CAN_BUILD_LIBDVDCSS}
8413 will be built : ${NEED_LIBDVDCSS}"
8414 if test x${NEED_LIBDVDCSS} = x1
8416 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8417 echo "link statically : ${STATIC_LIBDVDCSS}"
8419 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8423 You may now tune Makefile.opts at your convenience, for instance to choose
8424 which modules get compiled as plugins.
8426 if test x${HAVE_VLC} = x1
8428 echo "To build vlc and its plugins, type \`make vlc plugins'."
8430 if test x${HAVE_LIBDVDCSS} = x1
8432 echo "To build libdvdcss only, type \`make libdvdcss'."