3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
30 --enable-debug Enable debug mode (default disabled)"
32 --enable-trace Enable trace mode (default disabled)"
34 --enable-gprof Enable gprof profiling (default disabled)"
36 --enable-cprof Enable cprof profiling (default disabled)"
38 --disable-optimizations Disable compiler optimizations (default enabled)"
40 --enable-pth Enable GNU Pth support (default disabled)"
42 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
43 or 'local-static', 'local-shared', or a path to
44 another libdvdcss such as '/usr/local'
45 (default 'local-static')"
47 --enable-dvdread Enable dvdread support (default disabled)"
49 --enable-vcd VCD support for Linux (default enabled)"
51 --disable-dummy dummy module (default enabled)"
53 --disable-null Null module (default enabled)"
55 --disable-rc Remote Control module (default enabled)"
57 --with-mad[=PATH] libmad module (default disabled)"
59 --disable-dsp Linux /dev/dsp support (default enabled)"
61 --enable-esd Esound library support (default disabled)"
63 --enable-arts aRts sound server (default disabled)"
65 --enable-macosx MacOS X support (default enabled on MacOS X)"
67 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
69 --enable-fb Linux framebuffer support (default disabled)"
71 --with-ggi[=name] GGI support (default disabled)"
73 --disable-sdl SDL support (default enabled)"
75 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
77 --disable-directx Windows DirectX support (default enabled on WIN32)"
79 --with-directx-path=path Windows DirectX headers and libraries"
81 --with-glide[=name] Glide (3dfx) support (default disabled)"
83 --enable-ncurses ncurses interface support (default disabled)"
85 --enable-qt Qt interface support (default disabled)"
87 --enable-kde KDE interface support (default disabled)"
89 --enable-gnome Gnome interface support (default disabled)"
91 --disable-gtk Gtk+ support (default enabled)"
93 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
95 --disable-x11 X11 support (default enabled)"
97 --disable-xvideo XVideo support (default enabled)"
99 --enable-alsa Alsa sound drivers support (Only for linux)
102 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
104 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
106 # Initialize some variables set by options.
107 # The variables have the same names as the options, with
108 # dashes changed to underlines.
110 cache_file=./config.cache
119 program_transform_name=s,x,x,
127 bindir='${exec_prefix}/bin'
128 sbindir='${exec_prefix}/sbin'
129 libexecdir='${exec_prefix}/libexec'
130 datadir='${prefix}/share'
131 sysconfdir='${prefix}/etc'
132 sharedstatedir='${prefix}/com'
133 localstatedir='${prefix}/var'
134 libdir='${exec_prefix}/lib'
135 includedir='${prefix}/include'
136 oldincludedir='/usr/include'
137 infodir='${prefix}/info'
138 mandir='${prefix}/man'
140 # Initialize some other variables.
143 SHELL=${CONFIG_SHELL-/bin/sh}
144 # Maximum number of lines to put in a shell here document.
151 # If the previous option needs an argument, assign it.
152 if test -n "$ac_prev"; then
153 eval "$ac_prev=\$ac_option"
159 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
163 # Accept the important Cygnus configure options, so we can diagnose typos.
167 -bindir | --bindir | --bindi | --bind | --bin | --bi)
169 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
170 bindir="$ac_optarg" ;;
172 -build | --build | --buil | --bui | --bu)
174 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
175 build="$ac_optarg" ;;
177 -cache-file | --cache-file | --cache-fil | --cache-fi \
178 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
179 ac_prev=cache_file ;;
180 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
181 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
182 cache_file="$ac_optarg" ;;
184 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
186 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
188 datadir="$ac_optarg" ;;
190 -disable-* | --disable-*)
191 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
197 eval "enable_${ac_feature}=no" ;;
199 -enable-* | --enable-*)
200 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
201 # Reject names that are not valid shell variable names.
202 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
203 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
205 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
210 eval "enable_${ac_feature}='$ac_optarg'" ;;
212 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
213 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
214 | --exec | --exe | --ex)
215 ac_prev=exec_prefix ;;
216 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
217 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
218 | --exec=* | --exe=* | --ex=*)
219 exec_prefix="$ac_optarg" ;;
221 -gas | --gas | --ga | --g)
222 # Obsolete; use --with-gas.
225 -help | --help | --hel | --he)
226 # Omit some internal or obsolete options to make the list less imposing.
227 # This message is too long to be a string in the A/UX 3.1 sh.
229 Usage: configure [options] [host]
230 Options: [defaults in brackets after descriptions]
232 --cache-file=FILE cache test results in FILE
233 --help print this message
234 --no-create do not create output files
235 --quiet, --silent do not print \`checking...' messages
236 --version print the version of autoconf that created configure
237 Directory and file names:
238 --prefix=PREFIX install architecture-independent files in PREFIX
240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
242 --bindir=DIR user executables in DIR [EPREFIX/bin]
243 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
244 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
245 --datadir=DIR read-only architecture-independent data in DIR
247 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
248 --sharedstatedir=DIR modifiable architecture-independent data in DIR
250 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
251 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
252 --includedir=DIR C header files in DIR [PREFIX/include]
253 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
254 --infodir=DIR info documentation in DIR [PREFIX/info]
255 --mandir=DIR man documentation in DIR [PREFIX/man]
256 --srcdir=DIR find the sources in DIR [configure dir or ..]
257 --program-prefix=PREFIX prepend PREFIX to installed program names
258 --program-suffix=SUFFIX append SUFFIX to installed program names
259 --program-transform-name=PROGRAM
260 run sed PROGRAM on installed program names
264 --build=BUILD configure for building on BUILD [BUILD=HOST]
265 --host=HOST configure for HOST [guessed]
266 --target=TARGET configure for TARGET [TARGET=HOST]
267 Features and packages:
268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
272 --x-includes=DIR X include files are in DIR
273 --x-libraries=DIR X library files are in DIR
275 if test -n "$ac_help"; then
276 echo "--enable and --with options recognized:$ac_help"
280 -host | --host | --hos | --ho)
282 -host=* | --host=* | --hos=* | --ho=*)
285 -includedir | --includedir | --includedi | --included | --include \
286 | --includ | --inclu | --incl | --inc)
287 ac_prev=includedir ;;
288 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
289 | --includ=* | --inclu=* | --incl=* | --inc=*)
290 includedir="$ac_optarg" ;;
292 -infodir | --infodir | --infodi | --infod | --info | --inf)
294 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
295 infodir="$ac_optarg" ;;
297 -libdir | --libdir | --libdi | --libd)
299 -libdir=* | --libdir=* | --libdi=* | --libd=*)
300 libdir="$ac_optarg" ;;
302 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
303 | --libexe | --libex | --libe)
304 ac_prev=libexecdir ;;
305 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
306 | --libexe=* | --libex=* | --libe=*)
307 libexecdir="$ac_optarg" ;;
309 -localstatedir | --localstatedir | --localstatedi | --localstated \
310 | --localstate | --localstat | --localsta | --localst \
311 | --locals | --local | --loca | --loc | --lo)
312 ac_prev=localstatedir ;;
313 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
314 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
315 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
316 localstatedir="$ac_optarg" ;;
318 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
320 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
321 mandir="$ac_optarg" ;;
324 # Obsolete; use --without-fp.
327 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
331 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
332 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
335 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
336 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
337 | --oldin | --oldi | --old | --ol | --o)
338 ac_prev=oldincludedir ;;
339 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
340 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
341 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
342 oldincludedir="$ac_optarg" ;;
344 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
346 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
347 prefix="$ac_optarg" ;;
349 -program-prefix | --program-prefix | --program-prefi | --program-pref \
350 | --program-pre | --program-pr | --program-p)
351 ac_prev=program_prefix ;;
352 -program-prefix=* | --program-prefix=* | --program-prefi=* \
353 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
354 program_prefix="$ac_optarg" ;;
356 -program-suffix | --program-suffix | --program-suffi | --program-suff \
357 | --program-suf | --program-su | --program-s)
358 ac_prev=program_suffix ;;
359 -program-suffix=* | --program-suffix=* | --program-suffi=* \
360 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
361 program_suffix="$ac_optarg" ;;
363 -program-transform-name | --program-transform-name \
364 | --program-transform-nam | --program-transform-na \
365 | --program-transform-n | --program-transform- \
366 | --program-transform | --program-transfor \
367 | --program-transfo | --program-transf \
368 | --program-trans | --program-tran \
369 | --progr-tra | --program-tr | --program-t)
370 ac_prev=program_transform_name ;;
371 -program-transform-name=* | --program-transform-name=* \
372 | --program-transform-nam=* | --program-transform-na=* \
373 | --program-transform-n=* | --program-transform-=* \
374 | --program-transform=* | --program-transfor=* \
375 | --program-transfo=* | --program-transf=* \
376 | --program-trans=* | --program-tran=* \
377 | --progr-tra=* | --program-tr=* | --program-t=*)
378 program_transform_name="$ac_optarg" ;;
380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
381 | -silent | --silent | --silen | --sile | --sil)
384 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
386 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
388 sbindir="$ac_optarg" ;;
390 -sharedstatedir | --sharedstatedir | --sharedstatedi \
391 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
392 | --sharedst | --shareds | --shared | --share | --shar \
394 ac_prev=sharedstatedir ;;
395 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
396 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
397 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
399 sharedstatedir="$ac_optarg" ;;
401 -site | --site | --sit)
403 -site=* | --site=* | --sit=*)
406 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
408 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
409 srcdir="$ac_optarg" ;;
411 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
412 | --syscon | --sysco | --sysc | --sys | --sy)
413 ac_prev=sysconfdir ;;
414 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
415 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
416 sysconfdir="$ac_optarg" ;;
418 -target | --target | --targe | --targ | --tar | --ta | --t)
420 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
421 target="$ac_optarg" ;;
423 -v | -verbose | --verbose | --verbos | --verbo | --verb)
426 -version | --version | --versio | --versi | --vers)
427 echo "configure generated by autoconf version 2.13"
431 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
432 # Reject names that are not valid shell variable names.
433 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
434 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
436 ac_package=`echo $ac_package| sed 's/-/_/g'`
441 eval "with_${ac_package}='$ac_optarg'" ;;
443 -without-* | --without-*)
444 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
445 # Reject names that are not valid shell variable names.
446 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
447 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}=no" ;;
453 # Obsolete; use --with-x.
456 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
457 | --x-incl | --x-inc | --x-in | --x-i)
458 ac_prev=x_includes ;;
459 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
460 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
461 x_includes="$ac_optarg" ;;
463 -x-libraries | --x-libraries | --x-librarie | --x-librari \
464 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
465 ac_prev=x_libraries ;;
466 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
467 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
468 x_libraries="$ac_optarg" ;;
470 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
474 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
475 echo "configure: warning: $ac_option: invalid host type" 1>&2
477 if test "x$nonopt" != xNONE; then
478 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
486 if test -n "$ac_prev"; then
487 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
492 # File descriptor usage:
495 # 2 errors and warnings
496 # 3 some systems may open it to /dev/tty
497 # 4 used on the Kubota Titan
498 # 6 checking for... messages and results
499 # 5 compiler messages saved in config.log
500 if test "$silent" = yes; then
508 This file contains any messages produced by compilers while
509 running configure, to aid debugging if configure makes a mistake.
512 # Strip out --no-create and --no-recursion so they do not pile up.
513 # Also quote any args containing shell metacharacters.
518 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
519 | --no-cr | --no-c) ;;
520 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
521 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
522 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
523 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
524 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
529 # Only set these to C if already set. These must not be set unconditionally
530 # because not all systems understand e.g. LANG=C (notably SCO).
531 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
532 # Non-C LC_CTYPE values break the ctype check.
533 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
534 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
535 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
536 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
539 rm -rf conftest* confdefs.h
540 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
543 # A filename unique to this package, relative to the directory that
544 # configure is in, which we can look for to find out if srcdir is correct.
545 ac_unique_file=include/main.h
547 # Find the source files, if location was not specified.
548 if test -z "$srcdir"; then
549 ac_srcdir_defaulted=yes
550 # Try the directory containing this script, then its parent.
552 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
553 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
555 if test ! -r $srcdir/$ac_unique_file; then
559 ac_srcdir_defaulted=no
561 if test ! -r $srcdir/$ac_unique_file; then
562 if test "$ac_srcdir_defaulted" = yes; then
563 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
565 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
568 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
570 # Prefer explicitly selected file to automatically selected ones.
571 if test -z "$CONFIG_SITE"; then
572 if test "x$prefix" != xNONE; then
573 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
575 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
578 for ac_site_file in $CONFIG_SITE; do
579 if test -r "$ac_site_file"; then
580 echo "loading site script $ac_site_file"
585 if test -r "$cache_file"; then
586 echo "loading cache $cache_file"
589 echo "creating cache $cache_file"
594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
595 ac_cpp='$CPP $CPPFLAGS'
596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
598 cross_compiling=$ac_cv_prog_cc_cross
602 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
603 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
604 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
611 ac_n= ac_c='\c' ac_t=
618 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
619 if test -f $ac_dir/install-sh; then
621 ac_install_sh="$ac_aux_dir/install-sh -c"
623 elif test -f $ac_dir/install.sh; then
625 ac_install_sh="$ac_aux_dir/install.sh -c"
629 if test -z "$ac_aux_dir"; then
630 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
632 ac_config_guess=$ac_aux_dir/config.guess
633 ac_config_sub=$ac_aux_dir/config.sub
634 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
637 # Do some error checking and defaulting for the host and target type.
639 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
642 # 1. You are not allowed to specify --host, --target, and nonopt at the
644 # 2. Host defaults to nonopt.
645 # 3. If nonopt is not specified, then host defaults to the current host,
646 # as determined by config.guess.
647 # 4. Target and build default to nonopt.
648 # 5. If nonopt is not specified, then target and build default to host.
650 # The aliases save the names the user supplied, while $host etc.
651 # will get canonicalized.
652 case $host---$target---$nonopt in
653 NONE---*---* | *---NONE---* | *---*---NONE) ;;
654 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
658 # Make sure we can run config.sub.
659 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
660 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
663 echo $ac_n "checking host system type""... $ac_c" 1>&6
664 echo "configure:665: checking host system type" >&5
667 case "$host_alias" in
671 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
672 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
674 *) host_alias=$nonopt ;;
678 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
679 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
682 echo "$ac_t""$host" 1>&6
684 echo $ac_n "checking target system type""... $ac_c" 1>&6
685 echo "configure:686: checking target system type" >&5
688 case "$target_alias" in
691 NONE) target_alias=$host_alias ;;
692 *) target_alias=$nonopt ;;
696 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
697 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo "$ac_t""$target" 1>&6
702 echo $ac_n "checking build system type""... $ac_c" 1>&6
703 echo "configure:704: checking build system type" >&5
706 case "$build_alias" in
709 NONE) build_alias=$host_alias ;;
710 *) build_alias=$nonopt ;;
714 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
715 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
716 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
717 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
718 echo "$ac_t""$build" 1>&6
720 test "$host_alias" != "$target_alias" &&
721 test "$program_prefix$program_suffix$program_transform_name" = \
723 program_prefix=${target_alias}-
727 if test -r src/interface/main.c; then
729 VLC_VERSION="0.2.92-dev"
734 if test -r extras/libdvdcss/libdvdcss.c; then
736 LIBDVDCSS_VERSION="1.0.1-dev"
738 if test -r extras/libdvdcss/csskeys.h; then
739 cat >> confdefs.h <<\EOF
740 #define HAVE_CSSKEYS 1
746 save_CFLAGS="${CFLAGS}"
747 save_LDFLAGS="${LDFLAGS}"
749 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
750 echo "configure:751: checking whether ${MAKE-make} sets \${MAKE}" >&5
751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
752 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 cat > conftestmake <<\EOF
757 @echo 'ac_maketemp="${MAKE}"'
759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
760 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
761 if test -n "$ac_maketemp"; then
762 eval ac_cv_prog_make_${ac_make}_set=yes
764 eval ac_cv_prog_make_${ac_make}_set=no
768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
769 echo "$ac_t""yes" 1>&6
772 echo "$ac_t""no" 1>&6
773 SET_MAKE="MAKE=${MAKE-make}"
776 # Extract the first word of "gcc", so it can be a program name with args.
777 set dummy gcc; ac_word=$2
778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
779 echo "configure:780: checking for $ac_word" >&5
780 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 if test -n "$CC"; then
784 ac_cv_prog_CC="$CC" # Let the user override the test.
786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
788 for ac_dir in $ac_dummy; do
789 test -z "$ac_dir" && ac_dir=.
790 if test -f $ac_dir/$ac_word; then
799 if test -n "$CC"; then
800 echo "$ac_t""$CC" 1>&6
802 echo "$ac_t""no" 1>&6
805 if test -z "$CC"; then
806 # Extract the first word of "cc", so it can be a program name with args.
807 set dummy cc; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 if test -n "$CC"; then
814 ac_cv_prog_CC="$CC" # Let the user override the test.
816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
819 for ac_dir in $ac_dummy; do
820 test -z "$ac_dir" && ac_dir=.
821 if test -f $ac_dir/$ac_word; then
822 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
831 if test $ac_prog_rejected = yes; then
832 # We found a bogon in the path, so make sure we never use it.
833 set dummy $ac_cv_prog_CC
835 if test $# -gt 0; then
836 # We chose a different compiler from the bogus one.
837 # However, it has the same basename, so the bogon will be chosen
838 # first if we set CC to just the basename; use the full file name.
840 set dummy "$ac_dir/$ac_word" "$@"
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
854 if test -z "$CC"; then
857 # Extract the first word of "cl", so it can be a program name with args.
858 set dummy cl; ac_word=$2
859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
860 echo "configure:861: checking for $ac_word" >&5
861 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 if test -n "$CC"; then
865 ac_cv_prog_CC="$CC" # Let the user override the test.
867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
869 for ac_dir in $ac_dummy; do
870 test -z "$ac_dir" && ac_dir=.
871 if test -f $ac_dir/$ac_word; then
880 if test -n "$CC"; then
881 echo "$ac_t""$CC" 1>&6
883 echo "$ac_t""no" 1>&6
888 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
891 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
892 echo "configure:893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
896 ac_cpp='$CPP $CPPFLAGS'
897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
899 cross_compiling=$ac_cv_prog_cc_cross
901 cat > conftest.$ac_ext << EOF
903 #line 904 "configure"
904 #include "confdefs.h"
908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
909 ac_cv_prog_cc_works=yes
910 # If we can't run a trivial program, we are probably using a cross compiler.
911 if (./conftest; exit) 2>/dev/null; then
912 ac_cv_prog_cc_cross=no
914 ac_cv_prog_cc_cross=yes
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
919 ac_cv_prog_cc_works=no
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
930 if test $ac_cv_prog_cc_works = no; then
931 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
934 echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
935 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
936 cross_compiling=$ac_cv_prog_cc_cross
938 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
939 echo "configure:940: checking whether we are using GNU C" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 cat > conftest.c <<EOF
948 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
955 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
957 if test $ac_cv_prog_gcc = yes; then
963 ac_test_CFLAGS="${CFLAGS+set}"
964 ac_save_CFLAGS="$CFLAGS"
966 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
967 echo "configure:968: checking whether ${CC-cc} accepts -g" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 echo 'void f(){}' > conftest.c
972 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
981 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
982 if test "$ac_test_CFLAGS" = set; then
983 CFLAGS="$ac_save_CFLAGS"
984 elif test $ac_cv_prog_cc_g = yes; then
985 if test "$GCC" = yes; then
991 if test "$GCC" = yes; then
998 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
999 echo "configure:1000: checking how to run the C preprocessor" >&5
1000 # On Suns, sometimes $CPP names a directory.
1001 if test -n "$CPP" && test -d "$CPP"; then
1004 if test -z "$CPP"; then
1005 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 # This must be in double quotes, not single quotes, because CPP may get
1009 # substituted into the Makefile and "${CC-cc}" will confuse make.
1011 # On the NeXT, cc -E runs the code through the compiler's parser,
1012 # not just through cpp.
1013 cat > conftest.$ac_ext <<EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1020 { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1022 if test -z "$ac_err"; then
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1029 CPP="${CC-cc} -E -traditional-cpp"
1030 cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1037 { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1039 if test -z "$ac_err"; then
1043 echo "configure: failed program was:" >&5
1044 cat conftest.$ac_ext >&5
1046 CPP="${CC-cc} -nologo -E"
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1054 { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1056 if test -z "$ac_err"; then
1060 echo "configure: failed program was:" >&5
1061 cat conftest.$ac_ext >&5
1070 ac_cv_prog_CPP="$CPP"
1072 CPP="$ac_cv_prog_CPP"
1074 ac_cv_prog_CPP="$CPP"
1076 echo "$ac_t""$CPP" 1>&6
1079 ALL_LINGUAS="de fr ru"
1081 cat >> confdefs.h <<EOF
1082 #define PACKAGE "vlc"
1085 cat >> confdefs.h <<EOF
1086 #define VERSION "$VLC_VERSION"
1089 # Extract the first word of "ranlib", so it can be a program name with args.
1090 set dummy ranlib; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$RANLIB"; then
1097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_RANLIB="ranlib"
1109 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1112 RANLIB="$ac_cv_prog_RANLIB"
1113 if test -n "$RANLIB"; then
1114 echo "$ac_t""$RANLIB" 1>&6
1116 echo "$ac_t""no" 1>&6
1120 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1121 echo "configure:1122: checking for strerror in -lcposix" >&5
1122 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 ac_save_LIBS="$LIBS"
1127 LIBS="-lcposix $LIBS"
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1131 /* Override any gcc2 internal prototype to avoid an error. */
1132 /* We use char because int might match the return type of a gcc2
1133 builtin and then its argument prototype would still apply. */
1140 if { (eval echo configure:1141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1142 eval "ac_cv_lib_$ac_lib_var=yes"
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1147 eval "ac_cv_lib_$ac_lib_var=no"
1150 LIBS="$ac_save_LIBS"
1153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1154 echo "$ac_t""yes" 1>&6
1155 LIBS="$LIBS -lcposix"
1157 echo "$ac_t""no" 1>&6
1162 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1163 echo "configure:1164: checking for ANSI C header files" >&5
1164 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1176 { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1178 if test -z "$ac_err"; then
1180 ac_cv_header_stdc=yes
1183 echo "configure: failed program was:" >&5
1184 cat conftest.$ac_ext >&5
1186 ac_cv_header_stdc=no
1190 if test $ac_cv_header_stdc = yes; then
1191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1192 cat > conftest.$ac_ext <<EOF
1193 #line 1194 "configure"
1194 #include "confdefs.h"
1197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1198 egrep "memchr" >/dev/null 2>&1; then
1202 ac_cv_header_stdc=no
1208 if test $ac_cv_header_stdc = yes; then
1209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1210 cat > conftest.$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1216 egrep "free" >/dev/null 2>&1; then
1220 ac_cv_header_stdc=no
1226 if test $ac_cv_header_stdc = yes; then
1227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1228 if test "$cross_compiling" = yes; then
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1235 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1236 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1238 int main () { int i; for (i = 0; i < 256; i++)
1239 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1243 if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1247 echo "configure: failed program was:" >&5
1248 cat conftest.$ac_ext >&5
1250 ac_cv_header_stdc=no
1258 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1259 if test $ac_cv_header_stdc = yes; then
1260 cat >> confdefs.h <<\EOF
1261 #define STDC_HEADERS 1
1266 echo $ac_n "checking for working const""... $ac_c" 1>&6
1267 echo "configure:1268: checking for working const" >&5
1268 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 cat > conftest.$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1277 /* Ultrix mips cc rejects this. */
1278 typedef int charset[2]; const charset x;
1279 /* SunOS 4.1.1 cc rejects this. */
1280 char const *const *ccp;
1282 /* NEC SVR4.0.2 mips cc rejects this. */
1283 struct point {int x, y;};
1284 static struct point const zero = {0,0};
1285 /* AIX XL C 1.02.0.0 rejects this.
1286 It does not let you subtract one const X* pointer from another in an arm
1287 of an if-expression whose if-part is not a constant expression */
1288 const char *g = "string";
1289 ccp = &g + (g ? g-g : 0);
1290 /* HPUX 7.0 cc rejects these. */
1293 ccp = (char const *const *) p;
1294 { /* SCO 3.2v4 cc rejects this. */
1296 char const *s = 0 ? (char *) 0 : (char const *) 0;
1300 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1302 const int *foo = &x[0];
1305 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1306 typedef const int *iptr;
1310 { /* AIX XL C 1.02.0.0 rejects this saying
1311 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1312 struct s { int j; const int *ap[3]; };
1313 struct s *b; b->j = 5;
1315 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1321 if { (eval echo configure:1322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1333 echo "$ac_t""$ac_cv_c_const" 1>&6
1334 if test $ac_cv_c_const = no; then
1335 cat >> confdefs.h <<\EOF
1341 echo $ac_n "checking for inline""... $ac_c" 1>&6
1342 echo "configure:1343: checking for inline" >&5
1343 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1347 for ac_kw in inline __inline__ __inline; do
1348 cat > conftest.$ac_ext <<EOF
1349 #line 1350 "configure"
1350 #include "confdefs.h"
1356 if { (eval echo configure:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 ac_cv_c_inline=$ac_kw; break
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1368 echo "$ac_t""$ac_cv_c_inline" 1>&6
1369 case "$ac_cv_c_inline" in
1371 no) cat >> confdefs.h <<\EOF
1375 *) cat >> confdefs.h <<EOF
1376 #define inline $ac_cv_c_inline
1381 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1382 echo "configure:1383: checking for off_t" >&5
1383 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 #include <sys/types.h>
1395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1396 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1398 ac_cv_type_off_t=yes
1406 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1407 if test $ac_cv_type_off_t = no; then
1408 cat >> confdefs.h <<\EOF
1414 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1415 echo "configure:1416: checking for size_t" >&5
1416 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 #include <sys/types.h>
1428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1429 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1431 ac_cv_type_size_t=yes
1434 ac_cv_type_size_t=no
1439 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1440 if test $ac_cv_type_size_t = no; then
1441 cat >> confdefs.h <<\EOF
1442 #define size_t unsigned
1447 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1448 # for constant arguments. Useless!
1449 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1450 echo "configure:1451: checking for working alloca.h" >&5
1451 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1459 char *p = alloca(2 * sizeof(int));
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1464 ac_cv_header_alloca_h=yes
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 ac_cv_header_alloca_h=no
1474 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1475 if test $ac_cv_header_alloca_h = yes; then
1476 cat >> confdefs.h <<\EOF
1477 #define HAVE_ALLOCA_H 1
1482 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1483 echo "configure:1484: checking for alloca" >&5
1484 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 cat > conftest.$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1492 # define alloca __builtin_alloca
1495 # include <malloc.h>
1496 # define alloca _alloca
1499 # include <alloca.h>
1504 # ifndef alloca /* predefined by HP cc +Olibcalls */
1513 char *p = (char *) alloca(1);
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1518 ac_cv_func_alloca_works=yes
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1523 ac_cv_func_alloca_works=no
1528 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1529 if test $ac_cv_func_alloca_works = yes; then
1530 cat >> confdefs.h <<\EOF
1531 #define HAVE_ALLOCA 1
1536 if test $ac_cv_func_alloca_works = no; then
1537 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1538 # that cause trouble. Some versions do not even contain alloca or
1539 # contain a buggy version. If you still want to use their alloca,
1540 # use ar to extract alloca.o from them instead of compiling alloca.c.
1541 ALLOCA=alloca.${ac_objext}
1542 cat >> confdefs.h <<\EOF
1547 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1548 echo "configure:1549: checking whether alloca needs Cray hooks" >&5
1549 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 #if defined(CRAY) && ! defined(CRAY2)
1562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1563 egrep "webecray" >/dev/null 2>&1; then
1574 echo "$ac_t""$ac_cv_os_cray" 1>&6
1575 if test $ac_cv_os_cray = yes; then
1576 for ac_func in _getb67 GETB67 getb67; do
1577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_func" >&5
1579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1585 /* System header to define __stub macros and hopefully few prototypes,
1586 which can conflict with char $ac_func(); below. */
1588 /* Override any gcc2 internal prototype to avoid an error. */
1589 /* We use char because int might match the return type of a gcc2
1590 builtin and then its argument prototype would still apply. */
1595 /* The GNU C library defines this for functions which it implements
1596 to always fail with ENOSYS. Some functions are actually named
1597 something starting with __ and the normal name is an alias. */
1598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1606 if { (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1608 eval "ac_cv_func_$ac_func=yes"
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1613 eval "ac_cv_func_$ac_func=no"
1618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1619 echo "$ac_t""yes" 1>&6
1620 cat >> confdefs.h <<EOF
1621 #define CRAY_STACKSEG_END $ac_func
1626 echo "$ac_t""no" 1>&6
1632 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1633 echo "configure:1634: checking stack direction for C alloca" >&5
1634 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 if test "$cross_compiling" = yes; then
1638 ac_cv_c_stack_direction=0
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 find_stack_direction ()
1645 static char *addr = 0;
1650 return find_stack_direction ();
1653 return (&dummy > addr) ? 1 : -1;
1657 exit (find_stack_direction() < 0);
1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1662 ac_cv_c_stack_direction=1
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1667 ac_cv_c_stack_direction=-1
1674 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1675 cat >> confdefs.h <<EOF
1676 #define STACK_DIRECTION $ac_cv_c_stack_direction
1681 for ac_hdr in unistd.h
1683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1685 echo "configure:1686: checking for $ac_hdr" >&5
1686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1695 { (eval echo configure:1696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1697 if test -z "$ac_err"; then
1699 eval "ac_cv_header_$ac_safe=yes"
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 eval "ac_cv_header_$ac_safe=no"
1709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1712 cat >> confdefs.h <<EOF
1713 #define $ac_tr_hdr 1
1717 echo "$ac_t""no" 1>&6
1721 for ac_func in getpagesize
1723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_func" >&5
1725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $ac_func(); below. */
1734 /* Override any gcc2 internal prototype to avoid an error. */
1735 /* We use char because int might match the return type of a gcc2
1736 builtin and then its argument prototype would still apply. */
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1754 eval "ac_cv_func_$ac_func=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 eval "ac_cv_func_$ac_func=no"
1764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1765 echo "$ac_t""yes" 1>&6
1766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1767 cat >> confdefs.h <<EOF
1768 #define $ac_tr_func 1
1772 echo "$ac_t""no" 1>&6
1776 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1777 echo "configure:1778: checking for working mmap" >&5
1778 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 if test "$cross_compiling" = yes; then
1782 ac_cv_func_mmap_fixed_mapped=no
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1788 /* Thanks to Mike Haertel and Jim Avera for this test.
1789 Here is a matrix of mmap possibilities:
1790 mmap private not fixed
1791 mmap private fixed at somewhere currently unmapped
1792 mmap private fixed at somewhere already mapped
1793 mmap shared not fixed
1794 mmap shared fixed at somewhere currently unmapped
1795 mmap shared fixed at somewhere already mapped
1796 For private mappings, we should verify that changes cannot be read()
1797 back from the file, nor mmap's back from the file at a different
1798 address. (There have been systems where private was not correctly
1799 implemented like the infamous i386 svr4.0, and systems where the
1800 VM page cache was not coherent with the filesystem buffer cache
1801 like early versions of FreeBSD and possibly contemporary NetBSD.)
1802 For shared mappings, we should conversely verify that changes get
1803 propogated back to all the places they're supposed to be.
1805 Grep wants private fixed already mapped.
1806 The main things grep needs to know about mmap are:
1807 * does it exist and is it safe to write into the mmap'd area
1808 * how to use it (BSD variants) */
1809 #include <sys/types.h>
1811 #include <sys/mman.h>
1813 /* This mess was copied from the GNU getpagesize.h. */
1814 #ifndef HAVE_GETPAGESIZE
1815 # ifdef HAVE_UNISTD_H
1816 # include <unistd.h>
1819 /* Assume that all systems that can run configure have sys/param.h. */
1820 # ifndef HAVE_SYS_PARAM_H
1821 # define HAVE_SYS_PARAM_H 1
1824 # ifdef _SC_PAGESIZE
1825 # define getpagesize() sysconf(_SC_PAGESIZE)
1826 # else /* no _SC_PAGESIZE */
1827 # ifdef HAVE_SYS_PARAM_H
1828 # include <sys/param.h>
1829 # ifdef EXEC_PAGESIZE
1830 # define getpagesize() EXEC_PAGESIZE
1831 # else /* no EXEC_PAGESIZE */
1833 # define getpagesize() NBPG * CLSIZE
1836 # endif /* no CLSIZE */
1837 # else /* no NBPG */
1839 # define getpagesize() NBPC
1840 # else /* no NBPC */
1842 # define getpagesize() PAGESIZE
1843 # endif /* PAGESIZE */
1844 # endif /* no NBPC */
1845 # endif /* no NBPG */
1846 # endif /* no EXEC_PAGESIZE */
1847 # else /* no HAVE_SYS_PARAM_H */
1848 # define getpagesize() 8192 /* punt totally */
1849 # endif /* no HAVE_SYS_PARAM_H */
1850 # endif /* no _SC_PAGESIZE */
1852 #endif /* no HAVE_GETPAGESIZE */
1855 extern "C" { void *malloc(unsigned); }
1863 char *data, *data2, *data3;
1867 pagesize = getpagesize();
1870 * First, make a file with some known garbage in it.
1872 data = malloc(pagesize);
1875 for (i = 0; i < pagesize; ++i)
1876 *(data + i) = rand();
1878 fd = creat("conftestmmap", 0600);
1881 if (write(fd, data, pagesize) != pagesize)
1886 * Next, try to mmap the file at a fixed address which
1887 * already has something else allocated at it. If we can,
1888 * also make sure that we see the same garbage.
1890 fd = open("conftestmmap", O_RDWR);
1893 data2 = malloc(2 * pagesize);
1896 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1897 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1898 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1900 for (i = 0; i < pagesize; ++i)
1901 if (*(data + i) != *(data2 + i))
1905 * Finally, make sure that changes to the mapped area
1906 * do not percolate back to the file as seen by read().
1907 * (This is a bug on some variants of i386 svr4.0.)
1909 for (i = 0; i < pagesize; ++i)
1910 *(data2 + i) = *(data2 + i) + 1;
1911 data3 = malloc(pagesize);
1914 if (read(fd, data3, pagesize) != pagesize)
1916 for (i = 0; i < pagesize; ++i)
1917 if (*(data + i) != *(data3 + i))
1920 unlink("conftestmmap");
1925 if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1927 ac_cv_func_mmap_fixed_mapped=yes
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1932 ac_cv_func_mmap_fixed_mapped=no
1939 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1940 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1941 cat >> confdefs.h <<\EOF
1948 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
1949 echo "configure:1950: checking whether we are using the GNU C Library 2.1 or newer" >&5
1950 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1957 #include <features.h>
1958 #ifdef __GNU_LIBRARY__
1959 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
1965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1966 egrep "Lucky GNU user" >/dev/null 2>&1; then
1968 ac_cv_gnu_library_2_1=yes
1971 ac_cv_gnu_library_2_1=no
1979 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
1981 GLIBC21="$ac_cv_gnu_library_2_1"
1985 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
1986 stdlib.h string.h unistd.h sys/param.h
1988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_hdr" >&5
1991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2000 { (eval echo configure:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2002 if test -z "$ac_err"; then
2004 eval "ac_cv_header_$ac_safe=yes"
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2010 eval "ac_cv_header_$ac_safe=no"
2014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2017 cat >> confdefs.h <<EOF
2018 #define $ac_tr_hdr 1
2022 echo "$ac_t""no" 1>&6
2026 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2027 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2028 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_func" >&5
2032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $ac_func(); below. */
2041 /* Override any gcc2 internal prototype to avoid an error. */
2042 /* We use char because int might match the return type of a gcc2
2043 builtin and then its argument prototype would still apply. */
2048 /* The GNU C library defines this for functions which it implements
2049 to always fail with ENOSYS. Some functions are actually named
2050 something starting with __ and the normal name is an alias. */
2051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2059 if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2061 eval "ac_cv_func_$ac_func=yes"
2063 echo "configure: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2066 eval "ac_cv_func_$ac_func=no"
2071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2072 echo "$ac_t""yes" 1>&6
2073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2074 cat >> confdefs.h <<EOF
2075 #define $ac_tr_func 1
2079 echo "$ac_t""no" 1>&6
2086 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2087 if test "${with_libiconv_prefix+set}" = set; then
2088 withval="$with_libiconv_prefix"
2090 for dir in `echo "$withval" | tr : ' '`; do
2091 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2092 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2098 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2099 echo "configure:2100: checking for iconv" >&5
2100 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2104 am_cv_func_iconv="no, consider installing GNU libiconv"
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2112 iconv_t cd = iconv_open("","");
2113 iconv(cd,NULL,NULL,NULL,NULL);
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2119 am_cv_func_iconv=yes
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2125 if test "$am_cv_func_iconv" != yes; then
2126 am_save_LIBS="$LIBS"
2127 LIBS="$LIBS -liconv"
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2134 iconv_t cd = iconv_open("","");
2135 iconv(cd,NULL,NULL,NULL,NULL);
2139 if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142 am_cv_func_iconv=yes
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2148 LIBS="$am_save_LIBS"
2153 echo "$ac_t""$am_cv_func_iconv" 1>&6
2154 if test "$am_cv_func_iconv" = yes; then
2155 cat >> confdefs.h <<\EOF
2156 #define HAVE_ICONV 1
2159 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2160 echo "configure:2161: checking for iconv declaration" >&5
2161 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2175 #if defined(__STDC__) || defined(__cplusplus)
2176 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2185 if { (eval echo configure:2186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2187 am_cv_proto_iconv_arg1=""
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 am_cv_proto_iconv_arg1="const"
2195 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);"
2198 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2199 echo "$ac_t""${ac_t:-
2200 }$am_cv_proto_iconv" 1>&6
2201 cat >> confdefs.h <<EOF
2202 #define ICONV_CONST $am_cv_proto_iconv_arg1
2207 if test "$am_cv_lib_iconv" = yes; then
2213 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2214 echo "configure:2215: checking for nl_langinfo and CODESET" >&5
2215 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 #include <langinfo.h>
2223 char* cs = nl_langinfo(CODESET);
2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2228 am_cv_langinfo_codeset=yes
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 am_cv_langinfo_codeset=no
2239 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2240 if test $am_cv_langinfo_codeset = yes; then
2241 cat >> confdefs.h <<\EOF
2242 #define HAVE_LANGINFO_CODESET 1
2247 if test $ac_cv_header_locale_h = yes; then
2248 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2249 echo "configure:2250: checking for LC_MESSAGES" >&5
2250 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2263 am_cv_val_LC_MESSAGES=yes
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 am_cv_val_LC_MESSAGES=no
2273 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2274 if test $am_cv_val_LC_MESSAGES = yes; then
2275 cat >> confdefs.h <<\EOF
2276 #define HAVE_LC_MESSAGES 1
2281 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2282 echo "configure:2283: checking whether NLS is requested" >&5
2283 # Check whether --enable-nls or --disable-nls was given.
2284 if test "${enable_nls+set}" = set; then
2285 enableval="$enable_nls"
2291 echo "$ac_t""$USE_NLS" 1>&6
2294 BUILD_INCLUDED_LIBINTL=no
2295 USE_INCLUDED_LIBINTL=no
2298 if test "$USE_NLS" = "yes"; then
2299 cat >> confdefs.h <<\EOF
2300 #define ENABLE_NLS 1
2303 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2304 echo "configure:2305: checking whether included gettext is requested" >&5
2305 # Check whether --with-included-gettext or --without-included-gettext was given.
2306 if test "${with_included_gettext+set}" = set; then
2307 withval="$with_included_gettext"
2308 nls_cv_force_use_gnu_gettext=$withval
2310 nls_cv_force_use_gnu_gettext=no
2313 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2315 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2316 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2322 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2323 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2324 echo "configure:2325: checking for libintl.h" >&5
2325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 #include <libintl.h>
2333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2334 { (eval echo configure:2335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2336 if test -z "$ac_err"; then
2338 eval "ac_cv_header_$ac_safe=yes"
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2344 eval "ac_cv_header_$ac_safe=no"
2348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2349 echo "$ac_t""yes" 1>&6
2350 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2351 echo "configure:2352: checking for GNU gettext in libc" >&5
2352 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 #include <libintl.h>
2359 extern int _nl_msg_cat_cntr;
2361 bindtextdomain ("", "");
2362 return (int) gettext ("") + _nl_msg_cat_cntr
2365 if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2367 gt_cv_func_gnugettext1_libc=yes
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2372 gt_cv_func_gnugettext1_libc=no
2377 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2379 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2380 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2381 echo "configure:2382: checking for GNU gettext in libintl" >&5
2382 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 gt_save_LIBS="$LIBS"
2386 LIBS="$LIBS -lintl $LIBICONV"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <libintl.h>
2391 extern int _nl_msg_cat_cntr;
2393 bindtextdomain ("", "");
2394 return (int) gettext ("") + _nl_msg_cat_cntr
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399 gt_cv_func_gnugettext1_libintl=yes
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 gt_cv_func_gnugettext1_libintl=no
2407 LIBS="$gt_save_LIBS"
2410 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2413 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2414 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2415 && test "$PACKAGE" != gettext; }; then
2416 cat >> confdefs.h <<\EOF
2417 #define HAVE_GETTEXT 1
2421 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2422 INTLLIBS="-lintl $LIBICONV"
2425 gt_save_LIBS="$LIBS"
2426 LIBS="$LIBS $INTLLIBS"
2427 for ac_func in dcgettext
2429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_func" >&5
2431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
2438 which can conflict with char $ac_func(); below. */
2440 /* Override any gcc2 internal prototype to avoid an error. */
2441 /* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */
2447 /* The GNU C library defines this for functions which it implements
2448 to always fail with ENOSYS. Some functions are actually named
2449 something starting with __ and the normal name is an alias. */
2450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 eval "ac_cv_func_$ac_func=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_func_$ac_func=no"
2470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2471 echo "$ac_t""yes" 1>&6
2472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2473 cat >> confdefs.h <<EOF
2474 #define $ac_tr_func 1
2478 echo "$ac_t""no" 1>&6
2482 LIBS="$gt_save_LIBS"
2484 # Extract the first word of "msgfmt", so it can be a program name with args.
2485 set dummy msgfmt; ac_word=$2
2486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2487 echo "configure:2488: checking for $ac_word" >&5
2488 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2493 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2497 for ac_dir in $PATH; do
2498 test -z "$ac_dir" && ac_dir=.
2499 if test -f $ac_dir/$ac_word; then
2500 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2501 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2507 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2511 MSGFMT="$ac_cv_path_MSGFMT"
2512 if test "$MSGFMT" != ":"; then
2513 echo "$ac_t""$MSGFMT" 1>&6
2515 echo "$ac_t""no" 1>&6
2518 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2519 set dummy gmsgfmt; ac_word=$2
2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_word" >&5
2522 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2527 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2530 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2535 for ac_dir in $ac_dummy; do
2536 test -z "$ac_dir" && ac_dir=.
2537 if test -f $ac_dir/$ac_word; then
2538 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2543 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2547 GMSGFMT="$ac_cv_path_GMSGFMT"
2548 if test -n "$GMSGFMT"; then
2549 echo "$ac_t""$GMSGFMT" 1>&6
2551 echo "$ac_t""no" 1>&6
2555 # Extract the first word of "xgettext", so it can be a program name with args.
2556 set dummy xgettext; ac_word=$2
2557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2558 echo "configure:2559: checking for $ac_word" >&5
2559 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2568 for ac_dir in $PATH; do
2569 test -z "$ac_dir" && ac_dir=.
2570 if test -f $ac_dir/$ac_word; then
2571 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2572 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2578 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2582 XGETTEXT="$ac_cv_path_XGETTEXT"
2583 if test "$XGETTEXT" != ":"; then
2584 echo "$ac_t""$XGETTEXT" 1>&6
2586 echo "$ac_t""no" 1>&6
2594 echo "$ac_t""no" 1>&6
2598 if test "$CATOBJEXT" = "NONE"; then
2599 nls_cv_use_gnu_gettext=yes
2603 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2604 INTLOBJS="\$(GETTOBJS)"
2605 # Extract the first word of "msgfmt", so it can be a program name with args.
2606 set dummy msgfmt; ac_word=$2
2607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_word" >&5
2609 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2614 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2618 for ac_dir in $PATH; do
2619 test -z "$ac_dir" && ac_dir=.
2620 if test -f $ac_dir/$ac_word; then
2621 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2622 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2628 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2632 MSGFMT="$ac_cv_path_MSGFMT"
2633 if test "$MSGFMT" != ":"; then
2634 echo "$ac_t""$MSGFMT" 1>&6
2636 echo "$ac_t""no" 1>&6
2639 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2640 set dummy gmsgfmt; ac_word=$2
2641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2642 echo "configure:2643: checking for $ac_word" >&5
2643 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2648 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2651 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2656 for ac_dir in $ac_dummy; do
2657 test -z "$ac_dir" && ac_dir=.
2658 if test -f $ac_dir/$ac_word; then
2659 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2664 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2668 GMSGFMT="$ac_cv_path_GMSGFMT"
2669 if test -n "$GMSGFMT"; then
2670 echo "$ac_t""$GMSGFMT" 1>&6
2672 echo "$ac_t""no" 1>&6
2675 # Extract the first word of "xgettext", so it can be a program name with args.
2676 set dummy xgettext; ac_word=$2
2677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2678 echo "configure:2679: checking for $ac_word" >&5
2679 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2684 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2688 for ac_dir in $PATH; do
2689 test -z "$ac_dir" && ac_dir=.
2690 if test -f $ac_dir/$ac_word; then
2691 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2692 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2698 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2702 XGETTEXT="$ac_cv_path_XGETTEXT"
2703 if test "$XGETTEXT" != ":"; then
2704 echo "$ac_t""$XGETTEXT" 1>&6
2706 echo "$ac_t""no" 1>&6
2710 BUILD_INCLUDED_LIBINTL=yes
2711 USE_INCLUDED_LIBINTL=yes
2713 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2714 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2717 if test "$GMSGFMT" != ":"; then
2718 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2721 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2726 if test "$XGETTEXT" != ":"; then
2727 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2730 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2740 if test "$PACKAGE" = gettext; then
2741 BUILD_INCLUDED_LIBINTL=yes
2744 for ac_prog in bison
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2749 echo "configure:2750: checking for $ac_word" >&5
2750 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 if test -n "$INTLBISON"; then
2754 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2758 for ac_dir in $ac_dummy; do
2759 test -z "$ac_dir" && ac_dir=.
2760 if test -f $ac_dir/$ac_word; then
2761 ac_cv_prog_INTLBISON="$ac_prog"
2768 INTLBISON="$ac_cv_prog_INTLBISON"
2769 if test -n "$INTLBISON"; then
2770 echo "$ac_t""$INTLBISON" 1>&6
2772 echo "$ac_t""no" 1>&6
2775 test -n "$INTLBISON" && break
2778 if test -z "$INTLBISON"; then
2781 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2782 echo "configure:2783: checking version of bison" >&5
2783 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2784 case $ac_prog_version in
2785 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2786 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2787 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2788 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2790 echo "$ac_t""$ac_prog_version" 1>&6
2792 if test $ac_verc_fail = yes; then
2796 for lang in $ALL_LINGUAS; do
2797 GMOFILES="$GMOFILES $lang.gmo"
2798 POFILES="$POFILES $lang.po"
2812 nls_cv_header_libgt=
2824 if test "x$CATOBJEXT" != "x"; then
2825 if test "x$ALL_LINGUAS" = "x"; then
2828 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2829 echo "configure:2830: checking for catalogs to be installed" >&5
2831 for presentlang in $ALL_LINGUAS; do
2833 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2834 # Use the presentlang catalog if desiredlang is
2835 # a. equal to presentlang, or
2836 # b. a variant of presentlang (because in this case,
2837 # presentlang can be used as a fallback for messages
2838 # which are not translated in the desiredlang catalog).
2839 case "$desiredlang" in
2840 "$presentlang"*) useit=yes;;
2843 if test $useit = yes; then
2844 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2847 LINGUAS=$NEW_LINGUAS
2848 echo "$ac_t""$LINGUAS" 1>&6
2851 if test -n "$LINGUAS"; then
2852 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2857 if test -n "$ac_aux_dir"; then
2858 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2860 if test -z "$MKINSTALLDIRS"; then
2861 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2865 INTL_LIBTOOL_SUFFIX_PREFIX=
2869 # Find a good install program. We prefer a C program (faster),
2870 # so one script is as good as another. But avoid the broken or
2871 # incompatible versions:
2872 # SysV /etc/install, /usr/sbin/install
2873 # SunOS /usr/etc/install
2874 # IRIX /sbin/install
2876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2879 # ./install, which can be erroneously created by make from ./install.sh.
2880 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2881 echo "configure:2882: checking for a BSD compatible install" >&5
2882 if test -z "$INSTALL"; then
2883 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2887 for ac_dir in $PATH; do
2888 # Account for people who put trailing slashes in PATH elements.
2890 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2892 # OSF1 and SCO ODT 3.0 have their own names for install.
2893 # Don't use installbsd from OSF since it installs stuff as root
2895 for ac_prog in ginstall scoinst install; do
2896 if test -f $ac_dir/$ac_prog; then
2897 if test $ac_prog = install &&
2898 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2899 # AIX install. It has an incompatible calling convention.
2902 ac_cv_path_install="$ac_dir/$ac_prog -c"
2913 if test "${ac_cv_path_install+set}" = set; then
2914 INSTALL="$ac_cv_path_install"
2916 # As a last resort, use the slow shell script. We don't cache a
2917 # path for INSTALL within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the path is relative.
2920 INSTALL="$ac_install_sh"
2923 echo "$ac_t""$INSTALL" 1>&6
2925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2926 # It thinks the first close brace ends the variable substitution.
2927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2934 # Check whether --with-words or --without-words was given.
2935 if test "${with_words+set}" = set; then
2936 withval="$with_words"
2942 ac_cv_c_bigendian=yes
2945 ac_cv_c_bigendian=no
2948 ac_cv_c_bigendian=unknown
2949 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
2950 echo "configure:2951: checking what the byte order looks to be" >&5
2951 cat >conftest.c <<EOF
2952 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
2953 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
2954 void _a(void) { char*s = (char*)am; s = (char *)ai; }
2955 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
2956 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
2957 void _e(void) { char*s = (char*)em; s = (char*)ei; }
2958 int main(void) { _a(); _e(); return 0; }
2961 if test -f conftest.c
2963 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
2964 && test -f conftest.o
2966 if test `grep -l BIGenDianSyS conftest.o`
2968 echo "$ac_t"""big endian"" 1>&6
2969 ac_cv_c_bigendian=yes
2971 if test `grep -l LiTTleEnDian conftest.o`
2973 echo "$ac_t"""little endian"" 1>&6
2974 ac_cv_c_bigendian=no
2978 if test $ac_cv_c_bigendian = xunknown
2980 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
2982 if test $ac_cv_c_bigendian = yes
2984 cat >> confdefs.h <<\EOF
2985 #define WORDS_BIGENDIAN 1
2991 for ac_func in gettimeofday select strerror strtod strtol isatty
2993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_func" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* System header to define __stub macros and hopefully few prototypes,
3002 which can conflict with char $ac_func(); below. */
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 /* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3011 /* The GNU C library defines this for functions which it implements
3012 to always fail with ENOSYS. Some functions are actually named
3013 something starting with __ and the normal name is an alias. */
3014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3022 if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3024 eval "ac_cv_func_$ac_func=yes"
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 eval "ac_cv_func_$ac_func=no"
3034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3037 cat >> confdefs.h <<EOF
3038 #define $ac_tr_func 1
3042 echo "$ac_t""no" 1>&6
3046 echo $ac_n "checking for connect""... $ac_c" 1>&6
3047 echo "configure:3048: checking for connect" >&5
3048 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char connect(); below. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 /* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_connect) || defined (__stub___connect)
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077 eval "ac_cv_func_connect=yes"
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 eval "ac_cv_func_connect=no"
3087 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3091 echo "$ac_t""no" 1>&6
3093 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3094 echo "configure:3095: checking for connect in -lsocket" >&5
3095 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 ac_save_LIBS="$LIBS"
3100 LIBS="-lsocket $LIBS"
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 /* Override any gcc2 internal prototype to avoid an error. */
3105 /* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3115 eval "ac_cv_lib_$ac_lib_var=yes"
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 eval "ac_cv_lib_$ac_lib_var=no"
3123 LIBS="$ac_save_LIBS"
3126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3127 echo "$ac_t""yes" 1>&6
3128 LIB="${LIB} -lsocket"
3130 echo "$ac_t""no" 1>&6
3136 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3137 echo "configure:3138: checking for gethostbyname" >&5
3138 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 /* System header to define __stub macros and hopefully few prototypes,
3145 which can conflict with char gethostbyname(); below. */
3147 /* Override any gcc2 internal prototype to avoid an error. */
3148 /* We use char because int might match the return type of a gcc2
3149 builtin and then its argument prototype would still apply. */
3150 char gethostbyname();
3154 /* The GNU C library defines this for functions which it implements
3155 to always fail with ENOSYS. Some functions are actually named
3156 something starting with __ and the normal name is an alias. */
3157 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3167 eval "ac_cv_func_gethostbyname=yes"
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 eval "ac_cv_func_gethostbyname=no"
3177 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3181 echo "$ac_t""no" 1>&6
3183 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3184 echo "configure:3185: checking for gethostbyname in -lnsl" >&5
3185 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 ac_save_LIBS="$LIBS"
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* Override any gcc2 internal prototype to avoid an error. */
3195 /* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3197 char gethostbyname();
3203 if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3210 eval "ac_cv_lib_$ac_lib_var=no"
3213 LIBS="$ac_save_LIBS"
3216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3220 echo "$ac_t""no" 1>&6
3226 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3227 echo "configure:3228: checking for nanosleep" >&5
3228 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* System header to define __stub macros and hopefully few prototypes,
3235 which can conflict with char nanosleep(); below. */
3237 /* Override any gcc2 internal prototype to avoid an error. */
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3244 /* The GNU C library defines this for functions which it implements
3245 to always fail with ENOSYS. Some functions are actually named
3246 something starting with __ and the normal name is an alias. */
3247 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 eval "ac_cv_func_nanosleep=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 eval "ac_cv_func_nanosleep=no"
3267 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3271 echo "$ac_t""no" 1>&6
3273 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3274 echo "configure:3275: checking for nanosleep in -lrt" >&5
3275 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 ac_save_LIBS="$LIBS"
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
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. */
3293 if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3295 eval "ac_cv_lib_$ac_lib_var=yes"
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 eval "ac_cv_lib_$ac_lib_var=no"
3303 LIBS="$ac_save_LIBS"
3306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3307 echo "$ac_t""yes" 1>&6
3310 echo "$ac_t""no" 1>&6
3312 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3313 echo "configure:3314: checking for nanosleep in -lposix4" >&5
3314 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_save_LIBS="$LIBS"
3319 LIBS="-lposix4 $LIBS"
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3334 eval "ac_cv_lib_$ac_lib_var=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3339 eval "ac_cv_lib_$ac_lib_var=no"
3342 LIBS="$ac_save_LIBS"
3345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 LIB="${LIB} -lposix4"
3349 echo "$ac_t""no" 1>&6
3358 for ac_func in usleep
3360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_func" >&5
3362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 /* System header to define __stub macros and hopefully few prototypes,
3369 which can conflict with char $ac_func(); below. */
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3378 /* The GNU C library defines this for functions which it implements
3379 to always fail with ENOSYS. Some functions are actually named
3380 something starting with __ and the normal name is an alias. */
3381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3391 eval "ac_cv_func_$ac_func=yes"
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 eval "ac_cv_func_$ac_func=no"
3401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3402 echo "$ac_t""yes" 1>&6
3403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3404 cat >> confdefs.h <<EOF
3405 #define $ac_tr_func 1
3409 echo "$ac_t""no" 1>&6
3413 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3414 echo "configure:3415: checking for inet_aton" >&5
3415 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 /* System header to define __stub macros and hopefully few prototypes,
3422 which can conflict with char inet_aton(); below. */
3424 /* Override any gcc2 internal prototype to avoid an error. */
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3431 /* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3442 if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3444 eval "ac_cv_func_inet_aton=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3449 eval "ac_cv_func_inet_aton=no"
3454 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3458 echo "$ac_t""no" 1>&6
3460 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3461 echo "configure:3462: checking for inet_aton in -lresolv" >&5
3462 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 ac_save_LIBS="$LIBS"
3467 LIBS="-lresolv $LIBS"
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3482 eval "ac_cv_lib_$ac_lib_var=yes"
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3487 eval "ac_cv_lib_$ac_lib_var=no"
3490 LIBS="$ac_save_LIBS"
3493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 LIB="${LIB} -lresolv"
3497 echo "$ac_t""no" 1>&6
3503 for ac_func in vasprintf
3505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3506 echo "configure:3507: checking for $ac_func" >&5
3507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 /* System header to define __stub macros and hopefully few prototypes,
3514 which can conflict with char $ac_func(); below. */
3516 /* Override any gcc2 internal prototype to avoid an error. */
3517 /* We use char because int might match the return type of a gcc2
3518 builtin and then its argument prototype would still apply. */
3523 /* The GNU C library defines this for functions which it implements
3524 to always fail with ENOSYS. Some functions are actually named
3525 something starting with __ and the normal name is an alias. */
3526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3534 if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536 eval "ac_cv_func_$ac_func=yes"
3538 echo "configure: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3541 eval "ac_cv_func_$ac_func=no"
3546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3547 echo "$ac_t""yes" 1>&6
3548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3549 cat >> confdefs.h <<EOF
3550 #define $ac_tr_func 1
3554 echo "$ac_t""no" 1>&6
3560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3561 echo "configure:3562: checking for $ac_func" >&5
3562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* System header to define __stub macros and hopefully few prototypes,
3569 which can conflict with char $ac_func(); below. */
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3578 /* The GNU C library defines this for functions which it implements
3579 to always fail with ENOSYS. Some functions are actually named
3580 something starting with __ and the normal name is an alias. */
3581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3591 eval "ac_cv_func_$ac_func=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 eval "ac_cv_func_$ac_func=no"
3601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3604 cat >> confdefs.h <<EOF
3605 #define $ac_tr_func 1
3609 echo "$ac_t""no" 1>&6
3613 for ac_func in memalign valloc
3615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3616 echo "configure:3617: checking for $ac_func" >&5
3617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 /* System header to define __stub macros and hopefully few prototypes,
3624 which can conflict with char $ac_func(); below. */
3626 /* Override any gcc2 internal prototype to avoid an error. */
3627 /* We use char because int might match the return type of a gcc2
3628 builtin and then its argument prototype would still apply. */
3633 /* The GNU C library defines this for functions which it implements
3634 to always fail with ENOSYS. Some functions are actually named
3635 something starting with __ and the normal name is an alias. */
3636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 eval "ac_cv_func_$ac_func=yes"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 eval "ac_cv_func_$ac_func=no"
3656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3659 cat >> confdefs.h <<EOF
3660 #define $ac_tr_func 1
3664 echo "$ac_t""no" 1>&6
3669 for ac_func in sigrelse
3671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_func" >&5
3673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* System header to define __stub macros and hopefully few prototypes,
3680 which can conflict with char $ac_func(); below. */
3682 /* Override any gcc2 internal prototype to avoid an error. */
3683 /* We use char because int might match the return type of a gcc2
3684 builtin and then its argument prototype would still apply. */
3689 /* The GNU C library defines this for functions which it implements
3690 to always fail with ENOSYS. Some functions are actually named
3691 something starting with __ and the normal name is an alias. */
3692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3702 eval "ac_cv_func_$ac_func=yes"
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3707 eval "ac_cv_func_$ac_func=no"
3712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3715 cat >> confdefs.h <<EOF
3716 #define $ac_tr_func 1
3720 echo "$ac_t""no" 1>&6
3726 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3727 echo "configure:3728: checking for getopt_long" >&5
3728 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 /* System header to define __stub macros and hopefully few prototypes,
3735 which can conflict with char getopt_long(); below. */
3737 /* Override any gcc2 internal prototype to avoid an error. */
3738 /* We use char because int might match the return type of a gcc2
3739 builtin and then its argument prototype would still apply. */
3744 /* The GNU C library defines this for functions which it implements
3745 to always fail with ENOSYS. Some functions are actually named
3746 something starting with __ and the normal name is an alias. */
3747 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3757 eval "ac_cv_func_getopt_long=yes"
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 eval "ac_cv_func_getopt_long=no"
3767 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 cat >> confdefs.h <<\EOF
3770 #define HAVE_GETOPT_LONG 1
3774 echo "$ac_t""no" 1>&6
3775 # FreeBSD has a gnugetopt library for this:
3776 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3777 echo "configure:3778: checking for getopt_long in -lgnugetopt" >&5
3778 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 ac_save_LIBS="$LIBS"
3783 LIBS="-lgnugetopt $LIBS"
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3798 eval "ac_cv_lib_$ac_lib_var=yes"
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3803 eval "ac_cv_lib_$ac_lib_var=no"
3806 LIBS="$ac_save_LIBS"
3809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3811 cat >> confdefs.h <<\EOF
3812 #define HAVE_GETOPT_LONG 1
3814 LIB="${LIB} -lgnugetopt"
3816 echo "$ac_t""no" 1>&6
3823 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3824 echo "configure:3825: checking return type of signal handlers" >&5
3825 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <sys/types.h>
3837 extern "C" void (*signal (int, void (*)(int)))(int);
3839 void (*signal ()) ();
3846 if { (eval echo configure:3847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3848 ac_cv_type_signal=void
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3853 ac_cv_type_signal=int
3858 echo "$ac_t""$ac_cv_type_signal" 1>&6
3859 cat >> confdefs.h <<EOF
3860 #define RETSIGTYPE $ac_cv_type_signal
3864 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3865 echo "configure:3866: checking for dlopen in -ldl" >&5
3866 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_save_LIBS="$LIBS"
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3901 echo "$ac_t""no" 1>&6
3904 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3905 echo "configure:3906: checking for cos in -lm" >&5
3906 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
3907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_save_LIBS="$LIBS"
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3926 eval "ac_cv_lib_$ac_lib_var=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 eval "ac_cv_lib_$ac_lib_var=no"
3934 LIBS="$ac_save_LIBS"
3937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3939 LIB_IMDCT="${LIB_IMDCT} -lm"
3940 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
3942 echo "$ac_t""no" 1>&6
3945 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
3946 echo "configure:3947: checking for pow in -lm" >&5
3947 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
3948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3951 ac_save_LIBS="$LIBS"
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3967 eval "ac_cv_lib_$ac_lib_var=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 eval "ac_cv_lib_$ac_lib_var=no"
3975 LIBS="$ac_save_LIBS"
3978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 LIB_IMDCT="${LIB_IMDCT} -lm"
3981 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
3982 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
3985 echo "$ac_t""no" 1>&6
3990 if test "x${THREAD_LIB}" = xerror; then
3991 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
3992 echo "configure:3993: checking for pthread_attr_init in -lpthread" >&5
3993 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 ac_save_LIBS="$LIBS"
3998 LIBS="-lpthread $LIBS"
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005 char pthread_attr_init();
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4013 eval "ac_cv_lib_$ac_lib_var=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_lib_$ac_lib_var=no"
4021 LIBS="$ac_save_LIBS"
4024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 THREAD_LIB="-lpthread"
4028 echo "$ac_t""no" 1>&6
4032 if test "x${THREAD_LIB}" = xerror; then
4033 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4034 echo "configure:4035: checking for pthread_attr_init in -lpthreads" >&5
4035 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 ac_save_LIBS="$LIBS"
4040 LIBS="-lpthreads $LIBS"
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4047 char pthread_attr_init();
4053 if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4055 eval "ac_cv_lib_$ac_lib_var=yes"
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4060 eval "ac_cv_lib_$ac_lib_var=no"
4063 LIBS="$ac_save_LIBS"
4066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4067 echo "$ac_t""yes" 1>&6
4068 THREAD_LIB="-lpthreads"
4070 echo "$ac_t""no" 1>&6
4074 if test "x${THREAD_LIB}" = xerror; then
4075 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4076 echo "configure:4077: checking for pthread_attr_init in -lc_r" >&5
4077 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_save_LIBS="$LIBS"
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4089 char pthread_attr_init();
4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4097 eval "ac_cv_lib_$ac_lib_var=yes"
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4102 eval "ac_cv_lib_$ac_lib_var=no"
4105 LIBS="$ac_save_LIBS"
4108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4112 echo "$ac_t""no" 1>&6
4116 if test "x${THREAD_LIB}" = xerror; then
4117 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4118 echo "configure:4119: checking for pthread_attr_init" >&5
4119 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* System header to define __stub macros and hopefully few prototypes,
4126 which can conflict with char pthread_attr_init(); below. */
4128 /* Override any gcc2 internal prototype to avoid an error. */
4129 /* We use char because int might match the return type of a gcc2
4130 builtin and then its argument prototype would still apply. */
4131 char pthread_attr_init();
4135 /* The GNU C library defines this for functions which it implements
4136 to always fail with ENOSYS. Some functions are actually named
4137 something starting with __ and the normal name is an alias. */
4138 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4141 pthread_attr_init();
4146 if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 eval "ac_cv_func_pthread_attr_init=yes"
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 eval "ac_cv_func_pthread_attr_init=no"
4158 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4162 echo "$ac_t""no" 1>&6
4168 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4169 echo "configure:4170: checking for cthread_fork in -lthreads" >&5
4170 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4174 ac_save_LIBS="$LIBS"
4175 LIBS="-lthreads $LIBS"
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 /* Override any gcc2 internal prototype to avoid an error. */
4180 /* We use char because int might match the return type of a gcc2
4181 builtin and then its argument prototype would still apply. */
4182 char cthread_fork();
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4190 eval "ac_cv_lib_$ac_lib_var=yes"
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 eval "ac_cv_lib_$ac_lib_var=no"
4198 LIBS="$ac_save_LIBS"
4201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4202 echo "$ac_t""yes" 1>&6
4203 THREAD_LIB="-lthreads"
4205 echo "$ac_t""no" 1>&6
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 #include <pthread.h>
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215 egrep "pthread_cond_t" >/dev/null 2>&1; then
4218 cat >> confdefs.h <<\EOF
4219 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 #include <strings.h>
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 egrep "strncasecmp" >/dev/null 2>&1; then
4234 cat >> confdefs.h <<\EOF
4235 #define STRNCASECMP_IN_STRINGS_H 1
4242 for ac_hdr in getopt.h strings.h
4244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4246 echo "configure:4247: checking for $ac_hdr" >&5
4247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4256 { (eval echo configure:4257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4258 if test -z "$ac_err"; then
4260 eval "ac_cv_header_$ac_safe=yes"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4266 eval "ac_cv_header_$ac_safe=no"
4270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4273 cat >> confdefs.h <<EOF
4274 #define $ac_tr_hdr 1
4278 echo "$ac_t""no" 1>&6
4282 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4286 echo "configure:4287: checking for $ac_hdr" >&5
4287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4296 { (eval echo configure:4297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4298 if test -z "$ac_err"; then
4300 eval "ac_cv_header_$ac_safe=yes"
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 eval "ac_cv_header_$ac_safe=no"
4310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4311 echo "$ac_t""yes" 1>&6
4312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4313 cat >> confdefs.h <<EOF
4314 #define $ac_tr_hdr 1
4318 echo "$ac_t""no" 1>&6
4322 for ac_hdr in sys/soundcard.h machine/soundcard.h
4324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4326 echo "configure:4327: checking for $ac_hdr" >&5
4327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4336 { (eval echo configure:4337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4338 if test -z "$ac_err"; then
4340 eval "ac_cv_header_$ac_safe=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 eval "ac_cv_header_$ac_safe=no"
4350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4353 cat >> confdefs.h <<EOF
4354 #define $ac_tr_hdr 1
4358 echo "$ac_t""no" 1>&6
4362 for ac_hdr in dlfcn.h image.h
4364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_hdr" >&5
4367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4376 { (eval echo configure:4377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4378 if test -z "$ac_err"; then
4380 eval "ac_cv_header_$ac_safe=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_header_$ac_safe=no"
4390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_hdr 1
4398 echo "$ac_t""no" 1>&6
4402 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4406 echo "configure:4407: checking for $ac_hdr" >&5
4407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4416 { (eval echo configure:4417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4418 if test -z "$ac_err"; then
4420 eval "ac_cv_header_$ac_safe=yes"
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4426 eval "ac_cv_header_$ac_safe=no"
4430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4433 cat >> confdefs.h <<EOF
4434 #define $ac_tr_hdr 1
4438 echo "$ac_t""no" 1>&6
4442 for ac_hdr in machine/param.h
4444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_hdr" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4456 { (eval echo configure:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4458 if test -z "$ac_err"; then
4460 eval "ac_cv_header_$ac_safe=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 eval "ac_cv_header_$ac_safe=no"
4470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4473 cat >> confdefs.h <<EOF
4474 #define $ac_tr_hdr 1
4478 echo "$ac_t""no" 1>&6
4483 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4484 echo "configure:4485: checking whether time.h and sys/time.h may both be included" >&5
4485 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 #include <sys/types.h>
4492 #include <sys/time.h>
4498 if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4500 ac_cv_header_time=yes
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 ac_cv_header_time=no
4510 echo "$ac_t""$ac_cv_header_time" 1>&6
4511 if test $ac_cv_header_time = yes; then
4512 cat >> confdefs.h <<\EOF
4513 #define TIME_WITH_SYS_TIME 1
4519 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_hdr" >&5
4524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4533 { (eval echo configure:4534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4535 if test -z "$ac_err"; then
4537 eval "ac_cv_header_$ac_safe=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 eval "ac_cv_header_$ac_safe=no"
4547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4550 cat >> confdefs.h <<EOF
4551 #define $ac_tr_hdr 1
4555 echo "$ac_t""no" 1>&6
4560 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4561 echo "configure:4562: checking for ntohl in sys/param.h" >&5
4562 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 CFLAGS="${save_CFLAGS} -Wall -Werror"
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 #include <sys/param.h>
4571 void foo() { int meuh; ntohl(meuh); }
4574 if { (eval echo configure:4575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4576 ac_cv_c_ntohl_sys_param_h=yes
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 ac_cv_c_ntohl_sys_param_h=no
4586 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4587 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4588 cat >> confdefs.h <<\EOF
4589 #define NTOHL_IN_SYS_PARAM_H 1
4594 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4595 echo "configure:4596: checking if \$CC accepts -finline-limit" >&5
4596 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4608 if { (eval echo configure:4609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4610 ac_cv_c_inline_limit=yes
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 ac_cv_c_inline_limit=no
4620 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4621 if test x"$ac_cv_c_inline_limit" != x"no"; then
4622 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4625 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
4626 echo "configure:4627: checking if \$CC accepts -bundle -undefined error" >&5
4627 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 CFLAGS="${save_CFLAGS} -bundle -undefined error"
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4639 if { (eval echo configure:4640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4651 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
4652 if test x"$ac_cv_ld_darwin" != x"no"; then
4653 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
4656 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
4657 echo "configure:4658: checking if \$CC accepts -shared" >&5
4658 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 CFLAGS="${save_CFLAGS} -shared"
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4670 if { (eval echo configure:4671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4672 ac_cv_ld_plugins=yes
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4682 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
4683 if test x"$ac_cv_ld_plugins" != x"no"; then
4684 PLDFLAGS="${PLDFLAGS} -shared"
4687 if test x"${SOFLAGS}" = x; then
4688 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
4689 echo "configure:4690: checking for soname setting" >&5
4690 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4695 try_SOFLAGS="-Wl,-soname -Wl,"
4696 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4705 if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707 ac_cv_ld_soname="${try_SOFLAGS}"
4709 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4714 try_SOFLAGS="-Wl,-h -Wl,"
4715 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 ac_cv_ld_soname="${try_SOFLAGS}"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 ac_cv_ld_soname=none
4739 echo "$ac_t""$ac_cv_ld_soname" 1>&6
4740 if test x"$ac_cv_ld_soname" != x"none"; then
4741 SOFLAGS=$ac_cv_ld_soname
4745 Your system doesn't seem to have support for dynamic linking. You may
4746 have problems using libdvdcss.
4752 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
4753 echo "configure:4754: checking __attribute__ ((aligned ())) support" >&5
4754 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 ac_cv_c_attribute_aligned=0
4758 CFLAGS="${save_CFLAGS} -Werror"
4759 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4765 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
4768 if { (eval echo configure:4769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4770 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4779 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
4780 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
4781 cat >> confdefs.h <<EOF
4782 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
4787 CFLAGS="${save_CFLAGS}"
4788 LDFLAGS="${save_LDFLAGS}"
4790 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
4791 echo "configure:4792: checking for boolean_t in sys/types.h" >&5
4792 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 #include <sys/types.h>
4803 if { (eval echo configure:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4805 ac_cv_c_boolean_t_sys_types_h=yes
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 ac_cv_c_boolean_t_sys_types_h=no
4815 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
4816 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
4817 cat >> confdefs.h <<\EOF
4818 #define BOOLEAN_T_IN_SYS_TYPES_H 1
4823 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
4824 echo "configure:4825: checking for boolean_t in pthread.h" >&5
4825 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 #include <pthread.h>
4836 if { (eval echo configure:4837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4838 ac_cv_c_boolean_t_pthread_h=yes
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 ac_cv_c_boolean_t_pthread_h=no
4848 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
4849 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
4850 cat >> confdefs.h <<\EOF
4851 #define BOOLEAN_T_IN_PTHREAD_H 1
4856 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
4857 echo "configure:4858: checking for boolean_t in cthreads.h" >&5
4858 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <cthreads.h>
4869 if { (eval echo configure:4870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4871 ac_cv_c_boolean_t_cthreads_h=yes
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 ac_cv_c_boolean_t_cthreads_h=no
4881 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
4882 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
4883 cat >> confdefs.h <<\EOF
4884 #define BOOLEAN_T_IN_CTHREADS_H 1
4891 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
4892 PLUGINS="${PLUGINS} ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
4894 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx"
4895 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
4896 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
4897 SSE_MODULES="imdctsse downmixsse"
4898 ALTIVEC_MODULES="idctaltivec motionaltivec"
4900 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
4901 echo "configure:4902: checking if \$CC groks MMX inline assembly" >&5
4902 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4910 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
4913 if { (eval echo configure:4914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4915 ac_cv_mmx_inline=yes
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4925 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
4926 if test x"$ac_cv_mmx_inline" != x"no"; then
4927 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
4930 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
4931 echo "configure:4932: checking if \$CC groks MMX EXT inline assembly" >&5
4932 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4940 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
4943 if { (eval echo configure:4944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4945 ac_cv_mmxext_inline=yes
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4950 ac_cv_mmxext_inline=no
4955 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
4956 if test x"$ac_cv_mmxext_inline" != x"no"; then
4957 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
4960 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
4961 echo "configure:4962: checking if \$CC groks 3D Now! inline assembly" >&5
4962 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4970 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
4973 if { (eval echo configure:4974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4975 ac_cv_3dnow_inline=yes
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 ac_cv_3dnow_inline=no
4985 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
4986 if test x"$ac_cv_3dnow_inline" != x"no"; then
4987 cat >> confdefs.h <<\EOF
4988 #define CAN_COMPILE_3DNOW 1
4991 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
4994 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
4995 echo "configure:4996: checking if \$CC groks SSE inline assembly" >&5
4996 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5004 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5007 if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 ac_cv_sse_inline=yes
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5019 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5020 if test x"$ac_cv_sse_inline" != x"no"; then
5021 cat >> confdefs.h <<\EOF
5022 #define CAN_COMPILE_SSE 1
5025 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5028 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5029 echo "configure:5030: checking if \$CC groks Altivec inline assembly" >&5
5030 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5038 asm volatile("vperm 0,1,2,3");
5041 if { (eval echo configure:5042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5043 ac_cv_altivec_inline=yes
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5049 CFLAGS="$CFLAGS -Wa,-m7400"
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5055 asm volatile("vperm 0,1,2,3");
5058 if { (eval echo configure:5059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5060 ac_cv_altivec_inline="-Wa,-m7400"
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5065 ac_cv_altivec_inline=no
5074 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5075 if test x"$ac_cv_altivec_inline" != x"no"; then
5076 cat >> confdefs.h <<\EOF
5077 #define CAN_COMPILE_ALTIVEC 1
5080 if test x"$ac_cv_altivec_inline" != x"yes"; then
5081 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5082 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5083 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5085 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5088 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5089 echo "configure:5090: checking if \$CC groks Altivec C extensions" >&5
5090 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5094 CFLAGS="$CFLAGS -faltivec"
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5101 vec_mtvscr((vector unsigned int)(0));
5104 if { (eval echo configure:5105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5106 ac_cv_c_altivec=-faltivec
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5113 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5119 vec_mtvscr((vector unsigned int)(0));
5122 if { (eval echo configure:5123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5124 ac_cv_c_altivec="-fvec"
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5139 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5140 if test x"$ac_cv_c_altivec" != x"no"; then
5141 cat >> confdefs.h <<\EOF
5142 #define CAN_COMPILE_C_ALTIVEC 1
5145 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5146 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5147 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5148 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5151 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5152 echo "configure:5153: checking if linker needs -framework vecLib" >&5
5153 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 save_LDFLAGS=$LDFLAGS
5157 LDFLAGS="$LDFLAGS -framework vecLib"
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 ac_cv_ld_altivec=yes
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5176 LDFLAGS=$save_LDFLAGS
5180 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5181 if test x"$ac_cv_ld_altivec" != x"no"; then
5182 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5183 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5186 case ${target_os} in
5198 if test $host != $build; then
5199 ac_tool_prefix=${host_alias}-
5204 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}windres; ac_word=$2
5206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5207 echo "configure:5208: checking for $ac_word" >&5
5208 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 if test -n "$WINDRES"; then
5212 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5216 for ac_dir in $ac_dummy; do
5217 test -z "$ac_dir" && ac_dir=.
5218 if test -f $ac_dir/$ac_word; then
5219 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5226 WINDRES="$ac_cv_prog_WINDRES"
5227 if test -n "$WINDRES"; then
5228 echo "$ac_t""$WINDRES" 1>&6
5230 echo "$ac_t""no" 1>&6
5234 if test -z "$ac_cv_prog_WINDRES"; then
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "windres", so it can be a program name with args.
5237 set dummy windres; ac_word=$2
5238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5239 echo "configure:5240: checking for $ac_word" >&5
5240 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 if test -n "$WINDRES"; then
5244 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5248 for ac_dir in $ac_dummy; do
5249 test -z "$ac_dir" && ac_dir=.
5250 if test -f $ac_dir/$ac_word; then
5251 ac_cv_prog_WINDRES="windres"
5256 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5259 WINDRES="$ac_cv_prog_WINDRES"
5260 if test -n "$WINDRES"; then
5261 echo "$ac_t""$WINDRES" 1>&6
5263 echo "$ac_t""no" 1>&6
5271 LIB_MPEG_TS="-lws2_32"
5276 LIB_X11="${LIB_X11} -lsocket"
5277 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5282 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
5283 PLDFLAGS="${PLDFLAGS} -nostart"
5296 DVD_DEVICE="/dev/dvd"
5297 VCD_DEVICE="/dev/cdrom"
5301 cat >> confdefs.h <<EOF
5302 #define DVD_DEVICE "$DVD_DEVICE"
5305 cat >> confdefs.h <<EOF
5306 #define VCD_DEVICE "$VCD_DEVICE"
5312 CAN_BUILD_LIBDVDCSS=0
5314 for ac_hdr in winioctl.h
5316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_hdr" >&5
5319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5328 { (eval echo configure:5329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5330 if test -z "$ac_err"; then
5332 eval "ac_cv_header_$ac_safe=yes"
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 eval "ac_cv_header_$ac_safe=no"
5342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5345 cat >> confdefs.h <<EOF
5346 #define $ac_tr_hdr 1
5349 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5352 echo "$ac_t""no" 1>&6
5357 for ac_hdr in sys/ioctl.h
5359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5361 echo "configure:5362: checking for $ac_hdr" >&5
5362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5371 { (eval echo configure:5372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5373 if test -z "$ac_err"; then
5375 eval "ac_cv_header_$ac_safe=yes"
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5381 eval "ac_cv_header_$ac_safe=no"
5385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5386 echo "$ac_t""yes" 1>&6
5387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5388 cat >> confdefs.h <<EOF
5389 #define $ac_tr_hdr 1
5392 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5393 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5397 echo "configure:5398: checking for $ac_hdr" >&5
5398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5407 { (eval echo configure:5408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5409 if test -z "$ac_err"; then
5411 eval "ac_cv_header_$ac_safe=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_header_$ac_safe=no"
5421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5424 cat >> confdefs.h <<EOF
5425 #define $ac_tr_hdr 1
5429 echo "$ac_t""no" 1>&6
5435 OPENBSD_DVD_STRUCT=0
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 #include <sys/cdio.h>
5441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5442 egrep "dvd_struct" >/dev/null 2>&1; then
5445 cat >> confdefs.h <<\EOF
5446 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 #include <sys/cdio.h>
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 egrep "struct dvd_struct" >/dev/null 2>&1; then
5461 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 #include <sys/dvdio.h>
5474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475 egrep "dvd_struct" >/dev/null 2>&1; then
5478 cat >> confdefs.h <<\EOF
5479 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 #include <sys/dvdio.h>
5487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488 egrep "struct dvd_struct" >/dev/null 2>&1; then
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 #include <linux/cdrom.h>
5507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 egrep "dvd_struct" >/dev/null 2>&1; then
5511 cat >> confdefs.h <<\EOF
5512 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5527 egrep "dvd_struct" >/dev/null 2>&1; then
5530 cat >> confdefs.h <<\EOF
5531 #define DVD_STRUCT_IN_DVD_H 1
5534 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5540 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5544 echo "configure:5545: checking for $ac_hdr" >&5
5545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5554 { (eval echo configure:5555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5556 if test -z "$ac_err"; then
5558 eval "ac_cv_header_$ac_safe=yes"
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5564 eval "ac_cv_header_$ac_safe=no"
5568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5569 echo "$ac_t""yes" 1>&6
5570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5571 cat >> confdefs.h <<EOF
5572 #define $ac_tr_hdr 1
5576 cat >> confdefs.h <<\EOF
5577 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
5580 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
5584 echo "$ac_t""no" 1>&6
5592 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
5593 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
5594 echo "configure:5595: checking for sys/scsi/scsi_types.h" >&5
5595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 #include <sys/scsi/scsi_types.h>
5603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5604 { (eval echo configure:5605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5606 if test -z "$ac_err"; then
5608 eval "ac_cv_header_$ac_safe=yes"
5611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5614 eval "ac_cv_header_$ac_safe=no"
5618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5619 echo "$ac_t""yes" 1>&6
5621 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
5622 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
5623 echo "configure:5624: checking for sys/scsi/impl/uscsi.h" >&5
5624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5630 #include <sys/scsi/impl/uscsi.h>
5632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5633 { (eval echo configure:5634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5635 if test -z "$ac_err"; then
5637 eval "ac_cv_header_$ac_safe=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 eval "ac_cv_header_$ac_safe=no"
5647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5648 echo "$ac_t""yes" 1>&6
5650 cat >> confdefs.h <<\EOF
5651 #define SOLARIS_USCSI 1
5656 echo "$ac_t""no" 1>&6
5661 echo "$ac_t""no" 1>&6
5664 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
5665 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
5666 echo "configure:5667: checking for sys/scsi.h" >&5
5667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 #include <sys/scsi.h>
5675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5676 { (eval echo configure:5677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5678 if test -z "$ac_err"; then
5680 eval "ac_cv_header_$ac_safe=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 eval "ac_cv_header_$ac_safe=no"
5690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5696 #include <sys/scsi.h>
5698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5699 egrep "sctl_io" >/dev/null 2>&1; then
5702 cat >> confdefs.h <<\EOF
5703 #define HPUX_SCTL_IO 1
5712 echo "$ac_t""no" 1>&6
5715 if test x$LINUX_DVD_STRUCT = x1; then
5716 cat >> confdefs.h <<\EOF
5717 #define HAVE_LINUX_DVD_STRUCT 1
5720 if test x$OPENBSD_DVD_STRUCT = x1; then
5721 cat >> confdefs.h <<\EOF
5722 #define HAVE_OPENBSD_DVD_STRUCT 1
5727 if test x$BSD_DVD_STRUCT = x1; then
5728 cat >> confdefs.h <<\EOF
5729 #define HAVE_BSD_DVD_STRUCT 1
5736 echo "$ac_t""no" 1>&6
5741 # Check whether --with-tuning or --without-tuning was given.
5742 if test "${with_tuning+set}" = set; then
5743 withval="$with_tuning"
5747 if test "x$withval" != "x"; then
5750 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5752 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5756 # Check whether --enable-release or --disable-release was given.
5757 if test "${enable_release+set}" = set; then
5758 enableval="$enable_release"
5759 if test x$enableval = xyes; then RELEASE=1; fi
5761 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
5762 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
5766 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5769 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5772 # Check whether --enable-altivec or --disable-altivec was given.
5773 if test "${enable_altivec+set}" = set; then
5774 enableval="$enable_altivec"
5775 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5776 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5778 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5779 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5784 # Check whether --enable-debug or --disable-debug was given.
5785 if test "${enable_debug+set}" = set; then
5786 enableval="$enable_debug"
5787 if test x$enableval = xyes; then DEBUG=1; fi
5792 # Check whether --enable-trace or --disable-trace was given.
5793 if test "${enable_trace+set}" = set; then
5794 enableval="$enable_trace"
5795 if test x$enableval = xyes; then TRACE=1; fi
5800 # Check whether --enable-gprof or --disable-gprof was given.
5801 if test "${enable_gprof+set}" = set; then
5802 enableval="$enable_gprof"
5803 if test x$enableval = xyes; then GPROF=1; fi
5808 # Check whether --enable-cprof or --disable-cprof was given.
5809 if test "${enable_cprof+set}" = set; then
5810 enableval="$enable_cprof"
5811 if test x$enableval = xyes;
5813 LIB="${LIB} -lcprof"
5820 # Check whether --enable-optimizations or --disable-optimizations was given.
5821 if test "${enable_optimizations+set}" = set; then
5822 enableval="$enable_optimizations"
5823 if test x$enableval = xno; then OPTIMS=0; fi
5829 # Check whether --enable-pth or --disable-pth was given.
5830 if test "${enable_pth+set}" = set; then
5831 enableval="$enable_pth"
5832 if test x$enableval = xyes; then
5833 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
5834 echo "configure:5835: checking for pth_init in -lpth" >&5
5835 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
5836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 ac_save_LIBS="$LIBS"
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5844 /* Override any gcc2 internal prototype to avoid an error. */
5845 /* We use char because int might match the return type of a gcc2
5846 builtin and then its argument prototype would still apply. */
5853 if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5855 eval "ac_cv_lib_$ac_lib_var=yes"
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 eval "ac_cv_lib_$ac_lib_var=no"
5863 LIBS="$ac_save_LIBS"
5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5867 echo "$ac_t""yes" 1>&6
5868 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5869 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5870 cat >> confdefs.h <<EOF
5871 #define $ac_tr_lib 1
5877 echo "$ac_t""no" 1>&6
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 egrep "pth_init" >/dev/null 2>&1; then
5889 cat >> confdefs.h <<\EOF
5890 #define PTH_INIT_IN_PTH_H 1
5902 LIB="${LIB} ${THREAD_LIB}"
5907 # Check whether --with-dvdcss or --without-dvdcss was given.
5908 if test "${with_dvdcss+set}" = set; then
5909 withval="$with_dvdcss"
5910 case "x${withval}" in
5912 # local libdvdcss, statically linked
5913 if test x${CAN_BUILD_LIBDVDCSS} = x1
5917 BUILTINS="${BUILTINS} dvd"
5918 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5919 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5920 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5921 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5925 # local libdvdcss, dynamically linked
5926 if test x${CAN_BUILD_LIBDVDCSS} = x1
5929 BUILTINS="${BUILTINS} dvd"
5930 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5931 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
5932 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
5933 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L../../lib -ldvdcss"
5937 # don't use libdvdcss at all, build a DVD module that can dlopen() it
5939 BUILTINS="${BUILTINS} dvd"
5940 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
5941 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5942 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
5943 LIB_DVD="${LIB_DVD} -ldl"
5944 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
5945 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
5948 # existing libdvdcss
5949 BUILTINS="${BUILTINS} dvd"
5950 if test "x$withval" != "xyes"
5952 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
5953 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L"$withval"/lib"
5954 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
5956 LIB_DVD="${LIB_DVD} -ldvdcss"
5957 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
5958 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldvdcss"
5961 # user didn't decide, we choose to use local libdvdcss and link statically
5962 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
5963 if test x${CAN_BUILD_LIBDVDCSS} = x1
5967 BUILTINS="${BUILTINS} dvd"
5968 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
5969 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5970 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5971 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
5973 # XXX: no check for libdl is done, don't try this at home !
5975 BUILTINS="${BUILTINS} dvd"
5976 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
5977 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5978 LIB_DVD="${LIB_DVD} -ldl"
5979 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
5980 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
5985 # Check whether --enable-dvdread or --disable-dvdread was given.
5986 if test "${enable_dvdread+set}" = set; then
5987 enableval="$enable_dvdread"
5988 if test x$enableval = xyes
5992 BUILTINS="${BUILTINS} dvdread"
5993 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
5994 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
5999 # Check whether --enable-vcd or --disable-vcd was given.
6000 if test "${enable_vcd+set}" = set; then
6001 enableval="$enable_vcd"
6006 if test x$enable_vcd != xno
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6011 #include <linux/cdrom.h>
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 egrep "cdrom_msf0" >/dev/null 2>&1; then
6017 BUILTINS="${BUILTINS} vcd"
6024 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6026 BUILTINS="${BUILTINS} vcd"
6029 # Check whether --enable-dummy or --disable-dummy was given.
6030 if test "${enable_dummy+set}" = set; then
6031 enableval="$enable_dummy"
6036 if test x$enable_dummy != xno
6038 BUILTINS="${BUILTINS} dummy"
6041 # Check whether --enable-null or --disable-null was given.
6042 if test "${enable_null+set}" = set; then
6043 enableval="$enable_null"
6048 if test x$enable_null != xno
6050 BUILTINS="${BUILTINS} null"
6053 # Check whether --enable-rc or --disable-rc was given.
6054 if test "${enable_rc+set}" = set; then
6055 enableval="$enable_rc"
6060 if test x$enable_rc != xno
6062 BUILTINS="${BUILTINS} rc"
6065 # Check whether --with-mad or --without-mad was given.
6066 if test "${with_mad+set}" = set; then
6068 if test "x$with_val" != "xno"; then
6069 if test -n $with_val; then
6070 CFLAGS_MAD="-I$with_val/include"
6071 LIB_MAD="-L$with_val/lib -lmad"
6076 save_LDFLAGS=$LDFLAGS
6077 CFLAGS="$CFLAGS $CFLAGS_MAD"
6078 LDFLAGS="$LDFLAGS $LIB_MAD"
6081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_hdr" >&5
6084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6093 { (eval echo configure:6094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6095 if test -z "$ac_err"; then
6097 eval "ac_cv_header_$ac_safe=yes"
6100 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6103 eval "ac_cv_header_$ac_safe=no"
6107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6108 echo "$ac_t""yes" 1>&6
6109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6110 cat >> confdefs.h <<EOF
6111 #define $ac_tr_hdr 1
6115 echo "$ac_t""no" 1>&6
6116 echo "Cannot find development headers for libmad..."
6122 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6123 echo "configure:6124: checking for mad_bit_init in -lmad" >&5
6124 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6128 ac_save_LIBS="$LIBS"
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6136 char mad_bit_init();
6142 if { (eval echo configure:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 eval "ac_cv_lib_$ac_lib_var=yes"
6146 echo "configure: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6149 eval "ac_cv_lib_$ac_lib_var=no"
6152 LIBS="$ac_save_LIBS"
6155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6156 echo "$ac_t""yes" 1>&6
6157 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6159 cat >> confdefs.h <<EOF
6160 #define $ac_tr_lib 1
6166 echo "$ac_t""no" 1>&6
6167 echo "Cannot find libmad library..."
6173 LDFLAGS=$save_LDFLAGS
6174 PLUGINS="${PLUGINS} mad"
6179 if test x$SYS = xbeos
6181 BUILTINS="${BUILTINS} beos"
6185 # Check whether --enable-dsp or --disable-dsp was given.
6186 if test "${enable_dsp+set}" = set; then
6187 enableval="$enable_dsp"
6192 if test x$enable_dsp != xno &&
6193 (test $SYS != mingw32 || test x$enable_dsp = xyes)
6197 PLUGINS="${PLUGINS} dsp"
6201 # Check whether --enable-esd or --disable-esd was given.
6202 if test "${enable_esd+set}" = set; then
6203 enableval="$enable_esd"
6204 if test x$enable_esd = xyes
6206 # Extract the first word of "esd-config", so it can be a program name with args.
6207 set dummy esd-config; ac_word=$2
6208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6209 echo "configure:6210: checking for $ac_word" >&5
6210 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6213 case "$ESD_CONFIG" in
6215 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6218 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6223 for ac_dir in $ac_dummy; do
6224 test -z "$ac_dir" && ac_dir=.
6225 if test -f $ac_dir/$ac_word; then
6226 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6231 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6235 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6236 if test -n "$ESD_CONFIG"; then
6237 echo "$ac_t""$ESD_CONFIG" 1>&6
6239 echo "$ac_t""no" 1>&6
6242 if test x${ESD_CONFIG} != xno
6244 PLUGINS="${PLUGINS} esd"
6245 CFLAGS_ESD="`${ESD_CONFIG} --cflags`"
6246 LIB_ESD="`${ESD_CONFIG} --libs`"
6252 # Check whether --enable-arts or --disable-arts was given.
6253 if test "${enable_arts+set}" = set; then
6254 enableval="$enable_arts"
6255 if test x$enable_arts = xyes
6257 # Extract the first word of "artsc-config", so it can be a program name with args.
6258 set dummy artsc-config; ac_word=$2
6259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6260 echo "configure:6261: checking for $ac_word" >&5
6261 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6262 echo $ac_n "(cached) $ac_c" 1>&6
6264 case "$ARTS_CONFIG" in
6266 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6269 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6274 for ac_dir in $ac_dummy; do
6275 test -z "$ac_dir" && ac_dir=.
6276 if test -f $ac_dir/$ac_word; then
6277 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6282 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6286 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6287 if test -n "$ARTS_CONFIG"; then
6288 echo "$ac_t""$ARTS_CONFIG" 1>&6
6290 echo "$ac_t""no" 1>&6
6293 if test x${ARTS_CONFIG} != xno
6295 PLUGINS="${PLUGINS} arts"
6296 CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`"
6297 LIB_ARTS="`${ARTS_CONFIG} --libs `"
6303 # Check whether --enable-macosx or --disable-macosx was given.
6304 if test "${enable_macosx+set}" = set; then
6305 enableval="$enable_macosx"
6306 if test x$enable_macosx = xyes
6308 BUILTINS="${BUILTINS} macosx"
6309 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6310 CFLAGS_MACOSX="-ObjC"
6314 for ac_hdr in Cocoa/Cocoa.h
6316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6318 echo "configure:6319: checking for $ac_hdr" >&5
6319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6328 { (eval echo configure:6329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6330 if test -z "$ac_err"; then
6332 eval "ac_cv_header_$ac_safe=yes"
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6338 eval "ac_cv_header_$ac_safe=no"
6342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6343 echo "$ac_t""yes" 1>&6
6344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6345 cat >> confdefs.h <<EOF
6346 #define $ac_tr_hdr 1
6348 BUILTINS="${BUILTINS} macosx"
6349 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6350 CFLAGS_MACOSX="-ObjC"
6354 echo "$ac_t""no" 1>&6
6361 # Check whether --enable-qnx or --disable-qnx was given.
6362 if test "${enable_qnx+set}" = set; then
6363 enableval="$enable_qnx"
6367 if test x$enable_qnx != xno
6371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6373 echo "configure:6374: checking for $ac_hdr" >&5
6374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6383 { (eval echo configure:6384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6385 if test -z "$ac_err"; then
6387 eval "ac_cv_header_$ac_safe=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_header_$ac_safe=no"
6397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6398 echo "$ac_t""yes" 1>&6
6399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6400 cat >> confdefs.h <<EOF
6401 #define $ac_tr_hdr 1
6404 PLUGINS="${PLUGINS} qnx"
6405 LIB_QNX="-lasound -lph"
6408 echo "$ac_t""no" 1>&6
6414 # Check whether --enable-fb or --disable-fb was given.
6415 if test "${enable_fb+set}" = set; then
6416 enableval="$enable_fb"
6417 if test x$enable_fb = xyes
6419 PLUGINS="${PLUGINS} fb"
6424 # Check whether --with-ggi or --without-ggi was given.
6425 if test "${with_ggi+set}" = set; then
6427 if test "x$withval" != "xno"
6429 PLUGINS="${PLUGINS} ggi"
6430 if test "x$withval" != "xyes"
6432 LIB_GGI="-l"$withval
6440 # Check whether --enable-sdl or --disable-sdl was given.
6441 if test "${enable_sdl+set}" = set; then
6442 enableval="$enable_sdl"
6446 if test "x$enable_sdl" != "xno"
6449 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6450 if test "${with_sdl_config_path+set}" = set; then
6451 withval="$with_sdl_config_path"
6452 if test "x$withval" != "xno"
6454 SDL_PATH=$withval:$PATH
6458 # Extract the first word of "sdl12-config", so it can be a program name with args.
6459 set dummy sdl12-config; ac_word=$2
6460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6461 echo "configure:6462: checking for $ac_word" >&5
6462 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6463 echo $ac_n "(cached) $ac_c" 1>&6
6465 case "$SDL12_CONFIG" in
6467 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6470 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6474 ac_dummy="$SDL_PATH"
6475 for ac_dir in $ac_dummy; do
6476 test -z "$ac_dir" && ac_dir=.
6477 if test -f $ac_dir/$ac_word; then
6478 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6483 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6487 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6488 if test -n "$SDL12_CONFIG"; then
6489 echo "$ac_t""$SDL12_CONFIG" 1>&6
6491 echo "$ac_t""no" 1>&6
6494 SDL_CONFIG=${SDL12_CONFIG}
6495 SDL_HEADER="SDL12/SDL.h"
6496 if test x${SDL_CONFIG} = xno
6498 # Extract the first word of "sdl11-config", so it can be a program name with args.
6499 set dummy sdl11-config; ac_word=$2
6500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6501 echo "configure:6502: checking for $ac_word" >&5
6502 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6503 echo $ac_n "(cached) $ac_c" 1>&6
6505 case "$SDL11_CONFIG" in
6507 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6510 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6514 ac_dummy="$SDL_PATH"
6515 for ac_dir in $ac_dummy; do
6516 test -z "$ac_dir" && ac_dir=.
6517 if test -f $ac_dir/$ac_word; then
6518 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6523 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6527 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6528 if test -n "$SDL11_CONFIG"; then
6529 echo "$ac_t""$SDL11_CONFIG" 1>&6
6531 echo "$ac_t""no" 1>&6
6534 SDL_CONFIG=${SDL11_CONFIG}
6535 SDL_HEADER="SDL11/SDL.h"
6537 if test x${SDL_CONFIG} = xno
6539 # Extract the first word of "sdl-config", so it can be a program name with args.
6540 set dummy sdl-config; ac_word=$2
6541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6542 echo "configure:6543: checking for $ac_word" >&5
6543 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6544 echo $ac_n "(cached) $ac_c" 1>&6
6546 case "$SDL_CONFIG" in
6548 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6551 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6555 ac_dummy="$SDL_PATH"
6556 for ac_dir in $ac_dummy; do
6557 test -z "$ac_dir" && ac_dir=.
6558 if test -f $ac_dir/$ac_word; then
6559 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6564 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6568 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6569 if test -n "$SDL_CONFIG"; then
6570 echo "$ac_t""$SDL_CONFIG" 1>&6
6572 echo "$ac_t""no" 1>&6
6575 SDL_HEADER="SDL/SDL.h"
6577 if test x${SDL_CONFIG} != xno
6579 PLUGINS="${PLUGINS} sdl"
6580 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
6581 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6582 save_CPPFLAGS=$CPPFLAGS
6583 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6584 for ac_hdr in ${SDL_HEADER}
6586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_hdr" >&5
6589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6598 { (eval echo configure:6599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6600 if test -z "$ac_err"; then
6602 eval "ac_cv_header_$ac_safe=yes"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 eval "ac_cv_header_$ac_safe=no"
6612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6613 echo "$ac_t""yes" 1>&6
6614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6615 cat >> confdefs.h <<EOF
6616 #define $ac_tr_hdr 1
6618 cat >> confdefs.h <<EOF
6619 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6623 echo "$ac_t""no" 1>&6
6624 { echo "configure: error: The development package for SDL is not installed.
6625 Please install it and try again. Alternatively you can also configure with
6626 --disable-sdl." 1>&2; exit 1; }
6631 CPPFLAGS=$save_CPPFLAGS
6632 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6634 { echo "configure: error: The development package for SDL is not installed.
6635 Please install it and try again. Alternatively you can also configure with
6636 --disable-sdl." 1>&2; exit 1; }
6638 elif test "x$enable_sdl" = "xyes"
6640 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6641 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6646 # Check whether --enable-directx or --disable-directx was given.
6647 if test "${enable_directx+set}" = set; then
6648 enableval="$enable_directx"
6652 if test "x$enableval" != "xno"
6654 if test $SYS = mingw32
6656 # Check whether --with-directx-path or --without-directx-path was given.
6657 if test "${with_directx_path+set}" = set; then
6658 withval="$with_directx_path"
6662 if test "x$with_directx_path" = "x"
6664 for ac_hdr in directx.h
6666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_hdr" >&5
6669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6678 { (eval echo configure:6679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6680 if test -z "$ac_err"; then
6682 eval "ac_cv_header_$ac_safe=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_header_$ac_safe=no"
6692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6695 cat >> confdefs.h <<EOF
6696 #define $ac_tr_hdr 1
6698 PLUGINS="${PLUGINS} directx"
6699 LIB_DIRECTX="-lgdi32 -ldxguid"
6701 echo "$ac_t""no" 1>&6
6706 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6707 echo "configure:6708: checking for directX headers in ${withval}" >&5
6708 if test -f ${withval}/include/directx.h
6710 PLUGINS="${PLUGINS} directx"
6711 LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
6712 INCLUDE="${INCLUDE} -I${withval}/include"
6713 echo "$ac_t""yes" 1>&6
6715 echo "$ac_t""no" 1>&6
6716 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
6722 # Check whether --with-glide or --without-glide was given.
6723 if test "${with_glide+set}" = set; then
6724 withval="$with_glide"
6725 if test "x$withval" != "xno"
6727 PLUGINS="${PLUGINS} glide"
6728 if test "x$withval" != "xyes"
6730 LIB_GLIDE="-l"$withval" -lm"
6732 LIB_GLIDE="-lglide2x -lm"
6734 CFLAGS_GLIDE="-I/usr/include/glide"
6739 # Check whether --enable-ncurses or --disable-ncurses was given.
6740 if test "${enable_ncurses+set}" = set; then
6741 enableval="$enable_ncurses"
6742 if test x$enable_ncurses = xyes; then
6743 PLUGINS="${PLUGINS} ncurses"
6744 LIB_NCURSES="-lncurses"
6749 # Check whether --enable-qt or --disable-qt was given.
6750 if test "${enable_qt+set}" = set; then
6751 enableval="$enable_qt"
6752 if test x$enable_qt = xyes; then
6753 PLUGINS="${PLUGINS} qt"
6754 ALIASES="${ALIASES} qvlc"
6755 LIB_QT="-lqt -L${QTDIR}/lib"
6756 CFLAGS_QT="-I/usr/include/qt -I${QTDIR}/include"
6757 if test -x ${QTDIR}/bin/moc
6759 MOC=${QTDIR}/bin/moc
6767 # Check whether --enable-kde or --disable-kde was given.
6768 if test "${enable_kde+set}" = set; then
6769 enableval="$enable_kde"
6770 if test x$enable_kde = xyes; then
6771 PLUGINS="${PLUGINS} kde"
6772 ALIASES="${ALIASES} kvlc"
6773 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
6774 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
6775 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
6776 if test -x ${QTDIR}/bin/moc
6778 MOC=${QTDIR}/bin/moc
6786 # Check whether --enable-gnome or --disable-gnome was given.
6787 if test "${enable_gnome+set}" = set; then
6788 enableval="$enable_gnome"
6789 if test x$enable_gnome = xyes; then
6790 # look for gnome-config
6791 # Extract the first word of "gnome-config", so it can be a program name with args.
6792 set dummy gnome-config; ac_word=$2
6793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6794 echo "configure:6795: checking for $ac_word" >&5
6795 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 case "$GNOME_CONFIG" in
6800 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
6803 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
6806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6808 for ac_dir in $ac_dummy; do
6809 test -z "$ac_dir" && ac_dir=.
6810 if test -f $ac_dir/$ac_word; then
6811 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
6816 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
6820 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
6821 if test -n "$GNOME_CONFIG"; then
6822 echo "$ac_t""$GNOME_CONFIG" 1>&6
6824 echo "$ac_t""no" 1>&6
6827 if test -x ${GNOME_CONFIG}
6829 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gtk gnomeui`"
6830 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
6832 # now look for the gnome.h header
6833 saved_CPPFLAGS=$CPPFLAGS
6834 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
6835 for ac_hdr in gnome.h
6837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6839 echo "configure:6840: checking for $ac_hdr" >&5
6840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6841 echo $ac_n "(cached) $ac_c" 1>&6
6843 cat > conftest.$ac_ext <<EOF
6844 #line 6845 "configure"
6845 #include "confdefs.h"
6848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6849 { (eval echo configure:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6851 if test -z "$ac_err"; then
6853 eval "ac_cv_header_$ac_safe=yes"
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6859 eval "ac_cv_header_$ac_safe=no"
6863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6864 echo "$ac_t""yes" 1>&6
6865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6866 cat >> confdefs.h <<EOF
6867 #define $ac_tr_hdr 1
6870 PLUGINS="${PLUGINS} gnome"
6871 ALIASES="${ALIASES} gnome-vlc"
6874 echo "$ac_t""no" 1>&6
6875 { echo "configure: error: Can't find gnome headers. Please install the gnome
6876 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
6882 CPPFLAGS=$saved_CPPFLAGS
6887 # Check whether --enable-gtk or --disable-gtk was given.
6888 if test "${enable_gtk+set}" = set; then
6889 enableval="$enable_gtk"
6893 if test x$enable_gtk != xno
6896 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
6897 if test "${with_gtk_config_path+set}" = set; then
6898 withval="$with_gtk_config_path"
6899 if test "x$withval" != "xno"
6901 GTK_PATH=$withval:$PATH
6905 # look for gtk-config
6906 # Extract the first word of "gtk-config", so it can be a program name with args.
6907 set dummy gtk-config; ac_word=$2
6908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6909 echo "configure:6910: checking for $ac_word" >&5
6910 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6911 echo $ac_n "(cached) $ac_c" 1>&6
6913 case "$GTK_CONFIG" in
6915 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6918 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6922 ac_dummy="$GTK_PATH"
6923 for ac_dir in $ac_dummy; do
6924 test -z "$ac_dir" && ac_dir=.
6925 if test -f $ac_dir/$ac_word; then
6926 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6931 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6935 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6936 if test -n "$GTK_CONFIG"; then
6937 echo "$ac_t""$GTK_CONFIG" 1>&6
6939 echo "$ac_t""no" 1>&6
6942 if test -x ${GTK_CONFIG}
6944 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
6945 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
6947 # now look for the gtk.h header
6948 saved_CPPFLAGS=$CPPFLAGS
6949 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
6950 ac_cv_gtk_headers=yes
6951 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
6953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_hdr" >&5
6956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 cat > conftest.$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6965 { (eval echo configure:6966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6967 if test -z "$ac_err"; then
6969 eval "ac_cv_header_$ac_safe=yes"
6972 echo "configure: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6975 eval "ac_cv_header_$ac_safe=no"
6979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6980 echo "$ac_t""yes" 1>&6
6981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6982 cat >> confdefs.h <<EOF
6983 #define $ac_tr_hdr 1
6987 echo "$ac_t""no" 1>&6
6988 ac_cv_gtk_headers=no
6989 echo "Cannot find gtk development headers."
6994 if test "x$ac_cv_gtk_headers" = xyes
6996 PLUGINS="${PLUGINS} gtk"
6997 ALIASES="${ALIASES} gvlc"
6999 CPPFLAGS=$saved_CPPFLAGS
7002 # Check whether --enable-x11 or --disable-x11 was given.
7003 if test "${enable_x11+set}" = set; then
7004 enableval="$enable_x11"
7008 if test x$enable_x11 != xno &&
7009 (test $SYS != mingw32 || test x$enable_x11 = xyes); then
7010 if test x$x_includes = xNONE; then
7011 x_includes=/usr/X11R6/include
7013 if test x$x_libraries = xNONE; then
7014 x_libraries=/usr/X11R6/lib
7016 saved_CPPFLAGS=$CPPFLAGS
7017 CPPFLAGS="$CPPFLAGS -I$x_includes"
7018 for ac_hdr in X11/Xlib.h
7020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_hdr" >&5
7023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7032 { (eval echo configure:7033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7034 if test -z "$ac_err"; then
7036 eval "ac_cv_header_$ac_safe=yes"
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7042 eval "ac_cv_header_$ac_safe=no"
7046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7047 echo "$ac_t""yes" 1>&6
7048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7049 cat >> confdefs.h <<EOF
7050 #define $ac_tr_hdr 1
7053 PLUGINS="${PLUGINS} x11"
7054 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7055 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7057 CPPFLAGS=$saved_CPPFLAGS
7059 echo "$ac_t""no" 1>&6
7065 # Check whether --enable-xvideo or --disable-xvideo was given.
7066 if test "${enable_xvideo+set}" = set; then
7067 enableval="$enable_xvideo"
7071 if test x$enable_xvideo != xno &&
7072 (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
7073 if test x$x_includes = xNONE; then
7074 x_includes=/usr/X11R6/include
7076 if test x$x_libraries = xNONE; then
7077 x_libraries=/usr/X11R6/lib
7079 saved_CPPFLAGS=$CPPFLAGS
7080 CPPFLAGS="$CPPFLAGS -I$x_includes"
7081 for ac_hdr in X11/extensions/Xv.h
7083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7085 echo "configure:7086: checking for $ac_hdr" >&5
7086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 cat > conftest.$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7095 { (eval echo configure:7096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7097 if test -z "$ac_err"; then
7099 eval "ac_cv_header_$ac_safe=yes"
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7105 eval "ac_cv_header_$ac_safe=no"
7109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7110 echo "$ac_t""yes" 1>&6
7111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7112 cat >> confdefs.h <<EOF
7113 #define $ac_tr_hdr 1
7116 BUILTINS="${BUILTINS} xvideo"
7117 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7118 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7120 CPPFLAGS=$saved_CPPFLAGS
7122 echo "$ac_t""no" 1>&6
7128 # Check whether --enable-alsa or --disable-alsa was given.
7129 if test "${enable_alsa+set}" = set; then
7130 enableval="$enable_alsa"
7131 if test x$enable_alsa = xyes
7133 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7134 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7135 echo "configure:7136: checking for alsa/asoundlib.h" >&5
7136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 #include <alsa/asoundlib.h>
7144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7145 { (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7147 if test -z "$ac_err"; then
7149 eval "ac_cv_header_$ac_safe=yes"
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 eval "ac_cv_header_$ac_safe=no"
7159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7162 echo "configure:7163: checking for main in -lasound" >&5
7163 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 ac_save_LIBS="$LIBS"
7168 LIBS="-lasound $LIBS"
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179 eval "ac_cv_lib_$ac_lib_var=yes"
7181 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7184 eval "ac_cv_lib_$ac_lib_var=no"
7187 LIBS="$ac_save_LIBS"
7190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7191 echo "$ac_t""yes" 1>&6
7194 echo "$ac_t""no" 1>&6
7199 echo "$ac_t""no" 1>&6
7203 if test x$have_alsa = xtrue
7205 PLUGINS="${PLUGINS} alsa"
7206 LIB_ALSA="-lasound -lm -ldl"
7214 # Check whether --enable-plugins or --disable-plugins was given.
7215 if test "${enable_plugins+set}" = set; then
7216 enableval="$enable_plugins"
7217 if test x$enable_plugins = xno
7219 BUILTINS="${BUILTINS} ${PLUGINS}"
7226 # Check whether --with-dll-path or --without-dll-path was given.
7227 if test "${with_dll_path+set}" = set; then
7228 withval="$with_dll_path"
7229 if test "x$withval" != "xno"
7236 cat >> confdefs.h <<EOF
7237 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
7240 cat >> confdefs.h <<EOF
7241 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
7245 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
7246 cat >> confdefs.h <<EOF
7247 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7250 cat >> confdefs.h <<EOF
7251 #define MODULE_SYMBOL $VLC_SYMBOL
7255 DATA_PATH="${ac_tool_prefix}/share/videolan"
7257 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
7347 cat > confcache <<\EOF
7348 # This file is a shell script that caches the results of configure
7349 # tests run on this system so they can be shared between configure
7350 # scripts and configure runs. It is not useful on other systems.
7351 # If it contains results you don't want to keep, you may remove or edit it.
7353 # By default, configure uses ./config.cache as the cache file,
7354 # creating it if it does not exist already. You can give configure
7355 # the --cache-file=FILE option to use a different cache file; that is
7356 # what configure does when it calls configure scripts in
7357 # subdirectories, so they share the cache.
7358 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7359 # config.status only pays attention to the cache file if you give it the
7360 # --recheck option to rerun configure.
7363 # The following way of writing the cache mishandles newlines in values,
7364 # but we know of no workaround that is simple, portable, and efficient.
7365 # So, don't put newlines in cache variables' values.
7366 # Ultrix sh set writes to stderr and can't be redirected directly,
7367 # and sets the high bit in the cache file unless we assign to the vars.
7369 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7371 # `set' does not quote correctly, so add quotes (double-quote substitution
7372 # turns \\\\ into \\, and sed turns \\ into \).
7374 -e "s/'/'\\\\''/g" \
7375 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7378 # `set' quotes correctly as required by POSIX, so do not add quotes.
7379 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7382 if cmp -s $cache_file confcache; then
7385 if test -w $cache_file; then
7386 echo "updating cache $cache_file"
7387 cat confcache > $cache_file
7389 echo "not updating unwritable cache $cache_file"
7394 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7397 # Let make expand exec_prefix.
7398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7400 # Any assignment to VPATH causes Sun make to only execute
7401 # the first set of double-colon rules, so remove it if not needed.
7402 # If there is a colon in the path, we need to keep it.
7403 if test "x$srcdir" = x.; then
7404 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7407 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7409 DEFS=-DHAVE_CONFIG_H
7411 # Without the "./", some shells look in PATH for config.status.
7412 : ${CONFIG_STATUS=./config.status}
7414 echo creating $CONFIG_STATUS
7415 rm -f $CONFIG_STATUS
7416 cat > $CONFIG_STATUS <<EOF
7418 # Generated automatically by configure.
7419 # Run this file to recreate the current configuration.
7420 # This directory was configured as follows,
7421 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7423 # $0 $ac_configure_args
7425 # Compiler output produced by configure, useful for debugging
7426 # configure, is in ./config.log if it exists.
7428 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7431 case "\$ac_option" in
7432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7433 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7434 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7435 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7436 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7438 -help | --help | --hel | --he | --h)
7439 echo "\$ac_cs_usage"; exit 0 ;;
7440 *) echo "\$ac_cs_usage"; exit 1 ;;
7444 ac_given_srcdir=$srcdir
7445 ac_given_INSTALL="$INSTALL"
7447 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7449 cat >> $CONFIG_STATUS <<EOF
7451 # Protect against being on the right side of a sed subst in config.status.
7452 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7453 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7457 s%@CFLAGS@%$CFLAGS%g
7458 s%@CPPFLAGS@%$CPPFLAGS%g
7459 s%@CXXFLAGS@%$CXXFLAGS%g
7460 s%@FFLAGS@%$FFLAGS%g
7462 s%@LDFLAGS@%$LDFLAGS%g
7464 s%@exec_prefix@%$exec_prefix%g
7465 s%@prefix@%$prefix%g
7466 s%@program_transform_name@%$program_transform_name%g
7467 s%@bindir@%$bindir%g
7468 s%@sbindir@%$sbindir%g
7469 s%@libexecdir@%$libexecdir%g
7470 s%@datadir@%$datadir%g
7471 s%@sysconfdir@%$sysconfdir%g
7472 s%@sharedstatedir@%$sharedstatedir%g
7473 s%@localstatedir@%$localstatedir%g
7474 s%@libdir@%$libdir%g
7475 s%@includedir@%$includedir%g
7476 s%@oldincludedir@%$oldincludedir%g
7477 s%@infodir@%$infodir%g
7478 s%@mandir@%$mandir%g
7480 s%@host_alias@%$host_alias%g
7481 s%@host_cpu@%$host_cpu%g
7482 s%@host_vendor@%$host_vendor%g
7483 s%@host_os@%$host_os%g
7484 s%@target@%$target%g
7485 s%@target_alias@%$target_alias%g
7486 s%@target_cpu@%$target_cpu%g
7487 s%@target_vendor@%$target_vendor%g
7488 s%@target_os@%$target_os%g
7490 s%@build_alias@%$build_alias%g
7491 s%@build_cpu@%$build_cpu%g
7492 s%@build_vendor@%$build_vendor%g
7493 s%@build_os@%$build_os%g
7494 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
7495 s%@SET_MAKE@%$SET_MAKE%g
7498 s%@RANLIB@%$RANLIB%g
7499 s%@ALLOCA@%$ALLOCA%g
7500 s%@GLIBC21@%$GLIBC21%g
7501 s%@LIBICONV@%$LIBICONV%g
7502 s%@USE_NLS@%$USE_NLS%g
7503 s%@MSGFMT@%$MSGFMT%g
7504 s%@GMSGFMT@%$GMSGFMT%g
7505 s%@XGETTEXT@%$XGETTEXT%g
7506 s%@INTLBISON@%$INTLBISON%g
7507 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
7508 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7509 s%@CATALOGS@%$CATALOGS%g
7510 s%@CATOBJEXT@%$CATOBJEXT%g
7511 s%@GMOFILES@%$GMOFILES%g
7512 s%@INTLLIBS@%$INTLLIBS%g
7513 s%@INTLOBJS@%$INTLOBJS%g
7514 s%@POFILES@%$POFILES%g
7516 s%@DATADIRNAME@%$DATADIRNAME%g
7517 s%@INSTOBJEXT@%$INSTOBJEXT%g
7518 s%@GENCAT@%$GENCAT%g
7519 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7520 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
7521 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7522 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7523 s%@INSTALL_DATA@%$INSTALL_DATA%g
7524 s%@WINDRES@%$WINDRES%g
7525 s%@ESD_CONFIG@%$ESD_CONFIG%g
7526 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
7527 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
7528 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
7529 s%@SDL_CONFIG@%$SDL_CONFIG%g
7530 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
7531 s%@GTK_CONFIG@%$GTK_CONFIG%g
7532 s%@DATA_PATH@%$DATA_PATH%g
7533 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
7536 s%@PLUGINS@%$PLUGINS%g
7537 s%@BUILTINS@%$BUILTINS%g
7538 s%@ALIASES@%$ALIASES%g
7539 s%@DEFINE@%$DEFINE%g
7540 s%@INCLUDE@%$INCLUDE%g
7546 s%@OPTIMS@%$OPTIMS%g
7547 s%@TUNING@%$TUNING%g
7548 s%@RELEASE@%$RELEASE%g
7550 s%@DLL_PATH@%$DLL_PATH%g
7551 s%@PACKAGE@%$PACKAGE%g
7552 s%@VERSION@%$VERSION%g
7553 s%@VCD_DEVICE@%$VCD_DEVICE%g
7554 s%@DVD_DEVICE@%$DVD_DEVICE%g
7555 s%@PLDFLAGS@%$PLDFLAGS%g
7556 s%@SOFLAGS@%$SOFLAGS%g
7558 s%@LIB_ALSA@%$LIB_ALSA%g
7559 s%@LIB_ARTS@%$LIB_ARTS%g
7560 s%@LIB_BEOS@%$LIB_BEOS%g
7561 s%@LIB_DARWIN@%$LIB_DARWIN%g
7562 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
7563 s%@LIB_DVD@%$LIB_DVD%g
7564 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
7565 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
7566 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
7567 s%@LIB_ESD@%$LIB_ESD%g
7568 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
7569 s%@LIB_GGI@%$LIB_GGI%g
7570 s%@LIB_GLIDE@%$LIB_GLIDE%g
7571 s%@LIB_GNOME@%$LIB_GNOME%g
7572 s%@LIB_GTK@%$LIB_GTK%g
7573 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
7574 s%@LIB_IMDCT@%$LIB_IMDCT%g
7575 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
7576 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
7577 s%@LIB_KDE@%$LIB_KDE%g
7578 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
7579 s%@LIB_MACOSX@%$LIB_MACOSX%g
7580 s%@LIB_MAD@%$LIB_MAD%g
7581 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
7582 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
7583 s%@LIB_NCURSES@%$LIB_NCURSES%g
7584 s%@LIB_QNX@%$LIB_QNX%g
7585 s%@LIB_QT@%$LIB_QT%g
7586 s%@LIB_RC@%$LIB_RC%g
7587 s%@LIB_SDL@%$LIB_SDL%g
7588 s%@LIB_X11@%$LIB_X11%g
7589 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
7590 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
7591 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
7592 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
7593 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
7594 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
7595 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
7596 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
7597 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
7598 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
7599 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
7600 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
7601 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
7602 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
7603 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
7604 s%@CFLAGS_QT@%$CFLAGS_QT%g
7605 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
7606 s%@CFLAGS_X11@%$CFLAGS_X11%g
7607 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
7608 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
7609 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
7610 s%@NEED_GETOPT@%$NEED_GETOPT%g
7611 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
7616 cat >> $CONFIG_STATUS <<\EOF
7618 # Split the substitutions into bite-sized pieces for seds with
7619 # small command number limits, like on Digital OSF/1 and HP-UX.
7620 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7621 ac_file=1 # Number of current file.
7622 ac_beg=1 # First line for current file.
7623 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7626 while $ac_more_lines; do
7627 if test $ac_beg -gt 1; then
7628 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7630 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7632 if test ! -s conftest.s$ac_file; then
7634 rm -f conftest.s$ac_file
7636 if test -z "$ac_sed_cmds"; then
7637 ac_sed_cmds="sed -f conftest.s$ac_file"
7639 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7641 ac_file=`expr $ac_file + 1`
7643 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7646 if test -z "$ac_sed_cmds"; then
7651 cat >> $CONFIG_STATUS <<EOF
7653 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
7655 cat >> $CONFIG_STATUS <<\EOF
7656 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7659 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7660 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7661 *) ac_file_in="${ac_file}.in" ;;
7664 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7666 # Remove last slash and all that follows it. Not all systems have dirname.
7667 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7668 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7669 # The file is in a subdirectory.
7670 test ! -d "$ac_dir" && mkdir "$ac_dir"
7671 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7672 # A "../" for each directory in $ac_dir_suffix.
7673 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7675 ac_dir_suffix= ac_dots=
7678 case "$ac_given_srcdir" in
7680 if test -z "$ac_dots"; then top_srcdir=.
7681 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7682 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7684 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7685 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7688 case "$ac_given_INSTALL" in
7689 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7690 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7693 echo creating "$ac_file"
7695 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7697 *Makefile*) ac_comsub="1i\\
7698 # $configure_input" ;;
7702 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7704 s%@configure_input@%$configure_input%g
7705 s%@srcdir@%$srcdir%g
7706 s%@top_srcdir@%$top_srcdir%g
7707 s%@INSTALL@%$INSTALL%g
7708 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7712 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7713 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7715 # ac_d sets the value in "#define NAME VALUE" lines.
7716 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7717 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7720 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7721 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7722 ac_uB='\([ ]\)%\1#\2define\3'
7725 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7726 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7727 ac_eB='$%\1#\2define\3'
7731 if test "${CONFIG_HEADERS+set}" != set; then
7733 cat >> $CONFIG_STATUS <<EOF
7734 CONFIG_HEADERS="include/defs.h"
7736 cat >> $CONFIG_STATUS <<\EOF
7738 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7741 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7742 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7743 *) ac_file_in="${ac_file}.in" ;;
7746 echo creating $ac_file
7748 rm -f conftest.frag conftest.in conftest.out
7749 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7750 cat $ac_file_inputs > conftest.in
7754 # Transform confdefs.h into a sed script conftest.vals that substitutes
7755 # the proper values into config.h.in to produce config.h. And first:
7756 # Protect against being on the right side of a sed subst in config.status.
7757 # Protect against being in an unquoted here document in config.status.
7759 cat > conftest.hdr <<\EOF
7762 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7766 sed -n -f conftest.hdr confdefs.h > conftest.vals
7769 # This sed command replaces #undef with comments. This is necessary, for
7770 # example, in the case of _POSIX_SOURCE, which is predefined and required
7771 # on some systems where configure will not decide to define it.
7772 cat >> conftest.vals <<\EOF
7773 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7776 # Break up conftest.vals because some shells have a limit on
7777 # the size of here documents, and old seds have small limits too.
7782 ac_lines=`grep -c . conftest.vals`
7783 # grep -c gives empty output for an empty file on some AIX systems.
7784 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7785 # Write a limited-size here document to conftest.frag.
7786 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7787 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7789 sed -f conftest.frag conftest.in > conftest.out
7791 mv conftest.out conftest.in
7793 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7795 mv conftest.tail conftest.vals
7799 cat >> $CONFIG_STATUS <<\EOF
7800 rm -f conftest.frag conftest.h
7801 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7802 cat conftest.in >> conftest.h
7804 if cmp -s $ac_file conftest.h 2>/dev/null; then
7805 echo "$ac_file is unchanged"
7808 # Remove last slash and all that follows it. Not all systems have dirname.
7809 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7810 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7811 # The file is in a subdirectory.
7812 test ! -d "$ac_dir" && mkdir "$ac_dir"
7815 mv conftest.h $ac_file
7820 cat >> $CONFIG_STATUS <<EOF
7824 cat >> $CONFIG_STATUS <<\EOF
7825 for ac_file in $CONFIG_FILES; do
7826 # Support "outfile[:infile[:infile...]]"
7828 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7830 # PO directories have a Makefile.in generated from Makefile.in.in.
7831 case "$ac_file" in */Makefile.in)
7832 # Adjust a relative srcdir.
7833 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7834 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7835 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7836 # In autoconf-2.13 it is called $ac_given_srcdir.
7837 # In autoconf-2.50 it is called $srcdir.
7838 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7839 case "$ac_given_srcdir" in
7840 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7841 /*) top_srcdir="$ac_given_srcdir" ;;
7842 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7844 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7845 rm -f "$ac_dir/POTFILES"
7846 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7847 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7848 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7849 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7857 chmod +x $CONFIG_STATUS
7858 rm -fr confdefs* $ac_clean_files
7859 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7863 global configuration
7864 --------------------
7866 architecture : ${ARCH}
7867 optimizations : ${OPTIMS}
7869 release: : ${RELEASE}"
7871 if test x${HAVE_VLC} = x1
7876 vlc version : ${VLC_VERSION}
7877 debug mode : ${DEBUG}
7878 trace mode : ${TRACE}
7879 cprof/gprof support : ${CPROF}/${GPROF}
7880 need builtin getopt : ${NEED_GETOPT}
7881 built-in modules :${BUILTINS}
7882 plug-in modules :${PLUGINS}
7883 vlc aliases :${ALIASES}"
7887 libdvdcss configuration
7888 -----------------------
7889 can be built : ${CAN_BUILD_LIBDVDCSS}
7890 will be built : ${NEED_LIBDVDCSS}"
7891 if test x${NEED_LIBDVDCSS} = x1
7893 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
7894 echo "link statically : ${STATIC_LIBDVDCSS}"
7896 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
7900 You may now tune Makefile.opts at your convenience, for instance to choose
7901 which modules get compiled as plugins.
7903 if test x${HAVE_VLC} = x1
7905 echo "To build vlc and its plugins, type \`make vlc plugins'."
7907 if test x${HAVE_LIBDVDCSS} = x1
7909 echo "To build libdvdcss only, type \`make libdvdcss'."