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"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable AltiVec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvdplay dvdplay input module (default disabled)"
50 --with-dvdplay=PATH libdvdplay headers and libraries"
52 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
54 --with-dvbpsi=PATH libdvbpsi headers and libraries"
56 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
58 --enable-v4l Video4Linux input support (default disabled)"
60 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
62 --enable-satellite satellite card support (default disabled)"
64 --enable-avi AVI demux module (default enabled)"
68 --enable-mad libmad module (default disabled)"
70 --with-mad=PATH path to libmad"
72 --with-mad-tree=PATH mad tree for static linking"
74 --enable-ffmpeg ffmpeg codec (default disabled)"
76 --with-ffmpeg=PATH path to ffmpeg installation"
78 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
80 --enable-mp4 MP4 demux module (default disabled)"
82 --enable-a52 A/52 support with liba52 (default enabled)"
84 --with-a52=PATH a52 headers and libraries"
86 --with-a52-tree=PATH a52dec tree for static linking "
88 --enable-cinepak Cinepak decoder (default enabled)"
90 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
92 --enable-dv DV decoder support (default disabled)"
96 --enable-x11 X11 support (default enabled)"
98 --enable-xvideo XVideo support (default enabled)"
100 --enable-sdl SDL support (default enabled)"
102 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
104 --enable-directx Win32 DirectX support (default enabled on Win32)"
106 --with-directx=PATH Win32 DirectX headers"
108 --enable-fb Linux framebuffer support (default enabled on Linux)"
110 --enable-mga Linux kernel Matrox support (default disabled)"
112 --enable-ggi GGI support (default disabled)"
114 --with-ggi=PATH path to libggi"
116 --enable-glide Glide (3dfx) support (default disabled)"
118 --with-glide=PATH path to libglide"
120 --enable-aa aalib output (default disabled)"
124 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
126 --enable-esd Esound library support (default disabled)"
128 --enable-arts aRts sound server (default disabled)"
130 --enable-alsa ALSA sound support for Linux (default disabled)"
132 --enable-waveout Win32 waveOut module (default enabled on Win32)"
136 --enable-gtk Gtk+ support (default enabled)"
138 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
140 --enable-familiar Familiar Gtk+ support (default disabled)"
142 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
144 --enable-gnome Gnome interface support (default disabled)"
146 --enable-qt Qt interface support (default disabled)"
148 --enable-kde KDE interface support (default disabled)"
150 --enable-macosx MacOS X support (default enabled on MacOS X)"
152 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
154 --enable-intfwin Win32 interface support (default disabled)"
156 --with-bcbuilder=PATH Borland C++ Builder installation path"
158 --enable-ncurses ncurses interface support (default disabled)"
160 --enable-xosd xosd interface support (default disabled)"
162 --enable-lirc lirc support (default disabled)"
166 --with-words=endianness set endianness (big or little)"
168 --enable-gprof gprof profiling (default disabled)"
170 --enable-cprof cprof profiling (default disabled)"
172 --enable-pth GNU Pth support (default disabled)"
174 --enable-st State Threads (default disabled)"
176 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
178 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
180 # Initialize some variables set by options.
181 # The variables have the same names as the options, with
182 # dashes changed to underlines.
184 cache_file=./config.cache
193 program_transform_name=s,x,x,
201 bindir='${exec_prefix}/bin'
202 sbindir='${exec_prefix}/sbin'
203 libexecdir='${exec_prefix}/libexec'
204 datadir='${prefix}/share'
205 sysconfdir='${prefix}/etc'
206 sharedstatedir='${prefix}/com'
207 localstatedir='${prefix}/var'
208 libdir='${exec_prefix}/lib'
209 includedir='${prefix}/include'
210 oldincludedir='/usr/include'
211 infodir='${prefix}/info'
212 mandir='${prefix}/man'
214 # Initialize some other variables.
217 SHELL=${CONFIG_SHELL-/bin/sh}
218 # Maximum number of lines to put in a shell here document.
225 # If the previous option needs an argument, assign it.
226 if test -n "$ac_prev"; then
227 eval "$ac_prev=\$ac_option"
233 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
237 # Accept the important Cygnus configure options, so we can diagnose typos.
241 -bindir | --bindir | --bindi | --bind | --bin | --bi)
243 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
244 bindir="$ac_optarg" ;;
246 -build | --build | --buil | --bui | --bu)
248 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
249 build="$ac_optarg" ;;
251 -cache-file | --cache-file | --cache-fil | --cache-fi \
252 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
253 ac_prev=cache_file ;;
254 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
256 cache_file="$ac_optarg" ;;
258 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
260 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
262 datadir="$ac_optarg" ;;
264 -disable-* | --disable-*)
265 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
266 # Reject names that are not valid shell variable names.
267 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
268 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
270 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
271 eval "enable_${ac_feature}=no" ;;
273 -enable-* | --enable-*)
274 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
275 # Reject names that are not valid shell variable names.
276 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
277 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
279 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
284 eval "enable_${ac_feature}='$ac_optarg'" ;;
286 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
287 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
288 | --exec | --exe | --ex)
289 ac_prev=exec_prefix ;;
290 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
291 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
292 | --exec=* | --exe=* | --ex=*)
293 exec_prefix="$ac_optarg" ;;
295 -gas | --gas | --ga | --g)
296 # Obsolete; use --with-gas.
299 -help | --help | --hel | --he)
300 # Omit some internal or obsolete options to make the list less imposing.
301 # This message is too long to be a string in the A/UX 3.1 sh.
303 Usage: configure [options] [host]
304 Options: [defaults in brackets after descriptions]
306 --cache-file=FILE cache test results in FILE
307 --help print this message
308 --no-create do not create output files
309 --quiet, --silent do not print \`checking...' messages
310 --version print the version of autoconf that created configure
311 Directory and file names:
312 --prefix=PREFIX install architecture-independent files in PREFIX
314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
316 --bindir=DIR user executables in DIR [EPREFIX/bin]
317 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
318 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
319 --datadir=DIR read-only architecture-independent data in DIR
321 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
322 --sharedstatedir=DIR modifiable architecture-independent data in DIR
324 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
325 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
326 --includedir=DIR C header files in DIR [PREFIX/include]
327 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
328 --infodir=DIR info documentation in DIR [PREFIX/info]
329 --mandir=DIR man documentation in DIR [PREFIX/man]
330 --srcdir=DIR find the sources in DIR [configure dir or ..]
331 --program-prefix=PREFIX prepend PREFIX to installed program names
332 --program-suffix=SUFFIX append SUFFIX to installed program names
333 --program-transform-name=PROGRAM
334 run sed PROGRAM on installed program names
338 --build=BUILD configure for building on BUILD [BUILD=HOST]
339 --host=HOST configure for HOST [guessed]
340 --target=TARGET configure for TARGET [TARGET=HOST]
341 Features and packages:
342 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
343 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
344 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
345 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
346 --x-includes=DIR X include files are in DIR
347 --x-libraries=DIR X library files are in DIR
349 if test -n "$ac_help"; then
350 echo "--enable and --with options recognized:$ac_help"
354 -host | --host | --hos | --ho)
356 -host=* | --host=* | --hos=* | --ho=*)
359 -includedir | --includedir | --includedi | --included | --include \
360 | --includ | --inclu | --incl | --inc)
361 ac_prev=includedir ;;
362 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
363 | --includ=* | --inclu=* | --incl=* | --inc=*)
364 includedir="$ac_optarg" ;;
366 -infodir | --infodir | --infodi | --infod | --info | --inf)
368 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
369 infodir="$ac_optarg" ;;
371 -libdir | --libdir | --libdi | --libd)
373 -libdir=* | --libdir=* | --libdi=* | --libd=*)
374 libdir="$ac_optarg" ;;
376 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
377 | --libexe | --libex | --libe)
378 ac_prev=libexecdir ;;
379 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
380 | --libexe=* | --libex=* | --libe=*)
381 libexecdir="$ac_optarg" ;;
383 -localstatedir | --localstatedir | --localstatedi | --localstated \
384 | --localstate | --localstat | --localsta | --localst \
385 | --locals | --local | --loca | --loc | --lo)
386 ac_prev=localstatedir ;;
387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
388 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
389 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
390 localstatedir="$ac_optarg" ;;
392 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
394 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
395 mandir="$ac_optarg" ;;
398 # Obsolete; use --without-fp.
401 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
405 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
406 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
409 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
410 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
411 | --oldin | --oldi | --old | --ol | --o)
412 ac_prev=oldincludedir ;;
413 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
414 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
415 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
416 oldincludedir="$ac_optarg" ;;
418 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
420 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
421 prefix="$ac_optarg" ;;
423 -program-prefix | --program-prefix | --program-prefi | --program-pref \
424 | --program-pre | --program-pr | --program-p)
425 ac_prev=program_prefix ;;
426 -program-prefix=* | --program-prefix=* | --program-prefi=* \
427 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
428 program_prefix="$ac_optarg" ;;
430 -program-suffix | --program-suffix | --program-suffi | --program-suff \
431 | --program-suf | --program-su | --program-s)
432 ac_prev=program_suffix ;;
433 -program-suffix=* | --program-suffix=* | --program-suffi=* \
434 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
435 program_suffix="$ac_optarg" ;;
437 -program-transform-name | --program-transform-name \
438 | --program-transform-nam | --program-transform-na \
439 | --program-transform-n | --program-transform- \
440 | --program-transform | --program-transfor \
441 | --program-transfo | --program-transf \
442 | --program-trans | --program-tran \
443 | --progr-tra | --program-tr | --program-t)
444 ac_prev=program_transform_name ;;
445 -program-transform-name=* | --program-transform-name=* \
446 | --program-transform-nam=* | --program-transform-na=* \
447 | --program-transform-n=* | --program-transform-=* \
448 | --program-transform=* | --program-transfor=* \
449 | --program-transfo=* | --program-transf=* \
450 | --program-trans=* | --program-tran=* \
451 | --progr-tra=* | --program-tr=* | --program-t=*)
452 program_transform_name="$ac_optarg" ;;
454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
455 | -silent | --silent | --silen | --sile | --sil)
458 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
460 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
462 sbindir="$ac_optarg" ;;
464 -sharedstatedir | --sharedstatedir | --sharedstatedi \
465 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
466 | --sharedst | --shareds | --shared | --share | --shar \
468 ac_prev=sharedstatedir ;;
469 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
470 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
471 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
473 sharedstatedir="$ac_optarg" ;;
475 -site | --site | --sit)
477 -site=* | --site=* | --sit=*)
480 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
482 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
483 srcdir="$ac_optarg" ;;
485 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
486 | --syscon | --sysco | --sysc | --sys | --sy)
487 ac_prev=sysconfdir ;;
488 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
489 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
490 sysconfdir="$ac_optarg" ;;
492 -target | --target | --targe | --targ | --tar | --ta | --t)
494 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
495 target="$ac_optarg" ;;
497 -v | -verbose | --verbose | --verbos | --verbo | --verb)
500 -version | --version | --versio | --versi | --vers)
501 echo "configure generated by autoconf version 2.13"
505 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
506 # Reject names that are not valid shell variable names.
507 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
508 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
510 ac_package=`echo $ac_package| sed 's/-/_/g'`
515 eval "with_${ac_package}='$ac_optarg'" ;;
517 -without-* | --without-*)
518 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
519 # Reject names that are not valid shell variable names.
520 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
521 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
523 ac_package=`echo $ac_package| sed 's/-/_/g'`
524 eval "with_${ac_package}=no" ;;
527 # Obsolete; use --with-x.
530 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
531 | --x-incl | --x-inc | --x-in | --x-i)
532 ac_prev=x_includes ;;
533 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
534 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
535 x_includes="$ac_optarg" ;;
537 -x-libraries | --x-libraries | --x-librarie | --x-librari \
538 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
539 ac_prev=x_libraries ;;
540 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
541 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
542 x_libraries="$ac_optarg" ;;
544 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
548 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
549 echo "configure: warning: $ac_option: invalid host type" 1>&2
551 if test "x$nonopt" != xNONE; then
552 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
560 if test -n "$ac_prev"; then
561 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
564 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
566 # File descriptor usage:
569 # 2 errors and warnings
570 # 3 some systems may open it to /dev/tty
571 # 4 used on the Kubota Titan
572 # 6 checking for... messages and results
573 # 5 compiler messages saved in config.log
574 if test "$silent" = yes; then
582 This file contains any messages produced by compilers while
583 running configure, to aid debugging if configure makes a mistake.
586 # Strip out --no-create and --no-recursion so they do not pile up.
587 # Also quote any args containing shell metacharacters.
592 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
593 | --no-cr | --no-c) ;;
594 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
595 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
596 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
597 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
598 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
603 # Only set these to C if already set. These must not be set unconditionally
604 # because not all systems understand e.g. LANG=C (notably SCO).
605 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
606 # Non-C LC_CTYPE values break the ctype check.
607 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
608 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
609 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
610 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
613 rm -rf conftest* confdefs.h
614 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
617 # A filename unique to this package, relative to the directory that
618 # configure is in, which we can look for to find out if srcdir is correct.
619 ac_unique_file=include/main.h
621 # Find the source files, if location was not specified.
622 if test -z "$srcdir"; then
623 ac_srcdir_defaulted=yes
624 # Try the directory containing this script, then its parent.
626 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
627 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
629 if test ! -r $srcdir/$ac_unique_file; then
633 ac_srcdir_defaulted=no
635 if test ! -r $srcdir/$ac_unique_file; then
636 if test "$ac_srcdir_defaulted" = yes; then
637 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
639 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
642 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
644 # Prefer explicitly selected file to automatically selected ones.
645 if test -z "$CONFIG_SITE"; then
646 if test "x$prefix" != xNONE; then
647 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
649 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
652 for ac_site_file in $CONFIG_SITE; do
653 if test -r "$ac_site_file"; then
654 echo "loading site script $ac_site_file"
659 if test -r "$cache_file"; then
660 echo "loading cache $cache_file"
663 echo "creating cache $cache_file"
668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
669 ac_cpp='$CPP $CPPFLAGS'
670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
672 cross_compiling=$ac_cv_prog_cc_cross
676 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
677 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
678 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
685 ac_n= ac_c='\c' ac_t=
691 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
692 if test -f $ac_dir/install-sh; then
694 ac_install_sh="$ac_aux_dir/install-sh -c"
696 elif test -f $ac_dir/install.sh; then
698 ac_install_sh="$ac_aux_dir/install.sh -c"
702 if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
705 ac_config_guess=$ac_aux_dir/config.guess
706 ac_config_sub=$ac_aux_dir/config.sub
707 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
710 # Do some error checking and defaulting for the host and target type.
712 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
715 # 1. You are not allowed to specify --host, --target, and nonopt at the
717 # 2. Host defaults to nonopt.
718 # 3. If nonopt is not specified, then host defaults to the current host,
719 # as determined by config.guess.
720 # 4. Target and build default to nonopt.
721 # 5. If nonopt is not specified, then target and build default to host.
723 # The aliases save the names the user supplied, while $host etc.
724 # will get canonicalized.
725 case $host---$target---$nonopt in
726 NONE---*---* | *---NONE---* | *---*---NONE) ;;
727 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
731 # Make sure we can run config.sub.
732 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 echo $ac_n "checking host system type""... $ac_c" 1>&6
737 echo "configure:738: checking host system type" >&5
740 case "$host_alias" in
744 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
745 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
747 *) host_alias=$nonopt ;;
751 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
752 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$host" 1>&6
757 echo $ac_n "checking target system type""... $ac_c" 1>&6
758 echo "configure:759: checking target system type" >&5
761 case "$target_alias" in
764 NONE) target_alias=$host_alias ;;
765 *) target_alias=$nonopt ;;
769 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
770 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
773 echo "$ac_t""$target" 1>&6
775 echo $ac_n "checking build system type""... $ac_c" 1>&6
776 echo "configure:777: checking build system type" >&5
779 case "$build_alias" in
782 NONE) build_alias=$host_alias ;;
783 *) build_alias=$nonopt ;;
787 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
788 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
791 echo "$ac_t""$build" 1>&6
793 test "$host_alias" != "$target_alias" &&
794 test "$program_prefix$program_suffix$program_transform_name" = \
796 program_prefix=${target_alias}-
799 CONFIGURE_LINE="$0 $*"
805 save_CPPFLAGS="${CPPFLAGS}"
806 save_CFLAGS="${CFLAGS}"
807 save_LDFLAGS="${LDFLAGS}"
809 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
810 echo "configure:811: checking whether ${MAKE-make} sets \${MAKE}" >&5
811 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
812 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 cat > conftestmake <<\EOF
817 @echo 'ac_maketemp="${MAKE}"'
819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
820 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
821 if test -n "$ac_maketemp"; then
822 eval ac_cv_prog_make_${ac_make}_set=yes
824 eval ac_cv_prog_make_${ac_make}_set=no
828 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
829 echo "$ac_t""yes" 1>&6
832 echo "$ac_t""no" 1>&6
833 SET_MAKE="MAKE=${MAKE-make}"
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
879 for ac_dir in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 if test $ac_prog_rejected = yes; then
892 # We found a bogon in the path, so make sure we never use it.
893 set dummy $ac_cv_prog_CC
895 if test $# -gt 0; then
896 # We chose a different compiler from the bogus one.
897 # However, it has the same basename, so the bogon will be chosen
898 # first if we set CC to just the basename; use the full file name.
900 set dummy "$ac_dir/$ac_word" "$@"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
914 if test -z "$CC"; then
917 # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl; ac_word=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$CC"; then
925 ac_cv_prog_CC="$CC" # Let the user override the test.
927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
943 echo "$ac_t""no" 1>&6
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 cat > conftest.$ac_ext << EOF
963 #line 964 "configure"
964 #include "confdefs.h"
968 if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
969 ac_cv_prog_cc_works=yes
970 # If we can't run a trivial program, we are probably using a cross compiler.
971 if (./conftest; exit) 2>/dev/null; then
972 ac_cv_prog_cc_cross=no
974 ac_cv_prog_cc_cross=yes
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 ac_cv_prog_cc_works=no
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no; then
991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 cat > conftest.c <<EOF
1008 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1017 if test $ac_cv_prog_gcc = yes; then
1023 ac_test_CFLAGS="${CFLAGS+set}"
1024 ac_save_CFLAGS="$CFLAGS"
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043 CFLAGS="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045 if test "$GCC" = yes; then
1051 if test "$GCC" = yes; then
1058 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1059 echo "configure:1060: checking how to run the C preprocessor" >&5
1060 # On Suns, sometimes $CPP names a directory.
1061 if test -n "$CPP" && test -d "$CPP"; then
1064 if test -z "$CPP"; then
1065 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 # This must be in double quotes, not single quotes, because CPP may get
1069 # substituted into the Makefile and "${CC-cc}" will confuse make.
1071 # On the NeXT, cc -E runs the code through the compiler's parser,
1072 # not just through cpp.
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 CPP="${CC-cc} -E -traditional-cpp"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1099 if test -z "$ac_err"; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1106 CPP="${CC-cc} -nologo -E"
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1114 { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1116 if test -z "$ac_err"; then
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1130 ac_cv_prog_CPP="$CPP"
1132 CPP="$ac_cv_prog_CPP"
1134 ac_cv_prog_CPP="$CPP"
1136 echo "$ac_t""$CPP" 1>&6
1139 if test $host != $build; then
1140 ac_tool_prefix=${host_alias}-
1145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$RANLIB"; then
1153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1167 RANLIB="$ac_cv_prog_RANLIB"
1168 if test -n "$RANLIB"; then
1169 echo "$ac_t""$RANLIB" 1>&6
1171 echo "$ac_t""no" 1>&6
1175 if test -z "$ac_cv_prog_RANLIB"; then
1176 if test -n "$ac_tool_prefix"; then
1177 # Extract the first word of "ranlib", so it can be a program name with args.
1178 set dummy ranlib; ac_word=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$RANLIB"; then
1185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_RANLIB="ranlib"
1197 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1200 RANLIB="$ac_cv_prog_RANLIB"
1201 if test -n "$RANLIB"; then
1202 echo "$ac_t""$RANLIB" 1>&6
1204 echo "$ac_t""no" 1>&6
1212 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1213 set dummy ${ac_tool_prefix}strip; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$STRIP"; then
1220 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1234 STRIP="$ac_cv_prog_STRIP"
1235 if test -n "$STRIP"; then
1236 echo "$ac_t""$STRIP" 1>&6
1238 echo "$ac_t""no" 1>&6
1242 if test -z "$ac_cv_prog_STRIP"; then
1243 if test -n "$ac_tool_prefix"; then
1244 # Extract the first word of "strip", so it can be a program name with args.
1245 set dummy strip; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 if test -n "$STRIP"; then
1252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1256 for ac_dir in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_prog_STRIP="strip"
1264 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1267 STRIP="$ac_cv_prog_STRIP"
1268 if test -n "$STRIP"; then
1269 echo "$ac_t""$STRIP" 1>&6
1271 echo "$ac_t""no" 1>&6
1280 # Extract the first word of "gmake", so it can be a program name with args.
1281 set dummy gmake; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1289 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1292 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1297 for ac_dir in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir=.
1299 if test -f $ac_dir/$ac_word; then
1300 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1305 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1309 GMAKE="$ac_cv_path_GMAKE"
1310 if test -n "$GMAKE"; then
1311 echo "$ac_t""$GMAKE" 1>&6
1313 echo "$ac_t""no" 1>&6
1316 if test "x${GMAKE}" = "xno"; then
1317 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether GNU make is installed" >&5
1319 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if make --version | grep -q -i gnu; then
1325 echo "This software needs you to install GNU make to compile properly."
1326 echo "You can get it from http://www.gnu.org/."
1331 echo "$ac_t""$ac_cv_gmake" 1>&6
1337 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1339 cat >> confdefs.h <<EOF
1340 #define VLC_PACKAGE "${PACKAGE}"
1343 cat >> confdefs.h <<EOF
1344 #define VLC_VERSION "${VERSION}"
1347 # Extract the first word of "ranlib", so it can be a program name with args.
1348 set dummy ranlib; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1359 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_RANLIB="ranlib"
1367 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1370 RANLIB="$ac_cv_prog_RANLIB"
1371 if test -n "$RANLIB"; then
1372 echo "$ac_t""$RANLIB" 1>&6
1374 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1379 echo "configure:1380: checking for strerror in -lcposix" >&5
1380 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 ac_save_LIBS="$LIBS"
1385 LIBS="-lcposix $LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error. */
1390 /* We use char because int might match the return type of a gcc2
1391 builtin and then its argument prototype would still apply. */
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400 eval "ac_cv_lib_$ac_lib_var=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 eval "ac_cv_lib_$ac_lib_var=no"
1408 LIBS="$ac_save_LIBS"
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1413 LIBS="$LIBS -lcposix"
1415 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1421 echo "configure:1422: checking for ANSI C header files" >&5
1422 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1434 { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1436 if test -z "$ac_err"; then
1438 ac_cv_header_stdc=yes
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1444 ac_cv_header_stdc=no
1448 if test $ac_cv_header_stdc = yes; then
1449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1456 egrep "memchr" >/dev/null 2>&1; then
1460 ac_cv_header_stdc=no
1466 if test $ac_cv_header_stdc = yes; then
1467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1474 egrep "free" >/dev/null 2>&1; then
1478 ac_cv_header_stdc=no
1484 if test $ac_cv_header_stdc = yes; then
1485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1486 if test "$cross_compiling" = yes; then
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1493 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1494 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1496 int main () { int i; for (i = 0; i < 256; i++)
1497 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1508 ac_cv_header_stdc=no
1516 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1517 if test $ac_cv_header_stdc = yes; then
1518 cat >> confdefs.h <<\EOF
1519 #define STDC_HEADERS 1
1524 echo $ac_n "checking for working const""... $ac_c" 1>&6
1525 echo "configure:1526: checking for working const" >&5
1526 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1535 /* Ultrix mips cc rejects this. */
1536 typedef int charset[2]; const charset x;
1537 /* SunOS 4.1.1 cc rejects this. */
1538 char const *const *ccp;
1540 /* NEC SVR4.0.2 mips cc rejects this. */
1541 struct point {int x, y;};
1542 static struct point const zero = {0,0};
1543 /* AIX XL C 1.02.0.0 rejects this.
1544 It does not let you subtract one const X* pointer from another in an arm
1545 of an if-expression whose if-part is not a constant expression */
1546 const char *g = "string";
1547 ccp = &g + (g ? g-g : 0);
1548 /* HPUX 7.0 cc rejects these. */
1551 ccp = (char const *const *) p;
1552 { /* SCO 3.2v4 cc rejects this. */
1554 char const *s = 0 ? (char *) 0 : (char const *) 0;
1558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1560 const int *foo = &x[0];
1563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1564 typedef const int *iptr;
1568 { /* AIX XL C 1.02.0.0 rejects this saying
1569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1570 struct s { int j; const int *ap[3]; };
1571 struct s *b; b->j = 5;
1573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1579 if { (eval echo configure:1580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1591 echo "$ac_t""$ac_cv_c_const" 1>&6
1592 if test $ac_cv_c_const = no; then
1593 cat >> confdefs.h <<\EOF
1599 echo $ac_n "checking for inline""... $ac_c" 1>&6
1600 echo "configure:1601: checking for inline" >&5
1601 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1605 for ac_kw in inline __inline__ __inline; do
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1614 if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1616 ac_cv_c_inline=$ac_kw; break
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1626 echo "$ac_t""$ac_cv_c_inline" 1>&6
1627 case "$ac_cv_c_inline" in
1629 no) cat >> confdefs.h <<\EOF
1633 *) cat >> confdefs.h <<EOF
1634 #define inline $ac_cv_c_inline
1639 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1640 echo "configure:1641: checking for off_t" >&5
1641 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <sys/types.h>
1653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1654 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1656 ac_cv_type_off_t=yes
1664 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1665 if test $ac_cv_type_off_t = no; then
1666 cat >> confdefs.h <<\EOF
1672 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1673 echo "configure:1674: checking for size_t" >&5
1674 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 #include <sys/types.h>
1686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1687 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1689 ac_cv_type_size_t=yes
1692 ac_cv_type_size_t=no
1697 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1698 if test $ac_cv_type_size_t = no; then
1699 cat >> confdefs.h <<\EOF
1700 #define size_t unsigned
1705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1706 # for constant arguments. Useless!
1707 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1708 echo "configure:1709: checking for working alloca.h" >&5
1709 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1717 char *p = alloca(2 * sizeof(int));
1720 if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1722 ac_cv_header_alloca_h=yes
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1727 ac_cv_header_alloca_h=no
1732 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1733 if test $ac_cv_header_alloca_h = yes; then
1734 cat >> confdefs.h <<\EOF
1735 #define HAVE_ALLOCA_H 1
1740 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1741 echo "configure:1742: checking for alloca" >&5
1742 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 cat > conftest.$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1750 # define alloca __builtin_alloca
1753 # include <malloc.h>
1754 # define alloca _alloca
1757 # include <alloca.h>
1762 # ifndef alloca /* predefined by HP cc +Olibcalls */
1771 char *p = (char *) alloca(1);
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 ac_cv_func_alloca_works=yes
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 ac_cv_func_alloca_works=no
1786 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1787 if test $ac_cv_func_alloca_works = yes; then
1788 cat >> confdefs.h <<\EOF
1789 #define HAVE_ALLOCA 1
1794 if test $ac_cv_func_alloca_works = no; then
1795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1796 # that cause trouble. Some versions do not even contain alloca or
1797 # contain a buggy version. If you still want to use their alloca,
1798 # use ar to extract alloca.o from them instead of compiling alloca.c.
1799 ALLOCA=alloca.${ac_objext}
1800 cat >> confdefs.h <<\EOF
1805 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether alloca needs Cray hooks" >&5
1807 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813 #if defined(CRAY) && ! defined(CRAY2)
1820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1821 egrep "webecray" >/dev/null 2>&1; then
1832 echo "$ac_t""$ac_cv_os_cray" 1>&6
1833 if test $ac_cv_os_cray = yes; then
1834 for ac_func in _getb67 GETB67 getb67; do
1835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_func" >&5
1837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $ac_func(); below. */
1846 /* Override any gcc2 internal prototype to avoid an error. */
1847 /* We use char because int might match the return type of a gcc2
1848 builtin and then its argument prototype would still apply. */
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1864 if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1866 eval "ac_cv_func_$ac_func=yes"
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1871 eval "ac_cv_func_$ac_func=no"
1876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1877 echo "$ac_t""yes" 1>&6
1878 cat >> confdefs.h <<EOF
1879 #define CRAY_STACKSEG_END $ac_func
1884 echo "$ac_t""no" 1>&6
1890 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1891 echo "configure:1892: checking stack direction for C alloca" >&5
1892 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 if test "$cross_compiling" = yes; then
1896 ac_cv_c_stack_direction=0
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 find_stack_direction ()
1903 static char *addr = 0;
1908 return find_stack_direction ();
1911 return (&dummy > addr) ? 1 : -1;
1915 exit (find_stack_direction() < 0);
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1920 ac_cv_c_stack_direction=1
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 ac_cv_c_stack_direction=-1
1932 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1933 cat >> confdefs.h <<EOF
1934 #define STACK_DIRECTION $ac_cv_c_stack_direction
1939 for ac_hdr in unistd.h
1941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_hdr" >&5
1944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then
1957 eval "ac_cv_header_$ac_safe=yes"
1960 echo "configure: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1963 eval "ac_cv_header_$ac_safe=no"
1967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1968 echo "$ac_t""yes" 1>&6
1969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1970 cat >> confdefs.h <<EOF
1971 #define $ac_tr_hdr 1
1975 echo "$ac_t""no" 1>&6
1979 for ac_func in getpagesize
1981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_func" >&5
1983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 /* System header to define __stub macros and hopefully few prototypes,
1990 which can conflict with char $ac_func(); below. */
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 eval "ac_cv_func_$ac_func=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 eval "ac_cv_func_$ac_func=no"
2022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2025 cat >> confdefs.h <<EOF
2026 #define $ac_tr_func 1
2030 echo "$ac_t""no" 1>&6
2034 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2035 echo "configure:2036: checking for working mmap" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 if test "$cross_compiling" = yes; then
2040 ac_cv_func_mmap_fixed_mapped=no
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2046 /* Thanks to Mike Haertel and Jim Avera for this test.
2047 Here is a matrix of mmap possibilities:
2048 mmap private not fixed
2049 mmap private fixed at somewhere currently unmapped
2050 mmap private fixed at somewhere already mapped
2051 mmap shared not fixed
2052 mmap shared fixed at somewhere currently unmapped
2053 mmap shared fixed at somewhere already mapped
2054 For private mappings, we should verify that changes cannot be read()
2055 back from the file, nor mmap's back from the file at a different
2056 address. (There have been systems where private was not correctly
2057 implemented like the infamous i386 svr4.0, and systems where the
2058 VM page cache was not coherent with the filesystem buffer cache
2059 like early versions of FreeBSD and possibly contemporary NetBSD.)
2060 For shared mappings, we should conversely verify that changes get
2061 propogated back to all the places they're supposed to be.
2063 Grep wants private fixed already mapped.
2064 The main things grep needs to know about mmap are:
2065 * does it exist and is it safe to write into the mmap'd area
2066 * how to use it (BSD variants) */
2067 #include <sys/types.h>
2069 #include <sys/mman.h>
2071 /* This mess was copied from the GNU getpagesize.h. */
2072 #ifndef HAVE_GETPAGESIZE
2073 # ifdef HAVE_UNISTD_H
2074 # include <unistd.h>
2077 /* Assume that all systems that can run configure have sys/param.h. */
2078 # ifndef HAVE_SYS_PARAM_H
2079 # define HAVE_SYS_PARAM_H 1
2082 # ifdef _SC_PAGESIZE
2083 # define getpagesize() sysconf(_SC_PAGESIZE)
2084 # else /* no _SC_PAGESIZE */
2085 # ifdef HAVE_SYS_PARAM_H
2086 # include <sys/param.h>
2087 # ifdef EXEC_PAGESIZE
2088 # define getpagesize() EXEC_PAGESIZE
2089 # else /* no EXEC_PAGESIZE */
2091 # define getpagesize() NBPG * CLSIZE
2094 # endif /* no CLSIZE */
2095 # else /* no NBPG */
2097 # define getpagesize() NBPC
2098 # else /* no NBPC */
2100 # define getpagesize() PAGESIZE
2101 # endif /* PAGESIZE */
2102 # endif /* no NBPC */
2103 # endif /* no NBPG */
2104 # endif /* no EXEC_PAGESIZE */
2105 # else /* no HAVE_SYS_PARAM_H */
2106 # define getpagesize() 8192 /* punt totally */
2107 # endif /* no HAVE_SYS_PARAM_H */
2108 # endif /* no _SC_PAGESIZE */
2110 #endif /* no HAVE_GETPAGESIZE */
2113 extern "C" { void *malloc(unsigned); }
2121 char *data, *data2, *data3;
2125 pagesize = getpagesize();
2128 * First, make a file with some known garbage in it.
2130 data = malloc(pagesize);
2133 for (i = 0; i < pagesize; ++i)
2134 *(data + i) = rand();
2136 fd = creat("conftestmmap", 0600);
2139 if (write(fd, data, pagesize) != pagesize)
2144 * Next, try to mmap the file at a fixed address which
2145 * already has something else allocated at it. If we can,
2146 * also make sure that we see the same garbage.
2148 fd = open("conftestmmap", O_RDWR);
2151 data2 = malloc(2 * pagesize);
2154 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2155 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2158 for (i = 0; i < pagesize; ++i)
2159 if (*(data + i) != *(data2 + i))
2163 * Finally, make sure that changes to the mapped area
2164 * do not percolate back to the file as seen by read().
2165 * (This is a bug on some variants of i386 svr4.0.)
2167 for (i = 0; i < pagesize; ++i)
2168 *(data2 + i) = *(data2 + i) + 1;
2169 data3 = malloc(pagesize);
2172 if (read(fd, data3, pagesize) != pagesize)
2174 for (i = 0; i < pagesize; ++i)
2175 if (*(data + i) != *(data3 + i))
2178 unlink("conftestmmap");
2183 if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2185 ac_cv_func_mmap_fixed_mapped=yes
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 ac_cv_func_mmap_fixed_mapped=no
2197 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2198 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2199 cat >> confdefs.h <<\EOF
2206 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2207 echo "configure:2208: checking whether we are using the GNU C Library 2.1 or newer" >&5
2208 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2215 #include <features.h>
2216 #ifdef __GNU_LIBRARY__
2217 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2224 egrep "Lucky GNU user" >/dev/null 2>&1; then
2226 ac_cv_gnu_library_2_1=yes
2229 ac_cv_gnu_library_2_1=no
2237 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2239 GLIBC21="$ac_cv_gnu_library_2_1"
2243 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2244 stdlib.h string.h unistd.h sys/param.h
2246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_hdr" >&5
2249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2260 if test -z "$ac_err"; then
2262 eval "ac_cv_header_$ac_safe=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 eval "ac_cv_header_$ac_safe=no"
2272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2275 cat >> confdefs.h <<EOF
2276 #define $ac_tr_hdr 1
2280 echo "$ac_t""no" 1>&6
2284 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2285 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2286 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_func" >&5
2290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 /* System header to define __stub macros and hopefully few prototypes,
2297 which can conflict with char $ac_func(); below. */
2299 /* Override any gcc2 internal prototype to avoid an error. */
2300 /* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
2306 /* The GNU C library defines this for functions which it implements
2307 to always fail with ENOSYS. Some functions are actually named
2308 something starting with __ and the normal name is an alias. */
2309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2319 eval "ac_cv_func_$ac_func=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_func_$ac_func=no"
2329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2330 echo "$ac_t""yes" 1>&6
2331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2332 cat >> confdefs.h <<EOF
2333 #define $ac_tr_func 1
2337 echo "$ac_t""no" 1>&6
2344 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2345 if test "${with_libiconv_prefix+set}" = set; then
2346 withval="$with_libiconv_prefix"
2348 for dir in `echo "$withval" | tr : ' '`; do
2349 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2350 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2356 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2357 echo "configure:2358: checking for iconv" >&5
2358 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2362 am_cv_func_iconv="no, consider installing GNU libiconv"
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2370 iconv_t cd = iconv_open("","");
2371 iconv(cd,NULL,NULL,NULL,NULL);
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2377 am_cv_func_iconv=yes
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2383 if test "$am_cv_func_iconv" != yes; then
2384 am_save_LIBS="$LIBS"
2385 LIBS="$LIBS -liconv"
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2392 iconv_t cd = iconv_open("","");
2393 iconv(cd,NULL,NULL,NULL,NULL);
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400 am_cv_func_iconv=yes
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2406 LIBS="$am_save_LIBS"
2411 echo "$ac_t""$am_cv_func_iconv" 1>&6
2412 if test "$am_cv_func_iconv" = yes; then
2413 cat >> confdefs.h <<\EOF
2414 #define HAVE_ICONV 1
2417 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2418 echo "configure:2419: checking for iconv declaration" >&5
2419 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2433 #if defined(__STDC__) || defined(__cplusplus)
2434 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 am_cv_proto_iconv_arg1=""
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2450 am_cv_proto_iconv_arg1="const"
2453 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);"
2456 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2457 echo "$ac_t""${ac_t:-
2458 }$am_cv_proto_iconv" 1>&6
2459 cat >> confdefs.h <<EOF
2460 #define ICONV_CONST $am_cv_proto_iconv_arg1
2465 if test "$am_cv_lib_iconv" = yes; then
2471 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2472 echo "configure:2473: checking for nl_langinfo and CODESET" >&5
2473 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <langinfo.h>
2481 char* cs = nl_langinfo(CODESET);
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 am_cv_langinfo_codeset=yes
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 am_cv_langinfo_codeset=no
2497 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2498 if test $am_cv_langinfo_codeset = yes; then
2499 cat >> confdefs.h <<\EOF
2500 #define HAVE_LANGINFO_CODESET 1
2505 if test $ac_cv_header_locale_h = yes; then
2506 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2507 echo "configure:2508: checking for LC_MESSAGES" >&5
2508 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2521 am_cv_val_LC_MESSAGES=yes
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2526 am_cv_val_LC_MESSAGES=no
2531 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2532 if test $am_cv_val_LC_MESSAGES = yes; then
2533 cat >> confdefs.h <<\EOF
2534 #define HAVE_LC_MESSAGES 1
2539 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether NLS is requested" >&5
2541 # Check whether --enable-nls or --disable-nls was given.
2542 if test "${enable_nls+set}" = set; then
2543 enableval="$enable_nls"
2549 echo "$ac_t""$USE_NLS" 1>&6
2552 BUILD_INCLUDED_LIBINTL=no
2553 USE_INCLUDED_LIBINTL=no
2556 if test "$USE_NLS" = "yes"; then
2557 cat >> confdefs.h <<\EOF
2558 #define ENABLE_NLS 1
2561 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2562 echo "configure:2563: checking whether included gettext is requested" >&5
2563 # Check whether --with-included-gettext or --without-included-gettext was given.
2564 if test "${with_included_gettext+set}" = set; then
2565 withval="$with_included_gettext"
2566 nls_cv_force_use_gnu_gettext=$withval
2568 nls_cv_force_use_gnu_gettext=no
2571 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2573 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2574 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2580 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2582 echo "configure:2583: checking for libintl.h" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <libintl.h>
2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594 if test -z "$ac_err"; then
2596 eval "ac_cv_header_$ac_safe=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_header_$ac_safe=no"
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2609 echo "configure:2610: checking for GNU gettext in libc" >&5
2610 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 #include <libintl.h>
2617 extern int _nl_msg_cat_cntr;
2619 bindtextdomain ("", "");
2620 return (int) gettext ("") + _nl_msg_cat_cntr
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 gt_cv_func_gnugettext1_libc=yes
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 gt_cv_func_gnugettext1_libc=no
2635 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2637 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2638 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2639 echo "configure:2640: checking for GNU gettext in libintl" >&5
2640 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 gt_save_LIBS="$LIBS"
2644 LIBS="$LIBS -lintl $LIBICONV"
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <libintl.h>
2649 extern int _nl_msg_cat_cntr;
2651 bindtextdomain ("", "");
2652 return (int) gettext ("") + _nl_msg_cat_cntr
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657 gt_cv_func_gnugettext1_libintl=yes
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 gt_cv_func_gnugettext1_libintl=no
2665 LIBS="$gt_save_LIBS"
2668 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2671 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2672 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2673 && test "$PACKAGE" != gettext; }; then
2674 cat >> confdefs.h <<\EOF
2675 #define HAVE_GETTEXT 1
2679 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2680 INTLLIBS="-lintl $LIBICONV"
2683 gt_save_LIBS="$LIBS"
2684 LIBS="$LIBS $INTLLIBS"
2685 for ac_func in dcgettext
2687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_func" >&5
2689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 /* System header to define __stub macros and hopefully few prototypes,
2696 which can conflict with char $ac_func(); below. */
2698 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2705 /* The GNU C library defines this for functions which it implements
2706 to always fail with ENOSYS. Some functions are actually named
2707 something starting with __ and the normal name is an alias. */
2708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2718 eval "ac_cv_func_$ac_func=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2723 eval "ac_cv_func_$ac_func=no"
2728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2731 cat >> confdefs.h <<EOF
2732 #define $ac_tr_func 1
2736 echo "$ac_t""no" 1>&6
2740 LIBS="$gt_save_LIBS"
2742 # Extract the first word of "msgfmt", so it can be a program name with args.
2743 set dummy msgfmt; ac_word=$2
2744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_word" >&5
2746 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2751 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2755 for ac_dir in $PATH; do
2756 test -z "$ac_dir" && ac_dir=.
2757 if test -f $ac_dir/$ac_word; then
2758 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2759 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2765 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2769 MSGFMT="$ac_cv_path_MSGFMT"
2770 if test "$MSGFMT" != ":"; then
2771 echo "$ac_t""$MSGFMT" 1>&6
2773 echo "$ac_t""no" 1>&6
2776 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2777 set dummy gmsgfmt; ac_word=$2
2778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_word" >&5
2780 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2788 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2793 for ac_dir in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$ac_word; then
2796 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2801 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2805 GMSGFMT="$ac_cv_path_GMSGFMT"
2806 if test -n "$GMSGFMT"; then
2807 echo "$ac_t""$GMSGFMT" 1>&6
2809 echo "$ac_t""no" 1>&6
2813 # Extract the first word of "xgettext", so it can be a program name with args.
2814 set dummy xgettext; ac_word=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2822 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2826 for ac_dir in $PATH; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if test -f $ac_dir/$ac_word; then
2829 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2830 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2836 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2840 XGETTEXT="$ac_cv_path_XGETTEXT"
2841 if test "$XGETTEXT" != ":"; then
2842 echo "$ac_t""$XGETTEXT" 1>&6
2844 echo "$ac_t""no" 1>&6
2852 echo "$ac_t""no" 1>&6
2856 if test "$CATOBJEXT" = "NONE"; then
2857 nls_cv_use_gnu_gettext=yes
2861 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2862 INTLOBJS="\$(GETTOBJS)"
2863 # Extract the first word of "msgfmt", so it can be a program name with args.
2864 set dummy msgfmt; ac_word=$2
2865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_word" >&5
2867 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2872 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2876 for ac_dir in $PATH; do
2877 test -z "$ac_dir" && ac_dir=.
2878 if test -f $ac_dir/$ac_word; then
2879 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2880 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2886 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2890 MSGFMT="$ac_cv_path_MSGFMT"
2891 if test "$MSGFMT" != ":"; then
2892 echo "$ac_t""$MSGFMT" 1>&6
2894 echo "$ac_t""no" 1>&6
2897 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2898 set dummy gmsgfmt; ac_word=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2909 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2914 for ac_dir in $ac_dummy; do
2915 test -z "$ac_dir" && ac_dir=.
2916 if test -f $ac_dir/$ac_word; then
2917 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2922 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2926 GMSGFMT="$ac_cv_path_GMSGFMT"
2927 if test -n "$GMSGFMT"; then
2928 echo "$ac_t""$GMSGFMT" 1>&6
2930 echo "$ac_t""no" 1>&6
2933 # Extract the first word of "xgettext", so it can be a program name with args.
2934 set dummy xgettext; ac_word=$2
2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_word" >&5
2937 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2942 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2946 for ac_dir in $PATH; do
2947 test -z "$ac_dir" && ac_dir=.
2948 if test -f $ac_dir/$ac_word; then
2949 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2950 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2956 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2960 XGETTEXT="$ac_cv_path_XGETTEXT"
2961 if test "$XGETTEXT" != ":"; then
2962 echo "$ac_t""$XGETTEXT" 1>&6
2964 echo "$ac_t""no" 1>&6
2968 BUILD_INCLUDED_LIBINTL=yes
2969 USE_INCLUDED_LIBINTL=yes
2971 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2972 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2975 if test "$GMSGFMT" != ":"; then
2976 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2979 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2984 if test "$XGETTEXT" != ":"; then
2985 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2988 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2998 if test "$PACKAGE" = gettext; then
2999 BUILD_INCLUDED_LIBINTL=yes
3002 for ac_prog in bison
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3007 echo "configure:3008: checking for $ac_word" >&5
3008 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 if test -n "$INTLBISON"; then
3012 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3016 for ac_dir in $ac_dummy; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if test -f $ac_dir/$ac_word; then
3019 ac_cv_prog_INTLBISON="$ac_prog"
3026 INTLBISON="$ac_cv_prog_INTLBISON"
3027 if test -n "$INTLBISON"; then
3028 echo "$ac_t""$INTLBISON" 1>&6
3030 echo "$ac_t""no" 1>&6
3033 test -n "$INTLBISON" && break
3036 if test -z "$INTLBISON"; then
3039 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3040 echo "configure:3041: checking version of bison" >&5
3041 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3042 case $ac_prog_version in
3043 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3044 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3045 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3046 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3048 echo "$ac_t""$ac_prog_version" 1>&6
3050 if test $ac_verc_fail = yes; then
3054 for lang in $ALL_LINGUAS; do
3055 GMOFILES="$GMOFILES $lang.gmo"
3056 POFILES="$POFILES $lang.po"
3070 nls_cv_header_libgt=
3082 if test "x$CATOBJEXT" != "x"; then
3083 if test "x$ALL_LINGUAS" = "x"; then
3086 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3087 echo "configure:3088: checking for catalogs to be installed" >&5
3089 for presentlang in $ALL_LINGUAS; do
3091 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3092 # Use the presentlang catalog if desiredlang is
3093 # a. equal to presentlang, or
3094 # b. a variant of presentlang (because in this case,
3095 # presentlang can be used as a fallback for messages
3096 # which are not translated in the desiredlang catalog).
3097 case "$desiredlang" in
3098 "$presentlang"*) useit=yes;;
3101 if test $useit = yes; then
3102 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3105 LINGUAS=$NEW_LINGUAS
3106 echo "$ac_t""$LINGUAS" 1>&6
3109 if test -n "$LINGUAS"; then
3110 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3115 if test -n "$ac_aux_dir"; then
3116 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3118 if test -z "$MKINSTALLDIRS"; then
3119 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3123 INTL_LIBTOOL_SUFFIX_PREFIX=
3127 # Find a good install program. We prefer a C program (faster),
3128 # so one script is as good as another. But avoid the broken or
3129 # incompatible versions:
3130 # SysV /etc/install, /usr/sbin/install
3131 # SunOS /usr/etc/install
3132 # IRIX /sbin/install
3134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3137 # ./install, which can be erroneously created by make from ./install.sh.
3138 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3139 echo "configure:3140: checking for a BSD compatible install" >&5
3140 if test -z "$INSTALL"; then
3141 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3145 for ac_dir in $PATH; do
3146 # Account for people who put trailing slashes in PATH elements.
3148 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3150 # OSF1 and SCO ODT 3.0 have their own names for install.
3151 # Don't use installbsd from OSF since it installs stuff as root
3153 for ac_prog in ginstall scoinst install; do
3154 if test -f $ac_dir/$ac_prog; then
3155 if test $ac_prog = install &&
3156 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3157 # AIX install. It has an incompatible calling convention.
3160 ac_cv_path_install="$ac_dir/$ac_prog -c"
3171 if test "${ac_cv_path_install+set}" = set; then
3172 INSTALL="$ac_cv_path_install"
3174 # As a last resort, use the slow shell script. We don't cache a
3175 # path for INSTALL within a source directory, because that will
3176 # break other packages using the cache if that directory is
3177 # removed, or if the path is relative.
3178 INSTALL="$ac_install_sh"
3181 echo "$ac_t""$INSTALL" 1>&6
3183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3184 # It thinks the first close brace ends the variable substitution.
3185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3192 vlc_LDFLAGS="${LDFLAGS}"
3194 case "x${target_os}" in
3203 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3204 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3205 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3209 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3213 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3214 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3218 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}windres; ac_word=$2
3220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3221 echo "configure:3222: checking for $ac_word" >&5
3222 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3225 if test -n "$WINDRES"; then
3226 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3230 for ac_dir in $ac_dummy; do
3231 test -z "$ac_dir" && ac_dir=.
3232 if test -f $ac_dir/$ac_word; then
3233 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3240 WINDRES="$ac_cv_prog_WINDRES"
3241 if test -n "$WINDRES"; then
3242 echo "$ac_t""$WINDRES" 1>&6
3244 echo "$ac_t""no" 1>&6
3248 if test -z "$ac_cv_prog_WINDRES"; then
3249 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "windres", so it can be a program name with args.
3251 set dummy windres; ac_word=$2
3252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3253 echo "configure:3254: checking for $ac_word" >&5
3254 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 if test -n "$WINDRES"; then
3258 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3262 for ac_dir in $ac_dummy; do
3263 test -z "$ac_dir" && ac_dir=.
3264 if test -f $ac_dir/$ac_word; then
3265 ac_cv_prog_WINDRES="windres"
3270 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3273 WINDRES="$ac_cv_prog_WINDRES"
3274 if test -n "$WINDRES"; then
3275 echo "$ac_t""$WINDRES" 1>&6
3277 echo "$ac_t""no" 1>&6
3285 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3286 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3287 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3288 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3289 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3290 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3291 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3295 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3296 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3303 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3304 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3305 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3306 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3307 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3314 if test "x${SYS}" = "xmingw32"
3316 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3318 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3319 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3322 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3324 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_func" >&5
3328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* System header to define __stub macros and hopefully few prototypes,
3335 which can conflict with char $ac_func(); below. */
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3344 /* The GNU C library defines this for functions which it implements
3345 to always fail with ENOSYS. Some functions are actually named
3346 something starting with __ and the normal name is an alias. */
3347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3355 if { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3357 eval "ac_cv_func_$ac_func=yes"
3359 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3362 eval "ac_cv_func_$ac_func=no"
3367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3370 cat >> confdefs.h <<EOF
3371 #define $ac_tr_func 1
3375 echo "$ac_t""no" 1>&6
3380 echo $ac_n "checking for connect""... $ac_c" 1>&6
3381 echo "configure:3382: checking for connect" >&5
3382 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 /* System header to define __stub macros and hopefully few prototypes,
3389 which can conflict with char connect(); below. */
3391 /* Override any gcc2 internal prototype to avoid an error. */
3392 /* We use char because int might match the return type of a gcc2
3393 builtin and then its argument prototype would still apply. */
3398 /* The GNU C library defines this for functions which it implements
3399 to always fail with ENOSYS. Some functions are actually named
3400 something starting with __ and the normal name is an alias. */
3401 #if defined (__stub_connect) || defined (__stub___connect)
3409 if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3411 eval "ac_cv_func_connect=yes"
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3416 eval "ac_cv_func_connect=no"
3421 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3425 echo "$ac_t""no" 1>&6
3427 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3428 echo "configure:3429: checking for connect in -lsocket" >&5
3429 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 ac_save_LIBS="$LIBS"
3434 LIBS="-lsocket $LIBS"
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 /* Override any gcc2 internal prototype to avoid an error. */
3439 /* We use char because int might match the return type of a gcc2
3440 builtin and then its argument prototype would still apply. */
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3449 eval "ac_cv_lib_$ac_lib_var=yes"
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 eval "ac_cv_lib_$ac_lib_var=no"
3457 LIBS="$ac_save_LIBS"
3460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3461 echo "$ac_t""yes" 1>&6
3462 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3463 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3466 echo "$ac_t""no" 1>&6
3471 echo $ac_n "checking for send""... $ac_c" 1>&6
3472 echo "configure:3473: checking for send" >&5
3473 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 /* System header to define __stub macros and hopefully few prototypes,
3480 which can conflict with char send(); below. */
3482 /* Override any gcc2 internal prototype to avoid an error. */
3483 /* We use char because int might match the return type of a gcc2
3484 builtin and then its argument prototype would still apply. */
3489 /* The GNU C library defines this for functions which it implements
3490 to always fail with ENOSYS. Some functions are actually named
3491 something starting with __ and the normal name is an alias. */
3492 #if defined (__stub_send) || defined (__stub___send)
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 eval "ac_cv_func_send=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_func_send=no"
3512 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3516 echo "$ac_t""no" 1>&6
3518 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3519 echo "configure:3520: checking for send in -lsocket" >&5
3520 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 ac_save_LIBS="$LIBS"
3525 LIBS="-lsocket $LIBS"
3526 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 /* Override any gcc2 internal prototype to avoid an error. */
3530 /* We use char because int might match the return type of a gcc2
3531 builtin and then its argument prototype would still apply. */
3538 if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3540 eval "ac_cv_lib_$ac_lib_var=yes"
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3545 eval "ac_cv_lib_$ac_lib_var=no"
3548 LIBS="$ac_save_LIBS"
3551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3552 echo "$ac_t""yes" 1>&6
3553 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3556 echo "$ac_t""no" 1>&6
3561 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3562 echo "configure:3563: checking for gethostbyname" >&5
3563 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 /* System header to define __stub macros and hopefully few prototypes,
3570 which can conflict with char gethostbyname(); below. */
3572 /* Override any gcc2 internal prototype to avoid an error. */
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char gethostbyname();
3579 /* The GNU C library defines this for functions which it implements
3580 to always fail with ENOSYS. Some functions are actually named
3581 something starting with __ and the normal name is an alias. */
3582 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3590 if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3592 eval "ac_cv_func_gethostbyname=yes"
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3597 eval "ac_cv_func_gethostbyname=no"
3602 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3606 echo "$ac_t""no" 1>&6
3608 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3609 echo "configure:3610: checking for gethostbyname in -lnsl" >&5
3610 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 ac_save_LIBS="$LIBS"
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 /* Override any gcc2 internal prototype to avoid an error. */
3620 /* We use char because int might match the return type of a gcc2
3621 builtin and then its argument prototype would still apply. */
3622 char gethostbyname();
3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 eval "ac_cv_lib_$ac_lib_var=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_lib_$ac_lib_var=no"
3638 LIBS="$ac_save_LIBS"
3641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3643 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3645 echo "$ac_t""no" 1>&6
3651 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3652 echo "configure:3653: checking for gethostbyname" >&5
3653 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 /* System header to define __stub macros and hopefully few prototypes,
3660 which can conflict with char gethostbyname(); below. */
3662 /* Override any gcc2 internal prototype to avoid an error. */
3663 /* We use char because int might match the return type of a gcc2
3664 builtin and then its argument prototype would still apply. */
3665 char gethostbyname();
3669 /* The GNU C library defines this for functions which it implements
3670 to always fail with ENOSYS. Some functions are actually named
3671 something starting with __ and the normal name is an alias. */
3672 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3682 eval "ac_cv_func_gethostbyname=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 eval "ac_cv_func_gethostbyname=no"
3692 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3696 echo "$ac_t""no" 1>&6
3698 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3699 echo "configure:3700: checking for gethostbyname in -lbind" >&5
3700 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 ac_save_LIBS="$LIBS"
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 /* Override any gcc2 internal prototype to avoid an error. */
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3712 char gethostbyname();
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 eval "ac_cv_lib_$ac_lib_var=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_lib_$ac_lib_var=no"
3728 LIBS="$ac_save_LIBS"
3731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3733 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3735 echo "$ac_t""no" 1>&6
3742 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3743 echo "configure:3744: checking for nanosleep" >&5
3744 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 /* System header to define __stub macros and hopefully few prototypes,
3751 which can conflict with char nanosleep(); below. */
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3760 /* The GNU C library defines this for functions which it implements
3761 to always fail with ENOSYS. Some functions are actually named
3762 something starting with __ and the normal name is an alias. */
3763 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 eval "ac_cv_func_nanosleep=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 eval "ac_cv_func_nanosleep=no"
3783 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3787 echo "$ac_t""no" 1>&6
3789 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3790 echo "configure:3791: checking for nanosleep in -lrt" >&5
3791 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 ac_save_LIBS="$LIBS"
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* Override any gcc2 internal prototype to avoid an error. */
3801 /* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3811 eval "ac_cv_lib_$ac_lib_var=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3816 eval "ac_cv_lib_$ac_lib_var=no"
3819 LIBS="$ac_save_LIBS"
3822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3826 echo "$ac_t""no" 1>&6
3827 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3828 echo "configure:3829: checking for nanosleep in -lposix4" >&5
3829 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 ac_save_LIBS="$LIBS"
3834 LIBS="-lposix4 $LIBS"
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 /* Override any gcc2 internal prototype to avoid an error. */
3839 /* We use char because int might match the return type of a gcc2
3840 builtin and then its argument prototype would still apply. */
3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 eval "ac_cv_lib_$ac_lib_var=yes"
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3854 eval "ac_cv_lib_$ac_lib_var=no"
3857 LIBS="$ac_save_LIBS"
3860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3861 echo "$ac_t""yes" 1>&6
3862 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3864 echo "$ac_t""no" 1>&6
3873 if test x$have_nanosleep = x1; then
3874 cat >> confdefs.h <<\EOF
3875 #define HAVE_NANOSLEEP 1
3880 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3881 echo "configure:3882: checking for sem_init in -lrt" >&5
3882 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 ac_save_LIBS="$LIBS"
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 /* Override any gcc2 internal prototype to avoid an error. */
3892 /* We use char because int might match the return type of a gcc2
3893 builtin and then its argument prototype would still apply. */
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3902 eval "ac_cv_lib_$ac_lib_var=yes"
3904 echo "configure: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3907 eval "ac_cv_lib_$ac_lib_var=no"
3910 LIBS="$ac_save_LIBS"
3913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3914 echo "$ac_t""yes" 1>&6
3915 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3917 echo "$ac_t""no" 1>&6
3921 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3922 echo "configure:3923: checking for inet_aton" >&5
3923 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3929 /* System header to define __stub macros and hopefully few prototypes,
3930 which can conflict with char inet_aton(); below. */
3932 /* Override any gcc2 internal prototype to avoid an error. */
3933 /* We use char because int might match the return type of a gcc2
3934 builtin and then its argument prototype would still apply. */
3939 /* The GNU C library defines this for functions which it implements
3940 to always fail with ENOSYS. Some functions are actually named
3941 something starting with __ and the normal name is an alias. */
3942 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3950 if { (eval echo configure:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3952 eval "ac_cv_func_inet_aton=yes"
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3957 eval "ac_cv_func_inet_aton=no"
3962 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3963 echo "$ac_t""yes" 1>&6
3966 echo "$ac_t""no" 1>&6
3968 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3969 echo "configure:3970: checking for inet_aton in -lresolv" >&5
3970 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 ac_save_LIBS="$LIBS"
3975 LIBS="-lresolv $LIBS"
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3988 if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3990 eval "ac_cv_lib_$ac_lib_var=yes"
3992 echo "configure: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
3995 eval "ac_cv_lib_$ac_lib_var=no"
3998 LIBS="$ac_save_LIBS"
4001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4005 echo "$ac_t""no" 1>&6
4011 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4012 echo "configure:4013: checking for textdomain" >&5
4013 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 /* System header to define __stub macros and hopefully few prototypes,
4020 which can conflict with char textdomain(); below. */
4022 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4029 /* The GNU C library defines this for functions which it implements
4030 to always fail with ENOSYS. Some functions are actually named
4031 something starting with __ and the normal name is an alias. */
4032 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4040 if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4042 eval "ac_cv_func_textdomain=yes"
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 eval "ac_cv_func_textdomain=no"
4052 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4056 echo "$ac_t""no" 1>&6
4058 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4059 echo "configure:4060: checking for textdomain in -lintl" >&5
4060 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 ac_save_LIBS="$LIBS"
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4080 eval "ac_cv_lib_$ac_lib_var=yes"
4082 echo "configure: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4085 eval "ac_cv_lib_$ac_lib_var=no"
4088 LIBS="$ac_save_LIBS"
4091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4092 echo "$ac_t""yes" 1>&6
4093 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4094 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4097 echo "$ac_t""no" 1>&6
4105 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4106 echo "configure:4107: checking for getopt_long" >&5
4107 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* System header to define __stub macros and hopefully few prototypes,
4114 which can conflict with char getopt_long(); below. */
4116 /* Override any gcc2 internal prototype to avoid an error. */
4117 /* We use char because int might match the return type of a gcc2
4118 builtin and then its argument prototype would still apply. */
4123 /* The GNU C library defines this for functions which it implements
4124 to always fail with ENOSYS. Some functions are actually named
4125 something starting with __ and the normal name is an alias. */
4126 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4136 eval "ac_cv_func_getopt_long=yes"
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4141 eval "ac_cv_func_getopt_long=no"
4146 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 cat >> confdefs.h <<\EOF
4149 #define HAVE_GETOPT_LONG 1
4153 echo "$ac_t""no" 1>&6
4154 # FreeBSD has a gnugetopt library for this:
4155 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4156 echo "configure:4157: checking for getopt_long in -lgnugetopt" >&5
4157 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 ac_save_LIBS="$LIBS"
4162 LIBS="-lgnugetopt $LIBS"
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */