3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
21 --with-words=endianness Set endianness (big or little)"
23 --with-tuning=[arch] Enable special tuning for an architecture
24 (default i686 on IA-32 and 750 on PPC)"
26 --enable-release Activate extra optimizations (default disabled)"
28 --disable-altivec Disable altivec optimizations (default enabled on PPC)"
30 --enable-debug Enable debug mode (default disabled)"
32 --enable-trace Enable trace mode (default disabled)"
34 --enable-gprof Enable gprof profiling (default disabled)"
36 --enable-cprof Enable cprof profiling (default disabled)"
38 --disable-optimizations Disable compiler optimizations (default enabled)"
40 --enable-pth Enable GNU Pth support (default disabled)"
42 --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
43 or 'local-static', 'local-shared', or a path to
44 another libdvdcss such as '/usr/local'
45 (default 'local-static')"
47 --enable-dvdread Enable dvdread support (default disabled)"
49 --enable-vcd VCD support for Linux (default enabled)"
51 --disable-dummy dummy module (default enabled)"
53 --disable-null Null module (default enabled)"
55 --disable-rc Remote Control module (default enabled)"
57 --with-mad[=PATH] libmad module (default disabled)"
59 --disable-dsp Linux /dev/dsp support (default enabled)"
61 --enable-esd Esound library support (default disabled)"
63 --enable-arts aRts sound server (default disabled)"
65 --enable-macosx MacOS X support (default enabled on MacOS X)"
67 --disable-qnx QNX RTOS support (default enabled on QNX RTOS)"
69 --enable-fb Linux framebuffer support (default disabled)"
71 --enable-mga Linux kernel Matrox support (default disabled)"
73 --with-ggi[=name] GGI support (default disabled)"
75 --disable-sdl SDL support (default enabled)"
77 --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
79 --disable-directx Windows DirectX support (default enabled on WIN32)"
81 --with-directx-path=path Windows DirectX headers and libraries"
83 --enable-win32 Windows DirectX support (default disabled)"
85 --with-glide[=name] Glide (3dfx) support (default disabled)"
87 --enable-ncurses ncurses interface support (default disabled)"
89 --enable-qt Qt interface support (default disabled)"
91 --enable-kde KDE interface support (default disabled)"
93 --enable-gnome Gnome interface support (default disabled)"
95 --disable-gtk Gtk+ support (default enabled)"
97 --with-gtk-config-path=path gtk-config path (default search in \$PATH)"
99 --disable-x11 X11 support (default enabled)"
101 --disable-xvideo XVideo support (default enabled)"
103 --enable-alsa Alsa sound drivers support (Only for linux)
106 --disable-plugins Make all plug-ins built-in (default plug-ins enabled)"
108 --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)"
110 # Initialize some variables set by options.
111 # The variables have the same names as the options, with
112 # dashes changed to underlines.
114 cache_file=./config.cache
123 program_transform_name=s,x,x,
131 bindir='${exec_prefix}/bin'
132 sbindir='${exec_prefix}/sbin'
133 libexecdir='${exec_prefix}/libexec'
134 datadir='${prefix}/share'
135 sysconfdir='${prefix}/etc'
136 sharedstatedir='${prefix}/com'
137 localstatedir='${prefix}/var'
138 libdir='${exec_prefix}/lib'
139 includedir='${prefix}/include'
140 oldincludedir='/usr/include'
141 infodir='${prefix}/info'
142 mandir='${prefix}/man'
144 # Initialize some other variables.
147 SHELL=${CONFIG_SHELL-/bin/sh}
148 # Maximum number of lines to put in a shell here document.
155 # If the previous option needs an argument, assign it.
156 if test -n "$ac_prev"; then
157 eval "$ac_prev=\$ac_option"
163 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
174 bindir="$ac_optarg" ;;
176 -build | --build | --buil | --bui | --bu)
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build="$ac_optarg" ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file="$ac_optarg" ;;
188 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
190 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
192 datadir="$ac_optarg" ;;
194 -disable-* | --disable-*)
195 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}=no" ;;
203 -enable-* | --enable-*)
204 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
205 # Reject names that are not valid shell variable names.
206 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
207 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
214 eval "enable_${ac_feature}='$ac_optarg'" ;;
216 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
217 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
218 | --exec | --exe | --ex)
219 ac_prev=exec_prefix ;;
220 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
221 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
222 | --exec=* | --exe=* | --ex=*)
223 exec_prefix="$ac_optarg" ;;
225 -gas | --gas | --ga | --g)
226 # Obsolete; use --with-gas.
229 -help | --help | --hel | --he)
230 # Omit some internal or obsolete options to make the list less imposing.
231 # This message is too long to be a string in the A/UX 3.1 sh.
233 Usage: configure [options] [host]
234 Options: [defaults in brackets after descriptions]
236 --cache-file=FILE cache test results in FILE
237 --help print this message
238 --no-create do not create output files
239 --quiet, --silent do not print \`checking...' messages
240 --version print the version of autoconf that created configure
241 Directory and file names:
242 --prefix=PREFIX install architecture-independent files in PREFIX
244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
246 --bindir=DIR user executables in DIR [EPREFIX/bin]
247 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
248 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
249 --datadir=DIR read-only architecture-independent data in DIR
251 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
252 --sharedstatedir=DIR modifiable architecture-independent data in DIR
254 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
255 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
256 --includedir=DIR C header files in DIR [PREFIX/include]
257 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
258 --infodir=DIR info documentation in DIR [PREFIX/info]
259 --mandir=DIR man documentation in DIR [PREFIX/man]
260 --srcdir=DIR find the sources in DIR [configure dir or ..]
261 --program-prefix=PREFIX prepend PREFIX to installed program names
262 --program-suffix=SUFFIX append SUFFIX to installed program names
263 --program-transform-name=PROGRAM
264 run sed PROGRAM on installed program names
268 --build=BUILD configure for building on BUILD [BUILD=HOST]
269 --host=HOST configure for HOST [guessed]
270 --target=TARGET configure for TARGET [TARGET=HOST]
271 Features and packages:
272 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
273 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
276 --x-includes=DIR X include files are in DIR
277 --x-libraries=DIR X library files are in DIR
279 if test -n "$ac_help"; then
280 echo "--enable and --with options recognized:$ac_help"
284 -host | --host | --hos | --ho)
286 -host=* | --host=* | --hos=* | --ho=*)
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir="$ac_optarg" ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir="$ac_optarg" ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
304 libdir="$ac_optarg" ;;
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir="$ac_optarg" ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir="$ac_optarg" ;;
322 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
324 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
325 mandir="$ac_optarg" ;;
328 # Obsolete; use --without-fp.
331 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
335 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
336 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
339 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
340 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
341 | --oldin | --oldi | --old | --ol | --o)
342 ac_prev=oldincludedir ;;
343 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
344 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
345 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
346 oldincludedir="$ac_optarg" ;;
348 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
350 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
351 prefix="$ac_optarg" ;;
353 -program-prefix | --program-prefix | --program-prefi | --program-pref \
354 | --program-pre | --program-pr | --program-p)
355 ac_prev=program_prefix ;;
356 -program-prefix=* | --program-prefix=* | --program-prefi=* \
357 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
358 program_prefix="$ac_optarg" ;;
360 -program-suffix | --program-suffix | --program-suffi | --program-suff \
361 | --program-suf | --program-su | --program-s)
362 ac_prev=program_suffix ;;
363 -program-suffix=* | --program-suffix=* | --program-suffi=* \
364 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
365 program_suffix="$ac_optarg" ;;
367 -program-transform-name | --program-transform-name \
368 | --program-transform-nam | --program-transform-na \
369 | --program-transform-n | --program-transform- \
370 | --program-transform | --program-transfor \
371 | --program-transfo | --program-transf \
372 | --program-trans | --program-tran \
373 | --progr-tra | --program-tr | --program-t)
374 ac_prev=program_transform_name ;;
375 -program-transform-name=* | --program-transform-name=* \
376 | --program-transform-nam=* | --program-transform-na=* \
377 | --program-transform-n=* | --program-transform-=* \
378 | --program-transform=* | --program-transfor=* \
379 | --program-transfo=* | --program-transf=* \
380 | --program-trans=* | --program-tran=* \
381 | --progr-tra=* | --program-tr=* | --program-t=*)
382 program_transform_name="$ac_optarg" ;;
384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
385 | -silent | --silent | --silen | --sile | --sil)
388 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
390 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
392 sbindir="$ac_optarg" ;;
394 -sharedstatedir | --sharedstatedir | --sharedstatedi \
395 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
396 | --sharedst | --shareds | --shared | --share | --shar \
398 ac_prev=sharedstatedir ;;
399 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
400 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
401 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
403 sharedstatedir="$ac_optarg" ;;
405 -site | --site | --sit)
407 -site=* | --site=* | --sit=*)
410 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
412 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
413 srcdir="$ac_optarg" ;;
415 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
416 | --syscon | --sysco | --sysc | --sys | --sy)
417 ac_prev=sysconfdir ;;
418 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
419 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
420 sysconfdir="$ac_optarg" ;;
422 -target | --target | --targe | --targ | --tar | --ta | --t)
424 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
425 target="$ac_optarg" ;;
427 -v | -verbose | --verbose | --verbos | --verbo | --verb)
430 -version | --version | --versio | --versi | --vers)
431 echo "configure generated by autoconf version 2.13"
435 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
436 # Reject names that are not valid shell variable names.
437 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
438 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
440 ac_package=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}='$ac_optarg'" ;;
447 -without-* | --without-*)
448 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
453 ac_package=`echo $ac_package| sed 's/-/_/g'`
454 eval "with_${ac_package}=no" ;;
457 # Obsolete; use --with-x.
460 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
461 | --x-incl | --x-inc | --x-in | --x-i)
462 ac_prev=x_includes ;;
463 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
464 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
465 x_includes="$ac_optarg" ;;
467 -x-libraries | --x-libraries | --x-librarie | --x-librari \
468 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
469 ac_prev=x_libraries ;;
470 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
471 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
472 x_libraries="$ac_optarg" ;;
474 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
478 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
479 echo "configure: warning: $ac_option: invalid host type" 1>&2
481 if test "x$nonopt" != xNONE; then
482 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
490 if test -n "$ac_prev"; then
491 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
496 # File descriptor usage:
499 # 2 errors and warnings
500 # 3 some systems may open it to /dev/tty
501 # 4 used on the Kubota Titan
502 # 6 checking for... messages and results
503 # 5 compiler messages saved in config.log
504 if test "$silent" = yes; then
512 This file contains any messages produced by compilers while
513 running configure, to aid debugging if configure makes a mistake.
516 # Strip out --no-create and --no-recursion so they do not pile up.
517 # Also quote any args containing shell metacharacters.
522 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
523 | --no-cr | --no-c) ;;
524 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
525 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
527 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
528 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
533 # Only set these to C if already set. These must not be set unconditionally
534 # because not all systems understand e.g. LANG=C (notably SCO).
535 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
536 # Non-C LC_CTYPE values break the ctype check.
537 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
539 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
540 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
543 rm -rf conftest* confdefs.h
544 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
547 # A filename unique to this package, relative to the directory that
548 # configure is in, which we can look for to find out if srcdir is correct.
549 ac_unique_file=include/main.h
551 # Find the source files, if location was not specified.
552 if test -z "$srcdir"; then
553 ac_srcdir_defaulted=yes
554 # Try the directory containing this script, then its parent.
556 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
557 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
559 if test ! -r $srcdir/$ac_unique_file; then
563 ac_srcdir_defaulted=no
565 if test ! -r $srcdir/$ac_unique_file; then
566 if test "$ac_srcdir_defaulted" = yes; then
567 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
569 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
572 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
574 # Prefer explicitly selected file to automatically selected ones.
575 if test -z "$CONFIG_SITE"; then
576 if test "x$prefix" != xNONE; then
577 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
579 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
582 for ac_site_file in $CONFIG_SITE; do
583 if test -r "$ac_site_file"; then
584 echo "loading site script $ac_site_file"
589 if test -r "$cache_file"; then
590 echo "loading cache $cache_file"
593 echo "creating cache $cache_file"
598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
599 ac_cpp='$CPP $CPPFLAGS'
600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
602 cross_compiling=$ac_cv_prog_cc_cross
606 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
607 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
608 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
615 ac_n= ac_c='\c' ac_t=
622 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
623 if test -f $ac_dir/install-sh; then
625 ac_install_sh="$ac_aux_dir/install-sh -c"
627 elif test -f $ac_dir/install.sh; then
629 ac_install_sh="$ac_aux_dir/install.sh -c"
633 if test -z "$ac_aux_dir"; then
634 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
636 ac_config_guess=$ac_aux_dir/config.guess
637 ac_config_sub=$ac_aux_dir/config.sub
638 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641 # Do some error checking and defaulting for the host and target type.
643 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
646 # 1. You are not allowed to specify --host, --target, and nonopt at the
648 # 2. Host defaults to nonopt.
649 # 3. If nonopt is not specified, then host defaults to the current host,
650 # as determined by config.guess.
651 # 4. Target and build default to nonopt.
652 # 5. If nonopt is not specified, then target and build default to host.
654 # The aliases save the names the user supplied, while $host etc.
655 # will get canonicalized.
656 case $host---$target---$nonopt in
657 NONE---*---* | *---NONE---* | *---*---NONE) ;;
658 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
662 # Make sure we can run config.sub.
663 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
664 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
667 echo $ac_n "checking host system type""... $ac_c" 1>&6
668 echo "configure:669: checking host system type" >&5
671 case "$host_alias" in
675 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
676 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
678 *) host_alias=$nonopt ;;
682 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
683 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$host" 1>&6
688 echo $ac_n "checking target system type""... $ac_c" 1>&6
689 echo "configure:690: checking target system type" >&5
692 case "$target_alias" in
695 NONE) target_alias=$host_alias ;;
696 *) target_alias=$nonopt ;;
700 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
701 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
702 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
703 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
704 echo "$ac_t""$target" 1>&6
706 echo $ac_n "checking build system type""... $ac_c" 1>&6
707 echo "configure:708: checking build system type" >&5
710 case "$build_alias" in
713 NONE) build_alias=$host_alias ;;
714 *) build_alias=$nonopt ;;
718 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
719 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
720 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
721 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
722 echo "$ac_t""$build" 1>&6
724 test "$host_alias" != "$target_alias" &&
725 test "$program_prefix$program_suffix$program_transform_name" = \
727 program_prefix=${target_alias}-
731 if test -r src/interface/main.c; then
733 VLC_VERSION="0.2.92-dev"
738 if test -r extras/libdvdcss/libdvdcss.c; then
740 LIBDVDCSS_VERSION="1.0.1-dev"
742 if test -r extras/libdvdcss/csskeys.h; then
743 cat >> confdefs.h <<\EOF
744 #define HAVE_CSSKEYS 1
750 save_CFLAGS="${CFLAGS}"
751 save_LDFLAGS="${LDFLAGS}"
753 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
754 echo "configure:755: checking whether ${MAKE-make} sets \${MAKE}" >&5
755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
756 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 cat > conftestmake <<\EOF
761 @echo 'ac_maketemp="${MAKE}"'
763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
764 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
765 if test -n "$ac_maketemp"; then
766 eval ac_cv_prog_make_${ac_make}_set=yes
768 eval ac_cv_prog_make_${ac_make}_set=no
772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
773 echo "$ac_t""yes" 1>&6
776 echo "$ac_t""no" 1>&6
777 SET_MAKE="MAKE=${MAKE-make}"
780 # Extract the first word of "gcc", so it can be a program name with args.
781 set dummy gcc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 if test -n "$CC"; then
788 ac_cv_prog_CC="$CC" # Let the user override the test.
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
803 if test -n "$CC"; then
804 echo "$ac_t""$CC" 1>&6
806 echo "$ac_t""no" 1>&6
809 if test -z "$CC"; then
810 # Extract the first word of "cc", so it can be a program name with args.
811 set dummy cc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
826 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
835 if test $ac_prog_rejected = yes; then
836 # We found a bogon in the path, so make sure we never use it.
837 set dummy $ac_cv_prog_CC
839 if test $# -gt 0; then
840 # We chose a different compiler from the bogus one.
841 # However, it has the same basename, so the bogon will be chosen
842 # first if we set CC to just the basename; use the full file name.
844 set dummy "$ac_dir/$ac_word" "$@"
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
855 echo "$ac_t""no" 1>&6
858 if test -z "$CC"; then
861 # Extract the first word of "cl", so it can be a program name with args.
862 set dummy cl; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$CC"; then
869 ac_cv_prog_CC="$CC" # Let the user override the test.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
887 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 cat > conftest.$ac_ext << EOF
907 #line 908 "configure"
908 #include "confdefs.h"
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913 ac_cv_prog_cc_works=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (./conftest; exit) 2>/dev/null; then
916 ac_cv_prog_cc_cross=no
918 ac_cv_prog_cc_cross=yes
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 ac_cv_prog_cc_works=no
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
934 if test $ac_cv_prog_cc_works = no; then
935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
943 echo "configure:944: checking whether we are using GNU C" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 cat > conftest.c <<EOF
952 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961 if test $ac_cv_prog_gcc = yes; then
967 ac_test_CFLAGS="${CFLAGS+set}"
968 ac_save_CFLAGS="$CFLAGS"
970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${CC-cc} accepts -g" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 echo 'void f(){}' > conftest.c
976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
986 if test "$ac_test_CFLAGS" = set; then
987 CFLAGS="$ac_save_CFLAGS"
988 elif test $ac_cv_prog_cc_g = yes; then
989 if test "$GCC" = yes; then
995 if test "$GCC" = yes; then
1002 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1003 echo "configure:1004: checking how to run the C preprocessor" >&5
1004 # On Suns, sometimes $CPP names a directory.
1005 if test -n "$CPP" && test -d "$CPP"; then
1008 if test -z "$CPP"; then
1009 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 # This must be in double quotes, not single quotes, because CPP may get
1013 # substituted into the Makefile and "${CC-cc}" will confuse make.
1015 # On the NeXT, cc -E runs the code through the compiler's parser,
1016 # not just through cpp.
1017 cat > conftest.$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1026 if test -z "$ac_err"; then
1030 echo "configure: failed program was:" >&5
1031 cat conftest.$ac_ext >&5
1033 CPP="${CC-cc} -E -traditional-cpp"
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041 { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1043 if test -z "$ac_err"; then
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1050 CPP="${CC-cc} -nologo -E"
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058 { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060 if test -z "$ac_err"; then
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1074 ac_cv_prog_CPP="$CPP"
1076 CPP="$ac_cv_prog_CPP"
1078 ac_cv_prog_CPP="$CPP"
1080 echo "$ac_t""$CPP" 1>&6
1083 if test $host != $build; then
1084 ac_tool_prefix=${host_alias}-
1089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$RANLIB"; then
1097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1111 RANLIB="$ac_cv_prog_RANLIB"
1112 if test -n "$RANLIB"; then
1113 echo "$ac_t""$RANLIB" 1>&6
1115 echo "$ac_t""no" 1>&6
1119 if test -z "$ac_cv_prog_RANLIB"; then
1120 if test -n "$ac_tool_prefix"; then
1121 # Extract the first word of "ranlib", so it can be a program name with args.
1122 set dummy ranlib; ac_word=$2
1123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124 echo "configure:1125: checking for $ac_word" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 if test -n "$RANLIB"; then
1129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1133 for ac_dir in $ac_dummy; do
1134 test -z "$ac_dir" && ac_dir=.
1135 if test -f $ac_dir/$ac_word; then
1136 ac_cv_prog_RANLIB="ranlib"
1141 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1144 RANLIB="$ac_cv_prog_RANLIB"
1145 if test -n "$RANLIB"; then
1146 echo "$ac_t""$RANLIB" 1>&6
1148 echo "$ac_t""no" 1>&6
1157 ALL_LINGUAS="de fr ru"
1159 cat >> confdefs.h <<EOF
1160 #define PACKAGE "vlc"
1163 cat >> confdefs.h <<EOF
1164 #define VERSION "$VLC_VERSION"
1167 # Extract the first word of "ranlib", so it can be a program name with args.
1168 set dummy ranlib; ac_word=$2
1169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170 echo "configure:1171: checking for $ac_word" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 if test -n "$RANLIB"; then
1175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 for ac_dir in $ac_dummy; do
1180 test -z "$ac_dir" && ac_dir=.
1181 if test -f $ac_dir/$ac_word; then
1182 ac_cv_prog_RANLIB="ranlib"
1187 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1190 RANLIB="$ac_cv_prog_RANLIB"
1191 if test -n "$RANLIB"; then
1192 echo "$ac_t""$RANLIB" 1>&6
1194 echo "$ac_t""no" 1>&6
1198 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1199 echo "configure:1200: checking for strerror in -lcposix" >&5
1200 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 ac_save_LIBS="$LIBS"
1205 LIBS="-lcposix $LIBS"
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 /* Override any gcc2 internal prototype to avoid an error. */
1210 /* We use char because int might match the return type of a gcc2
1211 builtin and then its argument prototype would still apply. */
1218 if { (eval echo configure:1219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1220 eval "ac_cv_lib_$ac_lib_var=yes"
1222 echo "configure: failed program was:" >&5
1223 cat conftest.$ac_ext >&5
1225 eval "ac_cv_lib_$ac_lib_var=no"
1228 LIBS="$ac_save_LIBS"
1231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1232 echo "$ac_t""yes" 1>&6
1233 LIBS="$LIBS -lcposix"
1235 echo "$ac_t""no" 1>&6
1240 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1241 echo "configure:1242: checking for ANSI C header files" >&5
1242 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1254 { (eval echo configure:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1256 if test -z "$ac_err"; then
1258 ac_cv_header_stdc=yes
1261 echo "configure: failed program was:" >&5
1262 cat conftest.$ac_ext >&5
1264 ac_cv_header_stdc=no
1268 if test $ac_cv_header_stdc = yes; then
1269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1270 cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1276 egrep "memchr" >/dev/null 2>&1; then
1280 ac_cv_header_stdc=no
1286 if test $ac_cv_header_stdc = yes; then
1287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1288 cat > conftest.$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1294 egrep "free" >/dev/null 2>&1; then
1298 ac_cv_header_stdc=no
1304 if test $ac_cv_header_stdc = yes; then
1305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1306 if test "$cross_compiling" = yes; then
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1313 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1314 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1316 int main () { int i; for (i = 0; i < 256; i++)
1317 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1321 if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1328 ac_cv_header_stdc=no
1336 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1337 if test $ac_cv_header_stdc = yes; then
1338 cat >> confdefs.h <<\EOF
1339 #define STDC_HEADERS 1
1344 echo $ac_n "checking for working const""... $ac_c" 1>&6
1345 echo "configure:1346: checking for working const" >&5
1346 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1355 /* Ultrix mips cc rejects this. */
1356 typedef int charset[2]; const charset x;
1357 /* SunOS 4.1.1 cc rejects this. */
1358 char const *const *ccp;
1360 /* NEC SVR4.0.2 mips cc rejects this. */
1361 struct point {int x, y;};
1362 static struct point const zero = {0,0};
1363 /* AIX XL C 1.02.0.0 rejects this.
1364 It does not let you subtract one const X* pointer from another in an arm
1365 of an if-expression whose if-part is not a constant expression */
1366 const char *g = "string";
1367 ccp = &g + (g ? g-g : 0);
1368 /* HPUX 7.0 cc rejects these. */
1371 ccp = (char const *const *) p;
1372 { /* SCO 3.2v4 cc rejects this. */
1374 char const *s = 0 ? (char *) 0 : (char const *) 0;
1378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1380 const int *foo = &x[0];
1383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1384 typedef const int *iptr;
1388 { /* AIX XL C 1.02.0.0 rejects this saying
1389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1390 struct s { int j; const int *ap[3]; };
1391 struct s *b; b->j = 5;
1393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1399 if { (eval echo configure:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1411 echo "$ac_t""$ac_cv_c_const" 1>&6
1412 if test $ac_cv_c_const = no; then
1413 cat >> confdefs.h <<\EOF
1419 echo $ac_n "checking for inline""... $ac_c" 1>&6
1420 echo "configure:1421: checking for inline" >&5
1421 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1425 for ac_kw in inline __inline__ __inline; do
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1434 if { (eval echo configure:1435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1436 ac_cv_c_inline=$ac_kw; break
1438 echo "configure: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1446 echo "$ac_t""$ac_cv_c_inline" 1>&6
1447 case "$ac_cv_c_inline" in
1449 no) cat >> confdefs.h <<\EOF
1453 *) cat >> confdefs.h <<EOF
1454 #define inline $ac_cv_c_inline
1459 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1460 echo "configure:1461: checking for off_t" >&5
1461 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <sys/types.h>
1473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1474 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1476 ac_cv_type_off_t=yes
1484 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1485 if test $ac_cv_type_off_t = no; then
1486 cat >> confdefs.h <<\EOF
1492 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1493 echo "configure:1494: checking for size_t" >&5
1494 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 #include <sys/types.h>
1506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1507 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1509 ac_cv_type_size_t=yes
1512 ac_cv_type_size_t=no
1517 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1518 if test $ac_cv_type_size_t = no; then
1519 cat >> confdefs.h <<\EOF
1520 #define size_t unsigned
1525 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1526 # for constant arguments. Useless!
1527 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1528 echo "configure:1529: checking for working alloca.h" >&5
1529 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1537 char *p = alloca(2 * sizeof(int));
1540 if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1542 ac_cv_header_alloca_h=yes
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1547 ac_cv_header_alloca_h=no
1552 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1553 if test $ac_cv_header_alloca_h = yes; then
1554 cat >> confdefs.h <<\EOF
1555 #define HAVE_ALLOCA_H 1
1560 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1561 echo "configure:1562: checking for alloca" >&5
1562 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1570 # define alloca __builtin_alloca
1573 # include <malloc.h>
1574 # define alloca _alloca
1577 # include <alloca.h>
1582 # ifndef alloca /* predefined by HP cc +Olibcalls */
1591 char *p = (char *) alloca(1);
1594 if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1596 ac_cv_func_alloca_works=yes
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 ac_cv_func_alloca_works=no
1606 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1607 if test $ac_cv_func_alloca_works = yes; then
1608 cat >> confdefs.h <<\EOF
1609 #define HAVE_ALLOCA 1
1614 if test $ac_cv_func_alloca_works = no; then
1615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1616 # that cause trouble. Some versions do not even contain alloca or
1617 # contain a buggy version. If you still want to use their alloca,
1618 # use ar to extract alloca.o from them instead of compiling alloca.c.
1619 ALLOCA=alloca.${ac_objext}
1620 cat >> confdefs.h <<\EOF
1625 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1626 echo "configure:1627: checking whether alloca needs Cray hooks" >&5
1627 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 #if defined(CRAY) && ! defined(CRAY2)
1640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1641 egrep "webecray" >/dev/null 2>&1; then
1652 echo "$ac_t""$ac_cv_os_cray" 1>&6
1653 if test $ac_cv_os_cray = yes; then
1654 for ac_func in _getb67 GETB67 getb67; do
1655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1656 echo "configure:1657: checking for $ac_func" >&5
1657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1663 /* System header to define __stub macros and hopefully few prototypes,
1664 which can conflict with char $ac_func(); below. */
1666 /* Override any gcc2 internal prototype to avoid an error. */
1667 /* We use char because int might match the return type of a gcc2
1668 builtin and then its argument prototype would still apply. */
1673 /* The GNU C library defines this for functions which it implements
1674 to always fail with ENOSYS. Some functions are actually named
1675 something starting with __ and the normal name is an alias. */
1676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1686 eval "ac_cv_func_$ac_func=yes"
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 eval "ac_cv_func_$ac_func=no"
1696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1697 echo "$ac_t""yes" 1>&6
1698 cat >> confdefs.h <<EOF
1699 #define CRAY_STACKSEG_END $ac_func
1704 echo "$ac_t""no" 1>&6
1710 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1711 echo "configure:1712: checking stack direction for C alloca" >&5
1712 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 if test "$cross_compiling" = yes; then
1716 ac_cv_c_stack_direction=0
1718 cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 find_stack_direction ()
1723 static char *addr = 0;
1728 return find_stack_direction ();
1731 return (&dummy > addr) ? 1 : -1;
1735 exit (find_stack_direction() < 0);
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1740 ac_cv_c_stack_direction=1
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 ac_cv_c_stack_direction=-1
1752 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1753 cat >> confdefs.h <<EOF
1754 #define STACK_DIRECTION $ac_cv_c_stack_direction
1759 for ac_hdr in unistd.h
1761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1763 echo "configure:1764: checking for $ac_hdr" >&5
1764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1773 { (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1775 if test -z "$ac_err"; then
1777 eval "ac_cv_header_$ac_safe=yes"
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1783 eval "ac_cv_header_$ac_safe=no"
1787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1788 echo "$ac_t""yes" 1>&6
1789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1790 cat >> confdefs.h <<EOF
1791 #define $ac_tr_hdr 1
1795 echo "$ac_t""no" 1>&6
1799 for ac_func in getpagesize
1801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_func" >&5
1803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $ac_func(); below. */
1812 /* Override any gcc2 internal prototype to avoid an error. */
1813 /* We use char because int might match the return type of a gcc2
1814 builtin and then its argument prototype would still apply. */
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1832 eval "ac_cv_func_$ac_func=yes"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1837 eval "ac_cv_func_$ac_func=no"
1842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1845 cat >> confdefs.h <<EOF
1846 #define $ac_tr_func 1
1850 echo "$ac_t""no" 1>&6
1854 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1855 echo "configure:1856: checking for working mmap" >&5
1856 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test "$cross_compiling" = yes; then
1860 ac_cv_func_mmap_fixed_mapped=no
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1866 /* Thanks to Mike Haertel and Jim Avera for this test.
1867 Here is a matrix of mmap possibilities:
1868 mmap private not fixed
1869 mmap private fixed at somewhere currently unmapped
1870 mmap private fixed at somewhere already mapped
1871 mmap shared not fixed
1872 mmap shared fixed at somewhere currently unmapped
1873 mmap shared fixed at somewhere already mapped
1874 For private mappings, we should verify that changes cannot be read()
1875 back from the file, nor mmap's back from the file at a different
1876 address. (There have been systems where private was not correctly
1877 implemented like the infamous i386 svr4.0, and systems where the
1878 VM page cache was not coherent with the filesystem buffer cache
1879 like early versions of FreeBSD and possibly contemporary NetBSD.)
1880 For shared mappings, we should conversely verify that changes get
1881 propogated back to all the places they're supposed to be.
1883 Grep wants private fixed already mapped.
1884 The main things grep needs to know about mmap are:
1885 * does it exist and is it safe to write into the mmap'd area
1886 * how to use it (BSD variants) */
1887 #include <sys/types.h>
1889 #include <sys/mman.h>
1891 /* This mess was copied from the GNU getpagesize.h. */
1892 #ifndef HAVE_GETPAGESIZE
1893 # ifdef HAVE_UNISTD_H
1894 # include <unistd.h>
1897 /* Assume that all systems that can run configure have sys/param.h. */
1898 # ifndef HAVE_SYS_PARAM_H
1899 # define HAVE_SYS_PARAM_H 1
1902 # ifdef _SC_PAGESIZE
1903 # define getpagesize() sysconf(_SC_PAGESIZE)
1904 # else /* no _SC_PAGESIZE */
1905 # ifdef HAVE_SYS_PARAM_H
1906 # include <sys/param.h>
1907 # ifdef EXEC_PAGESIZE
1908 # define getpagesize() EXEC_PAGESIZE
1909 # else /* no EXEC_PAGESIZE */
1911 # define getpagesize() NBPG * CLSIZE
1914 # endif /* no CLSIZE */
1915 # else /* no NBPG */
1917 # define getpagesize() NBPC
1918 # else /* no NBPC */
1920 # define getpagesize() PAGESIZE
1921 # endif /* PAGESIZE */
1922 # endif /* no NBPC */
1923 # endif /* no NBPG */
1924 # endif /* no EXEC_PAGESIZE */
1925 # else /* no HAVE_SYS_PARAM_H */
1926 # define getpagesize() 8192 /* punt totally */
1927 # endif /* no HAVE_SYS_PARAM_H */
1928 # endif /* no _SC_PAGESIZE */
1930 #endif /* no HAVE_GETPAGESIZE */
1933 extern "C" { void *malloc(unsigned); }
1941 char *data, *data2, *data3;
1945 pagesize = getpagesize();
1948 * First, make a file with some known garbage in it.
1950 data = malloc(pagesize);
1953 for (i = 0; i < pagesize; ++i)
1954 *(data + i) = rand();
1956 fd = creat("conftestmmap", 0600);
1959 if (write(fd, data, pagesize) != pagesize)
1964 * Next, try to mmap the file at a fixed address which
1965 * already has something else allocated at it. If we can,
1966 * also make sure that we see the same garbage.
1968 fd = open("conftestmmap", O_RDWR);
1971 data2 = malloc(2 * pagesize);
1974 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1975 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1978 for (i = 0; i < pagesize; ++i)
1979 if (*(data + i) != *(data2 + i))
1983 * Finally, make sure that changes to the mapped area
1984 * do not percolate back to the file as seen by read().
1985 * (This is a bug on some variants of i386 svr4.0.)
1987 for (i = 0; i < pagesize; ++i)
1988 *(data2 + i) = *(data2 + i) + 1;
1989 data3 = malloc(pagesize);
1992 if (read(fd, data3, pagesize) != pagesize)
1994 for (i = 0; i < pagesize; ++i)
1995 if (*(data + i) != *(data3 + i))
1998 unlink("conftestmmap");
2003 if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2005 ac_cv_func_mmap_fixed_mapped=yes
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2010 ac_cv_func_mmap_fixed_mapped=no
2017 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2018 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2019 cat >> confdefs.h <<\EOF
2026 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2027 echo "configure:2028: checking whether we are using the GNU C Library 2.1 or newer" >&5
2028 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2035 #include <features.h>
2036 #ifdef __GNU_LIBRARY__
2037 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2044 egrep "Lucky GNU user" >/dev/null 2>&1; then
2046 ac_cv_gnu_library_2_1=yes
2049 ac_cv_gnu_library_2_1=no
2057 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2059 GLIBC21="$ac_cv_gnu_library_2_1"
2063 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2064 stdlib.h string.h unistd.h sys/param.h
2066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_hdr" >&5
2069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then
2082 eval "ac_cv_header_$ac_safe=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 eval "ac_cv_header_$ac_safe=no"
2092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2095 cat >> confdefs.h <<EOF
2096 #define $ac_tr_hdr 1
2100 echo "$ac_t""no" 1>&6
2104 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2105 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2106 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_func" >&5
2110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 /* System header to define __stub macros and hopefully few prototypes,
2117 which can conflict with char $ac_func(); below. */
2119 /* Override any gcc2 internal prototype to avoid an error. */
2120 /* We use char because int might match the return type of a gcc2
2121 builtin and then its argument prototype would still apply. */
2126 /* The GNU C library defines this for functions which it implements
2127 to always fail with ENOSYS. Some functions are actually named
2128 something starting with __ and the normal name is an alias. */
2129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2139 eval "ac_cv_func_$ac_func=yes"
2141 echo "configure: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2144 eval "ac_cv_func_$ac_func=no"
2149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2152 cat >> confdefs.h <<EOF
2153 #define $ac_tr_func 1
2157 echo "$ac_t""no" 1>&6
2164 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2165 if test "${with_libiconv_prefix+set}" = set; then
2166 withval="$with_libiconv_prefix"
2168 for dir in `echo "$withval" | tr : ' '`; do
2169 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2170 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2176 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2177 echo "configure:2178: checking for iconv" >&5
2178 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2182 am_cv_func_iconv="no, consider installing GNU libiconv"
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2190 iconv_t cd = iconv_open("","");
2191 iconv(cd,NULL,NULL,NULL,NULL);
2195 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2197 am_cv_func_iconv=yes
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2203 if test "$am_cv_func_iconv" != yes; then
2204 am_save_LIBS="$LIBS"
2205 LIBS="$LIBS -liconv"
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2212 iconv_t cd = iconv_open("","");
2213 iconv(cd,NULL,NULL,NULL,NULL);
2217 if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2220 am_cv_func_iconv=yes
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2226 LIBS="$am_save_LIBS"
2231 echo "$ac_t""$am_cv_func_iconv" 1>&6
2232 if test "$am_cv_func_iconv" = yes; then
2233 cat >> confdefs.h <<\EOF
2234 #define HAVE_ICONV 1
2237 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2238 echo "configure:2239: checking for iconv declaration" >&5
2239 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2253 #if defined(__STDC__) || defined(__cplusplus)
2254 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2263 if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2265 am_cv_proto_iconv_arg1=""
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2270 am_cv_proto_iconv_arg1="const"
2273 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);"
2276 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2277 echo "$ac_t""${ac_t:-
2278 }$am_cv_proto_iconv" 1>&6
2279 cat >> confdefs.h <<EOF
2280 #define ICONV_CONST $am_cv_proto_iconv_arg1
2285 if test "$am_cv_lib_iconv" = yes; then
2291 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2292 echo "configure:2293: checking for nl_langinfo and CODESET" >&5
2293 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 #include <langinfo.h>
2301 char* cs = nl_langinfo(CODESET);
2304 if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2306 am_cv_langinfo_codeset=yes
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2311 am_cv_langinfo_codeset=no
2317 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2318 if test $am_cv_langinfo_codeset = yes; then
2319 cat >> confdefs.h <<\EOF
2320 #define HAVE_LANGINFO_CODESET 1
2325 if test $ac_cv_header_locale_h = yes; then
2326 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2327 echo "configure:2328: checking for LC_MESSAGES" >&5
2328 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2339 if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2341 am_cv_val_LC_MESSAGES=yes
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2346 am_cv_val_LC_MESSAGES=no
2351 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2352 if test $am_cv_val_LC_MESSAGES = yes; then
2353 cat >> confdefs.h <<\EOF
2354 #define HAVE_LC_MESSAGES 1
2359 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2360 echo "configure:2361: checking whether NLS is requested" >&5
2361 # Check whether --enable-nls or --disable-nls was given.
2362 if test "${enable_nls+set}" = set; then
2363 enableval="$enable_nls"
2369 echo "$ac_t""$USE_NLS" 1>&6
2372 BUILD_INCLUDED_LIBINTL=no
2373 USE_INCLUDED_LIBINTL=no
2376 if test "$USE_NLS" = "yes"; then
2377 cat >> confdefs.h <<\EOF
2378 #define ENABLE_NLS 1
2381 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2382 echo "configure:2383: checking whether included gettext is requested" >&5
2383 # Check whether --with-included-gettext or --without-included-gettext was given.
2384 if test "${with_included_gettext+set}" = set; then
2385 withval="$with_included_gettext"
2386 nls_cv_force_use_gnu_gettext=$withval
2388 nls_cv_force_use_gnu_gettext=no
2391 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2393 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2394 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2400 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2401 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2402 echo "configure:2403: checking for libintl.h" >&5
2403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 #include <libintl.h>
2411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2412 { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2414 if test -z "$ac_err"; then
2416 eval "ac_cv_header_$ac_safe=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2422 eval "ac_cv_header_$ac_safe=no"
2426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2429 echo "configure:2430: checking for GNU gettext in libc" >&5
2430 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 #include <libintl.h>
2437 extern int _nl_msg_cat_cntr;
2439 bindtextdomain ("", "");
2440 return (int) gettext ("") + _nl_msg_cat_cntr
2443 if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2445 gt_cv_func_gnugettext1_libc=yes
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2450 gt_cv_func_gnugettext1_libc=no
2455 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2457 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2458 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2459 echo "configure:2460: checking for GNU gettext in libintl" >&5
2460 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 gt_save_LIBS="$LIBS"
2464 LIBS="$LIBS -lintl $LIBICONV"
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <libintl.h>
2469 extern int _nl_msg_cat_cntr;
2471 bindtextdomain ("", "");
2472 return (int) gettext ("") + _nl_msg_cat_cntr
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2477 gt_cv_func_gnugettext1_libintl=yes
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 gt_cv_func_gnugettext1_libintl=no
2485 LIBS="$gt_save_LIBS"
2488 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2491 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2492 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2493 && test "$PACKAGE" != gettext; }; then
2494 cat >> confdefs.h <<\EOF
2495 #define HAVE_GETTEXT 1
2499 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2500 INTLLIBS="-lintl $LIBICONV"
2503 gt_save_LIBS="$LIBS"
2504 LIBS="$LIBS $INTLLIBS"
2505 for ac_func in dcgettext
2507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_func" >&5
2509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 /* System header to define __stub macros and hopefully few prototypes,
2516 which can conflict with char $ac_func(); below. */
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2525 /* The GNU C library defines this for functions which it implements
2526 to always fail with ENOSYS. Some functions are actually named
2527 something starting with __ and the normal name is an alias. */
2528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2536 if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2538 eval "ac_cv_func_$ac_func=yes"
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2543 eval "ac_cv_func_$ac_func=no"
2548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2549 echo "$ac_t""yes" 1>&6
2550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2551 cat >> confdefs.h <<EOF
2552 #define $ac_tr_func 1
2556 echo "$ac_t""no" 1>&6
2560 LIBS="$gt_save_LIBS"
2562 # Extract the first word of "msgfmt", so it can be a program name with args.
2563 set dummy msgfmt; ac_word=$2
2564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_word" >&5
2566 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2571 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2575 for ac_dir in $PATH; do
2576 test -z "$ac_dir" && ac_dir=.
2577 if test -f $ac_dir/$ac_word; then
2578 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2579 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2585 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2589 MSGFMT="$ac_cv_path_MSGFMT"
2590 if test "$MSGFMT" != ":"; then
2591 echo "$ac_t""$MSGFMT" 1>&6
2593 echo "$ac_t""no" 1>&6
2596 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2597 set dummy gmsgfmt; ac_word=$2
2598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2599 echo "configure:2600: checking for $ac_word" >&5
2600 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2605 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2608 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2613 for ac_dir in $ac_dummy; do
2614 test -z "$ac_dir" && ac_dir=.
2615 if test -f $ac_dir/$ac_word; then
2616 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2621 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2625 GMSGFMT="$ac_cv_path_GMSGFMT"
2626 if test -n "$GMSGFMT"; then
2627 echo "$ac_t""$GMSGFMT" 1>&6
2629 echo "$ac_t""no" 1>&6
2633 # Extract the first word of "xgettext", so it can be a program name with args.
2634 set dummy xgettext; ac_word=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2642 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2646 for ac_dir in $PATH; do
2647 test -z "$ac_dir" && ac_dir=.
2648 if test -f $ac_dir/$ac_word; then
2649 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2650 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2656 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2660 XGETTEXT="$ac_cv_path_XGETTEXT"
2661 if test "$XGETTEXT" != ":"; then
2662 echo "$ac_t""$XGETTEXT" 1>&6
2664 echo "$ac_t""no" 1>&6
2672 echo "$ac_t""no" 1>&6
2676 if test "$CATOBJEXT" = "NONE"; then
2677 nls_cv_use_gnu_gettext=yes
2681 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2682 INTLOBJS="\$(GETTOBJS)"
2683 # Extract the first word of "msgfmt", so it can be a program name with args.
2684 set dummy msgfmt; ac_word=$2
2685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2686 echo "configure:2687: checking for $ac_word" >&5
2687 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2692 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2696 for ac_dir in $PATH; do
2697 test -z "$ac_dir" && ac_dir=.
2698 if test -f $ac_dir/$ac_word; then
2699 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2700 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2706 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2710 MSGFMT="$ac_cv_path_MSGFMT"
2711 if test "$MSGFMT" != ":"; then
2712 echo "$ac_t""$MSGFMT" 1>&6
2714 echo "$ac_t""no" 1>&6
2717 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2718 set dummy gmsgfmt; ac_word=$2
2719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2720 echo "configure:2721: checking for $ac_word" >&5
2721 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2726 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2729 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2734 for ac_dir in $ac_dummy; do
2735 test -z "$ac_dir" && ac_dir=.
2736 if test -f $ac_dir/$ac_word; then
2737 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2742 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2746 GMSGFMT="$ac_cv_path_GMSGFMT"
2747 if test -n "$GMSGFMT"; then
2748 echo "$ac_t""$GMSGFMT" 1>&6
2750 echo "$ac_t""no" 1>&6
2753 # Extract the first word of "xgettext", so it can be a program name with args.
2754 set dummy xgettext; ac_word=$2
2755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_word" >&5
2757 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2762 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2766 for ac_dir in $PATH; do
2767 test -z "$ac_dir" && ac_dir=.
2768 if test -f $ac_dir/$ac_word; then
2769 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2770 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2776 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2780 XGETTEXT="$ac_cv_path_XGETTEXT"
2781 if test "$XGETTEXT" != ":"; then
2782 echo "$ac_t""$XGETTEXT" 1>&6
2784 echo "$ac_t""no" 1>&6
2788 BUILD_INCLUDED_LIBINTL=yes
2789 USE_INCLUDED_LIBINTL=yes
2791 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2792 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2795 if test "$GMSGFMT" != ":"; then
2796 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2799 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2804 if test "$XGETTEXT" != ":"; then
2805 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2808 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2818 if test "$PACKAGE" = gettext; then
2819 BUILD_INCLUDED_LIBINTL=yes
2822 for ac_prog in bison
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_word" >&5
2828 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 if test -n "$INTLBISON"; then
2832 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2836 for ac_dir in $ac_dummy; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 ac_cv_prog_INTLBISON="$ac_prog"
2846 INTLBISON="$ac_cv_prog_INTLBISON"
2847 if test -n "$INTLBISON"; then
2848 echo "$ac_t""$INTLBISON" 1>&6
2850 echo "$ac_t""no" 1>&6
2853 test -n "$INTLBISON" && break
2856 if test -z "$INTLBISON"; then
2859 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2860 echo "configure:2861: checking version of bison" >&5
2861 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2862 case $ac_prog_version in
2863 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2864 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2865 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2866 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2868 echo "$ac_t""$ac_prog_version" 1>&6
2870 if test $ac_verc_fail = yes; then
2874 for lang in $ALL_LINGUAS; do
2875 GMOFILES="$GMOFILES $lang.gmo"
2876 POFILES="$POFILES $lang.po"
2890 nls_cv_header_libgt=
2902 if test "x$CATOBJEXT" != "x"; then
2903 if test "x$ALL_LINGUAS" = "x"; then
2906 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2907 echo "configure:2908: checking for catalogs to be installed" >&5
2909 for presentlang in $ALL_LINGUAS; do
2911 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2912 # Use the presentlang catalog if desiredlang is
2913 # a. equal to presentlang, or
2914 # b. a variant of presentlang (because in this case,
2915 # presentlang can be used as a fallback for messages
2916 # which are not translated in the desiredlang catalog).
2917 case "$desiredlang" in
2918 "$presentlang"*) useit=yes;;
2921 if test $useit = yes; then
2922 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2925 LINGUAS=$NEW_LINGUAS
2926 echo "$ac_t""$LINGUAS" 1>&6
2929 if test -n "$LINGUAS"; then
2930 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2935 if test -n "$ac_aux_dir"; then
2936 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2938 if test -z "$MKINSTALLDIRS"; then
2939 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2943 INTL_LIBTOOL_SUFFIX_PREFIX=
2947 # Find a good install program. We prefer a C program (faster),
2948 # so one script is as good as another. But avoid the broken or
2949 # incompatible versions:
2950 # SysV /etc/install, /usr/sbin/install
2951 # SunOS /usr/etc/install
2952 # IRIX /sbin/install
2954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957 # ./install, which can be erroneously created by make from ./install.sh.
2958 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2959 echo "configure:2960: checking for a BSD compatible install" >&5
2960 if test -z "$INSTALL"; then
2961 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2965 for ac_dir in $PATH; do
2966 # Account for people who put trailing slashes in PATH elements.
2968 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2970 # OSF1 and SCO ODT 3.0 have their own names for install.
2971 # Don't use installbsd from OSF since it installs stuff as root
2973 for ac_prog in ginstall scoinst install; do
2974 if test -f $ac_dir/$ac_prog; then
2975 if test $ac_prog = install &&
2976 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2977 # AIX install. It has an incompatible calling convention.
2980 ac_cv_path_install="$ac_dir/$ac_prog -c"
2991 if test "${ac_cv_path_install+set}" = set; then
2992 INSTALL="$ac_cv_path_install"
2994 # As a last resort, use the slow shell script. We don't cache a
2995 # path for INSTALL within a source directory, because that will
2996 # break other packages using the cache if that directory is
2997 # removed, or if the path is relative.
2998 INSTALL="$ac_install_sh"
3001 echo "$ac_t""$INSTALL" 1>&6
3003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3004 # It thinks the first close brace ends the variable substitution.
3005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3012 # Check whether --with-words or --without-words was given.
3013 if test "${with_words+set}" = set; then
3014 withval="$with_words"
3020 ac_cv_c_bigendian=yes
3023 ac_cv_c_bigendian=no
3026 ac_cv_c_bigendian=unknown
3027 echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
3028 echo "configure:3029: checking what the byte order looks to be" >&5
3029 cat >conftest.c <<EOF
3030 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
3031 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
3032 void _a(void) { char*s = (char*)am; s = (char *)ai; }
3033 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
3034 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
3035 void _e(void) { char*s = (char*)em; s = (char*)ei; }
3036 int main(void) { _a(); _e(); return 0; }
3039 if test -f conftest.c
3041 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
3042 && test -f conftest.o
3044 if test `grep -l BIGenDianSyS conftest.o`
3046 echo "$ac_t"""big endian"" 1>&6
3047 ac_cv_c_bigendian=yes
3049 if test `grep -l LiTTleEnDian conftest.o`
3051 echo "$ac_t"""little endian"" 1>&6
3052 ac_cv_c_bigendian=no
3056 if test $ac_cv_c_bigendian = xunknown
3058 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
3060 if test $ac_cv_c_bigendian = yes
3062 cat >> confdefs.h <<\EOF
3063 #define WORDS_BIGENDIAN 1
3069 for ac_func in gettimeofday select strerror strtod strtol isatty
3071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3072 echo "configure:3073: checking for $ac_func" >&5
3073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 /* System header to define __stub macros and hopefully few prototypes,
3080 which can conflict with char $ac_func(); below. */
3082 /* Override any gcc2 internal prototype to avoid an error. */
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3089 /* The GNU C library defines this for functions which it implements
3090 to always fail with ENOSYS. Some functions are actually named
3091 something starting with __ and the normal name is an alias. */
3092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3100 if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3102 eval "ac_cv_func_$ac_func=yes"
3104 echo "configure: failed program was:" >&5
3105 cat conftest.$ac_ext >&5
3107 eval "ac_cv_func_$ac_func=no"
3112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3113 echo "$ac_t""yes" 1>&6
3114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3115 cat >> confdefs.h <<EOF
3116 #define $ac_tr_func 1
3120 echo "$ac_t""no" 1>&6
3124 echo $ac_n "checking for connect""... $ac_c" 1>&6
3125 echo "configure:3126: checking for connect" >&5
3126 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 /* System header to define __stub macros and hopefully few prototypes,
3133 which can conflict with char connect(); below. */
3135 /* Override any gcc2 internal prototype to avoid an error. */
3136 /* We use char because int might match the return type of a gcc2
3137 builtin and then its argument prototype would still apply. */
3142 /* The GNU C library defines this for functions which it implements
3143 to always fail with ENOSYS. Some functions are actually named
3144 something starting with __ and the normal name is an alias. */
3145 #if defined (__stub_connect) || defined (__stub___connect)
3153 if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 eval "ac_cv_func_connect=yes"
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3160 eval "ac_cv_func_connect=no"
3165 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3166 echo "$ac_t""yes" 1>&6
3169 echo "$ac_t""no" 1>&6
3171 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3172 echo "configure:3173: checking for connect in -lsocket" >&5
3173 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 ac_save_LIBS="$LIBS"
3178 LIBS="-lsocket $LIBS"
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 /* Override any gcc2 internal prototype to avoid an error. */
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3193 eval "ac_cv_lib_$ac_lib_var=yes"
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 eval "ac_cv_lib_$ac_lib_var=no"
3201 LIBS="$ac_save_LIBS"
3204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 LIB="${LIB} -lsocket"
3208 echo "$ac_t""no" 1>&6
3214 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3215 echo "configure:3216: checking for gethostbyname" >&5
3216 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* System header to define __stub macros and hopefully few prototypes,
3223 which can conflict with char gethostbyname(); below. */
3225 /* Override any gcc2 internal prototype to avoid an error. */
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3228 char gethostbyname();
3232 /* The GNU C library defines this for functions which it implements
3233 to always fail with ENOSYS. Some functions are actually named
3234 something starting with __ and the normal name is an alias. */
3235 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3245 eval "ac_cv_func_gethostbyname=yes"
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 eval "ac_cv_func_gethostbyname=no"
3255 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3259 echo "$ac_t""no" 1>&6
3261 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3262 echo "configure:3263: checking for gethostbyname in -lnsl" >&5
3263 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 ac_save_LIBS="$LIBS"
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 /* Override any gcc2 internal prototype to avoid an error. */
3273 /* We use char because int might match the return type of a gcc2
3274 builtin and then its argument prototype would still apply. */
3275 char gethostbyname();
3281 if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3283 eval "ac_cv_lib_$ac_lib_var=yes"
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3288 eval "ac_cv_lib_$ac_lib_var=no"
3291 LIBS="$ac_save_LIBS"
3294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3298 echo "$ac_t""no" 1>&6
3304 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3305 echo "configure:3306: checking for nanosleep" >&5
3306 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* System header to define __stub macros and hopefully few prototypes,
3313 which can conflict with char nanosleep(); below. */
3315 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3322 /* The GNU C library defines this for functions which it implements
3323 to always fail with ENOSYS. Some functions are actually named
3324 something starting with __ and the normal name is an alias. */
3325 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3333 if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3335 eval "ac_cv_func_nanosleep=yes"
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3340 eval "ac_cv_func_nanosleep=no"
3345 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3349 echo "$ac_t""no" 1>&6
3351 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3352 echo "configure:3353: checking for nanosleep in -lrt" >&5
3353 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 ac_save_LIBS="$LIBS"
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 eval "ac_cv_lib_$ac_lib_var=no"
3381 LIBS="$ac_save_LIBS"
3384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3388 echo "$ac_t""no" 1>&6
3390 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3391 echo "configure:3392: checking for nanosleep in -lposix4" >&5
3392 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 ac_save_LIBS="$LIBS"
3397 LIBS="-lposix4 $LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 eval "ac_cv_lib_$ac_lib_var=yes"
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 eval "ac_cv_lib_$ac_lib_var=no"
3420 LIBS="$ac_save_LIBS"
3423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 LIB="${LIB} -lposix4"
3427 echo "$ac_t""no" 1>&6
3436 for ac_func in usleep
3438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3439 echo "configure:3440: checking for $ac_func" >&5
3440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 /* System header to define __stub macros and hopefully few prototypes,
3447 which can conflict with char $ac_func(); below. */
3449 /* Override any gcc2 internal prototype to avoid an error. */
3450 /* We use char because int might match the return type of a gcc2
3451 builtin and then its argument prototype would still apply. */
3456 /* The GNU C library defines this for functions which it implements
3457 to always fail with ENOSYS. Some functions are actually named
3458 something starting with __ and the normal name is an alias. */
3459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3467 if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 eval "ac_cv_func_$ac_func=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_func_$ac_func=no"
3479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3480 echo "$ac_t""yes" 1>&6
3481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3482 cat >> confdefs.h <<EOF
3483 #define $ac_tr_func 1
3487 echo "$ac_t""no" 1>&6
3491 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3492 echo "configure:3493: checking for inet_aton" >&5
3493 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 /* System header to define __stub macros and hopefully few prototypes,
3500 which can conflict with char inet_aton(); below. */
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3509 /* The GNU C library defines this for functions which it implements
3510 to always fail with ENOSYS. Some functions are actually named
3511 something starting with __ and the normal name is an alias. */
3512 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3520 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3522 eval "ac_cv_func_inet_aton=yes"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 eval "ac_cv_func_inet_aton=no"
3532 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3536 echo "$ac_t""no" 1>&6
3538 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3539 echo "configure:3540: checking for inet_aton in -lresolv" >&5
3540 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 ac_save_LIBS="$LIBS"
3545 LIBS="-lresolv $LIBS"
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3560 eval "ac_cv_lib_$ac_lib_var=yes"
3562 echo "configure: failed program was:" >&5
3563 cat conftest.$ac_ext >&5
3565 eval "ac_cv_lib_$ac_lib_var=no"
3568 LIBS="$ac_save_LIBS"
3571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3572 echo "$ac_t""yes" 1>&6
3573 LIB="${LIB} -lresolv"
3575 echo "$ac_t""no" 1>&6
3581 for ac_func in vasprintf
3583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3584 echo "configure:3585: checking for $ac_func" >&5
3585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 /* System header to define __stub macros and hopefully few prototypes,
3592 which can conflict with char $ac_func(); below. */
3594 /* Override any gcc2 internal prototype to avoid an error. */
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3601 /* The GNU C library defines this for functions which it implements
3602 to always fail with ENOSYS. Some functions are actually named
3603 something starting with __ and the normal name is an alias. */
3604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3614 eval "ac_cv_func_$ac_func=yes"
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3619 eval "ac_cv_func_$ac_func=no"
3624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3627 cat >> confdefs.h <<EOF
3628 #define $ac_tr_func 1
3632 echo "$ac_t""no" 1>&6
3638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3639 echo "configure:3640: checking for $ac_func" >&5
3640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
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_$ac_func=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_func_$ac_func=no"
3679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3682 cat >> confdefs.h <<EOF
3683 #define $ac_tr_func 1
3687 echo "$ac_t""no" 1>&6
3691 for ac_func in memalign valloc
3693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3694 echo "configure:3695: checking for $ac_func" >&5
3695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* System header to define __stub macros and hopefully few prototypes,
3702 which can conflict with char $ac_func(); below. */
3704 /* Override any gcc2 internal prototype to avoid an error. */
3705 /* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3711 /* The GNU C library defines this for functions which it implements
3712 to always fail with ENOSYS. Some functions are actually named
3713 something starting with __ and the normal name is an alias. */
3714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3724 eval "ac_cv_func_$ac_func=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3729 eval "ac_cv_func_$ac_func=no"
3734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3737 cat >> confdefs.h <<EOF
3738 #define $ac_tr_func 1
3742 echo "$ac_t""no" 1>&6
3747 for ac_func in sigrelse
3749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3750 echo "configure:3751: checking for $ac_func" >&5
3751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3757 /* System header to define __stub macros and hopefully few prototypes,
3758 which can conflict with char $ac_func(); below. */
3760 /* Override any gcc2 internal prototype to avoid an error. */
3761 /* We use char because int might match the return type of a gcc2
3762 builtin and then its argument prototype would still apply. */
3767 /* The GNU C library defines this for functions which it implements
3768 to always fail with ENOSYS. Some functions are actually named
3769 something starting with __ and the normal name is an alias. */
3770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3780 eval "ac_cv_func_$ac_func=yes"
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3785 eval "ac_cv_func_$ac_func=no"
3790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3791 echo "$ac_t""yes" 1>&6
3792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3793 cat >> confdefs.h <<EOF
3794 #define $ac_tr_func 1
3798 echo "$ac_t""no" 1>&6
3804 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3805 echo "configure:3806: checking for getopt_long" >&5
3806 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* System header to define __stub macros and hopefully few prototypes,
3813 which can conflict with char getopt_long(); below. */
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3822 /* The GNU C library defines this for functions which it implements
3823 to always fail with ENOSYS. Some functions are actually named
3824 something starting with __ and the normal name is an alias. */
3825 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3833 if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 eval "ac_cv_func_getopt_long=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 eval "ac_cv_func_getopt_long=no"
3845 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 cat >> confdefs.h <<\EOF
3848 #define HAVE_GETOPT_LONG 1
3852 echo "$ac_t""no" 1>&6
3853 # FreeBSD has a gnugetopt library for this:
3854 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3855 echo "configure:3856: checking for getopt_long in -lgnugetopt" >&5
3856 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 ac_save_LIBS="$LIBS"
3861 LIBS="-lgnugetopt $LIBS"
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 eval "ac_cv_lib_$ac_lib_var=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_lib_$ac_lib_var=no"
3884 LIBS="$ac_save_LIBS"
3887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3889 cat >> confdefs.h <<\EOF
3890 #define HAVE_GETOPT_LONG 1
3892 LIB="${LIB} -lgnugetopt"
3894 echo "$ac_t""no" 1>&6
3901 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3902 echo "configure:3903: checking return type of signal handlers" >&5
3903 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 #include <sys/types.h>
3915 extern "C" void (*signal (int, void (*)(int)))(int);
3917 void (*signal ()) ();
3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 ac_cv_type_signal=void
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 ac_cv_type_signal=int
3936 echo "$ac_t""$ac_cv_type_signal" 1>&6
3937 cat >> confdefs.h <<EOF
3938 #define RETSIGTYPE $ac_cv_type_signal
3942 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3943 echo "configure:3944: checking for dlopen in -ldl" >&5
3944 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 ac_save_LIBS="$LIBS"
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* Override any gcc2 internal prototype to avoid an error. */
3954 /* We use char because int might match the return type of a gcc2
3955 builtin and then its argument prototype would still apply. */
3962 if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3964 eval "ac_cv_lib_$ac_lib_var=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3969 eval "ac_cv_lib_$ac_lib_var=no"
3972 LIBS="$ac_save_LIBS"
3975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3979 echo "$ac_t""no" 1>&6
3982 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
3983 echo "configure:3984: checking for cos in -lm" >&5
3984 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
3985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3988 ac_save_LIBS="$LIBS"
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4004 eval "ac_cv_lib_$ac_lib_var=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4009 eval "ac_cv_lib_$ac_lib_var=no"
4012 LIBS="$ac_save_LIBS"
4015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4017 LIB_IMDCT="${LIB_IMDCT} -lm"
4018 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4020 echo "$ac_t""no" 1>&6
4023 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4024 echo "configure:4025: checking for pow in -lm" >&5
4025 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4029 ac_save_LIBS="$LIBS"
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 /* Override any gcc2 internal prototype to avoid an error. */
4035 /* We use char because int might match the return type of a gcc2
4036 builtin and then its argument prototype would still apply. */
4043 if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4045 eval "ac_cv_lib_$ac_lib_var=yes"
4047 echo "configure: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4050 eval "ac_cv_lib_$ac_lib_var=no"
4053 LIBS="$ac_save_LIBS"
4056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4057 echo "$ac_t""yes" 1>&6
4058 LIB_IMDCT="${LIB_IMDCT} -lm"
4059 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4060 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4063 echo "$ac_t""no" 1>&6
4068 if test "x${THREAD_LIB}" = xerror; then
4069 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4070 echo "configure:4071: checking for pthread_attr_init in -lpthread" >&5
4071 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 ac_save_LIBS="$LIBS"
4076 LIBS="-lpthread $LIBS"
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4083 char pthread_attr_init();
4089 if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4091 eval "ac_cv_lib_$ac_lib_var=yes"
4093 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 eval "ac_cv_lib_$ac_lib_var=no"
4099 LIBS="$ac_save_LIBS"
4102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 THREAD_LIB="-lpthread"
4106 echo "$ac_t""no" 1>&6
4110 if test "x${THREAD_LIB}" = xerror; then
4111 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4112 echo "configure:4113: checking for pthread_attr_init in -lpthreads" >&5
4113 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 ac_save_LIBS="$LIBS"
4118 LIBS="-lpthreads $LIBS"
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4125 char pthread_attr_init();
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4133 eval "ac_cv_lib_$ac_lib_var=yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 eval "ac_cv_lib_$ac_lib_var=no"
4141 LIBS="$ac_save_LIBS"
4144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4145 echo "$ac_t""yes" 1>&6
4146 THREAD_LIB="-lpthreads"
4148 echo "$ac_t""no" 1>&6
4152 if test "x${THREAD_LIB}" = xerror; then
4153 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4154 echo "configure:4155: checking for pthread_attr_init in -lc_r" >&5
4155 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4159 ac_save_LIBS="$LIBS"
4161 cat > conftest.$ac_ext <<EOF
4162 #line 4163 "configure"
4163 #include "confdefs.h"
4164 /* Override any gcc2 internal prototype to avoid an error. */
4165 /* We use char because int might match the return type of a gcc2
4166 builtin and then its argument prototype would still apply. */
4167 char pthread_attr_init();
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4175 eval "ac_cv_lib_$ac_lib_var=yes"
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 eval "ac_cv_lib_$ac_lib_var=no"
4183 LIBS="$ac_save_LIBS"
4186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4190 echo "$ac_t""no" 1>&6
4194 if test "x${THREAD_LIB}" = xerror; then
4195 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4196 echo "configure:4197: checking for pthread_attr_init" >&5
4197 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 /* System header to define __stub macros and hopefully few prototypes,
4204 which can conflict with char pthread_attr_init(); below. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209 char pthread_attr_init();
4213 /* The GNU C library defines this for functions which it implements
4214 to always fail with ENOSYS. Some functions are actually named
4215 something starting with __ and the normal name is an alias. */
4216 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4219 pthread_attr_init();
4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4226 eval "ac_cv_func_pthread_attr_init=yes"
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4231 eval "ac_cv_func_pthread_attr_init=no"
4236 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4237 echo "$ac_t""yes" 1>&6
4240 echo "$ac_t""no" 1>&6
4246 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4247 echo "configure:4248: checking for cthread_fork in -lthreads" >&5
4248 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_save_LIBS="$LIBS"
4253 LIBS="-lthreads $LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char cthread_fork();
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 eval "ac_cv_lib_$ac_lib_var=no"
4276 LIBS="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 THREAD_LIB="-lthreads"
4283 echo "$ac_t""no" 1>&6
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <pthread.h>
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4293 egrep "pthread_cond_t" >/dev/null 2>&1; then
4296 cat >> confdefs.h <<\EOF
4297 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 #include <strings.h>
4308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4309 egrep "strncasecmp" >/dev/null 2>&1; then
4312 cat >> confdefs.h <<\EOF
4313 #define STRNCASECMP_IN_STRINGS_H 1
4320 for ac_hdr in getopt.h strings.h
4322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_hdr" >&5
4325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4334 { (eval echo configure:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4336 if test -z "$ac_err"; then
4338 eval "ac_cv_header_$ac_safe=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 eval "ac_cv_header_$ac_safe=no"
4348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4349 echo "$ac_t""yes" 1>&6
4350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4351 cat >> confdefs.h <<EOF
4352 #define $ac_tr_hdr 1
4356 echo "$ac_t""no" 1>&6
4360 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_hdr" >&5
4365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4374 { (eval echo configure:4375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4376 if test -z "$ac_err"; then
4378 eval "ac_cv_header_$ac_safe=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_header_$ac_safe=no"
4388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4391 cat >> confdefs.h <<EOF
4392 #define $ac_tr_hdr 1
4396 echo "$ac_t""no" 1>&6
4400 for ac_hdr in sys/soundcard.h machine/soundcard.h
4402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_hdr" >&5
4405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4414 { (eval echo configure:4415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4416 if test -z "$ac_err"; then
4418 eval "ac_cv_header_$ac_safe=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 eval "ac_cv_header_$ac_safe=no"
4428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4431 cat >> confdefs.h <<EOF
4432 #define $ac_tr_hdr 1
4436 echo "$ac_t""no" 1>&6
4440 for ac_hdr in dlfcn.h image.h
4442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_hdr" >&5
4445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure:4455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4458 eval "ac_cv_header_$ac_safe=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4464 eval "ac_cv_header_$ac_safe=no"
4468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4471 cat >> confdefs.h <<EOF
4472 #define $ac_tr_hdr 1
4476 echo "$ac_t""no" 1>&6
4480 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_hdr" >&5
4485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4494 { (eval echo configure:4495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4496 if test -z "$ac_err"; then
4498 eval "ac_cv_header_$ac_safe=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 eval "ac_cv_header_$ac_safe=no"
4508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4511 cat >> confdefs.h <<EOF
4512 #define $ac_tr_hdr 1
4516 echo "$ac_t""no" 1>&6
4520 for ac_hdr in machine/param.h
4522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_hdr" >&5
4525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4534 { (eval echo configure:4535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4536 if test -z "$ac_err"; then
4538 eval "ac_cv_header_$ac_safe=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_header_$ac_safe=no"
4548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4551 cat >> confdefs.h <<EOF
4552 #define $ac_tr_hdr 1
4556 echo "$ac_t""no" 1>&6
4561 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4562 echo "configure:4563: checking whether time.h and sys/time.h may both be included" >&5
4563 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 #include <sys/types.h>
4570 #include <sys/time.h>
4576 if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4578 ac_cv_header_time=yes
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 ac_cv_header_time=no
4588 echo "$ac_t""$ac_cv_header_time" 1>&6
4589 if test $ac_cv_header_time = yes; then
4590 cat >> confdefs.h <<\EOF
4591 #define TIME_WITH_SYS_TIME 1
4597 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_hdr" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4615 eval "ac_cv_header_$ac_safe=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 eval "ac_cv_header_$ac_safe=no"
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626 echo "$ac_t""yes" 1>&6
4627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4628 cat >> confdefs.h <<EOF
4629 #define $ac_tr_hdr 1
4633 echo "$ac_t""no" 1>&6
4638 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4639 echo "configure:4640: checking for ntohl in sys/param.h" >&5
4640 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 CFLAGS="${save_CFLAGS} -Wall -Werror"
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4647 #include <sys/param.h>
4649 void foo() { int meuh; ntohl(meuh); }
4652 if { (eval echo configure:4653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4654 ac_cv_c_ntohl_sys_param_h=yes
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 ac_cv_c_ntohl_sys_param_h=no
4664 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4665 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4666 cat >> confdefs.h <<\EOF
4667 #define NTOHL_IN_SYS_PARAM_H 1
4672 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4673 echo "configure:4674: checking if \$CC accepts -finline-limit" >&5
4674 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4686 if { (eval echo configure:4687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4688 ac_cv_c_inline_limit=yes
4690 echo "configure: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4693 ac_cv_c_inline_limit=no
4698 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4699 if test x"$ac_cv_c_inline_limit" != x"no"; then
4700 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4703 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4704 echo "configure:4705: checking if \$CC accepts -Wall -Winline" >&5
4705 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 CFLAGS="${save_CFLAGS} -Wall -Winline"
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4717 if { (eval echo configure:4718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4719 ac_cv_c_Wall_Winline=yes
4721 echo "configure: failed program was:" >&5
4722 cat conftest.$ac_ext >&5
4724 ac_cv_c_Wall_Winline=no
4729 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4730 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4731 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4733 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4734 echo "configure:4735: checking if \$CC accepts -wall -winline" >&5
4735 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 CFLAGS="${save_CFLAGS} -wall -winline"
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4747 if { (eval echo configure:4748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4749 ac_cv_c_wall_winline=yes
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 ac_cv_c_wall_winline=no
4759 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4760 if test x"$ac_cv_c_wall_winline" != x"no"; then
4761 save_CFLAGS="${save_CFLAGS} -wall -winline"
4765 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4766 echo "configure:4767: checking if \$CC accepts -pipe" >&5
4767 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4770 CFLAGS="${save_CFLAGS} -pipe"
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4779 if { (eval echo configure:4780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4791 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4792 if test x"$ac_cv_c_pipe" != x"no"; then
4793 save_CFLAGS="${save_CFLAGS} -pipe"
4796 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4797 echo "configure:4798: checking if \$CC accepts -O3" >&5
4798 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 CFLAGS="${save_CFLAGS} -O3"
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4810 if { (eval echo configure:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4822 echo "$ac_t""$ac_cv_c_o3" 1>&6
4823 if test x"$ac_cv_c_o3" != x"no"; then
4824 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4826 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4827 echo "configure:4828: checking if \$CC accepts -O2" >&5
4828 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 CFLAGS="${save_CFLAGS} -O2"
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4840 if { (eval echo configure:4841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4852 echo "$ac_t""$ac_cv_c_o2" 1>&6
4853 if test x"$ac_cv_c_o2" != x"no"; then
4854 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
4856 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
4857 echo "configure:4858: checking if \$CC accepts -O" >&5
4858 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 CFLAGS="${save_CFLAGS} -O"
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4870 if { (eval echo configure:4871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4882 echo "$ac_t""$ac_cv_c_o" 1>&6
4883 if test x"$ac_cv_c_o" != x"no"; then
4884 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
4889 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
4890 echo "configure:4891: checking if \$CC accepts -ffast-math" >&5
4891 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 CFLAGS="${save_CFLAGS} -ffast-math"
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4903 if { (eval echo configure:4904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4905 ac_cv_c_fast_math=yes
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 ac_cv_c_fast_math=no
4915 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
4916 if test x"$ac_cv_c_fast_math" != x"no"; then
4917 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
4920 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
4921 echo "configure:4922: checking if \$CC accepts -funroll-loops" >&5
4922 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 CFLAGS="${save_CFLAGS} -funroll-loops"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4934 if { (eval echo configure:4935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4936 ac_cv_c_unroll_loops=yes
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4941 ac_cv_c_unroll_loops=no
4946 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
4947 if test x"$ac_cv_c_unroll_loops" != x"no"; then
4948 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
4951 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
4952 echo "configure:4953: checking if \$CC accepts -fomit-frame-pointer" >&5
4953 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4965 if { (eval echo configure:4966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4967 ac_cv_c_omit_frame_pointer=yes
4969 echo "configure: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4972 ac_cv_c_omit_frame_pointer=no
4977 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
4978 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
4979 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
4982 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
4983 echo "configure:4984: checking if \$CC accepts -bundle -undefined error" >&5
4984 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 CFLAGS="${save_CFLAGS} -bundle -undefined error"
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4996 if { (eval echo configure:4997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5008 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5009 if test x"$ac_cv_ld_darwin" != x"no"; then
5010 PLDFLAGS="${PLDFLAGS} -bundle -undefined error"
5013 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5014 echo "configure:5015: checking if \$CC accepts -shared" >&5
5015 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 CFLAGS="${save_CFLAGS} -shared"
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5027 if { (eval echo configure:5028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5029 ac_cv_ld_plugins=yes
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5039 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5040 if test x"$ac_cv_ld_plugins" != x"no"; then
5041 PLDFLAGS="${PLDFLAGS} -shared"
5044 if test x"${SOFLAGS}" = x; then
5045 echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5046 echo "configure:5047: checking for soname setting" >&5
5047 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5052 try_SOFLAGS="-Wl,-soname -Wl,"
5053 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5054 cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5064 ac_cv_ld_soname="${try_SOFLAGS}"
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5071 try_SOFLAGS="-Wl,-h -Wl,"
5072 LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5081 if { (eval echo configure:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5083 ac_cv_ld_soname="${try_SOFLAGS}"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5088 ac_cv_ld_soname=none
5096 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5097 if test x"$ac_cv_ld_soname" != x"none"; then
5098 SOFLAGS=$ac_cv_ld_soname
5102 Your system doesn't seem to have support for dynamic linking. You may
5103 have problems using libdvdcss.
5109 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5110 echo "configure:5111: checking __attribute__ ((aligned ())) support" >&5
5111 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5114 ac_cv_c_attribute_aligned=0
5115 CFLAGS="${save_CFLAGS} -Werror"
5116 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5122 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5125 if { (eval echo configure:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5127 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5136 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5137 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5138 cat >> confdefs.h <<EOF
5139 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5144 CFLAGS="${save_CFLAGS}"
5145 LDFLAGS="${save_LDFLAGS}"
5147 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5148 echo "configure:5149: checking for boolean_t in sys/types.h" >&5
5149 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 #include <sys/types.h>
5160 if { (eval echo configure:5161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5162 ac_cv_c_boolean_t_sys_types_h=yes
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5167 ac_cv_c_boolean_t_sys_types_h=no
5172 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5173 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5174 cat >> confdefs.h <<\EOF
5175 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5180 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5181 echo "configure:5182: checking for boolean_t in pthread.h" >&5
5182 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 #include <pthread.h>
5193 if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5195 ac_cv_c_boolean_t_pthread_h=yes
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5200 ac_cv_c_boolean_t_pthread_h=no
5205 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5206 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5207 cat >> confdefs.h <<\EOF
5208 #define BOOLEAN_T_IN_PTHREAD_H 1
5213 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5214 echo "configure:5215: checking for boolean_t in cthreads.h" >&5
5215 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 #include <cthreads.h>
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5228 ac_cv_c_boolean_t_cthreads_h=yes
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 ac_cv_c_boolean_t_cthreads_h=no
5238 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5239 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5240 cat >> confdefs.h <<\EOF
5241 #define BOOLEAN_T_IN_CTHREADS_H 1
5246 case x"${target_cpu}" in
5255 BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5256 PLUGINS="${PLUGINS} lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort"
5258 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5259 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5260 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5261 SSE_MODULES="imdctsse downmixsse"
5262 ALTIVEC_MODULES="idctaltivec motionaltivec"
5264 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5265 echo "configure:5266: checking if \$CC groks MMX inline assembly" >&5
5266 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5274 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5277 if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 ac_cv_mmx_inline=yes
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5289 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5290 if test x"$ac_cv_mmx_inline" != x"no"; then
5291 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5294 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5295 echo "configure:5296: checking if \$CC groks MMX EXT inline assembly" >&5
5296 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5304 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5307 if { (eval echo configure:5308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5309 ac_cv_mmxext_inline=yes
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 ac_cv_mmxext_inline=no
5319 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5320 if test x"$ac_cv_mmxext_inline" != x"no"; then
5321 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5324 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5325 echo "configure:5326: checking if \$CC groks 3D Now! inline assembly" >&5
5326 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5334 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5337 if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5339 ac_cv_3dnow_inline=yes
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 ac_cv_3dnow_inline=no
5349 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5350 if test x"$ac_cv_3dnow_inline" != x"no"; then
5351 cat >> confdefs.h <<\EOF
5352 #define CAN_COMPILE_3DNOW 1
5355 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5358 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5359 echo "configure:5360: checking if \$CC groks SSE inline assembly" >&5
5360 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5368 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5371 if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5373 ac_cv_sse_inline=yes
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5383 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5384 if test x"$ac_cv_sse_inline" != x"no"; then
5385 cat >> confdefs.h <<\EOF
5386 #define CAN_COMPILE_SSE 1
5389 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5392 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5393 echo "configure:5394: checking if \$CC groks Altivec inline assembly" >&5
5394 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5402 asm volatile("vperm 0,1,2,3");
5405 if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5407 ac_cv_altivec_inline=yes
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5413 CFLAGS="$CFLAGS -Wa,-m7400"
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5419 asm volatile("vperm 0,1,2,3");
5422 if { (eval echo configure:5423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5424 ac_cv_altivec_inline="-Wa,-m7400"
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5429 ac_cv_altivec_inline=no
5438 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5439 if test x"$ac_cv_altivec_inline" != x"no"; then
5440 cat >> confdefs.h <<\EOF
5441 #define CAN_COMPILE_ALTIVEC 1
5444 if test x"$ac_cv_altivec_inline" != x"yes"; then
5445 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5446 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5447 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5449 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5452 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5453 echo "configure:5454: checking if \$CC groks Altivec C extensions" >&5
5454 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5458 CFLAGS="$CFLAGS -faltivec"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5465 vec_mtvscr((vector unsigned int)(0));
5468 if { (eval echo configure:5469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5470 ac_cv_c_altivec=-faltivec
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5477 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5483 vec_mtvscr((vector unsigned int)(0));
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5488 ac_cv_c_altivec="-fvec"
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5503 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5504 if test x"$ac_cv_c_altivec" != x"no"; then
5505 cat >> confdefs.h <<\EOF
5506 #define CAN_COMPILE_C_ALTIVEC 1
5509 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5510 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5511 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5512 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5515 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5516 echo "configure:5517: checking if linker needs -framework vecLib" >&5
5517 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5520 save_LDFLAGS=$LDFLAGS
5521 LDFLAGS="$LDFLAGS -framework vecLib"
5522 cat > conftest.$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 ac_cv_ld_altivec=yes
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5540 LDFLAGS=$save_LDFLAGS
5544 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5545 if test x"$ac_cv_ld_altivec" != x"no"; then
5546 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5547 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5548 LIB="${LIB} -framework vecLib"
5551 case x"${target_os}" in
5566 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5567 set dummy ${ac_tool_prefix}windres; ac_word=$2
5568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5569 echo "configure:5570: checking for $ac_word" >&5
5570 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5573 if test -n "$WINDRES"; then
5574 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5578 for ac_dir in $ac_dummy; do
5579 test -z "$ac_dir" && ac_dir=.
5580 if test -f $ac_dir/$ac_word; then
5581 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5588 WINDRES="$ac_cv_prog_WINDRES"
5589 if test -n "$WINDRES"; then
5590 echo "$ac_t""$WINDRES" 1>&6
5592 echo "$ac_t""no" 1>&6
5596 if test -z "$ac_cv_prog_WINDRES"; then
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "windres", so it can be a program name with args.
5599 set dummy windres; ac_word=$2
5600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5601 echo "configure:5602: checking for $ac_word" >&5
5602 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
5603 echo $ac_n "(cached) $ac_c" 1>&6
5605 if test -n "$WINDRES"; then
5606 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5610 for ac_dir in $ac_dummy; do
5611 test -z "$ac_dir" && ac_dir=.
5612 if test -f $ac_dir/$ac_word; then
5613 ac_cv_prog_WINDRES="windres"
5618 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
5621 WINDRES="$ac_cv_prog_WINDRES"
5622 if test -n "$WINDRES"; then
5623 echo "$ac_t""$WINDRES" 1>&6
5625 echo "$ac_t""no" 1>&6
5633 LIB_MPEG_TS="${LIB_MPEG_TS} -lws2_32"
5634 LIB_RC="${LIB_RC} -lws2_32"
5638 LIB_X11="${LIB_X11} -lsocket"
5639 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
5644 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
5645 PLDFLAGS="${PLDFLAGS} -nostart"
5658 DVD_DEVICE="/dev/dvd"
5659 VCD_DEVICE="/dev/cdrom"
5663 cat >> confdefs.h <<EOF
5664 #define DVD_DEVICE "$DVD_DEVICE"
5667 cat >> confdefs.h <<EOF
5668 #define VCD_DEVICE "$VCD_DEVICE"
5674 CAN_BUILD_LIBDVDCSS=0
5676 for ac_hdr in winioctl.h
5678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_hdr" >&5
5681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5690 { (eval echo configure:5691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5692 if test -z "$ac_err"; then
5694 eval "ac_cv_header_$ac_safe=yes"
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5700 eval "ac_cv_header_$ac_safe=no"
5704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5705 echo "$ac_t""yes" 1>&6
5706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5707 cat >> confdefs.h <<EOF
5708 #define $ac_tr_hdr 1
5711 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5714 echo "$ac_t""no" 1>&6
5719 for ac_hdr in sys/ioctl.h
5721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_hdr" >&5
5724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5733 { (eval echo configure:5734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5735 if test -z "$ac_err"; then
5737 eval "ac_cv_header_$ac_safe=yes"
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5743 eval "ac_cv_header_$ac_safe=no"
5747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5750 cat >> confdefs.h <<EOF
5751 #define $ac_tr_hdr 1
5754 CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5755 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5759 echo "configure:5760: checking for $ac_hdr" >&5
5760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5769 { (eval echo configure:5770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5771 if test -z "$ac_err"; then
5773 eval "ac_cv_header_$ac_safe=yes"
5776 echo "configure: failed program was:" >&5
5777 cat conftest.$ac_ext >&5
5779 eval "ac_cv_header_$ac_safe=no"
5783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5784 echo "$ac_t""yes" 1>&6
5785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5786 cat >> confdefs.h <<EOF
5787 #define $ac_tr_hdr 1
5791 echo "$ac_t""no" 1>&6
5797 OPENBSD_DVD_STRUCT=0
5798 cat > conftest.$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5801 #include <sys/cdio.h>
5803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804 egrep "dvd_struct" >/dev/null 2>&1; then
5807 cat >> confdefs.h <<\EOF
5808 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5811 cat > conftest.$ac_ext <<EOF
5812 #line 5813 "configure"
5813 #include "confdefs.h"
5814 #include <sys/cdio.h>
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817 egrep "struct dvd_struct" >/dev/null 2>&1; then
5823 LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5831 cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 #include <sys/dvdio.h>
5836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837 egrep "dvd_struct" >/dev/null 2>&1; then
5840 cat >> confdefs.h <<\EOF
5841 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5844 cat > conftest.$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5847 #include <sys/dvdio.h>
5849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5850 egrep "struct dvd_struct" >/dev/null 2>&1; then
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 #include <linux/cdrom.h>
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870 egrep "dvd_struct" >/dev/null 2>&1; then
5873 cat >> confdefs.h <<\EOF
5874 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5889 egrep "dvd_struct" >/dev/null 2>&1; then
5892 cat >> confdefs.h <<\EOF
5893 #define DVD_STRUCT_IN_DVD_H 1
5896 LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
5902 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
5904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5906 echo "configure:5907: checking for $ac_hdr" >&5
5907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5916 { (eval echo configure:5917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5918 if test -z "$ac_err"; then
5920 eval "ac_cv_header_$ac_safe=yes"
5923 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5926 eval "ac_cv_header_$ac_safe=no"
5930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5933 cat >> confdefs.h <<EOF
5934 #define $ac_tr_hdr 1
5938 cat >> confdefs.h <<\EOF
5939 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
5942 SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
5946 echo "$ac_t""no" 1>&6
5954 ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
5955 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
5956 echo "configure:5957: checking for sys/scsi/scsi_types.h" >&5
5957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5960 cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5963 #include <sys/scsi/scsi_types.h>
5965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5966 { (eval echo configure:5967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5968 if test -z "$ac_err"; then
5970 eval "ac_cv_header_$ac_safe=yes"
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5976 eval "ac_cv_header_$ac_safe=no"
5980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5981 echo "$ac_t""yes" 1>&6
5983 ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
5984 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
5985 echo "configure:5986: checking for sys/scsi/impl/uscsi.h" >&5
5986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <sys/scsi/impl/uscsi.h>
5994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5995 { (eval echo configure:5996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5997 if test -z "$ac_err"; then
5999 eval "ac_cv_header_$ac_safe=yes"
6002 echo "configure: failed program was:" >&5
6003 cat conftest.$ac_ext >&5
6005 eval "ac_cv_header_$ac_safe=no"
6009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6012 cat >> confdefs.h <<\EOF
6013 #define SOLARIS_USCSI 1
6018 echo "$ac_t""no" 1>&6
6023 echo "$ac_t""no" 1>&6
6026 ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6027 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6028 echo "configure:6029: checking for sys/scsi.h" >&5
6029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 #include <sys/scsi.h>
6037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6038 { (eval echo configure:6039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6040 if test -z "$ac_err"; then
6042 eval "ac_cv_header_$ac_safe=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 eval "ac_cv_header_$ac_safe=no"
6052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6053 echo "$ac_t""yes" 1>&6
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 #include <sys/scsi.h>
6060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061 egrep "sctl_io" >/dev/null 2>&1; then
6064 cat >> confdefs.h <<\EOF
6065 #define HPUX_SCTL_IO 1
6074 echo "$ac_t""no" 1>&6
6077 if test x$LINUX_DVD_STRUCT = x1; then
6078 cat >> confdefs.h <<\EOF
6079 #define HAVE_LINUX_DVD_STRUCT 1
6082 if test x$OPENBSD_DVD_STRUCT = x1; then
6083 cat >> confdefs.h <<\EOF
6084 #define HAVE_OPENBSD_DVD_STRUCT 1
6089 if test x$BSD_DVD_STRUCT = x1; then
6090 cat >> confdefs.h <<\EOF
6091 #define HAVE_BSD_DVD_STRUCT 1
6098 echo "$ac_t""no" 1>&6
6103 # Check whether --with-tuning or --without-tuning was given.
6104 if test "${with_tuning+set}" = set; then
6105 withval="$with_tuning"
6109 if test "x$withval" != "x"; then
6112 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6114 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6118 # Check whether --enable-release or --disable-release was given.
6119 if test "${enable_release+set}" = set; then
6120 enableval="$enable_release"
6121 if test x$enableval = xyes; then RELEASE=1; fi
6123 VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6124 LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`";
6128 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6131 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6134 # Check whether --enable-altivec or --disable-altivec was given.
6135 if test "${enable_altivec+set}" = set; then
6136 enableval="$enable_altivec"
6137 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6138 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6140 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6141 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6146 # Check whether --enable-debug or --disable-debug was given.
6147 if test "${enable_debug+set}" = set; then
6148 enableval="$enable_debug"
6149 if test x$enableval = xyes; then DEBUG=1; fi
6154 # Check whether --enable-trace or --disable-trace was given.
6155 if test "${enable_trace+set}" = set; then
6156 enableval="$enable_trace"
6157 if test x$enableval = xyes; then TRACE=1; fi
6162 # Check whether --enable-gprof or --disable-gprof was given.
6163 if test "${enable_gprof+set}" = set; then
6164 enableval="$enable_gprof"
6165 if test x$enableval = xyes; then GPROF=1; fi
6170 # Check whether --enable-cprof or --disable-cprof was given.
6171 if test "${enable_cprof+set}" = set; then
6172 enableval="$enable_cprof"
6173 if test x$enableval = xyes;
6175 LIB="${LIB} -lcprof"
6182 # Check whether --enable-optimizations or --disable-optimizations was given.
6183 if test "${enable_optimizations+set}" = set; then
6184 enableval="$enable_optimizations"
6185 if test x$enableval = xno; then OPTIMS=0; fi
6191 # Check whether --enable-pth or --disable-pth was given.
6192 if test "${enable_pth+set}" = set; then
6193 enableval="$enable_pth"
6194 if test x$enableval = xyes; then
6195 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
6196 echo "configure:6197: checking for pth_init in -lpth" >&5
6197 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
6198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6201 ac_save_LIBS="$LIBS"
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6215 if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6217 eval "ac_cv_lib_$ac_lib_var=yes"
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6222 eval "ac_cv_lib_$ac_lib_var=no"
6225 LIBS="$ac_save_LIBS"
6228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6229 echo "$ac_t""yes" 1>&6
6230 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6232 cat >> confdefs.h <<EOF
6233 #define $ac_tr_lib 1
6239 echo "$ac_t""no" 1>&6
6242 cat > conftest.$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 egrep "pth_init" >/dev/null 2>&1; then
6251 cat >> confdefs.h <<\EOF
6252 #define PTH_INIT_IN_PTH_H 1
6264 LIB="${LIB} ${THREAD_LIB}"
6269 # Check whether --with-dvdcss or --without-dvdcss was given.
6270 if test "${with_dvdcss+set}" = set; then
6271 withval="$with_dvdcss"
6272 case "x${withval}" in
6274 # local libdvdcss, statically linked
6275 if test x${CAN_BUILD_LIBDVDCSS} = x1
6279 BUILTINS="${BUILTINS} dvd"
6280 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6281 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6282 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6283 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6287 # local libdvdcss, dynamically linked
6288 if test x${CAN_BUILD_LIBDVDCSS} = x1
6291 BUILTINS="${BUILTINS} dvd"
6292 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6293 LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
6294 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
6295 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L../../lib -ldvdcss"
6299 # don't use libdvdcss at all, build a DVD module that can dlopen() it
6301 BUILTINS="${BUILTINS} dvd"
6302 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6303 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6304 CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6305 LIB_DVD="${LIB_DVD} -ldl"
6306 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
6307 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
6310 # existing libdvdcss
6311 BUILTINS="${BUILTINS} dvd"
6312 if test "x$withval" != "xyes"
6314 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
6315 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -L"$withval"/lib"
6316 CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6318 LIB_DVD="${LIB_DVD} -ldvdcss"
6319 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
6320 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldvdcss"
6323 # user didn't decide, we choose to use local libdvdcss and link statically
6324 # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6325 if test x${CAN_BUILD_LIBDVDCSS} = x1
6329 BUILTINS="${BUILTINS} dvd"
6330 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6331 LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6332 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6333 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6335 # XXX: no check for libdl is done, don't try this at home !
6337 BUILTINS="${BUILTINS} dvd"
6338 SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6339 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6340 LIB_DVD="${LIB_DVD} -ldl"
6341 LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
6342 LIB_DVDREAD_PLUGIN="${LIB_DVDREAD_PLUGIN} -ldl"
6347 # Check whether --enable-dvdread or --disable-dvdread was given.
6348 if test "${enable_dvdread+set}" = set; then
6349 enableval="$enable_dvdread"
6350 if test x$enableval = xyes
6354 BUILTINS="${BUILTINS} dvdread"
6355 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6356 LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a"
6361 # Check whether --enable-vcd or --disable-vcd was given.
6362 if test "${enable_vcd+set}" = set; then
6363 enableval="$enable_vcd"
6368 if test x$enable_vcd != xno
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 #include <linux/cdrom.h>
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 egrep "cdrom_msf0" >/dev/null 2>&1; then
6379 BUILTINS="${BUILTINS} vcd"
6386 if test x$enable_vcd != xno -a "${SYS}" = "bsdi"
6388 BUILTINS="${BUILTINS} vcd"
6391 # Check whether --enable-dummy or --disable-dummy was given.
6392 if test "${enable_dummy+set}" = set; then
6393 enableval="$enable_dummy"
6398 if test x$enable_dummy != xno
6400 BUILTINS="${BUILTINS} dummy"
6403 # Check whether --enable-null or --disable-null was given.
6404 if test "${enable_null+set}" = set; then
6405 enableval="$enable_null"
6410 if test x$enable_null != xno
6412 BUILTINS="${BUILTINS} null"
6415 # Check whether --enable-rc or --disable-rc was given.
6416 if test "${enable_rc+set}" = set; then
6417 enableval="$enable_rc"
6422 if test x$enable_rc != xno
6424 BUILTINS="${BUILTINS} rc"
6427 # Check whether --with-mad or --without-mad was given.
6428 if test "${with_mad+set}" = set; then
6430 if test "x$with_val" != "xno"; then
6431 if test -n $with_val; then
6432 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6433 LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
6435 LIB_MAD="${LIB_MAD} -lmad"
6438 save_LDFLAGS=$LDFLAGS
6439 CFLAGS="$CFLAGS $CFLAGS_MAD"
6440 LDFLAGS="$LDFLAGS $LIB_MAD"
6443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6445 echo "configure:6446: checking for $ac_hdr" >&5
6446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6455 { (eval echo configure:6456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6457 if test -z "$ac_err"; then
6459 eval "ac_cv_header_$ac_safe=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_header_$ac_safe=no"
6469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6472 cat >> confdefs.h <<EOF
6473 #define $ac_tr_hdr 1
6477 echo "$ac_t""no" 1>&6
6478 echo "Cannot find development headers for libmad..."
6484 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6485 echo "configure:6486: checking for mad_bit_init in -lmad" >&5
6486 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 ac_save_LIBS="$LIBS"
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6498 char mad_bit_init();
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 eval "ac_cv_lib_$ac_lib_var=yes"
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 eval "ac_cv_lib_$ac_lib_var=no"
6514 LIBS="$ac_save_LIBS"
6517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6518 echo "$ac_t""yes" 1>&6
6519 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6520 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6521 cat >> confdefs.h <<EOF
6522 #define $ac_tr_lib 1
6528 echo "$ac_t""no" 1>&6
6529 echo "Cannot find libmad library..."
6535 LDFLAGS=$save_LDFLAGS
6536 PLUGINS="${PLUGINS} mad"
6541 if test x$SYS = xbeos
6543 BUILTINS="${BUILTINS} beos"
6547 # Check whether --enable-dsp or --disable-dsp was given.
6548 if test "${enable_dsp+set}" = set; then
6549 enableval="$enable_dsp"
6554 if test x$enable_dsp != xno &&
6555 (test $SYS != mingw32 || test x$enable_dsp = xyes)
6559 PLUGINS="${PLUGINS} dsp"
6563 # Check whether --enable-esd or --disable-esd was given.
6564 if test "${enable_esd+set}" = set; then
6565 enableval="$enable_esd"
6566 if test x$enable_esd = xyes
6568 # Extract the first word of "esd-config", so it can be a program name with args.
6569 set dummy esd-config; ac_word=$2
6570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6571 echo "configure:6572: checking for $ac_word" >&5
6572 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6575 case "$ESD_CONFIG" in
6577 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6580 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6585 for ac_dir in $ac_dummy; do
6586 test -z "$ac_dir" && ac_dir=.
6587 if test -f $ac_dir/$ac_word; then
6588 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6593 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6597 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6598 if test -n "$ESD_CONFIG"; then
6599 echo "$ac_t""$ESD_CONFIG" 1>&6
6601 echo "$ac_t""no" 1>&6
6604 if test x${ESD_CONFIG} != xno
6606 PLUGINS="${PLUGINS} esd"
6607 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6608 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6614 # Check whether --enable-arts or --disable-arts was given.
6615 if test "${enable_arts+set}" = set; then
6616 enableval="$enable_arts"
6617 if test x$enable_arts = xyes
6619 # Extract the first word of "artsc-config", so it can be a program name with args.
6620 set dummy artsc-config; ac_word=$2
6621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6622 echo "configure:6623: checking for $ac_word" >&5
6623 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6626 case "$ARTS_CONFIG" in
6628 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6631 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6636 for ac_dir in $ac_dummy; do
6637 test -z "$ac_dir" && ac_dir=.
6638 if test -f $ac_dir/$ac_word; then
6639 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6644 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6648 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6649 if test -n "$ARTS_CONFIG"; then
6650 echo "$ac_t""$ARTS_CONFIG" 1>&6
6652 echo "$ac_t""no" 1>&6
6655 if test x${ARTS_CONFIG} != xno
6657 PLUGINS="${PLUGINS} arts"
6658 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
6659 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
6665 # Check whether --enable-macosx or --disable-macosx was given.
6666 if test "${enable_macosx+set}" = set; then
6667 enableval="$enable_macosx"
6668 if test x$enable_macosx = xyes
6670 BUILTINS="${BUILTINS} macosx"
6671 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6672 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6676 for ac_hdr in Cocoa/Cocoa.h
6678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_hdr" >&5
6681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6690 { (eval echo configure:6691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6692 if test -z "$ac_err"; then
6694 eval "ac_cv_header_$ac_safe=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 eval "ac_cv_header_$ac_safe=no"
6704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6707 cat >> confdefs.h <<EOF
6708 #define $ac_tr_hdr 1
6710 BUILTINS="${BUILTINS} macosx"
6711 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
6712 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
6716 echo "$ac_t""no" 1>&6
6723 # Check whether --enable-qnx or --disable-qnx was given.
6724 if test "${enable_qnx+set}" = set; then
6725 enableval="$enable_qnx"
6729 if test x$enable_qnx != xno
6733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6735 echo "configure:6736: checking for $ac_hdr" >&5
6736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6745 { (eval echo configure:6746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6747 if test -z "$ac_err"; then
6749 eval "ac_cv_header_$ac_safe=yes"
6752 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6755 eval "ac_cv_header_$ac_safe=no"
6759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6762 cat >> confdefs.h <<EOF
6763 #define $ac_tr_hdr 1
6766 PLUGINS="${PLUGINS} qnx"
6767 LIB_QNX="${LIB_QNX} -lasound -lph"
6770 echo "$ac_t""no" 1>&6
6776 # Check whether --enable-fb or --disable-fb was given.
6777 if test "${enable_fb+set}" = set; then
6778 enableval="$enable_fb"
6779 if test x$enable_fb = xyes
6781 PLUGINS="${PLUGINS} fb"
6786 # Check whether --enable-mga or --disable-mga was given.
6787 if test "${enable_mga+set}" = set; then
6788 enableval="$enable_mga"
6789 if test x$enable_mga = xyes
6791 PLUGINS="${PLUGINS} mga xmga"
6796 # Check whether --with-ggi or --without-ggi was given.
6797 if test "${with_ggi+set}" = set; then
6799 if test "x$withval" != "xno"
6801 PLUGINS="${PLUGINS} ggi"
6802 if test "x$withval" != "xyes"
6804 LIB_GGI="${LIB_GGI} -l$withval"
6806 LIB_GGI="${LIB_GGI} -lggi"
6812 # Check whether --enable-sdl or --disable-sdl was given.
6813 if test "${enable_sdl+set}" = set; then
6814 enableval="$enable_sdl"
6818 if test "x$enable_sdl" != "xno"
6821 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6822 if test "${with_sdl_config_path+set}" = set; then
6823 withval="$with_sdl_config_path"
6824 if test "x$withval" != "xno"
6826 SDL_PATH=$withval:$PATH
6830 # Extract the first word of "sdl12-config", so it can be a program name with args.
6831 set dummy sdl12-config; ac_word=$2
6832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_word" >&5
6834 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 case "$SDL12_CONFIG" in
6839 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6842 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6846 ac_dummy="$SDL_PATH"
6847 for ac_dir in $ac_dummy; do
6848 test -z "$ac_dir" && ac_dir=.
6849 if test -f $ac_dir/$ac_word; then
6850 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6855 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6859 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6860 if test -n "$SDL12_CONFIG"; then
6861 echo "$ac_t""$SDL12_CONFIG" 1>&6
6863 echo "$ac_t""no" 1>&6
6866 SDL_CONFIG=${SDL12_CONFIG}
6867 SDL_HEADER="SDL12/SDL.h"
6868 if test x${SDL_CONFIG} = xno
6870 # Extract the first word of "sdl11-config", so it can be a program name with args.
6871 set dummy sdl11-config; ac_word=$2
6872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6873 echo "configure:6874: checking for $ac_word" >&5
6874 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6875 echo $ac_n "(cached) $ac_c" 1>&6
6877 case "$SDL11_CONFIG" in
6879 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6882 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6886 ac_dummy="$SDL_PATH"
6887 for ac_dir in $ac_dummy; do
6888 test -z "$ac_dir" && ac_dir=.
6889 if test -f $ac_dir/$ac_word; then
6890 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6895 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6899 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6900 if test -n "$SDL11_CONFIG"; then
6901 echo "$ac_t""$SDL11_CONFIG" 1>&6
6903 echo "$ac_t""no" 1>&6
6906 SDL_CONFIG=${SDL11_CONFIG}
6907 SDL_HEADER="SDL11/SDL.h"
6909 if test x${SDL_CONFIG} = xno
6911 # Extract the first word of "sdl-config", so it can be a program name with args.
6912 set dummy sdl-config; ac_word=$2
6913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_word" >&5
6915 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 case "$SDL_CONFIG" in
6920 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6923 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6927 ac_dummy="$SDL_PATH"
6928 for ac_dir in $ac_dummy; do
6929 test -z "$ac_dir" && ac_dir=.
6930 if test -f $ac_dir/$ac_word; then
6931 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6936 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6940 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6941 if test -n "$SDL_CONFIG"; then
6942 echo "$ac_t""$SDL_CONFIG" 1>&6
6944 echo "$ac_t""no" 1>&6
6947 SDL_HEADER="SDL/SDL.h"
6949 if test x${SDL_CONFIG} != xno
6951 PLUGINS="${PLUGINS} sdl"
6952 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
6953 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6954 save_CPPFLAGS=$CPPFLAGS
6955 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6956 for ac_hdr in ${SDL_HEADER}
6958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6960 echo "configure:6961: checking for $ac_hdr" >&5
6961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6970 { (eval echo configure:6971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6972 if test -z "$ac_err"; then
6974 eval "ac_cv_header_$ac_safe=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6980 eval "ac_cv_header_$ac_safe=no"
6984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6985 echo "$ac_t""yes" 1>&6
6986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6987 cat >> confdefs.h <<EOF
6988 #define $ac_tr_hdr 1
6990 cat >> confdefs.h <<EOF
6991 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6995 echo "$ac_t""no" 1>&6
6996 { echo "configure: error: The development package for SDL is not installed.
6997 Please install it and try again. Alternatively you can also configure with
6998 --disable-sdl." 1>&2; exit 1; }
7003 CPPFLAGS=$save_CPPFLAGS
7004 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7006 { echo "configure: error: The development package for SDL is not installed.
7007 Please install it and try again. Alternatively you can also configure with
7008 --disable-sdl." 1>&2; exit 1; }
7010 elif test "x$enable_sdl" = "xyes"
7012 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7013 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7018 # Check whether --enable-directx or --disable-directx was given.
7019 if test "${enable_directx+set}" = set; then
7020 enableval="$enable_directx"
7024 if test "x$enableval" != "xno"
7026 if test $SYS = mingw32
7028 # Check whether --with-directx-path or --without-directx-path was given.
7029 if test "${with_directx_path+set}" = set; then
7030 withval="$with_directx_path"
7034 if test "x$with_directx_path" = "x"
7036 for ac_hdr in directx.h
7038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7040 echo "configure:7041: checking for $ac_hdr" >&5
7041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7042 echo $ac_n "(cached) $ac_c" 1>&6
7044 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7050 { (eval echo configure:7051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7052 if test -z "$ac_err"; then
7054 eval "ac_cv_header_$ac_safe=yes"
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7060 eval "ac_cv_header_$ac_safe=no"
7064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7067 cat >> confdefs.h <<EOF
7068 #define $ac_tr_hdr 1
7070 PLUGINS="${PLUGINS} directx"
7071 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
7073 echo "$ac_t""no" 1>&6
7078 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7079 echo "configure:7080: checking for directX headers in ${withval}" >&5
7080 if test -f ${withval}/include/directx.h
7082 PLUGINS="${PLUGINS} directx"
7083 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7084 INCLUDE="${INCLUDE} -I${withval}/include"
7085 echo "$ac_t""yes" 1>&6
7087 echo "$ac_t""no" 1>&6
7088 { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; }
7094 # Check whether --enable-win32 or --disable-win32 was given.
7095 if test "${enable_win32+set}" = set; then
7096 enableval="$enable_win32"
7097 if test "x$enableval" != "xno"
7099 PLUGINS="${PLUGINS} win32"
7104 # Check whether --with-glide or --without-glide was given.
7105 if test "${with_glide+set}" = set; then
7106 withval="$with_glide"
7107 if test "x$withval" != "xno"
7109 PLUGINS="${PLUGINS} glide"
7110 if test "x$withval" != "xyes"
7112 LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
7114 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7116 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7121 # Check whether --enable-ncurses or --disable-ncurses was given.
7122 if test "${enable_ncurses+set}" = set; then
7123 enableval="$enable_ncurses"
7124 if test x$enable_ncurses = xyes; then
7125 PLUGINS="${PLUGINS} ncurses"
7126 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7131 # Check whether --enable-qt or --disable-qt was given.
7132 if test "${enable_qt+set}" = set; then
7133 enableval="$enable_qt"
7134 if test x$enable_qt = xyes; then
7135 PLUGINS="${PLUGINS} qt"
7136 ALIASES="${ALIASES} qvlc"
7137 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7138 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7139 if test -x ${QTDIR}/bin/moc
7141 MOC=${QTDIR}/bin/moc
7149 # Check whether --enable-kde or --disable-kde was given.
7150 if test "${enable_kde+set}" = set; then
7151 enableval="$enable_kde"
7152 if test x$enable_kde = xyes; then
7153 PLUGINS="${PLUGINS} kde"
7154 ALIASES="${ALIASES} kvlc"
7155 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7156 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7157 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7158 if test -x ${QTDIR}/bin/moc
7160 MOC=${QTDIR}/bin/moc
7168 # Check whether --enable-gnome or --disable-gnome was given.
7169 if test "${enable_gnome+set}" = set; then
7170 enableval="$enable_gnome"
7171 if test x$enable_gnome = xyes; then
7172 # look for gnome-config
7173 # Extract the first word of "gnome-config", so it can be a program name with args.
7174 set dummy gnome-config; ac_word=$2
7175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7176 echo "configure:7177: checking for $ac_word" >&5
7177 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 case "$GNOME_CONFIG" in
7182 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7185 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7190 for ac_dir in $ac_dummy; do
7191 test -z "$ac_dir" && ac_dir=.
7192 if test -f $ac_dir/$ac_word; then
7193 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7198 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7202 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7203 if test -n "$GNOME_CONFIG"; then
7204 echo "$ac_t""$GNOME_CONFIG" 1>&6
7206 echo "$ac_t""no" 1>&6
7209 if test -x ${GNOME_CONFIG}
7211 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7212 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7214 # now look for the gnome.h header
7215 saved_CPPFLAGS=$CPPFLAGS
7216 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7217 for ac_hdr in gnome.h
7219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7221 echo "configure:7222: checking for $ac_hdr" >&5
7222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7231 { (eval echo configure:7232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7233 if test -z "$ac_err"; then
7235 eval "ac_cv_header_$ac_safe=yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 eval "ac_cv_header_$ac_safe=no"
7245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7246 echo "$ac_t""yes" 1>&6
7247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7248 cat >> confdefs.h <<EOF
7249 #define $ac_tr_hdr 1
7252 PLUGINS="${PLUGINS} gnome"
7253 ALIASES="${ALIASES} gnome-vlc"
7256 echo "$ac_t""no" 1>&6
7257 { echo "configure: error: Can't find gnome headers. Please install the gnome
7258 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7264 CPPFLAGS=$saved_CPPFLAGS
7269 # Check whether --enable-gtk or --disable-gtk was given.
7270 if test "${enable_gtk+set}" = set; then
7271 enableval="$enable_gtk"
7275 if test x$enable_gtk != xno
7278 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7279 if test "${with_gtk_config_path+set}" = set; then
7280 withval="$with_gtk_config_path"
7281 if test "x$withval" != "xno"
7283 GTK_PATH=$withval:$PATH
7287 # look for gtk-config
7288 # Extract the first word of "gtk-config", so it can be a program name with args.
7289 set dummy gtk-config; ac_word=$2
7290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_word" >&5
7292 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7295 case "$GTK_CONFIG" in
7297 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7300 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7304 ac_dummy="$GTK_PATH"
7305 for ac_dir in $ac_dummy; do
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/$ac_word; then
7308 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7313 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7317 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7318 if test -n "$GTK_CONFIG"; then
7319 echo "$ac_t""$GTK_CONFIG" 1>&6
7321 echo "$ac_t""no" 1>&6
7324 if test -x ${GTK_CONFIG}
7326 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7328 { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
7330 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7331 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7333 # now look for the gtk.h header
7334 saved_CPPFLAGS=$CPPFLAGS
7335 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7336 ac_cv_gtk_headers=yes
7337 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7341 echo "configure:7342: checking for $ac_hdr" >&5
7342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7343 echo $ac_n "(cached) $ac_c" 1>&6
7345 cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7351 { (eval echo configure:7352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7353 if test -z "$ac_err"; then
7355 eval "ac_cv_header_$ac_safe=yes"
7358 echo "configure: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7361 eval "ac_cv_header_$ac_safe=no"
7365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7366 echo "$ac_t""yes" 1>&6
7367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7368 cat >> confdefs.h <<EOF
7369 #define $ac_tr_hdr 1
7373 echo "$ac_t""no" 1>&6
7374 ac_cv_gtk_headers=no
7375 echo "Cannot find gtk development headers."
7380 if test "x$ac_cv_gtk_headers" = xyes
7382 PLUGINS="${PLUGINS} gtk"
7383 ALIASES="${ALIASES} gvlc"
7385 CPPFLAGS=$saved_CPPFLAGS
7388 # Check whether --enable-x11 or --disable-x11 was given.
7389 if test "${enable_x11+set}" = set; then
7390 enableval="$enable_x11"
7394 if test x$enable_x11 != xno &&
7395 (test $SYS != mingw32 || test x$enable_x11 = xyes); then
7396 if test x$x_includes = xNONE; then
7397 x_includes=/usr/X11R6/include
7399 if test x$x_libraries = xNONE; then
7400 x_libraries=/usr/X11R6/lib
7402 saved_CPPFLAGS=$CPPFLAGS
7403 CPPFLAGS="$CPPFLAGS -I$x_includes"
7404 for ac_hdr in X11/Xlib.h
7406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_hdr" >&5
7409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7418 { (eval echo configure:7419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7420 if test -z "$ac_err"; then
7422 eval "ac_cv_header_$ac_safe=yes"
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 eval "ac_cv_header_$ac_safe=no"
7432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7435 cat >> confdefs.h <<EOF
7436 #define $ac_tr_hdr 1
7439 PLUGINS="${PLUGINS} x11"
7440 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
7441 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
7443 CPPFLAGS=$saved_CPPFLAGS
7445 echo "$ac_t""no" 1>&6
7451 # Check whether --enable-xvideo or --disable-xvideo was given.
7452 if test "${enable_xvideo+set}" = set; then
7453 enableval="$enable_xvideo"
7457 if test x$enable_xvideo != xno &&
7458 (test $SYS != mingw32 || test x$enable_xvideo = xyes); then
7459 if test x$x_includes = xNONE; then
7460 x_includes=/usr/X11R6/include
7462 if test x$x_libraries = xNONE; then
7463 x_libraries=/usr/X11R6/lib
7465 saved_CPPFLAGS=$CPPFLAGS
7466 CPPFLAGS="$CPPFLAGS -I$x_includes"
7467 for ac_hdr in X11/extensions/Xv.h
7469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7471 echo "configure:7472: checking for $ac_hdr" >&5
7472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7473 echo $ac_n "(cached) $ac_c" 1>&6
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7481 { (eval echo configure:7482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7483 if test -z "$ac_err"; then
7485 eval "ac_cv_header_$ac_safe=yes"
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7491 eval "ac_cv_header_$ac_safe=no"
7495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7498 cat >> confdefs.h <<EOF
7499 #define $ac_tr_hdr 1
7502 saved_CFLAGS=$CFLAGS
7503 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7504 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7505 echo "configure:7506: checking for XvSetPortAttribute in -lXv_pic" >&5
7506 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 ac_save_LIBS="$LIBS"
7511 LIBS="-lXv_pic $LIBS"
7512 cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure"
7514 #include "confdefs.h"
7515 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7518 char XvSetPortAttribute();
7521 XvSetPortAttribute()
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7526 eval "ac_cv_lib_$ac_lib_var=yes"
7528 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7531 eval "ac_cv_lib_$ac_lib_var=no"
7534 LIBS="$ac_save_LIBS"
7537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7540 PLUGINS="${PLUGINS} xvideo"
7541 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
7542 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7544 echo "$ac_t""no" 1>&6
7545 # We don't have Xv_pic, let's make xvideo.a as builtin
7546 BUILTINS="${BUILTINS} xvideo"
7547 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7548 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7551 CFLAGS=$saved_CFLAGS
7553 CPPFLAGS=$saved_CPPFLAGS
7555 echo "$ac_t""no" 1>&6
7561 # Check whether --enable-alsa or --disable-alsa was given.
7562 if test "${enable_alsa+set}" = set; then
7563 enableval="$enable_alsa"
7564 if test x$enable_alsa = xyes
7566 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7567 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7568 echo "configure:7569: checking for alsa/asoundlib.h" >&5
7569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 #include <alsa/asoundlib.h>
7577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7578 { (eval echo configure:7579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7580 if test -z "$ac_err"; then
7582 eval "ac_cv_header_$ac_safe=yes"
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 eval "ac_cv_header_$ac_safe=no"
7592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7595 echo "configure:7596: checking for main in -lasound" >&5
7596 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7600 ac_save_LIBS="$LIBS"
7601 LIBS="-lasound $LIBS"
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7610 if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7612 eval "ac_cv_lib_$ac_lib_var=yes"
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7617 eval "ac_cv_lib_$ac_lib_var=no"
7620 LIBS="$ac_save_LIBS"
7623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7624 echo "$ac_t""yes" 1>&6
7627 echo "$ac_t""no" 1>&6
7632 echo "$ac_t""no" 1>&6
7636 if test x$have_alsa = xtrue
7638 PLUGINS="${PLUGINS} alsa"
7639 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7647 # Check whether --enable-plugins or --disable-plugins was given.
7648 if test "${enable_plugins+set}" = set; then
7649 enableval="$enable_plugins"
7650 if test x$enable_plugins = xno
7652 BUILTINS="${BUILTINS} ${PLUGINS}"
7659 # Check whether --with-dll-path or --without-dll-path was given.
7660 if test "${with_dll_path+set}" = set; then
7661 withval="$with_dll_path"
7662 if test "x$withval" != "xno"
7669 cat >> confdefs.h <<EOF
7670 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
7673 cat >> confdefs.h <<EOF
7674 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
7678 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
7679 cat >> confdefs.h <<EOF
7680 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7683 cat >> confdefs.h <<EOF
7684 #define MODULE_SYMBOL $VLC_SYMBOL
7688 DATA_PATH="${ac_tool_prefix}/share/videolan"
7690 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
7783 cat > confcache <<\EOF
7784 # This file is a shell script that caches the results of configure
7785 # tests run on this system so they can be shared between configure
7786 # scripts and configure runs. It is not useful on other systems.
7787 # If it contains results you don't want to keep, you may remove or edit it.
7789 # By default, configure uses ./config.cache as the cache file,
7790 # creating it if it does not exist already. You can give configure
7791 # the --cache-file=FILE option to use a different cache file; that is
7792 # what configure does when it calls configure scripts in
7793 # subdirectories, so they share the cache.
7794 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7795 # config.status only pays attention to the cache file if you give it the
7796 # --recheck option to rerun configure.
7799 # The following way of writing the cache mishandles newlines in values,
7800 # but we know of no workaround that is simple, portable, and efficient.
7801 # So, don't put newlines in cache variables' values.
7802 # Ultrix sh set writes to stderr and can't be redirected directly,
7803 # and sets the high bit in the cache file unless we assign to the vars.
7805 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7807 # `set' does not quote correctly, so add quotes (double-quote substitution
7808 # turns \\\\ into \\, and sed turns \\ into \).
7810 -e "s/'/'\\\\''/g" \
7811 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7814 # `set' quotes correctly as required by POSIX, so do not add quotes.
7815 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7818 if cmp -s $cache_file confcache; then
7821 if test -w $cache_file; then
7822 echo "updating cache $cache_file"
7823 cat confcache > $cache_file
7825 echo "not updating unwritable cache $cache_file"
7830 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7833 # Let make expand exec_prefix.
7834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7836 # Any assignment to VPATH causes Sun make to only execute
7837 # the first set of double-colon rules, so remove it if not needed.
7838 # If there is a colon in the path, we need to keep it.
7839 if test "x$srcdir" = x.; then
7840 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7843 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7845 DEFS=-DHAVE_CONFIG_H
7847 # Without the "./", some shells look in PATH for config.status.
7848 : ${CONFIG_STATUS=./config.status}
7850 echo creating $CONFIG_STATUS
7851 rm -f $CONFIG_STATUS
7852 cat > $CONFIG_STATUS <<EOF
7854 # Generated automatically by configure.
7855 # Run this file to recreate the current configuration.
7856 # This directory was configured as follows,
7857 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7859 # $0 $ac_configure_args
7861 # Compiler output produced by configure, useful for debugging
7862 # configure, is in ./config.log if it exists.
7864 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7867 case "\$ac_option" in
7868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7869 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7870 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7871 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7872 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7874 -help | --help | --hel | --he | --h)
7875 echo "\$ac_cs_usage"; exit 0 ;;
7876 *) echo "\$ac_cs_usage"; exit 1 ;;
7880 ac_given_srcdir=$srcdir
7881 ac_given_INSTALL="$INSTALL"
7883 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7885 cat >> $CONFIG_STATUS <<EOF
7887 # Protect against being on the right side of a sed subst in config.status.
7888 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7889 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7893 s%@CFLAGS@%$CFLAGS%g
7894 s%@CPPFLAGS@%$CPPFLAGS%g
7895 s%@CXXFLAGS@%$CXXFLAGS%g
7896 s%@FFLAGS@%$FFLAGS%g
7898 s%@LDFLAGS@%$LDFLAGS%g
7900 s%@exec_prefix@%$exec_prefix%g
7901 s%@prefix@%$prefix%g
7902 s%@program_transform_name@%$program_transform_name%g
7903 s%@bindir@%$bindir%g
7904 s%@sbindir@%$sbindir%g
7905 s%@libexecdir@%$libexecdir%g
7906 s%@datadir@%$datadir%g
7907 s%@sysconfdir@%$sysconfdir%g
7908 s%@sharedstatedir@%$sharedstatedir%g
7909 s%@localstatedir@%$localstatedir%g
7910 s%@libdir@%$libdir%g
7911 s%@includedir@%$includedir%g
7912 s%@oldincludedir@%$oldincludedir%g
7913 s%@infodir@%$infodir%g
7914 s%@mandir@%$mandir%g
7916 s%@host_alias@%$host_alias%g
7917 s%@host_cpu@%$host_cpu%g
7918 s%@host_vendor@%$host_vendor%g
7919 s%@host_os@%$host_os%g
7920 s%@target@%$target%g
7921 s%@target_alias@%$target_alias%g
7922 s%@target_cpu@%$target_cpu%g
7923 s%@target_vendor@%$target_vendor%g
7924 s%@target_os@%$target_os%g
7926 s%@build_alias@%$build_alias%g
7927 s%@build_cpu@%$build_cpu%g
7928 s%@build_vendor@%$build_vendor%g
7929 s%@build_os@%$build_os%g
7930 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
7931 s%@SET_MAKE@%$SET_MAKE%g
7934 s%@RANLIB@%$RANLIB%g
7935 s%@ALLOCA@%$ALLOCA%g
7936 s%@GLIBC21@%$GLIBC21%g
7937 s%@LIBICONV@%$LIBICONV%g
7938 s%@USE_NLS@%$USE_NLS%g
7939 s%@MSGFMT@%$MSGFMT%g
7940 s%@GMSGFMT@%$GMSGFMT%g
7941 s%@XGETTEXT@%$XGETTEXT%g
7942 s%@INTLBISON@%$INTLBISON%g
7943 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
7944 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7945 s%@CATALOGS@%$CATALOGS%g
7946 s%@CATOBJEXT@%$CATOBJEXT%g
7947 s%@GMOFILES@%$GMOFILES%g
7948 s%@INTLLIBS@%$INTLLIBS%g
7949 s%@INTLOBJS@%$INTLOBJS%g
7950 s%@POFILES@%$POFILES%g
7952 s%@DATADIRNAME@%$DATADIRNAME%g
7953 s%@INSTOBJEXT@%$INSTOBJEXT%g
7954 s%@GENCAT@%$GENCAT%g
7955 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7956 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
7957 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7958 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7959 s%@INSTALL_DATA@%$INSTALL_DATA%g
7960 s%@WINDRES@%$WINDRES%g
7961 s%@ESD_CONFIG@%$ESD_CONFIG%g
7962 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
7963 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
7964 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
7965 s%@SDL_CONFIG@%$SDL_CONFIG%g
7966 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
7967 s%@GTK_CONFIG@%$GTK_CONFIG%g
7968 s%@DATA_PATH@%$DATA_PATH%g
7969 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
7972 s%@PLUGINS@%$PLUGINS%g
7973 s%@BUILTINS@%$BUILTINS%g
7974 s%@ALIASES@%$ALIASES%g
7975 s%@INCLUDE@%$INCLUDE%g
7981 s%@OPTIMS@%$OPTIMS%g
7982 s%@TUNING@%$TUNING%g
7983 s%@RELEASE@%$RELEASE%g
7985 s%@DLL_PATH@%$DLL_PATH%g
7986 s%@PACKAGE@%$PACKAGE%g
7987 s%@VERSION@%$VERSION%g
7988 s%@VCD_DEVICE@%$VCD_DEVICE%g
7989 s%@DVD_DEVICE@%$DVD_DEVICE%g
7990 s%@PLDFLAGS@%$PLDFLAGS%g
7991 s%@SOFLAGS@%$SOFLAGS%g
7993 s%@LIB_ALSA@%$LIB_ALSA%g
7994 s%@LIB_ARTS@%$LIB_ARTS%g
7995 s%@LIB_BEOS@%$LIB_BEOS%g
7996 s%@LIB_DARWIN@%$LIB_DARWIN%g
7997 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
7998 s%@LIB_DVD@%$LIB_DVD%g
7999 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
8000 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8001 s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g
8002 s%@LIB_ESD@%$LIB_ESD%g
8003 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8004 s%@LIB_GGI@%$LIB_GGI%g
8005 s%@LIB_GLIDE@%$LIB_GLIDE%g
8006 s%@LIB_GNOME@%$LIB_GNOME%g
8007 s%@LIB_GTK@%$LIB_GTK%g
8008 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8009 s%@LIB_IMDCT@%$LIB_IMDCT%g
8010 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8011 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8012 s%@LIB_KDE@%$LIB_KDE%g
8013 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8014 s%@LIB_MACOSX@%$LIB_MACOSX%g
8015 s%@LIB_MAD@%$LIB_MAD%g
8016 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8017 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8018 s%@LIB_NCURSES@%$LIB_NCURSES%g
8019 s%@LIB_QNX@%$LIB_QNX%g
8020 s%@LIB_QT@%$LIB_QT%g
8021 s%@LIB_RC@%$LIB_RC%g
8022 s%@LIB_SDL@%$LIB_SDL%g
8023 s%@LIB_WIN32@%$LIB_WIN32%g
8024 s%@LIB_X11@%$LIB_X11%g
8025 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8026 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8027 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8028 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8029 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8030 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8031 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8032 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8033 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8034 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8035 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8036 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8037 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8038 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8039 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8040 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8041 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8042 s%@CFLAGS_QT@%$CFLAGS_QT%g
8043 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8044 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8045 s%@CFLAGS_X11@%$CFLAGS_X11%g
8046 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8047 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8048 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8049 s%@NEED_GETOPT@%$NEED_GETOPT%g
8050 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8055 cat >> $CONFIG_STATUS <<\EOF
8057 # Split the substitutions into bite-sized pieces for seds with
8058 # small command number limits, like on Digital OSF/1 and HP-UX.
8059 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8060 ac_file=1 # Number of current file.
8061 ac_beg=1 # First line for current file.
8062 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8065 while $ac_more_lines; do
8066 if test $ac_beg -gt 1; then
8067 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8069 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8071 if test ! -s conftest.s$ac_file; then
8073 rm -f conftest.s$ac_file
8075 if test -z "$ac_sed_cmds"; then
8076 ac_sed_cmds="sed -f conftest.s$ac_file"
8078 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8080 ac_file=`expr $ac_file + 1`
8082 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8085 if test -z "$ac_sed_cmds"; then
8090 cat >> $CONFIG_STATUS <<EOF
8092 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8094 cat >> $CONFIG_STATUS <<\EOF
8095 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8098 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8099 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8100 *) ac_file_in="${ac_file}.in" ;;
8103 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8105 # Remove last slash and all that follows it. Not all systems have dirname.
8106 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8107 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8108 # The file is in a subdirectory.
8109 test ! -d "$ac_dir" && mkdir "$ac_dir"
8110 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8111 # A "../" for each directory in $ac_dir_suffix.
8112 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8114 ac_dir_suffix= ac_dots=
8117 case "$ac_given_srcdir" in
8119 if test -z "$ac_dots"; then top_srcdir=.
8120 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8121 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8123 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8124 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8127 case "$ac_given_INSTALL" in
8128 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8129 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8132 echo creating "$ac_file"
8134 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8136 *Makefile*) ac_comsub="1i\\
8137 # $configure_input" ;;
8141 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8143 s%@configure_input@%$configure_input%g
8144 s%@srcdir@%$srcdir%g
8145 s%@top_srcdir@%$top_srcdir%g
8146 s%@INSTALL@%$INSTALL%g
8147 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8151 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8152 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8154 # ac_d sets the value in "#define NAME VALUE" lines.
8155 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8156 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8159 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8160 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8161 ac_uB='\([ ]\)%\1#\2define\3'
8164 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8165 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8166 ac_eB='$%\1#\2define\3'
8170 if test "${CONFIG_HEADERS+set}" != set; then
8172 cat >> $CONFIG_STATUS <<EOF
8173 CONFIG_HEADERS="include/defs.h"
8175 cat >> $CONFIG_STATUS <<\EOF
8177 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8180 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8181 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8182 *) ac_file_in="${ac_file}.in" ;;
8185 echo creating $ac_file
8187 rm -f conftest.frag conftest.in conftest.out
8188 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8189 cat $ac_file_inputs > conftest.in
8193 # Transform confdefs.h into a sed script conftest.vals that substitutes
8194 # the proper values into config.h.in to produce config.h. And first:
8195 # Protect against being on the right side of a sed subst in config.status.
8196 # Protect against being in an unquoted here document in config.status.
8198 cat > conftest.hdr <<\EOF
8201 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8205 sed -n -f conftest.hdr confdefs.h > conftest.vals
8208 # This sed command replaces #undef with comments. This is necessary, for
8209 # example, in the case of _POSIX_SOURCE, which is predefined and required
8210 # on some systems where configure will not decide to define it.
8211 cat >> conftest.vals <<\EOF
8212 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8215 # Break up conftest.vals because some shells have a limit on
8216 # the size of here documents, and old seds have small limits too.
8221 ac_lines=`grep -c . conftest.vals`
8222 # grep -c gives empty output for an empty file on some AIX systems.
8223 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8224 # Write a limited-size here document to conftest.frag.
8225 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8226 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8228 sed -f conftest.frag conftest.in > conftest.out
8230 mv conftest.out conftest.in
8232 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8234 mv conftest.tail conftest.vals
8238 cat >> $CONFIG_STATUS <<\EOF
8239 rm -f conftest.frag conftest.h
8240 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8241 cat conftest.in >> conftest.h
8243 if cmp -s $ac_file conftest.h 2>/dev/null; then
8244 echo "$ac_file is unchanged"
8247 # Remove last slash and all that follows it. Not all systems have dirname.
8248 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8249 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8250 # The file is in a subdirectory.
8251 test ! -d "$ac_dir" && mkdir "$ac_dir"
8254 mv conftest.h $ac_file
8259 cat >> $CONFIG_STATUS <<EOF
8263 cat >> $CONFIG_STATUS <<\EOF
8264 for ac_file in $CONFIG_FILES; do
8265 # Support "outfile[:infile[:infile...]]"
8267 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8269 # PO directories have a Makefile.in generated from Makefile.in.in.
8270 case "$ac_file" in */Makefile.in)
8271 # Adjust a relative srcdir.
8272 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8273 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8274 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8275 # In autoconf-2.13 it is called $ac_given_srcdir.
8276 # In autoconf-2.50 it is called $srcdir.
8277 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8278 case "$ac_given_srcdir" in
8279 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8280 /*) top_srcdir="$ac_given_srcdir" ;;
8281 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8283 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8284 rm -f "$ac_dir/POTFILES"
8285 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8286 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8287 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8288 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8296 chmod +x $CONFIG_STATUS
8297 rm -fr confdefs* $ac_clean_files
8298 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8302 global configuration
8303 --------------------
8305 architecture : ${ARCH}
8306 optimizations : ${OPTIMS}
8308 release: : ${RELEASE}"
8310 if test x${HAVE_VLC} = x1
8315 vlc version : ${VLC_VERSION}
8316 debug mode : ${DEBUG}
8317 trace mode : ${TRACE}
8318 cprof/gprof support : ${CPROF}/${GPROF}
8319 need builtin getopt : ${NEED_GETOPT}
8320 built-in modules :${BUILTINS}
8321 plug-in modules :${PLUGINS}
8322 vlc aliases :${ALIASES}"
8326 libdvdcss configuration
8327 -----------------------
8328 can be built : ${CAN_BUILD_LIBDVDCSS}
8329 will be built : ${NEED_LIBDVDCSS}"
8330 if test x${NEED_LIBDVDCSS} = x1
8332 echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}"
8333 echo "link statically : ${STATIC_LIBDVDCSS}"
8335 echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
8339 You may now tune Makefile.opts at your convenience, for instance to choose
8340 which modules get compiled as plugins.
8342 if test x${HAVE_VLC} = x1
8344 echo "To build vlc and its plugins, type \`make vlc plugins'."
8346 if test x${HAVE_LIBDVDCSS} = x1
8348 echo "To build libdvdcss only, type \`make libdvdcss'."