3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-mmx Disable MMX optimizations (default enabled for x86)"
30 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
32 --enable-debug Enable debug mode (default disabled)"
34 --enable-trace Enable trace mode (default disabled)"
36 --enable-gprof Enable gprof profiling (default disabled)"
38 --enable-cprof Enable cprof profiling (default disabled)"
40 --disable-optimizations Disable compiler optimizations (default enabled)"
42 --enable-pth Enable GNU Pth support (default disabled)"
44 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
45 or 'local-static', 'local-shared', or a path to
46 another libdvdcss such as '/usr/local'
47 (default 'local-static')"
49 --enable-dvdread Enable dvdread support (default disabled)"
51 --enable-vcd VCD support for Linux (default enabled)"
53 --disable-dummy dummy module (default enabled)"
55 --disable-null Null module (default enabled)"
57 --disable-rc Remote Control module (default enabled)"
59 --with-mad[=PATH] libmad module (default disabled)"
61 --disable-dsp Linux /dev/dsp support (default enabled)"
63 --enable-esd Esound library support (default disabled)"
65 --enable-arts aRts sound server (default disabled)"
67 --enable-macosx MacOS X support (default enabled on MacOS X)"
69 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
71 --enable-fb Linux framebuffer support (default disabled)"
73 --with-ggi[=name] GGI support (default disabled)"
75 --disable-sdl SDL support (default enabled)"
77 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
79 --disable-directx Windows DirectX support (default enabled on WIN32)"
81 --with-directx-path=path Windows DirectX headers and libraries"
83 --with-glide[=name] Glide (3dfx) support (default disabled)"
85 --enable-ncurses ncurses interface support (default disabled)"
87 --enable-qt Qt interface support (default disabled)"
89 --enable-kde KDE interface support (default disabled)"
91 --enable-gnome Gnome interface support (default disabled)"
93 --disable-gtk Gtk+ support (default enabled)"
95 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
97 --disable-x11 X11 support (default enabled)"
99 --disable-xvideo XVideo support (default enabled)"
101 --enable-alsa Alsa sound drivers support (Only for linux)
104 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
106 # 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/common.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"
736 if test -r extras/libdvdcss/libdvdcss.c; then
738 LIBDVDCSS_VERSION="1.0.1-dev"
740 if test -r extras/libdvdcss/csskeys.h; then
741 cat >> confdefs.h <<\EOF
742 #define HAVE_CSSKEYS 1
748 save_CFLAGS="${CFLAGS}"
749 save_LDFLAGS="${LDFLAGS}"
751 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
752 echo "configure:753: checking whether ${MAKE-make} sets \${MAKE}" >&5
753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
754 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
757 cat > conftestmake <<\EOF
759 @echo 'ac_maketemp="${MAKE}"'
761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
762 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
763 if test -n "$ac_maketemp"; then
764 eval ac_cv_prog_make_${ac_make}_set=yes
766 eval ac_cv_prog_make_${ac_make}_set=no
770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
771 echo "$ac_t""yes" 1>&6
774 echo "$ac_t""no" 1>&6
775 SET_MAKE="MAKE=${MAKE-make}"
778 # Extract the first word of "gcc", so it can be a program name with args.
779 set dummy gcc; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$CC"; then
786 ac_cv_prog_CC="$CC" # Let the user override the test.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
801 if test -n "$CC"; then
802 echo "$ac_t""$CC" 1>&6
804 echo "$ac_t""no" 1>&6
807 if test -z "$CC"; then
808 # Extract the first word of "cc", so it can be a program name with args.
809 set dummy cc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
824 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
833 if test $ac_prog_rejected = yes; then
834 # We found a bogon in the path, so make sure we never use it.
835 set dummy $ac_cv_prog_CC
837 if test $# -gt 0; then
838 # We chose a different compiler from the bogus one.
839 # However, it has the same basename, so the bogon will be chosen
840 # first if we set CC to just the basename; use the full file name.
842 set dummy "$ac_dir/$ac_word" "$@"
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
853 echo "$ac_t""no" 1>&6
856 if test -z "$CC"; then
859 # Extract the first word of "cl", so it can be a program name with args.
860 set dummy cl; ac_word=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 if test -n "$CC"; then
867 ac_cv_prog_CC="$CC" # Let the user override the test.
869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
871 for ac_dir in $ac_dummy; do
872 test -z "$ac_dir" && ac_dir=.
873 if test -f $ac_dir/$ac_word; then
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
890 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
894 echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp='$CPP $CPPFLAGS'
899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling=$ac_cv_prog_cc_cross
903 cat > conftest.$ac_ext << EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
911 ac_cv_prog_cc_works=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (./conftest; exit) 2>/dev/null; then
914 ac_cv_prog_cc_cross=no
916 ac_cv_prog_cc_cross=yes
919 echo "configure: failed program was:" >&5
920 cat conftest.$ac_ext >&5
921 ac_cv_prog_cc_works=no
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
932 if test $ac_cv_prog_cc_works = no; then
933 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
938 cross_compiling=$ac_cv_prog_cc_cross
940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
941 echo "configure:942: checking whether we are using GNU C" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 cat > conftest.c <<EOF
950 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
957 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
959 if test $ac_cv_prog_gcc = yes; then
965 ac_test_CFLAGS="${CFLAGS+set}"
966 ac_save_CFLAGS="$CFLAGS"
968 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
969 echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 echo 'void f(){}' > conftest.c
974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
984 if test "$ac_test_CFLAGS" = set; then
985 CFLAGS="$ac_save_CFLAGS"
986 elif test $ac_cv_prog_cc_g = yes; then
987 if test "$GCC" = yes; then
993 if test "$GCC" = yes; then
1000 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1001 echo "configure:1002: checking how to run the C preprocessor" >&5
1002 # On Suns, sometimes $CPP names a directory.
1003 if test -n "$CPP" && test -d "$CPP"; then
1006 if test -z "$CPP"; then
1007 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 # This must be in double quotes, not single quotes, because CPP may get
1011 # substituted into the Makefile and "${CC-cc}" will confuse make.
1013 # On the NeXT, cc -E runs the code through the compiler's parser,
1014 # not just through cpp.
1015 cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1022 { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1024 if test -z "$ac_err"; then
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1031 CPP="${CC-cc} -E -traditional-cpp"
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1041 if test -z "$ac_err"; then
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1048 CPP="${CC-cc} -nologo -E"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1072 ac_cv_prog_CPP="$CPP"
1074 CPP="$ac_cv_prog_CPP"
1076 ac_cv_prog_CPP="$CPP"
1078 echo "$ac_t""$CPP" 1>&6
1080 if test $host != $build; then
1081 ac_tool_prefix=${host_alias}-
1086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1089 echo "configure:1090: checking for $ac_word" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 if test -n "$RANLIB"; then
1094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1108 RANLIB="$ac_cv_prog_RANLIB"
1109 if test -n "$RANLIB"; then
1110 echo "$ac_t""$RANLIB" 1>&6
1112 echo "$ac_t""no" 1>&6
1116 if test -z "$ac_cv_prog_RANLIB"; then
1117 if test -n "$ac_tool_prefix"; then
1118 # Extract the first word of "ranlib", so it can be a program name with args.
1119 set dummy ranlib; ac_word=$2
1120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_word" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$RANLIB"; then
1126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1133 ac_cv_prog_RANLIB="ranlib"
1138 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1141 RANLIB="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1145 echo "$ac_t""no" 1>&6
1154 ALL_LINGUAS="de fr ru"
1156 VERSION="$VLC_VERSION"
1158 cat >> confdefs.h <<EOF
1159 #define PACKAGE "$PACKAGE"
1162 cat >> confdefs.h <<EOF
1163 #define VERSION "$VERSION"
1166 # Extract the first word of "ranlib", so it can be a program name with args.
1167 set dummy ranlib; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1178 for ac_dir in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB="ranlib"
1186 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1189 RANLIB="$ac_cv_prog_RANLIB"
1190 if test -n "$RANLIB"; then
1191 echo "$ac_t""$RANLIB" 1>&6
1193 echo "$ac_t""no" 1>&6
1197 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1198 echo "configure:1199: checking for strerror in -lcposix" >&5
1199 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 ac_save_LIBS="$LIBS"
1204 LIBS="-lcposix $LIBS"
1205 cat > conftest.$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1208 /* Override any gcc2 internal prototype to avoid an error. */
1209 /* We use char because int might match the return type of a gcc2
1210 builtin and then its argument prototype would still apply. */
1217 if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1219 eval "ac_cv_lib_$ac_lib_var=yes"
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1224 eval "ac_cv_lib_$ac_lib_var=no"
1227 LIBS="$ac_save_LIBS"
1230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1231 echo "$ac_t""yes" 1>&6
1232 LIBS="$LIBS -lcposix"
1234 echo "$ac_t""no" 1>&6
1239 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1240 echo "configure:1241: checking for ANSI C header files" >&5
1241 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1253 { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1255 if test -z "$ac_err"; then
1257 ac_cv_header_stdc=yes
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
1263 ac_cv_header_stdc=no
1267 if test $ac_cv_header_stdc = yes; then
1268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1275 egrep "memchr" >/dev/null 2>&1; then
1279 ac_cv_header_stdc=no
1285 if test $ac_cv_header_stdc = yes; then
1286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1293 egrep "free" >/dev/null 2>&1; then
1297 ac_cv_header_stdc=no
1303 if test $ac_cv_header_stdc = yes; then
1304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1305 if test "$cross_compiling" = yes; then
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1312 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1313 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1315 int main () { int i; for (i = 0; i < 256; i++)
1316 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1327 ac_cv_header_stdc=no
1335 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1336 if test $ac_cv_header_stdc = yes; then
1337 cat >> confdefs.h <<\EOF
1338 #define STDC_HEADERS 1
1343 echo $ac_n "checking for working const""... $ac_c" 1>&6
1344 echo "configure:1345: checking for working const" >&5
1345 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 cat > conftest.$ac_ext <<EOF
1349 #line 1350 "configure"
1350 #include "confdefs.h"
1354 /* Ultrix mips cc rejects this. */
1355 typedef int charset[2]; const charset x;
1356 /* SunOS 4.1.1 cc rejects this. */
1357 char const *const *ccp;
1359 /* NEC SVR4.0.2 mips cc rejects this. */
1360 struct point {int x, y;};
1361 static struct point const zero = {0,0};
1362 /* AIX XL C 1.02.0.0 rejects this.
1363 It does not let you subtract one const X* pointer from another in an arm
1364 of an if-expression whose if-part is not a constant expression */
1365 const char *g = "string";
1366 ccp = &g + (g ? g-g : 0);
1367 /* HPUX 7.0 cc rejects these. */
1370 ccp = (char const *const *) p;
1371 { /* SCO 3.2v4 cc rejects this. */
1373 char const *s = 0 ? (char *) 0 : (char const *) 0;
1377 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1379 const int *foo = &x[0];
1382 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1383 typedef const int *iptr;
1387 { /* AIX XL C 1.02.0.0 rejects this saying
1388 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1389 struct s { int j; const int *ap[3]; };
1390 struct s *b; b->j = 5;
1392 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1398 if { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1410 echo "$ac_t""$ac_cv_c_const" 1>&6
1411 if test $ac_cv_c_const = no; then
1412 cat >> confdefs.h <<\EOF
1418 echo $ac_n "checking for inline""... $ac_c" 1>&6
1419 echo "configure:1420: checking for inline" >&5
1420 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1424 for ac_kw in inline __inline__ __inline; do
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1433 if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1435 ac_cv_c_inline=$ac_kw; break
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1445 echo "$ac_t""$ac_cv_c_inline" 1>&6
1446 case "$ac_cv_c_inline" in
1448 no) cat >> confdefs.h <<\EOF
1452 *) cat >> confdefs.h <<EOF
1453 #define inline $ac_cv_c_inline
1458 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1459 echo "configure:1460: checking for off_t" >&5
1460 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 #include <sys/types.h>
1472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1473 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1475 ac_cv_type_off_t=yes
1483 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1484 if test $ac_cv_type_off_t = no; then
1485 cat >> confdefs.h <<\EOF
1491 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1492 echo "configure:1493: checking for size_t" >&5
1493 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 #include <sys/types.h>
1505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1506 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1508 ac_cv_type_size_t=yes
1511 ac_cv_type_size_t=no
1516 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1517 if test $ac_cv_type_size_t = no; then
1518 cat >> confdefs.h <<\EOF
1519 #define size_t unsigned
1524 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1525 # for constant arguments. Useless!
1526 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1527 echo "configure:1528: checking for working alloca.h" >&5
1528 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1536 char *p = alloca(2 * sizeof(int));
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541 ac_cv_header_alloca_h=yes
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 ac_cv_header_alloca_h=no
1551 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1552 if test $ac_cv_header_alloca_h = yes; then
1553 cat >> confdefs.h <<\EOF
1554 #define HAVE_ALLOCA_H 1
1559 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1560 echo "configure:1561: checking for alloca" >&5
1561 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1569 # define alloca __builtin_alloca
1572 # include <malloc.h>
1573 # define alloca _alloca
1576 # include <alloca.h>
1581 # ifndef alloca /* predefined by HP cc +Olibcalls */
1590 char *p = (char *) alloca(1);
1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1595 ac_cv_func_alloca_works=yes
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1600 ac_cv_func_alloca_works=no
1605 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1606 if test $ac_cv_func_alloca_works = yes; then
1607 cat >> confdefs.h <<\EOF
1608 #define HAVE_ALLOCA 1
1613 if test $ac_cv_func_alloca_works = no; then
1614 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1615 # that cause trouble. Some versions do not even contain alloca or
1616 # contain a buggy version. If you still want to use their alloca,
1617 # use ar to extract alloca.o from them instead of compiling alloca.c.
1618 ALLOCA=alloca.${ac_objext}
1619 cat >> confdefs.h <<\EOF
1624 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1625 echo "configure:1626: checking whether alloca needs Cray hooks" >&5
1626 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #if defined(CRAY) && ! defined(CRAY2)
1639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1640 egrep "webecray" >/dev/null 2>&1; then
1651 echo "$ac_t""$ac_cv_os_cray" 1>&6
1652 if test $ac_cv_os_cray = yes; then
1653 for ac_func in _getb67 GETB67 getb67; do
1654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_func" >&5
1656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 /* System header to define __stub macros and hopefully few prototypes,
1663 which can conflict with char $ac_func(); below. */
1665 /* Override any gcc2 internal prototype to avoid an error. */
1666 /* We use char because int might match the return type of a gcc2
1667 builtin and then its argument prototype would still apply. */
1672 /* The GNU C library defines this for functions which it implements
1673 to always fail with ENOSYS. Some functions are actually named
1674 something starting with __ and the normal name is an alias. */
1675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1683 if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1685 eval "ac_cv_func_$ac_func=yes"
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1690 eval "ac_cv_func_$ac_func=no"
1695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1697 cat >> confdefs.h <<EOF
1698 #define CRAY_STACKSEG_END $ac_func
1703 echo "$ac_t""no" 1>&6
1709 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1710 echo "configure:1711: checking stack direction for C alloca" >&5
1711 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 if test "$cross_compiling" = yes; then
1715 ac_cv_c_stack_direction=0
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1720 find_stack_direction ()
1722 static char *addr = 0;
1727 return find_stack_direction ();
1730 return (&dummy > addr) ? 1 : -1;
1734 exit (find_stack_direction() < 0);
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1739 ac_cv_c_stack_direction=1
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 ac_cv_c_stack_direction=-1
1751 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1752 cat >> confdefs.h <<EOF
1753 #define STACK_DIRECTION $ac_cv_c_stack_direction
1758 for ac_hdr in unistd.h
1760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1762 echo "configure:1763: checking for $ac_hdr" >&5
1763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1772 { (eval echo configure:1773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1774 if test -z "$ac_err"; then
1776 eval "ac_cv_header_$ac_safe=yes"
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 eval "ac_cv_header_$ac_safe=no"
1786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1787 echo "$ac_t""yes" 1>&6
1788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1789 cat >> confdefs.h <<EOF
1790 #define $ac_tr_hdr 1
1794 echo "$ac_t""no" 1>&6
1798 for ac_func in getpagesize
1800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_func" >&5
1802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $ac_func(); below. */
1811 /* Override any gcc2 internal prototype to avoid an error. */
1812 /* We use char because int might match the return type of a gcc2
1813 builtin and then its argument prototype would still apply. */
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831 eval "ac_cv_func_$ac_func=yes"
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 eval "ac_cv_func_$ac_func=no"
1841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1844 cat >> confdefs.h <<EOF
1845 #define $ac_tr_func 1
1849 echo "$ac_t""no" 1>&6
1853 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1854 echo "configure:1855: checking for working mmap" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 if test "$cross_compiling" = yes; then
1859 ac_cv_func_mmap_fixed_mapped=no
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1865 /* Thanks to Mike Haertel and Jim Avera for this test.
1866 Here is a matrix of mmap possibilities:
1867 mmap private not fixed
1868 mmap private fixed at somewhere currently unmapped
1869 mmap private fixed at somewhere already mapped
1870 mmap shared not fixed
1871 mmap shared fixed at somewhere currently unmapped
1872 mmap shared fixed at somewhere already mapped
1873 For private mappings, we should verify that changes cannot be read()
1874 back from the file, nor mmap's back from the file at a different
1875 address. (There have been systems where private was not correctly
1876 implemented like the infamous i386 svr4.0, and systems where the
1877 VM page cache was not coherent with the filesystem buffer cache
1878 like early versions of FreeBSD and possibly contemporary NetBSD.)
1879 For shared mappings, we should conversely verify that changes get
1880 propogated back to all the places they're supposed to be.
1882 Grep wants private fixed already mapped.
1883 The main things grep needs to know about mmap are:
1884 * does it exist and is it safe to write into the mmap'd area
1885 * how to use it (BSD variants) */
1886 #include <sys/types.h>
1888 #include <sys/mman.h>
1890 /* This mess was copied from the GNU getpagesize.h. */
1891 #ifndef HAVE_GETPAGESIZE
1892 # ifdef HAVE_UNISTD_H
1893 # include <unistd.h>
1896 /* Assume that all systems that can run configure have sys/param.h. */
1897 # ifndef HAVE_SYS_PARAM_H
1898 # define HAVE_SYS_PARAM_H 1
1901 # ifdef _SC_PAGESIZE
1902 # define getpagesize() sysconf(_SC_PAGESIZE)
1903 # else /* no _SC_PAGESIZE */
1904 # ifdef HAVE_SYS_PARAM_H
1905 # include <sys/param.h>
1906 # ifdef EXEC_PAGESIZE
1907 # define getpagesize() EXEC_PAGESIZE
1908 # else /* no EXEC_PAGESIZE */
1910 # define getpagesize() NBPG * CLSIZE
1913 # endif /* no CLSIZE */
1914 # else /* no NBPG */
1916 # define getpagesize() NBPC
1917 # else /* no NBPC */
1919 # define getpagesize() PAGESIZE
1920 # endif /* PAGESIZE */
1921 # endif /* no NBPC */
1922 # endif /* no NBPG */
1923 # endif /* no EXEC_PAGESIZE */
1924 # else /* no HAVE_SYS_PARAM_H */
1925 # define getpagesize() 8192 /* punt totally */
1926 # endif /* no HAVE_SYS_PARAM_H */
1927 # endif /* no _SC_PAGESIZE */
1929 #endif /* no HAVE_GETPAGESIZE */
1932 extern "C" { void *malloc(unsigned); }
1940 char *data, *data2, *data3;
1944 pagesize = getpagesize();
1947 * First, make a file with some known garbage in it.
1949 data = malloc(pagesize);
1952 for (i = 0; i < pagesize; ++i)
1953 *(data + i) = rand();
1955 fd = creat("conftestmmap", 0600);
1958 if (write(fd, data, pagesize) != pagesize)
1963 * Next, try to mmap the file at a fixed address which
1964 * already has something else allocated at it. If we can,
1965 * also make sure that we see the same garbage.
1967 fd = open("conftestmmap", O_RDWR);
1970 data2 = malloc(2 * pagesize);
1973 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1974 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1975 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1977 for (i = 0; i < pagesize; ++i)
1978 if (*(data + i) != *(data2 + i))
1982 * Finally, make sure that changes to the mapped area
1983 * do not percolate back to the file as seen by read().
1984 * (This is a bug on some variants of i386 svr4.0.)
1986 for (i = 0; i < pagesize; ++i)
1987 *(data2 + i) = *(data2 + i) + 1;
1988 data3 = malloc(pagesize);
1991 if (read(fd, data3, pagesize) != pagesize)
1993 for (i = 0; i < pagesize; ++i)
1994 if (*(data + i) != *(data3 + i))
1997 unlink("conftestmmap");
2002 if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2004 ac_cv_func_mmap_fixed_mapped=yes
2006 echo "configure: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2009 ac_cv_func_mmap_fixed_mapped=no
2016 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2017 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2018 cat >> confdefs.h <<\EOF
2025 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2026 echo "configure:2027: checking whether we are using the GNU C Library 2.1 or newer" >&5
2027 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2034 #include <features.h>
2035 #ifdef __GNU_LIBRARY__
2036 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2043 egrep "Lucky GNU user" >/dev/null 2>&1; then
2045 ac_cv_gnu_library_2_1=yes
2048 ac_cv_gnu_library_2_1=no
2056 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2058 GLIBC21="$ac_cv_gnu_library_2_1"
2062 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2063 stdlib.h string.h unistd.h sys/param.h
2065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2067 echo "configure:2068: checking for $ac_hdr" >&5
2068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2077 { (eval echo configure:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2079 if test -z "$ac_err"; then
2081 eval "ac_cv_header_$ac_safe=yes"
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 eval "ac_cv_header_$ac_safe=no"
2091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2092 echo "$ac_t""yes" 1>&6
2093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2094 cat >> confdefs.h <<EOF
2095 #define $ac_tr_hdr 1
2099 echo "$ac_t""no" 1>&6
2103 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2104 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2105 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_func" >&5
2109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 /* System header to define __stub macros and hopefully few prototypes,
2116 which can conflict with char $ac_func(); below. */
2118 /* Override any gcc2 internal prototype to avoid an error. */
2119 /* We use char because int might match the return type of a gcc2
2120 builtin and then its argument prototype would still apply. */
2125 /* The GNU C library defines this for functions which it implements
2126 to always fail with ENOSYS. Some functions are actually named
2127 something starting with __ and the normal name is an alias. */
2128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2136 if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2138 eval "ac_cv_func_$ac_func=yes"
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 eval "ac_cv_func_$ac_func=no"
2148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2151 cat >> confdefs.h <<EOF
2152 #define $ac_tr_func 1
2156 echo "$ac_t""no" 1>&6
2163 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2164 if test "${with_libiconv_prefix+set}" = set; then
2165 withval="$with_libiconv_prefix"
2167 for dir in `echo "$withval" | tr : ' '`; do
2168 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2169 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2175 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2176 echo "configure:2177: checking for iconv" >&5
2177 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2181 am_cv_func_iconv="no, consider installing GNU libiconv"
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2189 iconv_t cd = iconv_open("","");
2190 iconv(cd,NULL,NULL,NULL,NULL);
2194 if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2196 am_cv_func_iconv=yes
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2202 if test "$am_cv_func_iconv" != yes; then
2203 am_save_LIBS="$LIBS"
2204 LIBS="$LIBS -liconv"
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2211 iconv_t cd = iconv_open("","");
2212 iconv(cd,NULL,NULL,NULL,NULL);
2216 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2219 am_cv_func_iconv=yes
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2225 LIBS="$am_save_LIBS"
2230 echo "$ac_t""$am_cv_func_iconv" 1>&6
2231 if test "$am_cv_func_iconv" = yes; then
2232 cat >> confdefs.h <<\EOF
2233 #define HAVE_ICONV 1
2236 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2237 echo "configure:2238: checking for iconv declaration" >&5
2238 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2252 #if defined(__STDC__) || defined(__cplusplus)
2253 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2262 if { (eval echo configure:2263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2264 am_cv_proto_iconv_arg1=""
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 am_cv_proto_iconv_arg1="const"
2272 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);"
2275 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2276 echo "$ac_t""${ac_t:-
2277 }$am_cv_proto_iconv" 1>&6
2278 cat >> confdefs.h <<EOF
2279 #define ICONV_CONST $am_cv_proto_iconv_arg1
2284 if test "$am_cv_lib_iconv" = yes; then
2290 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2291 echo "configure:2292: checking for nl_langinfo and CODESET" >&5
2292 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 #include <langinfo.h>
2300 char* cs = nl_langinfo(CODESET);
2303 if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2305 am_cv_langinfo_codeset=yes
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 am_cv_langinfo_codeset=no
2316 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2317 if test $am_cv_langinfo_codeset = yes; then
2318 cat >> confdefs.h <<\EOF
2319 #define HAVE_LANGINFO_CODESET 1
2324 if test $ac_cv_header_locale_h = yes; then
2325 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2326 echo "configure:2327: checking for LC_MESSAGES" >&5
2327 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2340 am_cv_val_LC_MESSAGES=yes
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 am_cv_val_LC_MESSAGES=no
2350 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2351 if test $am_cv_val_LC_MESSAGES = yes; then
2352 cat >> confdefs.h <<\EOF
2353 #define HAVE_LC_MESSAGES 1
2358 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2359 echo "configure:2360: checking whether NLS is requested" >&5
2360 # Check whether --enable-nls or --disable-nls was given.
2361 if test "${enable_nls+set}" = set; then
2362 enableval="$enable_nls"
2368 echo "$ac_t""$USE_NLS" 1>&6
2371 BUILD_INCLUDED_LIBINTL=no
2372 USE_INCLUDED_LIBINTL=no
2375 if test "$USE_NLS" = "yes"; then
2376 cat >> confdefs.h <<\EOF
2377 #define ENABLE_NLS 1
2380 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2381 echo "configure:2382: checking whether included gettext is requested" >&5
2382 # Check whether --with-included-gettext or --without-included-gettext was given.
2383 if test "${with_included_gettext+set}" = set; then
2384 withval="$with_included_gettext"
2385 nls_cv_force_use_gnu_gettext=$withval
2387 nls_cv_force_use_gnu_gettext=no
2390 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2392 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2393 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2399 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2400 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2401 echo "configure:2402: checking for libintl.h" >&5
2402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <libintl.h>
2410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2411 { (eval echo configure:2412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2413 if test -z "$ac_err"; then
2415 eval "ac_cv_header_$ac_safe=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_header_$ac_safe=no"
2425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2428 echo "configure:2429: checking for GNU gettext in libc" >&5
2429 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 #include <libintl.h>
2436 extern int _nl_msg_cat_cntr;
2438 bindtextdomain ("", "");
2439 return (int) gettext ("") + _nl_msg_cat_cntr
2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2444 gt_cv_func_gnugettext1_libc=yes
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 gt_cv_func_gnugettext1_libc=no
2454 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2456 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2457 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2458 echo "configure:2459: checking for GNU gettext in libintl" >&5
2459 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 gt_save_LIBS="$LIBS"
2463 LIBS="$LIBS -lintl $LIBICONV"
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2467 #include <libintl.h>
2468 extern int _nl_msg_cat_cntr;
2470 bindtextdomain ("", "");
2471 return (int) gettext ("") + _nl_msg_cat_cntr
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2476 gt_cv_func_gnugettext1_libintl=yes
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 gt_cv_func_gnugettext1_libintl=no
2484 LIBS="$gt_save_LIBS"
2487 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2490 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2491 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2492 && test "$PACKAGE" != gettext; }; then
2493 cat >> confdefs.h <<\EOF
2494 #define HAVE_GETTEXT 1
2498 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2499 INTLLIBS="-lintl $LIBICONV"
2502 gt_save_LIBS="$LIBS"
2503 LIBS="$LIBS $INTLLIBS"
2504 for ac_func in dcgettext
2506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2507 echo "configure:2508: checking for $ac_func" >&5
2508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 /* System header to define __stub macros and hopefully few prototypes,
2515 which can conflict with char $ac_func(); below. */
2517 /* Override any gcc2 internal prototype to avoid an error. */
2518 /* We use char because int might match the return type of a gcc2
2519 builtin and then its argument prototype would still apply. */
2524 /* The GNU C library defines this for functions which it implements
2525 to always fail with ENOSYS. Some functions are actually named
2526 something starting with __ and the normal name is an alias. */
2527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2535 if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2537 eval "ac_cv_func_$ac_func=yes"
2539 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2542 eval "ac_cv_func_$ac_func=no"
2547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2548 echo "$ac_t""yes" 1>&6
2549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2550 cat >> confdefs.h <<EOF
2551 #define $ac_tr_func 1
2555 echo "$ac_t""no" 1>&6
2559 LIBS="$gt_save_LIBS"
2561 # Extract the first word of "msgfmt", so it can be a program name with args.
2562 set dummy msgfmt; ac_word=$2
2563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564 echo "configure:2565: checking for $ac_word" >&5
2565 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2570 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2574 for ac_dir in $PATH; do
2575 test -z "$ac_dir" && ac_dir=.
2576 if test -f $ac_dir/$ac_word; then
2577 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2578 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2584 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2588 MSGFMT="$ac_cv_path_MSGFMT"
2589 if test "$MSGFMT" != ":"; then
2590 echo "$ac_t""$MSGFMT" 1>&6
2592 echo "$ac_t""no" 1>&6
2595 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2596 set dummy gmsgfmt; ac_word=$2
2597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2598 echo "configure:2599: checking for $ac_word" >&5
2599 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2604 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2607 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2612 for ac_dir in $ac_dummy; do
2613 test -z "$ac_dir" && ac_dir=.
2614 if test -f $ac_dir/$ac_word; then
2615 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2620 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2624 GMSGFMT="$ac_cv_path_GMSGFMT"
2625 if test -n "$GMSGFMT"; then
2626 echo "$ac_t""$GMSGFMT" 1>&6
2628 echo "$ac_t""no" 1>&6
2632 # Extract the first word of "xgettext", so it can be a program name with args.
2633 set dummy xgettext; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5
2636 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2641 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2645 for ac_dir in $PATH; do
2646 test -z "$ac_dir" && ac_dir=.
2647 if test -f $ac_dir/$ac_word; then
2648 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2649 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2655 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2659 XGETTEXT="$ac_cv_path_XGETTEXT"
2660 if test "$XGETTEXT" != ":"; then
2661 echo "$ac_t""$XGETTEXT" 1>&6
2663 echo "$ac_t""no" 1>&6
2671 echo "$ac_t""no" 1>&6
2675 if test "$CATOBJEXT" = "NONE"; then
2676 nls_cv_use_gnu_gettext=yes
2680 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2681 INTLOBJS="\$(GETTOBJS)"
2682 # Extract the first word of "msgfmt", so it can be a program name with args.
2683 set dummy msgfmt; ac_word=$2
2684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_word" >&5
2686 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2695 for ac_dir in $PATH; do
2696 test -z "$ac_dir" && ac_dir=.
2697 if test -f $ac_dir/$ac_word; then
2698 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2699 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2705 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2709 MSGFMT="$ac_cv_path_MSGFMT"
2710 if test "$MSGFMT" != ":"; then
2711 echo "$ac_t""$MSGFMT" 1>&6
2713 echo "$ac_t""no" 1>&6
2716 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2717 set dummy gmsgfmt; ac_word=$2
2718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_word" >&5
2720 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2725 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2728 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2733 for ac_dir in $ac_dummy; do
2734 test -z "$ac_dir" && ac_dir=.
2735 if test -f $ac_dir/$ac_word; then
2736 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2741 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2745 GMSGFMT="$ac_cv_path_GMSGFMT"
2746 if test -n "$GMSGFMT"; then
2747 echo "$ac_t""$GMSGFMT" 1>&6
2749 echo "$ac_t""no" 1>&6
2752 # Extract the first word of "xgettext", so it can be a program name with args.
2753 set dummy xgettext; ac_word=$2
2754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_word" >&5
2756 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2765 for ac_dir in $PATH; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2769 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2779 XGETTEXT="$ac_cv_path_XGETTEXT"
2780 if test "$XGETTEXT" != ":"; then
2781 echo "$ac_t""$XGETTEXT" 1>&6
2783 echo "$ac_t""no" 1>&6
2787 BUILD_INCLUDED_LIBINTL=yes
2788 USE_INCLUDED_LIBINTL=yes
2790 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2791 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2794 if test "$GMSGFMT" != ":"; then
2795 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2798 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2803 if test "$XGETTEXT" != ":"; then
2804 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2807 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2817 if test "$PACKAGE" = gettext; then
2818 BUILD_INCLUDED_LIBINTL=yes
2821 for ac_prog in bison
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_word" >&5
2827 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 if test -n "$INTLBISON"; then
2831 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2835 for ac_dir in $ac_dummy; do
2836 test -z "$ac_dir" && ac_dir=.
2837 if test -f $ac_dir/$ac_word; then
2838 ac_cv_prog_INTLBISON="$ac_prog"
2845 INTLBISON="$ac_cv_prog_INTLBISON"
2846 if test -n "$INTLBISON"; then
2847 echo "$ac_t""$INTLBISON" 1>&6
2849 echo "$ac_t""no" 1>&6
2852 test -n "$INTLBISON" && break
2855 if test -z "$INTLBISON"; then
2858 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2859 echo "configure:2860: checking version of bison" >&5
2860 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2861 case $ac_prog_version in
2862 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2863 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2864 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2865 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2867 echo "$ac_t""$ac_prog_version" 1>&6
2869 if test $ac_verc_fail = yes; then
2873 for lang in $ALL_LINGUAS; do
2874 GMOFILES="$GMOFILES $lang.gmo"
2875 POFILES="$POFILES $lang.po"
2889 nls_cv_header_libgt=
2901 if test "x$CATOBJEXT" != "x"; then
2902 if test "x$ALL_LINGUAS" = "x"; then
2905 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2906 echo "configure:2907: checking for catalogs to be installed" >&5
2908 for presentlang in $ALL_LINGUAS; do
2910 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2911 # Use the presentlang catalog if desiredlang is
2912 # a. equal to presentlang, or
2913 # b. a variant of presentlang (because in this case,
2914 # presentlang can be used as a fallback for messages
2915 # which are not translated in the desiredlang catalog).
2916 case "$desiredlang" in
2917 "$presentlang"*) useit=yes;;
2920 if test $useit = yes; then
2921 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2924 LINGUAS=$NEW_LINGUAS
2925 echo "$ac_t""$LINGUAS" 1>&6
2928 if test -n "$LINGUAS"; then
2929 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2934 if test -n "$ac_aux_dir"; then
2935 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2937 if test -z "$MKINSTALLDIRS"; then
2938 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2942 INTL_LIBTOOL_SUFFIX_PREFIX=
2946 # Find a good install program. We prefer a C program (faster),
2947 # so one script is as good as another. But avoid the broken or
2948 # incompatible versions:
2949 # SysV /etc/install, /usr/sbin/install
2950 # SunOS /usr/etc/install
2951 # IRIX /sbin/install
2953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2956 # ./install, which can be erroneously created by make from ./install.sh.
2957 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2958 echo "configure:2959: checking for a BSD compatible install" >&5
2959 if test -z "$INSTALL"; then
2960 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2964 for ac_dir in $PATH; do
2965 # Account for people who put trailing slashes in PATH elements.
2967 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2969 # OSF1 and SCO ODT 3.0 have their own names for install.
2970 # Don't use installbsd from OSF since it installs stuff as root
2972 for ac_prog in ginstall scoinst install; do
2973 if test -f $ac_dir/$ac_prog; then
2974 if test $ac_prog = install &&
2975 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2976 # AIX install. It has an incompatible calling convention.
2979 ac_cv_path_install="$ac_dir/$ac_prog -c"
2990 if test "${ac_cv_path_install+set}" = set; then
2991 INSTALL="$ac_cv_path_install"
2993 # As a last resort, use the slow shell script. We don't cache a
2994 # path for INSTALL within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the path is relative.
2997 INSTALL="$ac_install_sh"
3000 echo "$ac_t""$INSTALL" 1>&6
3002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3003 # It thinks the first close brace ends the variable substitution.
3004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3011 if test x${cross_compiling} != xyes; then
3012 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3013 echo "configure:3014: checking whether byte ordering is bigendian" >&5
3014 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 ac_cv_c_bigendian=unknown
3018 # See if sys/param.h defines the BYTE_ORDER macro.
3019 cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022 #include <sys/types.h>
3023 #include <sys/param.h>
3026 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3031 if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3033 # It does; now see whether it defined to BIG_ENDIAN or not.
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 #include <sys/types.h>
3038 #include <sys/param.h>
3041 #if BYTE_ORDER != BIG_ENDIAN
3046 if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3048 ac_cv_c_bigendian=yes
3050 echo "configure: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3053 ac_cv_c_bigendian=no
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3061 if test $ac_cv_c_bigendian = unknown; then
3062 if test "$cross_compiling" = yes; then
3063 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3069 /* Are we little or big endian? From Harbison&Steele. */
3073 char c[sizeof (long)];
3076 exit (u.c[sizeof (long) - 1] == 1);
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3081 ac_cv_c_bigendian=no
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 ac_cv_c_bigendian=yes
3094 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3095 if test $ac_cv_c_bigendian = yes; then
3096 cat >> confdefs.h <<\EOF
3097 #define WORDS_BIGENDIAN 1
3103 # Check whether --with-words or --without-words was given.
3104 if test "${with_words+set}" = set; then
3105 withval="$with_words"
3111 ac_cv_c_bigendian=yes
3114 ac_cv_c_bigendian=no
3117 ac_cv_c_bigendian=unknown
3118 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
3119 echo "configure:3120: checking what the byte order looks to be" >&5
3120 cat >conftest.c <<EOF
3121 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
3122 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
3123 void _a(void) { char*s = (char*)am; s = (char *)ai; }
3124 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
3125 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
3126 void _e(void) { char*s = (char*)em; s = (char*)ei; }
3127 int main(void) { _a(); _e(); return 0; }
3130 if test -f conftest.c
3132 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
3133 && test -f conftest.o
3135 if test `grep -l BIGenDianSyS conftest.o`
3137 echo "$ac_t"""big endian"" 1>&6
3138 ac_cv_c_bigendian=yes
3140 if test `grep -l LiTTleEnDian conftest.o`
3142 echo "$ac_t"""little endian"" 1>&6
3143 ac_cv_c_bigendian=no
3147 if test $ac_cv_c_bigendian = xunknown
3149 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
3151 if test $ac_cv_c_bigendian = yes
3153 cat >> confdefs.h <<\EOF
3154 #define WORDS_BIGENDIAN 1
3161 for ac_func in gettimeofday select strerror strtod strtol
3163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_func" >&5
3165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 /* System header to define __stub macros and hopefully few prototypes,
3172 which can conflict with char $ac_func(); below. */
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3181 /* The GNU C library defines this for functions which it implements
3182 to always fail with ENOSYS. Some functions are actually named
3183 something starting with __ and the normal name is an alias. */
3184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3192 if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3194 eval "ac_cv_func_$ac_func=yes"
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3199 eval "ac_cv_func_$ac_func=no"
3204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3207 cat >> confdefs.h <<EOF
3208 #define $ac_tr_func 1
3212 echo "$ac_t""no" 1>&6
3216 for ac_func in setenv putenv
3218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_func" >&5
3220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 /* System header to define __stub macros and hopefully few prototypes,
3227 which can conflict with char $ac_func(); below. */
3229 /* Override any gcc2 internal prototype to avoid an error. */
3230 /* We use char because int might match the return type of a gcc2
3231 builtin and then its argument prototype would still apply. */
3236 /* The GNU C library defines this for functions which it implements
3237 to always fail with ENOSYS. Some functions are actually named
3238 something starting with __ and the normal name is an alias. */
3239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3247 if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 eval "ac_cv_func_$ac_func=yes"
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3254 eval "ac_cv_func_$ac_func=no"
3259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3260 echo "$ac_t""yes" 1>&6
3261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3262 cat >> confdefs.h <<EOF
3263 #define $ac_tr_func 1
3267 echo "$ac_t""no" 1>&6
3271 echo $ac_n "checking for connect""... $ac_c" 1>&6
3272 echo "configure:3273: checking for connect" >&5
3273 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 /* System header to define __stub macros and hopefully few prototypes,
3280 which can conflict with char connect(); below. */
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3289 /* The GNU C library defines this for functions which it implements
3290 to always fail with ENOSYS. Some functions are actually named
3291 something starting with __ and the normal name is an alias. */
3292 #if defined (__stub_connect) || defined (__stub___connect)
3300 if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3302 eval "ac_cv_func_connect=yes"
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 eval "ac_cv_func_connect=no"
3312 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3313 echo "$ac_t""yes" 1>&6
3316 echo "$ac_t""no" 1>&6
3318 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3319 echo "configure:3320: checking for connect in -lsocket" >&5
3320 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 ac_save_LIBS="$LIBS"
3325 LIBS="-lsocket $LIBS"
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 /* Override any gcc2 internal prototype to avoid an error. */
3330 /* We use char because int might match the return type of a gcc2
3331 builtin and then its argument prototype would still apply. */
3338 if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3340 eval "ac_cv_lib_$ac_lib_var=yes"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3345 eval "ac_cv_lib_$ac_lib_var=no"
3348 LIBS="$ac_save_LIBS"
3351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 LIB="${LIB} -lsocket"
3355 echo "$ac_t""no" 1>&6
3361 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3362 echo "configure:3363: checking for gethostbyname" >&5
3363 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* System header to define __stub macros and hopefully few prototypes,
3370 which can conflict with char gethostbyname(); below. */
3372 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3375 char gethostbyname();
3379 /* The GNU C library defines this for functions which it implements
3380 to always fail with ENOSYS. Some functions are actually named
3381 something starting with __ and the normal name is an alias. */
3382 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3392 eval "ac_cv_func_gethostbyname=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 eval "ac_cv_func_gethostbyname=no"
3402 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3406 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3409 echo "configure:3410: checking for gethostbyname in -lnsl" >&5
3410 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_save_LIBS="$LIBS"
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3422 char gethostbyname();
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 eval "ac_cv_lib_$ac_lib_var=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3435 eval "ac_cv_lib_$ac_lib_var=no"
3438 LIBS="$ac_save_LIBS"
3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3445 echo "$ac_t""no" 1>&6
3451 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3452 echo "configure:3453: checking for nanosleep" >&5
3453 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 /* System header to define __stub macros and hopefully few prototypes,
3460 which can conflict with char nanosleep(); below. */
3462 /* Override any gcc2 internal prototype to avoid an error. */
3463 /* We use char because int might match the return type of a gcc2
3464 builtin and then its argument prototype would still apply. */
3469 /* The GNU C library defines this for functions which it implements
3470 to always fail with ENOSYS. Some functions are actually named
3471 something starting with __ and the normal name is an alias. */
3472 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
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_func_nanosleep=yes"
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3487 eval "ac_cv_func_nanosleep=no"
3492 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3496 echo "$ac_t""no" 1>&6
3498 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3499 echo "configure:3500: checking for nanosleep in -lrt" >&5
3500 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3525 eval "ac_cv_lib_$ac_lib_var=no"
3528 LIBS="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3535 echo "$ac_t""no" 1>&6
3537 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3538 echo "configure:3539: checking for nanosleep in -lposix4" >&5
3539 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 ac_save_LIBS="$LIBS"
3544 LIBS="-lposix4 $LIBS"
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 /* Override any gcc2 internal prototype to avoid an error. */
3549 /* We use char because int might match the return type of a gcc2
3550 builtin and then its argument prototype would still apply. */
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3559 eval "ac_cv_lib_$ac_lib_var=yes"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 eval "ac_cv_lib_$ac_lib_var=no"
3567 LIBS="$ac_save_LIBS"
3570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3571 echo "$ac_t""yes" 1>&6
3572 LIB="${LIB} -lposix4"
3574 echo "$ac_t""no" 1>&6
3583 for ac_func in usleep
3585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3586 echo "configure:3587: checking for $ac_func" >&5
3587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 /* System header to define __stub macros and hopefully few prototypes,
3594 which can conflict with char $ac_func(); below. */
3596 /* Override any gcc2 internal prototype to avoid an error. */
3597 /* We use char because int might match the return type of a gcc2
3598 builtin and then its argument prototype would still apply. */
3603 /* The GNU C library defines this for functions which it implements
3604 to always fail with ENOSYS. Some functions are actually named
3605 something starting with __ and the normal name is an alias. */
3606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3614 if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3616 eval "ac_cv_func_$ac_func=yes"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 eval "ac_cv_func_$ac_func=no"
3626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3629 cat >> confdefs.h <<EOF
3630 #define $ac_tr_func 1
3634 echo "$ac_t""no" 1>&6
3638 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3639 echo "configure:3640: checking for inet_aton" >&5
3640 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 /* System header to define __stub macros and hopefully few prototypes,
3647 which can conflict with char inet_aton(); below. */
3649 /* Override any gcc2 internal prototype to avoid an error. */
3650 /* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
3656 /* The GNU C library defines this for functions which it implements
3657 to always fail with ENOSYS. Some functions are actually named
3658 something starting with __ and the normal name is an alias. */
3659 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3669 eval "ac_cv_func_inet_aton=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_func_inet_aton=no"
3679 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3683 echo "$ac_t""no" 1>&6
3685 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3686 echo "configure:3687: checking for inet_aton in -lresolv" >&5
3687 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 ac_save_LIBS="$LIBS"
3692 LIBS="-lresolv $LIBS"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3707 eval "ac_cv_lib_$ac_lib_var=yes"
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3712 eval "ac_cv_lib_$ac_lib_var=no"
3715 LIBS="$ac_save_LIBS"
3718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 LIB="${LIB} -lresolv"
3722 echo "$ac_t""no" 1>&6
3728 for ac_func in vasprintf
3730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3731 echo "configure:3732: checking for $ac_func" >&5
3732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 /* System header to define __stub macros and hopefully few prototypes,
3739 which can conflict with char $ac_func(); below. */
3741 /* Override any gcc2 internal prototype to avoid an error. */
3742 /* We use char because int might match the return type of a gcc2
3743 builtin and then its argument prototype would still apply. */
3748 /* The GNU C library defines this for functions which it implements
3749 to always fail with ENOSYS. Some functions are actually named
3750 something starting with __ and the normal name is an alias. */
3751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3759 if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3761 eval "ac_cv_func_$ac_func=yes"
3763 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3766 eval "ac_cv_func_$ac_func=no"
3771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3772 echo "$ac_t""yes" 1>&6
3773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3774 cat >> confdefs.h <<EOF
3775 #define $ac_tr_func 1
3779 echo "$ac_t""no" 1>&6
3785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3786 echo "configure:3787: checking for $ac_func" >&5
3787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* System header to define __stub macros and hopefully few prototypes,
3794 which can conflict with char $ac_func(); below. */
3796 /* Override any gcc2 internal prototype to avoid an error. */
3797 /* We use char because int might match the return type of a gcc2
3798 builtin and then its argument prototype would still apply. */
3803 /* The GNU C library defines this for functions which it implements
3804 to always fail with ENOSYS. Some functions are actually named
3805 something starting with __ and the normal name is an alias. */
3806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3816 eval "ac_cv_func_$ac_func=yes"
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 eval "ac_cv_func_$ac_func=no"
3826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3829 cat >> confdefs.h <<EOF
3830 #define $ac_tr_func 1
3834 echo "$ac_t""no" 1>&6
3838 for ac_func in memalign valloc
3840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3841 echo "configure:3842: checking for $ac_func" >&5
3842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 /* System header to define __stub macros and hopefully few prototypes,
3849 which can conflict with char $ac_func(); below. */
3851 /* Override any gcc2 internal prototype to avoid an error. */
3852 /* We use char because int might match the return type of a gcc2
3853 builtin and then its argument prototype would still apply. */
3858 /* The GNU C library defines this for functions which it implements
3859 to always fail with ENOSYS. Some functions are actually named
3860 something starting with __ and the normal name is an alias. */
3861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3871 eval "ac_cv_func_$ac_func=yes"
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3876 eval "ac_cv_func_$ac_func=no"
3881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3884 cat >> confdefs.h <<EOF
3885 #define $ac_tr_func 1
3889 echo "$ac_t""no" 1>&6
3894 for ac_func in sigrelse
3896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3897 echo "configure:3898: checking for $ac_func" >&5
3898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 /* System header to define __stub macros and hopefully few prototypes,
3905 which can conflict with char $ac_func(); below. */
3907 /* Override any gcc2 internal prototype to avoid an error. */
3908 /* We use char because int might match the return type of a gcc2
3909 builtin and then its argument prototype would still apply. */
3914 /* The GNU C library defines this for functions which it implements
3915 to always fail with ENOSYS. Some functions are actually named
3916 something starting with __ and the normal name is an alias. */
3917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3925 if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927 eval "ac_cv_func_$ac_func=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_func_$ac_func=no"
3937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3940 cat >> confdefs.h <<EOF
3941 #define $ac_tr_func 1
3945 echo "$ac_t""no" 1>&6
3951 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3952 echo "configure:3953: checking for getopt_long" >&5
3953 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* System header to define __stub macros and hopefully few prototypes,
3960 which can conflict with char getopt_long(); below. */
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3969 /* The GNU C library defines this for functions which it implements
3970 to always fail with ENOSYS. Some functions are actually named
3971 something starting with __ and the normal name is an alias. */
3972 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3980 if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3982 eval "ac_cv_func_getopt_long=yes"
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3987 eval "ac_cv_func_getopt_long=no"
3992 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_GETOPT_LONG 1
3999 echo "$ac_t""no" 1>&6
4000 # FreeBSD has a gnugetopt library for this:
4001 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4002 echo "configure:4003: checking for getopt_long in -lgnugetopt" >&5
4003 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 ac_save_LIBS="$LIBS"
4008 LIBS="-lgnugetopt $LIBS"
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4012 /* Override any gcc2 internal prototype to avoid an error. */
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 eval "ac_cv_lib_$ac_lib_var=yes"
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 eval "ac_cv_lib_$ac_lib_var=no"
4031 LIBS="$ac_save_LIBS"
4034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_GETOPT_LONG 1
4039 LIB="${LIB} -lgnugetopt"
4041 echo "$ac_t""no" 1>&6
4048 for ac_hdr in unistd.h
4050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_hdr" >&5
4053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062 { (eval echo configure:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064 if test -z "$ac_err"; then
4066 eval "ac_cv_header_$ac_safe=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4072 eval "ac_cv_header_$ac_safe=no"
4076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4079 cat >> confdefs.h <<EOF
4080 #define $ac_tr_hdr 1
4084 echo "$ac_t""no" 1>&6
4088 for ac_func in getpagesize
4090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_func" >&5
4092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* System header to define __stub macros and hopefully few prototypes,
4099 which can conflict with char $ac_func(); below. */
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4108 /* The GNU C library defines this for functions which it implements
4109 to always fail with ENOSYS. Some functions are actually named
4110 something starting with __ and the normal name is an alias. */
4111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4121 eval "ac_cv_func_$ac_func=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4126 eval "ac_cv_func_$ac_func=no"
4131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4134 cat >> confdefs.h <<EOF
4135 #define $ac_tr_func 1
4139 echo "$ac_t""no" 1>&6
4143 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4144 echo "configure:4145: checking for working mmap" >&5
4145 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4148 if test "$cross_compiling" = yes; then
4149 ac_cv_func_mmap_fixed_mapped=no
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4155 /* Thanks to Mike Haertel and Jim Avera for this test.
4156 Here is a matrix of mmap possibilities:
4157 mmap private not fixed
4158 mmap private fixed at somewhere currently unmapped
4159 mmap private fixed at somewhere already mapped
4160 mmap shared not fixed
4161 mmap shared fixed at somewhere currently unmapped
4162 mmap shared fixed at somewhere already mapped
4163 For private mappings, we should verify that changes cannot be read()
4164 back from the file, nor mmap's back from the file at a different
4165 address. (There have been systems where private was not correctly
4166 implemented like the infamous i386 svr4.0, and systems where the
4167 VM page cache was not coherent with the filesystem buffer cache
4168 like early versions of FreeBSD and possibly contemporary NetBSD.)
4169 For shared mappings, we should conversely verify that changes get
4170 propogated back to all the places they're supposed to be.
4172 Grep wants private fixed already mapped.
4173 The main things grep needs to know about mmap are:
4174 * does it exist and is it safe to write into the mmap'd area
4175 * how to use it (BSD variants) */
4176 #include <sys/types.h>
4178 #include <sys/mman.h>
4180 /* This mess was copied from the GNU getpagesize.h. */
4181 #ifndef HAVE_GETPAGESIZE
4182 # ifdef HAVE_UNISTD_H
4183 # include <unistd.h>
4186 /* Assume that all systems that can run configure have sys/param.h. */
4187 # ifndef HAVE_SYS_PARAM_H
4188 # define HAVE_SYS_PARAM_H 1
4191 # ifdef _SC_PAGESIZE
4192 # define getpagesize() sysconf(_SC_PAGESIZE)
4193 # else /* no _SC_PAGESIZE */
4194 # ifdef HAVE_SYS_PARAM_H
4195 # include <sys/param.h>
4196 # ifdef EXEC_PAGESIZE
4197 # define getpagesize() EXEC_PAGESIZE
4198 # else /* no EXEC_PAGESIZE */
4200 # define getpagesize() NBPG * CLSIZE
4203 # endif /* no CLSIZE */
4204 # else /* no NBPG */
4206 # define getpagesize() NBPC
4207 # else /* no NBPC */
4209 # define getpagesize() PAGESIZE
4210 # endif /* PAGESIZE */
4211 # endif /* no NBPC */
4212 # endif /* no NBPG */
4213 # endif /* no EXEC_PAGESIZE */
4214 # else /* no HAVE_SYS_PARAM_H */
4215 # define getpagesize() 8192 /* punt totally */
4216 # endif /* no HAVE_SYS_PARAM_H */
4217 # endif /* no _SC_PAGESIZE */
4219 #endif /* no HAVE_GETPAGESIZE */
4222 extern "C" { void *malloc(unsigned); }
4230 char *data, *data2, *data3;
4234 pagesize = getpagesize();
4237 * First, make a file with some known garbage in it.
4239 data = malloc(pagesize);
4242 for (i = 0; i < pagesize; ++i)
4243 *(data + i) = rand();
4245 fd = creat("conftestmmap", 0600);
4248 if (write(fd, data, pagesize) != pagesize)
4253 * Next, try to mmap the file at a fixed address which
4254 * already has something else allocated at it. If we can,
4255 * also make sure that we see the same garbage.
4257 fd = open("conftestmmap", O_RDWR);
4260 data2 = malloc(2 * pagesize);
4263 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4264 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4265 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4267 for (i = 0; i < pagesize; ++i)
4268 if (*(data + i) != *(data2 + i))
4272 * Finally, make sure that changes to the mapped area
4273 * do not percolate back to the file as seen by read().
4274 * (This is a bug on some variants of i386 svr4.0.)
4276 for (i = 0; i < pagesize; ++i)
4277 *(data2 + i) = *(data2 + i) + 1;
4278 data3 = malloc(pagesize);
4281 if (read(fd, data3, pagesize) != pagesize)
4283 for (i = 0; i < pagesize; ++i)
4284 if (*(data + i) != *(data3 + i))
4287 unlink("conftestmmap");
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4294 ac_cv_func_mmap_fixed_mapped=yes
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 ac_cv_func_mmap_fixed_mapped=no
4306 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4307 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4308 cat >> confdefs.h <<\EOF
4314 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4315 echo "configure:4316: checking return type of signal handlers" >&5
4316 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 #include <sys/types.h>
4328 extern "C" void (*signal (int, void (*)(int)))(int);
4330 void (*signal ()) ();
4337 if { (eval echo configure:4338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4339 ac_cv_type_signal=void
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 ac_cv_type_signal=int
4349 echo "$ac_t""$ac_cv_type_signal" 1>&6
4350 cat >> confdefs.h <<EOF
4351 #define RETSIGTYPE $ac_cv_type_signal
4355 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4356 echo "configure:4357: checking for dlopen in -ldl" >&5
4357 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 ac_save_LIBS="$LIBS"
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* Override any gcc2 internal prototype to avoid an error. */
4367 /* We use char because int might match the return type of a gcc2
4368 builtin and then its argument prototype would still apply. */
4375 if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4377 eval "ac_cv_lib_$ac_lib_var=yes"
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 eval "ac_cv_lib_$ac_lib_var=no"
4385 LIBS="$ac_save_LIBS"
4388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4392 echo "$ac_t""no" 1>&6
4395 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4396 echo "configure:4397: checking for cos in -lm" >&5
4397 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 ac_save_LIBS="$LIBS"
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4417 eval "ac_cv_lib_$ac_lib_var=yes"
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4422 eval "ac_cv_lib_$ac_lib_var=no"
4425 LIBS="$ac_save_LIBS"
4428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 LIB_IMDCT="${LIB_IMDCT} -lm"
4432 echo "$ac_t""no" 1>&6
4435 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4436 echo "configure:4437: checking for pow in -lm" >&5
4437 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 ac_save_LIBS="$LIBS"
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4457 eval "ac_cv_lib_$ac_lib_var=yes"
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 eval "ac_cv_lib_$ac_lib_var=no"
4465 LIBS="$ac_save_LIBS"
4468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 LIB_IMDCT="${LIB_IMDCT} -lm"
4471 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4472 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4475 echo "$ac_t""no" 1>&6
4480 if test "x${THREAD_LIB}" = xerror; then
4481 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4482 echo "configure:4483: checking for pthread_attr_init in -lpthread" >&5
4483 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 ac_save_LIBS="$LIBS"
4488 LIBS="-lpthread $LIBS"
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 /* Override any gcc2 internal prototype to avoid an error. */
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4495 char pthread_attr_init();
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4503 eval "ac_cv_lib_$ac_lib_var=yes"
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4508 eval "ac_cv_lib_$ac_lib_var=no"
4511 LIBS="$ac_save_LIBS"
4514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4516 THREAD_LIB="-lpthread"
4518 echo "$ac_t""no" 1>&6
4522 if test "x${THREAD_LIB}" = xerror; then
4523 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4524 echo "configure:4525: checking for pthread_attr_init in -lpthreads" >&5
4525 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 ac_save_LIBS="$LIBS"
4530 LIBS="-lpthreads $LIBS"
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 /* Override any gcc2 internal prototype to avoid an error. */
4535 /* We use char because int might match the return type of a gcc2
4536 builtin and then its argument prototype would still apply. */
4537 char pthread_attr_init();
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4545 eval "ac_cv_lib_$ac_lib_var=yes"
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4550 eval "ac_cv_lib_$ac_lib_var=no"
4553 LIBS="$ac_save_LIBS"
4556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 THREAD_LIB="-lpthreads"
4560 echo "$ac_t""no" 1>&6
4564 if test "x${THREAD_LIB}" = xerror; then
4565 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4566 echo "configure:4567: checking for pthread_attr_init in -lc_r" >&5
4567 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 ac_save_LIBS="$LIBS"
4573 cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 /* Override any gcc2 internal prototype to avoid an error. */
4577 /* We use char because int might match the return type of a gcc2
4578 builtin and then its argument prototype would still apply. */
4579 char pthread_attr_init();
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 eval "ac_cv_lib_$ac_lib_var=yes"
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 eval "ac_cv_lib_$ac_lib_var=no"
4595 LIBS="$ac_save_LIBS"
4598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4602 echo "$ac_t""no" 1>&6
4606 if test "x${THREAD_LIB}" = xerror; then
4607 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4608 echo "configure:4609: checking for pthread_attr_init" >&5
4609 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 /* System header to define __stub macros and hopefully few prototypes,
4616 which can conflict with char pthread_attr_init(); below. */
4618 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4621 char pthread_attr_init();
4625 /* The GNU C library defines this for functions which it implements
4626 to always fail with ENOSYS. Some functions are actually named
4627 something starting with __ and the normal name is an alias. */
4628 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4631 pthread_attr_init();
4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 eval "ac_cv_func_pthread_attr_init=yes"
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4643 eval "ac_cv_func_pthread_attr_init=no"
4648 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4652 echo "$ac_t""no" 1>&6
4658 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4659 echo "configure:4660: checking for cthread_fork in -lthreads" >&5
4660 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 ac_save_LIBS="$LIBS"
4665 LIBS="-lthreads $LIBS"
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4669 /* Override any gcc2 internal prototype to avoid an error. */
4670 /* We use char because int might match the return type of a gcc2
4671 builtin and then its argument prototype would still apply. */
4672 char cthread_fork();
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4680 eval "ac_cv_lib_$ac_lib_var=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 eval "ac_cv_lib_$ac_lib_var=no"
4688 LIBS="$ac_save_LIBS"
4691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4692 echo "$ac_t""yes" 1>&6
4693 THREAD_LIB="-lthreads"
4695 echo "$ac_t""no" 1>&6
4699 cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 #include <pthread.h>
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705 egrep "pthread_cond_t" >/dev/null 2>&1; then
4708 cat >> confdefs.h <<\EOF
4709 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 #include <strings.h>
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 egrep "strncasecmp" >/dev/null 2>&1; then
4724 cat >> confdefs.h <<\EOF
4725 #define STRNCASECMP_IN_STRINGS_H 1
4732 for ac_hdr in stddef.h getopt.h strings.h
4734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_hdr" >&5
4737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4746 { (eval echo configure:4747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4748 if test -z "$ac_err"; then
4750 eval "ac_cv_header_$ac_safe=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 eval "ac_cv_header_$ac_safe=no"
4760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4763 cat >> confdefs.h <<EOF
4764 #define $ac_tr_hdr 1
4768 echo "$ac_t""no" 1>&6
4772 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_hdr" >&5
4777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4786 { (eval echo configure:4787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4788 if test -z "$ac_err"; then
4790 eval "ac_cv_header_$ac_safe=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_header_$ac_safe=no"
4800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_hdr 1
4808 echo "$ac_t""no" 1>&6
4812 for ac_hdr in sys/soundcard.h machine/soundcard.h
4814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4816 echo "configure:4817: checking for $ac_hdr" >&5
4817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4826 { (eval echo configure:4827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4828 if test -z "$ac_err"; then
4830 eval "ac_cv_header_$ac_safe=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 eval "ac_cv_header_$ac_safe=no"
4840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4843 cat >> confdefs.h <<EOF
4844 #define $ac_tr_hdr 1
4848 echo "$ac_t""no" 1>&6
4852 for ac_hdr in dlfcn.h image.h
4854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4856 echo "configure:4857: checking for $ac_hdr" >&5
4857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4866 { (eval echo configure:4867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4868 if test -z "$ac_err"; then
4870 eval "ac_cv_header_$ac_safe=yes"
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 eval "ac_cv_header_$ac_safe=no"
4880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4881 echo "$ac_t""yes" 1>&6
4882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4883 cat >> confdefs.h <<EOF
4884 #define $ac_tr_hdr 1
4888 echo "$ac_t""no" 1>&6
4892 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4896 echo "configure:4897: checking for $ac_hdr" >&5
4897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4906 { (eval echo configure:4907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4908 if test -z "$ac_err"; then
4910 eval "ac_cv_header_$ac_safe=yes"
4913 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4916 eval "ac_cv_header_$ac_safe=no"
4920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4923 cat >> confdefs.h <<EOF
4924 #define $ac_tr_hdr 1
4928 echo "$ac_t""no" 1>&6
4932 for ac_hdr in machine/param.h
4934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_hdr" >&5
4937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4946 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4948 if test -z "$ac_err"; then
4950 eval "ac_cv_header_$ac_safe=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_header_$ac_safe=no"
4960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_hdr 1
4968 echo "$ac_t""no" 1>&6
4973 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4977 echo "configure:4978: checking for $ac_hdr" >&5
4978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 cat > conftest.$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4987 { (eval echo configure:4988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4989 if test -z "$ac_err"; then
4991 eval "ac_cv_header_$ac_safe=yes"
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4997 eval "ac_cv_header_$ac_safe=no"
5001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5004 cat >> confdefs.h <<EOF
5005 #define $ac_tr_hdr 1
5009 echo "$ac_t""no" 1>&6
5014 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5015 echo "configure:5016: checking for ntohl in sys/param.h" >&5
5016 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 CFLAGS="${save_CFLAGS} -Wall -Werror"
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 #include <sys/param.h>
5025 void foo() { int meuh; ntohl(meuh); }
5028 if { (eval echo configure:5029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5030 ac_cv_c_ntohl_sys_param_h=yes
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5035 ac_cv_c_ntohl_sys_param_h=no
5040 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5041 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5042 cat >> confdefs.h <<\EOF
5043 #define NTOHL_IN_SYS_PARAM_H 1
5048 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5049 echo "configure:5050: checking if \$CC accepts -finline-limit" >&5
5050 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5054 cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5062 if { (eval echo configure:5063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5064 ac_cv_c_inline_limit=yes
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5069 ac_cv_c_inline_limit=no
5074 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5075 if test x"$ac_cv_c_inline_limit" != x"no"; then
5076 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5079 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
5080 echo "configure:5081: checking if \$CC accepts -bundle -undefined error" >&5
5081 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 CFLAGS="${save_CFLAGS} -bundle -undefined error"
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5093 if { (eval echo configure:5094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5105 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5106 if test x"$ac_cv_ld_darwin" != x"no"; then
5107 PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
5110 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5111 echo "configure:5112: checking if \$CC accepts -shared" >&5
5112 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 CFLAGS="${save_CFLAGS} -shared"
5116 cat > conftest.$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5124 if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5126 ac_cv_ld_plugins=yes
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5136 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5137 if test x"$ac_cv_ld_plugins" != x"no"; then
5138 PLCFLAGS="${PLCFLAGS} -shared"
5141 if test x"${SOFLAGS}" = x; then
5142 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5143 echo "configure:5144: checking for soname setting" >&5
5144 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5149 try_SOFLAGS="-Wl,-soname -Wl,"
5150 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 ac_cv_ld_soname="${try_SOFLAGS}"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5168 try_SOFLAGS="-Wl,-h -Wl,"
5169 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 ac_cv_ld_soname="${try_SOFLAGS}"
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 ac_cv_ld_soname=none
5193 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5194 if test x"$ac_cv_ld_soname" != x"none"; then
5195 SOFLAGS=$ac_cv_ld_soname
5199 Your system doesn't seem to have support for dynamic linking. You may
5200 have problems using libdvdcss.
5206 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5207 echo "configure:5208: checking __attribute__ ((aligned ())) support" >&5
5208 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 ac_cv_c_attribute_aligned=0
5212 CFLAGS="${save_CFLAGS} -Werror"
5213 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5219 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5222 if { (eval echo configure:5223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5224 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5233 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5234 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5235 cat >> confdefs.h <<EOF
5236 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5241 CFLAGS="${save_CFLAGS}"
5242 LDFLAGS="${save_LDFLAGS}"
5244 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5245 echo "configure:5246: checking for boolean_t in sys/types.h" >&5
5246 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5252 #include <sys/types.h>
5257 if { (eval echo configure:5258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5259 ac_cv_c_boolean_t_sys_types_h=yes
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 ac_cv_c_boolean_t_sys_types_h=no
5269 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5270 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5271 cat >> confdefs.h <<\EOF
5272 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5277 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5278 echo "configure:5279: checking for boolean_t in pthread.h" >&5
5279 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 #include <pthread.h>
5290 if { (eval echo configure:5291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5292 ac_cv_c_boolean_t_pthread_h=yes
5294 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5297 ac_cv_c_boolean_t_pthread_h=no
5302 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5303 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5304 cat >> confdefs.h <<\EOF
5305 #define BOOLEAN_T_IN_PTHREAD_H 1
5310 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5311 echo "configure:5312: checking for boolean_t in cthreads.h" >&5
5312 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 #include <cthreads.h>
5323 if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5325 ac_cv_c_boolean_t_cthreads_h=yes
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 ac_cv_c_boolean_t_cthreads_h=no
5335 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5336 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5337 cat >> confdefs.h <<\EOF
5338 #define BOOLEAN_T_IN_CTHREADS_H 1
5343 echo $ac_n "checking for working const""... $ac_c" 1>&6
5344 echo "configure:5345: checking for working const" >&5
5345 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5354 /* Ultrix mips cc rejects this. */
5355 typedef int charset[2]; const charset x;
5356 /* SunOS 4.1.1 cc rejects this. */
5357 char const *const *ccp;
5359 /* NEC SVR4.0.2 mips cc rejects this. */
5360 struct point {int x, y;};
5361 static struct point const zero = {0,0};
5362 /* AIX XL C 1.02.0.0 rejects this.
5363 It does not let you subtract one const X* pointer from another in an arm
5364 of an if-expression whose if-part is not a constant expression */
5365 const char *g = "string";
5366 ccp = &g + (g ? g-g : 0);
5367 /* HPUX 7.0 cc rejects these. */
5370 ccp = (char const *const *) p;
5371 { /* SCO 3.2v4 cc rejects this. */
5373 char const *s = 0 ? (char *) 0 : (char const *) 0;
5377 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5379 const int *foo = &x[0];
5382 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5383 typedef const int *iptr;
5387 { /* AIX XL C 1.02.0.0 rejects this saying
5388 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5389 struct s { int j; const int *ap[3]; };
5390 struct s *b; b->j = 5;
5392 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5398 if { (eval echo configure:5399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5410 echo "$ac_t""$ac_cv_c_const" 1>&6
5411 if test $ac_cv_c_const = no; then
5412 cat >> confdefs.h <<\EOF
5418 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5419 echo "configure:5420: checking for size_t" >&5
5420 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 #include <sys/types.h>
5432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5435 ac_cv_type_size_t=yes
5438 ac_cv_type_size_t=no
5443 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5444 if test $ac_cv_type_size_t = no; then
5445 cat >> confdefs.h <<\EOF
5446 #define size_t unsigned
5451 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5452 echo "configure:5453: checking whether time.h and sys/time.h may both be included" >&5
5453 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5459 #include <sys/types.h>
5460 #include <sys/time.h>
5466 if { (eval echo configure:5467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5468 ac_cv_header_time=yes
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 ac_cv_header_time=no
5478 echo "$ac_t""$ac_cv_header_time" 1>&6
5479 if test $ac_cv_header_time = yes; then
5480 cat >> confdefs.h <<\EOF
5481 #define TIME_WITH_SYS_TIME 1
5490 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
5491 PLUGINS="${PLUGINS} ac3_spdif spudec chroma_yv12_rgb8 filter_bob filter_invert filter_wall"
5493 MMX_MODULES="memcpymmx idctmmx motionmmx"
5494 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5495 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5496 SSE_MODULES="imdctsse downmixsse"
5497 ALTIVEC_MODULES="idctaltivec motionaltivec"
5499 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5500 echo "configure:5501: checking if \$CC groks MMX inline assembly" >&5
5501 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5509 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5512 if { (eval echo configure:5513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5514 ac_cv_mmx_inline=yes
5516 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5524 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5525 if test x"$ac_cv_mmx_inline" != x"no"; then
5526 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5529 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5530 echo "configure:5531: checking if \$CC groks MMX EXT inline assembly" >&5
5531 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5539 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5542 if { (eval echo configure:5543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5544 ac_cv_mmxext_inline=yes
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 ac_cv_mmxext_inline=no
5554 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5555 if test x"$ac_cv_mmxext_inline" != x"no"; then
5556 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5559 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5560 echo "configure:5561: checking if \$CC groks 3D Now! inline assembly" >&5
5561 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5569 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5572 if { (eval echo configure:5573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5574 ac_cv_3dnow_inline=yes
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5579 ac_cv_3dnow_inline=no
5584 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5585 if test x"$ac_cv_3dnow_inline" != x"no"; then
5586 cat >> confdefs.h <<\EOF
5587 #define CAN_COMPILE_3DNOW 1
5590 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5593 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5594 echo "configure:5595: checking if \$CC groks SSE inline assembly" >&5
5595 if eval "test \"`echo '$''{'ac_cv_sse_inline'+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"
5603 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5606 if { (eval echo configure:5607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5608 ac_cv_sse_inline=yes
5610 echo "configure: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5618 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5619 if test x"$ac_cv_sse_inline" != x"no"; then
5620 cat >> confdefs.h <<\EOF
5621 #define CAN_COMPILE_SSE 1
5624 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5627 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5628 echo "configure:5629: checking if \$CC groks Altivec inline assembly" >&5
5629 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5637 asm volatile("vperm 0,1,2,3");
5640 if { (eval echo configure:5641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5642 ac_cv_altivec_inline=yes
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5648 CFLAGS="$CFLAGS -Wa,-m7400"
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5654 asm volatile("vperm 0,1,2,3");
5657 if { (eval echo configure:5658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5659 ac_cv_altivec_inline="-Wa,-m7400"
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 ac_cv_altivec_inline=no
5673 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5674 if test x"$ac_cv_altivec_inline" != x"no"; then
5675 cat >> confdefs.h <<\EOF
5676 #define CAN_COMPILE_ALTIVEC 1
5679 if test x"$ac_cv_altivec_inline" != x"yes"; then
5680 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_altivec_inline"
5682 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5685 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5686 echo "configure:5687: checking if \$CC groks Altivec C extensions" >&5
5687 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5691 CFLAGS="$CFLAGS -faltivec"
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5698 vec_mtvscr((vector unsigned int)(0));
5701 if { (eval echo configure:5702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5703 ac_cv_c_altivec=-faltivec
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5710 CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5716 vec_mtvscr((vector unsigned int)(0));
5719 if { (eval echo configure:5720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5721 ac_cv_c_altivec="-fvec"
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5736 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5737 if test x"$ac_cv_c_altivec" != x"no"; then
5738 cat >> confdefs.h <<\EOF
5739 #define CAN_COMPILE_C_ALTIVEC 1
5742 CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
5743 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5746 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5747 echo "configure:5748: checking if linker needs -framework vecLib" >&5
5748 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 save_LDFLAGS=$LDFLAGS
5752 LDFLAGS="$LDFLAGS -framework vecLib"
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 ac_cv_ld_altivec=yes
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5771 LDFLAGS=$save_LDFLAGS
5775 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5776 if test x"$ac_cv_ld_altivec" != x"no"; then
5777 LIB_ALTIVEC="-framework vecLib"
5780 case ${target_os} in
5795 LIB_X11="${LIB_X11} -lsocket"
5796 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5803 if test $SYS = mingw32; then
5804 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}windres; ac_word=$2
5806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5807 echo "configure:5808: checking for $ac_word" >&5
5808 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5811 if test -n "$WINDRES"; then
5812 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5816 for ac_dir in $ac_dummy; do
5817 test -z "$ac_dir" && ac_dir=.
5818 if test -f $ac_dir/$ac_word; then
5819 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5826 WINDRES="$ac_cv_prog_WINDRES"
5827 if test -n "$WINDRES"; then
5828 echo "$ac_t""$WINDRES" 1>&6
5830 echo "$ac_t""no" 1>&6
5834 if test -z "$ac_cv_prog_WINDRES"; then
5835 if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "windres", so it can be a program name with args.
5837 set dummy windres; ac_word=$2
5838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5839 echo "configure:5840: checking for $ac_word" >&5
5840 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5843 if test -n "$WINDRES"; then
5844 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5848 for ac_dir in $ac_dummy; do
5849 test -z "$ac_dir" && ac_dir=.
5850 if test -f $ac_dir/$ac_word; then
5851 ac_cv_prog_WINDRES="windres"
5856 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5859 WINDRES="$ac_cv_prog_WINDRES"
5860 if test -n "$WINDRES"; then
5861 echo "$ac_t""$WINDRES" 1>&6
5863 echo "$ac_t""no" 1>&6
5871 LIB_MPEG_TS="-lws2_32"
5876 CAN_BUILD_LIBDVDCSS=0
5878 for ac_hdr in winioctl.h
5880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_hdr" >&5
5883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5892 { (eval echo configure:5893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5894 if test -z "$ac_err"; then
5896 eval "ac_cv_header_$ac_safe=yes"
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5902 eval "ac_cv_header_$ac_safe=no"
5906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5909 cat >> confdefs.h <<EOF
5910 #define $ac_tr_hdr 1
5913 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5916 echo "$ac_t""no" 1>&6
5921 for ac_hdr in sys/ioctl.h
5923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5925 echo "configure:5926: checking for $ac_hdr" >&5
5926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 cat > conftest.$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5935 { (eval echo configure:5936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5937 if test -z "$ac_err"; then
5939 eval "ac_cv_header_$ac_safe=yes"
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 eval "ac_cv_header_$ac_safe=no"
5949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5950 echo "$ac_t""yes" 1>&6
5951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5952 cat >> confdefs.h <<EOF
5953 #define $ac_tr_hdr 1
5956 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5957 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5961 echo "configure:5962: checking for $ac_hdr" >&5
5962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5963 echo $ac_n "(cached) $ac_c" 1>&6
5965 cat > conftest.$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5971 { (eval echo configure:5972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5973 if test -z "$ac_err"; then
5975 eval "ac_cv_header_$ac_safe=yes"
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 eval "ac_cv_header_$ac_safe=no"
5985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5988 cat >> confdefs.h <<EOF
5989 #define $ac_tr_hdr 1
5993 echo "$ac_t""no" 1>&6
5999 OPENBSD_DVD_STRUCT=0
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 #include <sys/cdio.h>
6005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6006 egrep "dvd_struct" >/dev/null 2>&1; then
6009 cat >> confdefs.h <<\EOF
6010 #define DVD_STRUCT_IN_SYS_CDIO_H 1
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 #include <sys/cdio.h>
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 egrep "struct dvd_struct" >/dev/null 2>&1; then
6025 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 #include <sys/dvdio.h>
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 egrep "dvd_struct" >/dev/null 2>&1; then
6042 cat >> confdefs.h <<\EOF
6043 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
6046 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6049 #include <sys/dvdio.h>
6051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6052 egrep "struct dvd_struct" >/dev/null 2>&1; then
6066 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6069 #include <linux/cdrom.h>
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 egrep "dvd_struct" >/dev/null 2>&1; then
6075 cat >> confdefs.h <<\EOF
6076 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6091 egrep "dvd_struct" >/dev/null 2>&1; then
6094 cat >> confdefs.h <<\EOF
6095 #define DVD_STRUCT_IN_DVD_H 1
6098 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6104 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6108 echo "configure:6109: checking for $ac_hdr" >&5
6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6120 if test -z "$ac_err"; then
6122 eval "ac_cv_header_$ac_safe=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_header_$ac_safe=no"
6132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6133 echo "$ac_t""yes" 1>&6
6134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6135 cat >> confdefs.h <<EOF
6136 #define $ac_tr_hdr 1
6140 cat >> confdefs.h <<\EOF
6141 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6144 OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
6148 echo "$ac_t""no" 1>&6
6156 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6157 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6158 echo "configure:6159: checking for sys/scsi/scsi_types.h" >&5
6159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 #include <sys/scsi/scsi_types.h>
6167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6168 { (eval echo configure:6169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6170 if test -z "$ac_err"; then
6172 eval "ac_cv_header_$ac_safe=yes"
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6178 eval "ac_cv_header_$ac_safe=no"
6182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6183 echo "$ac_t""yes" 1>&6
6185 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6186 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6187 echo "configure:6188: checking for sys/scsi/impl/uscsi.h" >&5
6188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 #include <sys/scsi/impl/uscsi.h>
6196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6197 { (eval echo configure:6198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6199 if test -z "$ac_err"; then
6201 eval "ac_cv_header_$ac_safe=yes"
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6207 eval "ac_cv_header_$ac_safe=no"
6211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6212 echo "$ac_t""yes" 1>&6
6214 cat >> confdefs.h <<\EOF
6215 #define SOLARIS_USCSI 1
6220 echo "$ac_t""no" 1>&6
6225 echo "$ac_t""no" 1>&6
6228 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6229 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6230 echo "configure:6231: checking for sys/scsi.h" >&5
6231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 #include <sys/scsi.h>
6239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6240 { (eval echo configure:6241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6242 if test -z "$ac_err"; then
6244 eval "ac_cv_header_$ac_safe=yes"
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6250 eval "ac_cv_header_$ac_safe=no"
6254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6260 #include <sys/scsi.h>
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 egrep "sctl_io" >/dev/null 2>&1; then
6266 cat >> confdefs.h <<\EOF
6267 #define HPUX_SCTL_IO 1
6276 echo "$ac_t""no" 1>&6
6279 if test x$LINUX_DVD_STRUCT = x1; then
6280 cat >> confdefs.h <<\EOF
6281 #define HAVE_LINUX_DVD_STRUCT 1
6284 if test x$OPENBSD_DVD_STRUCT = x1; then
6285 cat >> confdefs.h <<\EOF
6286 #define HAVE_OPENBSD_DVD_STRUCT 1
6291 if test x$BSD_DVD_STRUCT = x1; then
6292 cat >> confdefs.h <<\EOF
6293 #define HAVE_BSD_DVD_STRUCT 1
6300 echo "$ac_t""no" 1>&6
6306 # Check whether --with-tuning or --without-tuning was given.
6307 if test "${with_tuning+set}" = set; then
6308 withval="$with_tuning"
6312 if test "x$withval" != "x"; then
6315 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6317 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6321 # Check whether --enable-release or --disable-release was given.
6322 if test "${enable_release+set}" = set; then
6323 enableval="$enable_release"
6324 if test x$enableval = xyes; then RELEASE=1; fi
6326 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6327 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6331 # Check whether --enable-mmx or --disable-mmx was given.
6332 if test "${enable_mmx+set}" = set; then
6333 enableval="$enable_mmx"
6334 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
6335 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6337 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386; then ARCH="${ARCH} mmx";
6338 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6342 # Check whether --enable-altivec or --disable-altivec was given.
6343 if test "${enable_altivec+set}" = set; then
6344 enableval="$enable_altivec"
6345 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6346 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6348 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6349 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6354 # Check whether --enable-debug or --disable-debug was given.
6355 if test "${enable_debug+set}" = set; then
6356 enableval="$enable_debug"
6357 if test x$enableval = xyes; then DEBUG=1; fi
6362 # Check whether --enable-trace or --disable-trace was given.
6363 if test "${enable_trace+set}" = set; then
6364 enableval="$enable_trace"
6365 if test x$enableval = xyes; then TRACE=1; fi
6370 # Check whether --enable-gprof or --disable-gprof was given.
6371 if test "${enable_gprof+set}" = set; then
6372 enableval="$enable_gprof"
6373 if test x$enableval = xyes; then GPROF=1; fi
6378 # Check whether --enable-cprof or --disable-cprof was given.
6379 if test "${enable_cprof+set}" = set; then
6380 enableval="$enable_cprof"
6381 if test x$enableval = xyes;
6383 LIB="${LIB} -lcprof"
6390 # Check whether --enable-optimizations or --disable-optimizations was given.
6391 if test "${enable_optimizations+set}" = set; then
6392 enableval="$enable_optimizations"
6393 if test x$enableval = xno; then OPTIMS=0; fi
6399 # Check whether --enable-pth or --disable-pth was given.
6400 if test "${enable_pth+set}" = set; then
6401 enableval="$enable_pth"
6402 if test x$enableval = xyes; then
6403 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6404 echo "configure:6405: checking for pth_init in -lpth" >&5
6405 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
6406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6409 ac_save_LIBS="$LIBS"
6411 cat > conftest.$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6414 /* Override any gcc2 internal prototype to avoid an error. */
6415 /* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6423 if { (eval echo configure:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6425 eval "ac_cv_lib_$ac_lib_var=yes"
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6430 eval "ac_cv_lib_$ac_lib_var=no"
6433 LIBS="$ac_save_LIBS"
6436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6437 echo "$ac_t""yes" 1>&6
6438 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6440 cat >> confdefs.h <<EOF
6441 #define $ac_tr_lib 1
6447 echo "$ac_t""no" 1>&6
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 egrep "pth_init" >/dev/null 2>&1; then
6459 cat >> confdefs.h <<\EOF
6460 #define PTH_INIT_IN_PTH_H 1
6472 LIB="${LIB} ${THREAD_LIB}"
6477 # Check whether --with-dvdcss or --without-dvdcss was given.
6478 if test "${with_dvdcss+set}" = set; then
6479 withval="$with_dvdcss"
6480 case "x${withval}" in
6482 # local libdvdcss, statically linked
6483 if test x${CAN_BUILD_LIBDVDCSS} = x1
6487 BUILTINS="${BUILTINS} dvd"
6488 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6489 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6490 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6494 # local libdvdcss, dynamically linked
6495 if test x${CAN_BUILD_LIBDVDCSS} = x1
6498 BUILTINS="${BUILTINS} dvd"
6499 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6500 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
6501 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
6505 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6507 BUILTINS="${BUILTINS} dvd"
6508 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
6509 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6510 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6511 LIB_DVD="${LIB_DVD} -ldl"
6512 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
6515 # existing libdvdcss
6516 BUILTINS="${BUILTINS} dvd"
6517 if test "x$withval" != "xyes"
6519 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
6520 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6522 LIB_DVD="${LIB_DVD} -ldvdcss"
6523 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
6526 # user didn't decide, we choose to use local libdvdcss and link statically
6527 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6528 if test x${CAN_BUILD_LIBDVDCSS} = x1
6532 BUILTINS="${BUILTINS} dvd"
6533 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6534 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6535 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6537 # XXX: no check for libdl is done, don't try this at home !
6539 BUILTINS="${BUILTINS} dvd"
6540 OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
6541 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6542 LIB_DVD="${LIB_DVD} -ldl"
6543 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
6548 # Check whether --enable-dvdread or --disable-dvdread was given.
6549 if test "${enable_dvdread+set}" = set; then
6550 enableval="$enable_dvdread"
6551 if test x$enableval = xyes
6555 BUILTINS="${BUILTINS} dvdread"
6556 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6557 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
6562 # Check whether --enable-vcd or --disable-vcd was given.
6563 if test "${enable_vcd+set}" = set; then
6564 enableval="$enable_vcd"
6569 if test x$enable_vcd != xno
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6574 #include <linux/cdrom.h>
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 egrep "cdrom_msf0" >/dev/null 2>&1; then
6580 BUILTINS="${BUILTINS} vcd"
6587 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6589 BUILTINS="${BUILTINS} vcd"
6592 # Check whether --enable-dummy or --disable-dummy was given.
6593 if test "${enable_dummy+set}" = set; then
6594 enableval="$enable_dummy"
6599 if test x$enable_dummy != xno
6601 BUILTINS="${BUILTINS} dummy"
6604 # Check whether --enable-null or --disable-null was given.
6605 if test "${enable_null+set}" = set; then
6606 enableval="$enable_null"
6611 if test x$enable_null != xno
6613 BUILTINS="${BUILTINS} null"
6616 # Check whether --enable-rc or --disable-rc was given.
6617 if test "${enable_rc+set}" = set; then
6618 enableval="$enable_rc"
6623 if test x$enable_rc != xno
6625 BUILTINS="${BUILTINS} rc"
6628 # Check whether --with-mad or --without-mad was given.
6629 if test "${with_mad+set}" = set; then
6631 if test "x$with_val" != "xno"; then
6632 if test -n $with_val; then
6633 CFLAGS_MAD="-I$with_val/include"
6634 LIB_MAD="-L$with_val/lib -lmad"
6639 save_LDFLAGS=$LDFLAGS
6640 CFLAGS="$CFLAGS $CFLAGS_MAD"
6641 LDFLAGS="$LDFLAGS $LIB_MAD"
6644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6646 echo "configure:6647: checking for $ac_hdr" >&5
6647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6648 echo $ac_n "(cached) $ac_c" 1>&6
6650 cat > conftest.$ac_ext <<EOF
6651 #line 6652 "configure"
6652 #include "confdefs.h"
6655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6656 { (eval echo configure:6657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6658 if test -z "$ac_err"; then
6660 eval "ac_cv_header_$ac_safe=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 eval "ac_cv_header_$ac_safe=no"
6670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6671 echo "$ac_t""yes" 1>&6
6672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6673 cat >> confdefs.h <<EOF
6674 #define $ac_tr_hdr 1
6678 echo "$ac_t""no" 1>&6
6679 echo "Cannot find development headers for libmad..."
6685 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6686 echo "configure:6687: checking for mad_bit_init in -lmad" >&5
6687 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6691 ac_save_LIBS="$LIBS"
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6699 char mad_bit_init();
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707 eval "ac_cv_lib_$ac_lib_var=yes"
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 eval "ac_cv_lib_$ac_lib_var=no"
6715 LIBS="$ac_save_LIBS"
6718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6719 echo "$ac_t""yes" 1>&6
6720 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6721 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6722 cat >> confdefs.h <<EOF
6723 #define $ac_tr_lib 1
6729 echo "$ac_t""no" 1>&6
6730 echo "Cannot find libmad library..."
6736 LDFLAGS=$save_LDFLAGS
6737 PLUGINS="${PLUGINS} mad"
6742 if test x$SYS = xbeos
6745 BUILTINS="${BUILTINS} beos"
6746 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
6747 PLCFLAGS="${PLCFLAGS} -nostart"
6751 # Check whether --enable-dsp or --disable-dsp was given.
6752 if test "${enable_dsp+set}" = set; then
6753 enableval="$enable_dsp"
6758 if test x$enable_dsp != xno &&
6759 (test $SYS != mingw32 || test x$enable_dsp = xyes)
6763 PLUGINS="${PLUGINS} dsp"
6767 # Check whether --enable-esd or --disable-esd was given.
6768 if test "${enable_esd+set}" = set; then
6769 enableval="$enable_esd"
6770 if test x$enable_esd = xyes
6772 # Extract the first word of "esd-config", so it can be a program name with args.
6773 set dummy esd-config; ac_word=$2
6774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6775 echo "configure:6776: checking for $ac_word" >&5
6776 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 case "$ESD_CONFIG" in
6781 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6784 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6789 for ac_dir in $ac_dummy; do
6790 test -z "$ac_dir" && ac_dir=.
6791 if test -f $ac_dir/$ac_word; then
6792 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6797 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6801 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6802 if test -n "$ESD_CONFIG"; then
6803 echo "$ac_t""$ESD_CONFIG" 1>&6
6805 echo "$ac_t""no" 1>&6
6808 if test x${ESD_CONFIG} != xno
6810 PLUGINS="${PLUGINS} esd"
6811 CFLAGS_ESD="`${ESD_CONFIG} --cflags`"
6812 LIB_ESD="`${ESD_CONFIG} --libs`"
6818 # Check whether --enable-arts or --disable-arts was given.
6819 if test "${enable_arts+set}" = set; then
6820 enableval="$enable_arts"
6821 if test x$enable_arts = xyes
6823 # Extract the first word of "artsc-config", so it can be a program name with args.
6824 set dummy artsc-config; ac_word=$2
6825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6826 echo "configure:6827: checking for $ac_word" >&5
6827 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 case "$ARTS_CONFIG" in
6832 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6835 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6840 for ac_dir in $ac_dummy; do
6841 test -z "$ac_dir" && ac_dir=.
6842 if test -f $ac_dir/$ac_word; then
6843 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6848 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6852 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6853 if test -n "$ARTS_CONFIG"; then
6854 echo "$ac_t""$ARTS_CONFIG" 1>&6
6856 echo "$ac_t""no" 1>&6
6859 if test x${ARTS_CONFIG} != xno
6861 PLUGINS="${PLUGINS} arts"
6862 CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`"
6863 LIB_ARTS="`${ARTS_CONFIG} --libs `"
6869 # Check whether --enable-macosx or --disable-macosx was given.
6870 if test "${enable_macosx+set}" = set; then
6871 enableval="$enable_macosx"
6872 if test x$enable_macosx = xyes
6874 BUILTINS="${BUILTINS} macosx"
6875 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
6879 for ac_hdr in Cocoa/Cocoa.h
6881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6883 echo "configure:6884: checking for $ac_hdr" >&5
6884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6893 { (eval echo configure:6894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6895 if test -z "$ac_err"; then
6897 eval "ac_cv_header_$ac_safe=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_header_$ac_safe=no"
6907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6908 echo "$ac_t""yes" 1>&6
6909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6910 cat >> confdefs.h <<EOF
6911 #define $ac_tr_hdr 1
6913 BUILTINS="${BUILTINS} macosx"
6914 LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
6918 echo "$ac_t""no" 1>&6
6925 # Check whether --enable-qnx or --disable-qnx was given.
6926 if test "${enable_qnx+set}" = set; then
6927 enableval="$enable_qnx"
6931 if test x$enable_qnx != xno
6935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_hdr" >&5
6938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6947 { (eval echo configure:6948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6949 if test -z "$ac_err"; then
6951 eval "ac_cv_header_$ac_safe=yes"
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6957 eval "ac_cv_header_$ac_safe=no"
6961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6964 cat >> confdefs.h <<EOF
6965 #define $ac_tr_hdr 1
6968 PLUGINS="${PLUGINS} qnx"
6969 LIB_QNX="-lasound -lph"
6972 echo "$ac_t""no" 1>&6
6978 # Check whether --enable-fb or --disable-fb was given.
6979 if test "${enable_fb+set}" = set; then
6980 enableval="$enable_fb"
6981 if test x$enable_fb = xyes
6983 PLUGINS="${PLUGINS} fb"
6988 # Check whether --with-ggi or --without-ggi was given.
6989 if test "${with_ggi+set}" = set; then
6991 if test "x$withval" != "xno"
6993 PLUGINS="${PLUGINS} ggi"
6994 if test "x$withval" != "xyes"
6996 LIB_GGI="-l"$withval
7004 # Check whether --enable-sdl or --disable-sdl was given.
7005 if test "${enable_sdl+set}" = set; then
7006 enableval="$enable_sdl"
7010 if test "x$enable_sdl" != "xno"
7013 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7014 if test "${with_sdl_config_path+set}" = set; then
7015 withval="$with_sdl_config_path"
7016 if test "x$withval" != "xno"
7018 SDL_PATH=$withval:$PATH
7022 # Extract the first word of "sdl12-config", so it can be a program name with args.
7023 set dummy sdl12-config; ac_word=$2
7024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7025 echo "configure:7026: checking for $ac_word" >&5
7026 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 case "$SDL12_CONFIG" in
7031 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7034 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7038 ac_dummy="$SDL_PATH"
7039 for ac_dir in $ac_dummy; do
7040 test -z "$ac_dir" && ac_dir=.
7041 if test -f $ac_dir/$ac_word; then
7042 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7047 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7051 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7052 if test -n "$SDL12_CONFIG"; then
7053 echo "$ac_t""$SDL12_CONFIG" 1>&6
7055 echo "$ac_t""no" 1>&6
7058 SDL_CONFIG=${SDL12_CONFIG}
7059 SDL_HEADER="SDL12/SDL.h"
7060 if test x${SDL_CONFIG} = xno
7062 # Extract the first word of "sdl11-config", so it can be a program name with args.
7063 set dummy sdl11-config; ac_word=$2
7064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_word" >&5
7066 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7069 case "$SDL11_CONFIG" in
7071 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7074 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7078 ac_dummy="$SDL_PATH"
7079 for ac_dir in $ac_dummy; do
7080 test -z "$ac_dir" && ac_dir=.
7081 if test -f $ac_dir/$ac_word; then
7082 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7087 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7091 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7092 if test -n "$SDL11_CONFIG"; then
7093 echo "$ac_t""$SDL11_CONFIG" 1>&6
7095 echo "$ac_t""no" 1>&6
7098 SDL_CONFIG=${SDL11_CONFIG}
7099 SDL_HEADER="SDL11/SDL.h"
7101 if test x${SDL_CONFIG} = xno
7103 # Extract the first word of "sdl-config", so it can be a program name with args.
7104 set dummy sdl-config; ac_word=$2
7105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7106 echo "configure:7107: checking for $ac_word" >&5
7107 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7110 case "$SDL_CONFIG" in
7112 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7115 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7119 ac_dummy="$SDL_PATH"
7120 for ac_dir in $ac_dummy; do
7121 test -z "$ac_dir" && ac_dir=.
7122 if test -f $ac_dir/$ac_word; then
7123 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7128 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7132 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7133 if test -n "$SDL_CONFIG"; then
7134 echo "$ac_t""$SDL_CONFIG" 1>&6
7136 echo "$ac_t""no" 1>&6
7139 SDL_HEADER="SDL/SDL.h"
7141 if test x${SDL_CONFIG} != xno
7143 PLUGINS="${PLUGINS} sdl"
7144 CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
7145 LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7146 save_CPPFLAGS=$CPPFLAGS
7147 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7148 for ac_hdr in ${SDL_HEADER}
7150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_hdr" >&5
7153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7162 { (eval echo configure:7163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7164 if test -z "$ac_err"; then
7166 eval "ac_cv_header_$ac_safe=yes"
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 eval "ac_cv_header_$ac_safe=no"
7176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7177 echo "$ac_t""yes" 1>&6
7178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7179 cat >> confdefs.h <<EOF
7180 #define $ac_tr_hdr 1
7182 cat >> confdefs.h <<EOF
7183 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7187 echo "$ac_t""no" 1>&6
7188 { echo "configure: error: The development package for SDL is not installed.
7189 Please install it and try again. Alternatively you can also configure with
7190 --disable-sdl." 1>&2; exit 1; }
7195 CPPFLAGS=$save_CPPFLAGS
7196 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7198 { echo "configure: error: The development package for SDL is not installed.
7199 Please install it and try again. Alternatively you can also configure with
7200 --disable-sdl." 1>&2; exit 1; }
7202 elif test "x$enable_sdl" = "xyes"
7204 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7205 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7210 # Check whether --enable-directx or --disable-directx was given.
7211 if test "${enable_directx+set}" = set; then
7212 enableval="$enable_directx"
7216 if test "x$enableval" != "xno"
7218 if test $SYS = mingw32
7220 # Check whether --with-directx-path or --without-directx-path was given.
7221 if test "${with_directx_path+set}" = set; then
7222 withval="$with_directx_path"
7226 if test "x$with_directx_path" = "x"
7228 for ac_hdr in directx.h
7230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_hdr" >&5
7233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7242 { (eval echo configure:7243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7244 if test -z "$ac_err"; then
7246 eval "ac_cv_header_$ac_safe=yes"
7249 echo "configure: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7252 eval "ac_cv_header_$ac_safe=no"
7256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7257 echo "$ac_t""yes" 1>&6
7258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7259 cat >> confdefs.h <<EOF
7260 #define $ac_tr_hdr 1
7262 PLUGINS="${PLUGINS} directx"
7263 LIB_DIRECTX="-lgdi32 -ldxguid"
7265 echo "$ac_t""no" 1>&6
7270 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7271 echo "configure:7272: checking for directX headers in ${withval}" >&5
7272 if test -f ${withval}/include/directx.h
7274 PLUGINS="${PLUGINS} directx"
7275 LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
7276 INCLUDE="${INCLUDE} -I${withval}/include"
7277 echo "$ac_t""yes" 1>&6
7279 echo "$ac_t""no" 1>&6
7280 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
7286 # Check whether --with-glide or --without-glide was given.
7287 if test "${with_glide+set}" = set; then
7288 withval="$with_glide"
7289 if test "x$withval" != "xno"
7291 PLUGINS="${PLUGINS} glide"
7292 if test "x$withval" != "xyes"
7294 LIB_GLIDE="-l"$withval" -lm"
7296 LIB_GLIDE="-lglide2x -lm"
7302 # Check whether --enable-ncurses or --disable-ncurses was given.
7303 if test "${enable_ncurses+set}" = set; then
7304 enableval="$enable_ncurses"
7305 if test x$enable_ncurses = xyes; then
7306 PLUGINS="${PLUGINS} ncurses"
7307 LIB_NCURSES="-lncurses"
7312 # Check whether --enable-qt or --disable-qt was given.
7313 if test "${enable_qt+set}" = set; then
7314 enableval="$enable_qt"
7315 if test x$enable_qt = xyes; then
7316 PLUGINS="${PLUGINS} qt"
7317 ALIASES="${ALIASES} qvlc"
7318 LIB_QT="-lqt -L${QTDIR}/lib"
7319 if test -x ${QTDIR}/bin/moc
7321 MOC=${QTDIR}/bin/moc
7329 # Check whether --enable-kde or --disable-kde was given.
7330 if test "${enable_kde+set}" = set; then
7331 enableval="$enable_kde"
7332 if test x$enable_kde = xyes; then
7333 PLUGINS="${PLUGINS} kde"
7334 ALIASES="${ALIASES} kvlc"
7335 LIB_KDE="-L${KDEDIR}/lib -lkfile"
7336 if test -x ${QTDIR}/bin/moc
7338 MOC=${QTDIR}/bin/moc
7346 # Check whether --enable-gnome or --disable-gnome was given.
7347 if test "${enable_gnome+set}" = set; then
7348 enableval="$enable_gnome"
7349 if test x$enable_gnome = xyes; then
7350 # look for gnome-config
7351 # Extract the first word of "gnome-config", so it can be a program name with args.
7352 set dummy gnome-config; ac_word=$2
7353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7354 echo "configure:7355: checking for $ac_word" >&5
7355 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7356 echo $ac_n "(cached) $ac_c" 1>&6
7358 case "$GNOME_CONFIG" in
7360 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7363 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7368 for ac_dir in $ac_dummy; do
7369 test -z "$ac_dir" && ac_dir=.
7370 if test -f $ac_dir/$ac_word; then
7371 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7376 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7380 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7381 if test -n "$GNOME_CONFIG"; then
7382 echo "$ac_t""$GNOME_CONFIG" 1>&6
7384 echo "$ac_t""no" 1>&6
7387 if test -x ${GNOME_CONFIG}
7389 CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
7390 LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7392 # now look for the gnome.h header
7393 saved_CPPFLAGS=$CPPFLAGS
7394 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7395 for ac_hdr in gnome.h
7397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7399 echo "configure:7400: checking for $ac_hdr" >&5
7400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7409 { (eval echo configure:7410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7411 if test -z "$ac_err"; then
7413 eval "ac_cv_header_$ac_safe=yes"
7416 echo "configure: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7419 eval "ac_cv_header_$ac_safe=no"
7423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7424 echo "$ac_t""yes" 1>&6
7425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7426 cat >> confdefs.h <<EOF
7427 #define $ac_tr_hdr 1
7430 PLUGINS="${PLUGINS} gnome"
7431 ALIASES="${ALIASES} gnome-vlc"
7434 echo "$ac_t""no" 1>&6
7435 { echo "configure: error: Can't find gnome headers. Please install the gnome
7436 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7442 CPPFLAGS=$saved_CPPFLAGS
7447 # Check whether --enable-gtk or --disable-gtk was given.
7448 if test "${enable_gtk+set}" = set; then
7449 enableval="$enable_gtk"
7453 if test x$enable_gtk != xno
7456 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7457 if test "${with_gtk_config_path+set}" = set; then
7458 withval="$with_gtk_config_path"
7459 if test "x$withval" != "xno"
7461 GTK_PATH=$withval:$PATH
7465 # look for gtk-config
7466 # Extract the first word of "gtk-config", so it can be a program name with args.
7467 set dummy gtk-config; ac_word=$2
7468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7469 echo "configure:7470: checking for $ac_word" >&5
7470 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7471 echo $ac_n "(cached) $ac_c" 1>&6
7473 case "$GTK_CONFIG" in
7475 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7478 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7482 ac_dummy="$GTK_PATH"
7483 for ac_dir in $ac_dummy; do
7484 test -z "$ac_dir" && ac_dir=.
7485 if test -f $ac_dir/$ac_word; then
7486 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7491 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7495 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7496 if test -n "$GTK_CONFIG"; then
7497 echo "$ac_t""$GTK_CONFIG" 1>&6
7499 echo "$ac_t""no" 1>&6
7502 if test -x ${GTK_CONFIG}
7504 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
7505 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7507 # now look for the gtk.h header
7508 saved_CPPFLAGS=$CPPFLAGS
7509 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7511 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7515 echo "configure:7516: checking for $ac_hdr" >&5
7516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7525 { (eval echo configure:7526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7527 if test -z "$ac_err"; then
7529 eval "ac_cv_header_$ac_safe=yes"
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7535 eval "ac_cv_header_$ac_safe=no"
7539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7542 cat >> confdefs.h <<EOF
7543 #define $ac_tr_hdr 1
7547 echo "$ac_t""no" 1>&6
7549 echo "Cannot find gtk development headers."
7554 if test -z $FOUND; then
7555 PLUGINS="${PLUGINS} gtk"
7556 ALIASES="${ALIASES} gvlc"
7558 CPPFLAGS=$saved_CPPFLAGS
7561 # Check whether --enable-x11 or --disable-x11 was given.
7562 if test "${enable_x11+set}" = set; then
7563 enableval="$enable_x11"
7567 if test x$enable_x11 != xno &&
7568 (test $SYS != mingw32 || test x$enable_x11 = xyes); then
7569 if test x$x_includes = xNONE; then
7570 x_includes=/usr/X11R6/include
7572 if test x$x_libraries = xNONE; then
7573 x_libraries=/usr/X11R6/lib
7575 saved_CPPFLAGS=$CPPFLAGS
7576 CPPFLAGS="$CPPFLAGS -I$x_includes"
7577 for ac_hdr in X11/Xlib.h
7579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7581 echo "configure:7582: checking for $ac_hdr" >&5
7582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593 if test -z "$ac_err"; then
7595 eval "ac_cv_header_$ac_safe=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 eval "ac_cv_header_$ac_safe=no"
7605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_hdr 1
7612 #PLUGINS="${PLUGINS} x11"
7613 LIB_X11="-L$x_libraries -lX11 -lXext"
7614 CFLAGS_X11="-I$x_includes"
7616 CPPFLAGS=$saved_CPPFLAGS
7618 echo "$ac_t""no" 1>&6
7624 # Check whether --enable-xvideo or --disable-xvideo was given.
7625 if test "${enable_xvideo+set}" = set; then
7626 enableval="$enable_xvideo"
7630 if test x$enable_xvideo != xno &&
7631 (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
7632 if test x$x_includes = xNONE; then
7633 x_includes=/usr/X11R6/include
7635 if test x$x_libraries = xNONE; then
7636 x_libraries=/usr/X11R6/lib
7638 saved_CPPFLAGS=$CPPFLAGS
7639 CPPFLAGS="$CPPFLAGS -I$x_includes"
7640 for ac_hdr in X11/extensions/Xv.h
7642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7644 echo "configure:7645: checking for $ac_hdr" >&5
7645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7654 { (eval echo configure:7655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7656 if test -z "$ac_err"; then
7658 eval "ac_cv_header_$ac_safe=yes"
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 eval "ac_cv_header_$ac_safe=no"
7668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7669 echo "$ac_t""yes" 1>&6
7670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7671 cat >> confdefs.h <<EOF
7672 #define $ac_tr_hdr 1
7675 BUILTINS="${BUILTINS} xvideo"
7676 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
7677 CFLAGS_XVIDEO="-I$x_includes"
7679 CPPFLAGS=$saved_CPPFLAGS
7681 echo "$ac_t""no" 1>&6
7687 # Check whether --enable-alsa or --disable-alsa was given.
7688 if test "${enable_alsa+set}" = set; then
7689 enableval="$enable_alsa"
7690 if test x$enable_alsa = xyes
7692 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7693 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7694 echo "configure:7695: checking for alsa/asoundlib.h" >&5
7695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7696 echo $ac_n "(cached) $ac_c" 1>&6
7698 cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7701 #include <alsa/asoundlib.h>
7703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7704 { (eval echo configure:7705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7706 if test -z "$ac_err"; then
7708 eval "ac_cv_header_$ac_safe=yes"
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7714 eval "ac_cv_header_$ac_safe=no"
7718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7719 echo "$ac_t""yes" 1>&6
7720 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7721 echo "configure:7722: checking for main in -lasound" >&5
7722 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 ac_save_LIBS="$LIBS"
7727 LIBS="-lasound $LIBS"
7728 cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7738 eval "ac_cv_lib_$ac_lib_var=yes"
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7743 eval "ac_cv_lib_$ac_lib_var=no"
7746 LIBS="$ac_save_LIBS"
7749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7750 echo "$ac_t""yes" 1>&6
7753 echo "$ac_t""no" 1>&6
7758 echo "$ac_t""no" 1>&6
7762 if test x$have_alsa = xtrue
7764 PLUGINS="${PLUGINS} alsa"
7773 # Check whether --enable-plugins or --disable-plugins was given.
7774 if test "${enable_plugins+set}" = set; then
7775 enableval="$enable_plugins"
7776 if test x$enable_plugins = xno
7778 BUILTINS="${BUILTINS} ${PLUGINS}"
7861 cat > confcache <<\EOF
7862 # This file is a shell script that caches the results of configure
7863 # tests run on this system so they can be shared between configure
7864 # scripts and configure runs. It is not useful on other systems.
7865 # If it contains results you don't want to keep, you may remove or edit it.
7867 # By default, configure uses ./config.cache as the cache file,
7868 # creating it if it does not exist already. You can give configure
7869 # the --cache-file=FILE option to use a different cache file; that is
7870 # what configure does when it calls configure scripts in
7871 # subdirectories, so they share the cache.
7872 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7873 # config.status only pays attention to the cache file if you give it the
7874 # --recheck option to rerun configure.
7877 # The following way of writing the cache mishandles newlines in values,
7878 # but we know of no workaround that is simple, portable, and efficient.
7879 # So, don't put newlines in cache variables' values.
7880 # Ultrix sh set writes to stderr and can't be redirected directly,
7881 # and sets the high bit in the cache file unless we assign to the vars.
7883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7885 # `set' does not quote correctly, so add quotes (double-quote substitution
7886 # turns \\\\ into \\, and sed turns \\ into \).
7888 -e "s/'/'\\\\''/g" \
7889 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7892 # `set' quotes correctly as required by POSIX, so do not add quotes.
7893 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7896 if cmp -s $cache_file confcache; then
7899 if test -w $cache_file; then
7900 echo "updating cache $cache_file"
7901 cat confcache > $cache_file
7903 echo "not updating unwritable cache $cache_file"
7908 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7911 # Let make expand exec_prefix.
7912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7914 # Any assignment to VPATH causes Sun make to only execute
7915 # the first set of double-colon rules, so remove it if not needed.
7916 # If there is a colon in the path, we need to keep it.
7917 if test "x$srcdir" = x.; then
7918 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7921 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7923 DEFS=-DHAVE_CONFIG_H
7925 # Without the "./", some shells look in PATH for config.status.
7926 : ${CONFIG_STATUS=./config.status}
7928 echo creating $CONFIG_STATUS
7929 rm -f $CONFIG_STATUS
7930 cat > $CONFIG_STATUS <<EOF
7932 # Generated automatically by configure.
7933 # Run this file to recreate the current configuration.
7934 # This directory was configured as follows,
7935 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7937 # $0 $ac_configure_args
7939 # Compiler output produced by configure, useful for debugging
7940 # configure, is in ./config.log if it exists.
7942 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7945 case "\$ac_option" in
7946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7947 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7948 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7949 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7950 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7952 -help | --help | --hel | --he | --h)
7953 echo "\$ac_cs_usage"; exit 0 ;;
7954 *) echo "\$ac_cs_usage"; exit 1 ;;
7958 ac_given_srcdir=$srcdir
7959 ac_given_INSTALL="$INSTALL"
7961 trap 'rm -fr `echo "Makefile.opts include/config.h po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7963 cat >> $CONFIG_STATUS <<EOF
7965 # Protect against being on the right side of a sed subst in config.status.
7966 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7967 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7971 s%@CFLAGS@%$CFLAGS%g
7972 s%@CPPFLAGS@%$CPPFLAGS%g
7973 s%@CXXFLAGS@%$CXXFLAGS%g
7974 s%@FFLAGS@%$FFLAGS%g
7976 s%@LDFLAGS@%$LDFLAGS%g
7978 s%@exec_prefix@%$exec_prefix%g
7979 s%@prefix@%$prefix%g
7980 s%@program_transform_name@%$program_transform_name%g
7981 s%@bindir@%$bindir%g
7982 s%@sbindir@%$sbindir%g
7983 s%@libexecdir@%$libexecdir%g
7984 s%@datadir@%$datadir%g
7985 s%@sysconfdir@%$sysconfdir%g
7986 s%@sharedstatedir@%$sharedstatedir%g
7987 s%@localstatedir@%$localstatedir%g
7988 s%@libdir@%$libdir%g
7989 s%@includedir@%$includedir%g
7990 s%@oldincludedir@%$oldincludedir%g
7991 s%@infodir@%$infodir%g
7992 s%@mandir@%$mandir%g
7994 s%@host_alias@%$host_alias%g
7995 s%@host_cpu@%$host_cpu%g
7996 s%@host_vendor@%$host_vendor%g
7997 s%@host_os@%$host_os%g
7998 s%@target@%$target%g
7999 s%@target_alias@%$target_alias%g
8000 s%@target_cpu@%$target_cpu%g
8001 s%@target_vendor@%$target_vendor%g
8002 s%@target_os@%$target_os%g
8004 s%@build_alias@%$build_alias%g
8005 s%@build_cpu@%$build_cpu%g
8006 s%@build_vendor@%$build_vendor%g
8007 s%@build_os@%$build_os%g
8008 s%@VLC_VERSION@%$VLC_VERSION%g
8009 s%@VLC_CODENAME@%$VLC_CODENAME%g
8010 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8011 s%@SET_MAKE@%$SET_MAKE%g
8014 s%@RANLIB@%$RANLIB%g
8015 s%@ALLOCA@%$ALLOCA%g
8016 s%@GLIBC21@%$GLIBC21%g
8017 s%@LIBICONV@%$LIBICONV%g
8018 s%@USE_NLS@%$USE_NLS%g
8019 s%@MSGFMT@%$MSGFMT%g
8020 s%@GMSGFMT@%$GMSGFMT%g
8021 s%@XGETTEXT@%$XGETTEXT%g
8022 s%@INTLBISON@%$INTLBISON%g
8023 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8024 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8025 s%@CATALOGS@%$CATALOGS%g
8026 s%@CATOBJEXT@%$CATOBJEXT%g
8027 s%@GMOFILES@%$GMOFILES%g
8028 s%@INTLLIBS@%$INTLLIBS%g
8029 s%@INTLOBJS@%$INTLOBJS%g
8030 s%@POFILES@%$POFILES%g
8032 s%@DATADIRNAME@%$DATADIRNAME%g
8033 s%@INSTOBJEXT@%$INSTOBJEXT%g
8034 s%@GENCAT@%$GENCAT%g
8035 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8036 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8037 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8038 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8039 s%@INSTALL_DATA@%$INSTALL_DATA%g
8040 s%@WINDRES@%$WINDRES%g
8041 s%@ESD_CONFIG@%$ESD_CONFIG%g
8042 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8043 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8044 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8045 s%@SDL_CONFIG@%$SDL_CONFIG%g
8046 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8047 s%@GTK_CONFIG@%$GTK_CONFIG%g
8050 s%@PLUGINS@%$PLUGINS%g
8051 s%@BUILTINS@%$BUILTINS%g
8052 s%@ALIASES@%$ALIASES%g
8053 s%@DEFINE@%$DEFINE%g
8054 s%@INCLUDE@%$INCLUDE%g
8060 s%@OPTIMS@%$OPTIMS%g
8061 s%@TUNING@%$TUNING%g
8062 s%@RELEASE@%$RELEASE%g
8063 s%@NEED_GETOPT@%$NEED_GETOPT%g
8065 s%@PACKAGE@%$PACKAGE%g
8066 s%@VERSION@%$VERSION%g
8067 s%@LCFLAGS@%$LCFLAGS%g
8068 s%@PLCFLAGS@%$PLCFLAGS%g
8069 s%@SOFLAGS@%$SOFLAGS%g
8071 s%@LIB_ALSA@%$LIB_ALSA%g
8072 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
8073 s%@LIB_ARTS@%$LIB_ARTS%g
8074 s%@LIB_BEOS@%$LIB_BEOS%g
8075 s%@LIB_DARWIN@%$LIB_DARWIN%g
8076 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8077 s%@LIB_DVD@%$LIB_DVD%g
8078 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
8079 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8080 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
8081 s%@LIB_ESD@%$LIB_ESD%g
8082 s%@LIB_GGI@%$LIB_GGI%g
8083 s%@LIB_GLIDE@%$LIB_GLIDE%g
8084 s%@LIB_GNOME@%$LIB_GNOME%g
8085 s%@LIB_GTK@%$LIB_GTK%g
8086 s%@LIB_IMDCT@%$LIB_IMDCT%g
8087 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8088 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8089 s%@LIB_KDE@%$LIB_KDE%g
8090 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8091 s%@LIB_MACOSX@%$LIB_MACOSX%g
8092 s%@LIB_MAD@%$LIB_MAD%g
8093 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8094 s%@LIB_NCURSES@%$LIB_NCURSES%g
8095 s%@LIB_QNX@%$LIB_QNX%g
8096 s%@LIB_QT@%$LIB_QT%g
8097 s%@LIB_RC@%$LIB_RC%g
8098 s%@LIB_SDL@%$LIB_SDL%g
8099 s%@LIB_X11@%$LIB_X11%g
8100 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8101 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8102 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
8103 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8104 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8105 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8106 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8107 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8108 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8109 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8110 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8111 s%@CFLAGS_X11@%$CFLAGS_X11%g
8112 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8113 s%@OBJ_DVD@%$OBJ_DVD%g
8114 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
8115 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8120 cat >> $CONFIG_STATUS <<\EOF
8122 # Split the substitutions into bite-sized pieces for seds with
8123 # small command number limits, like on Digital OSF/1 and HP-UX.
8124 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8125 ac_file=1 # Number of current file.
8126 ac_beg=1 # First line for current file.
8127 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8130 while $ac_more_lines; do
8131 if test $ac_beg -gt 1; then
8132 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8134 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8136 if test ! -s conftest.s$ac_file; then
8138 rm -f conftest.s$ac_file
8140 if test -z "$ac_sed_cmds"; then
8141 ac_sed_cmds="sed -f conftest.s$ac_file"
8143 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8145 ac_file=`expr $ac_file + 1`
8147 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8150 if test -z "$ac_sed_cmds"; then
8155 cat >> $CONFIG_STATUS <<EOF
8157 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h po/Makefile.in"}
8159 cat >> $CONFIG_STATUS <<\EOF
8160 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8163 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8164 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8165 *) ac_file_in="${ac_file}.in" ;;
8168 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8170 # Remove last slash and all that follows it. Not all systems have dirname.
8171 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8172 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8173 # The file is in a subdirectory.
8174 test ! -d "$ac_dir" && mkdir "$ac_dir"
8175 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8176 # A "../" for each directory in $ac_dir_suffix.
8177 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8179 ac_dir_suffix= ac_dots=
8182 case "$ac_given_srcdir" in
8184 if test -z "$ac_dots"; then top_srcdir=.
8185 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8186 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8188 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8189 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8192 case "$ac_given_INSTALL" in
8193 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8194 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8197 echo creating "$ac_file"
8199 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8201 *Makefile*) ac_comsub="1i\\
8202 # $configure_input" ;;
8206 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8208 s%@configure_input@%$configure_input%g
8209 s%@srcdir@%$srcdir%g
8210 s%@top_srcdir@%$top_srcdir%g
8211 s%@INSTALL@%$INSTALL%g
8212 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8216 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8217 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8219 # ac_d sets the value in "#define NAME VALUE" lines.
8220 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8221 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8224 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8225 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8226 ac_uB='\([ ]\)%\1#\2define\3'
8229 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8230 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8231 ac_eB='$%\1#\2define\3'
8235 if test "${CONFIG_HEADERS+set}" != set; then
8237 cat >> $CONFIG_STATUS <<EOF
8238 CONFIG_HEADERS="include/defs.h"
8240 cat >> $CONFIG_STATUS <<\EOF
8242 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8243 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8245 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8246 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8247 *) ac_file_in="${ac_file}.in" ;;
8250 echo creating $ac_file
8252 rm -f conftest.frag conftest.in conftest.out
8253 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8254 cat $ac_file_inputs > conftest.in
8258 # Transform confdefs.h into a sed script conftest.vals that substitutes
8259 # the proper values into config.h.in to produce config.h. And first:
8260 # Protect against being on the right side of a sed subst in config.status.
8261 # Protect against being in an unquoted here document in config.status.
8263 cat > conftest.hdr <<\EOF
8266 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8270 sed -n -f conftest.hdr confdefs.h > conftest.vals
8273 # This sed command replaces #undef with comments. This is necessary, for
8274 # example, in the case of _POSIX_SOURCE, which is predefined and required
8275 # on some systems where configure will not decide to define it.
8276 cat >> conftest.vals <<\EOF
8277 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8280 # Break up conftest.vals because some shells have a limit on
8281 # the size of here documents, and old seds have small limits too.
8286 ac_lines=`grep -c . conftest.vals`
8287 # grep -c gives empty output for an empty file on some AIX systems.
8288 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8289 # Write a limited-size here document to conftest.frag.
8290 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8291 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8293 sed -f conftest.frag conftest.in > conftest.out
8295 mv conftest.out conftest.in
8297 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8299 mv conftest.tail conftest.vals
8303 cat >> $CONFIG_STATUS <<\EOF
8304 rm -f conftest.frag conftest.h
8305 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8306 cat conftest.in >> conftest.h
8308 if cmp -s $ac_file conftest.h 2>/dev/null; then
8309 echo "$ac_file is unchanged"
8312 # Remove last slash and all that follows it. Not all systems have dirname.
8313 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8314 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8315 # The file is in a subdirectory.
8316 test ! -d "$ac_dir" && mkdir "$ac_dir"
8319 mv conftest.h $ac_file
8324 cat >> $CONFIG_STATUS <<EOF
8328 cat >> $CONFIG_STATUS <<\EOF
8329 for ac_file in $CONFIG_FILES; do
8330 # Support "outfile[:infile[:infile...]]"
8332 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8334 # PO directories have a Makefile.in generated from Makefile.in.in.
8335 case "$ac_file" in */Makefile.in)
8336 # Adjust a relative srcdir.
8337 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8338 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8339 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8340 # In autoconf-2.13 it is called $ac_given_srcdir.
8341 # In autoconf-2.50 it is called $srcdir.
8342 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8343 case "$ac_given_srcdir" in
8344 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8345 /*) top_srcdir="$ac_given_srcdir" ;;
8346 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8348 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8349 rm -f "$ac_dir/POTFILES"
8350 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8351 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8352 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8353 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8361 chmod +x $CONFIG_STATUS
8362 rm -fr confdefs* $ac_clean_files
8363 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8367 global configuration
8368 --------------------
8370 architecture : ${ARCH}
8371 optimizations : ${OPTIMS}
8373 release: : ${RELEASE}"
8375 if test x${HAVE_VLC} = x1
8380 vlc version : ${VLC_VERSION}
8381 debug mode : ${DEBUG}
8382 trace mode : ${TRACE}
8383 cprof/gprof support : ${CPROF}/${GPROF}
8384 need builtin getopt : ${NEED_GETOPT}
8385 built-in modules :${BUILTINS}
8386 plug-in modules :${PLUGINS}
8387 vlc aliases :${ALIASES}"
8391 libdvdcss configuration
8392 -----------------------
8393 can be built : ${CAN_BUILD_LIBDVDCSS}
8394 will be built : ${NEED_LIBDVDCSS}"
8395 if test x${NEED_LIBDVDCSS} = x1
8397 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8398 echo "link statically : ${STATIC_LIBDVDCSS}"
8400 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8404 You may now tune Makefile.opts at your convenience, for instance to choose
8405 which modules get compiled as plugins.
8407 if test x${HAVE_VLC} = x1
8409 echo "To build vlc and its plugins, type \`make vlc plugins'."
8411 if test x${HAVE_LIBDVDCSS} = x1
8413 echo "To build libdvdcss only, type \`make libdvdcss'."