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 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --disable-css Disable DVD CSS decryption (default enabled)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --disable-optimizations Disable compiler optimizations (default enabled)"
27 --disable-dummy dummy module (default enabled)"
29 --disable-null Null module (default enabled)"
31 --disable-dsp Linux /dev/dsp support (default enabled)"
33 --enable-esd Esound library support (default disabled)"
35 --enable-fb Linux framebuffer support (default disabled)"
37 --with-ggi[=name] GGI support (default disabled)"
39 --with-sdl[=name] SDL support (default enabled)"
41 --with-glide[=name] Glide (3dfx) support (default disabled)"
43 --enable-ncurses ncurses interface support (default disabled)"
45 --enable-kde KDE interface support (default disabled)"
47 --enable-gnome Gnome interface support (default disabled)"
49 --disable-gtk Gtk+ support (default enabled)"
51 --disable-x11 X11 support (default enabled)"
53 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file=./config.cache
68 program_transform_name=s,x,x,
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
89 # Initialize some other variables.
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host | --host | --hos | --ho)
231 -host=* | --host=* | --hos=* | --ho=*)
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
246 -libdir | --libdir | --libdi | --libd)
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 sbindir="$ac_optarg" ;;
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 sharedstatedir="$ac_optarg" ;;
350 -site | --site | --sit)
352 -site=* | --site=* | --sit=*)
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=src/interface/main.c
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560 ac_n= ac_c='\c' ac_t=
567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
568 if test -f $ac_dir/install-sh; then
570 ac_install_sh="$ac_aux_dir/install-sh -c"
572 elif test -f $ac_dir/install.sh; then
574 ac_install_sh="$ac_aux_dir/install.sh -c"
578 if test -z "$ac_aux_dir"; then
579 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
581 ac_config_guess=$ac_aux_dir/config.guess
582 ac_config_sub=$ac_aux_dir/config.sub
583 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
586 # Make sure we can run config.sub.
587 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
588 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
591 echo $ac_n "checking host system type""... $ac_c" 1>&6
592 echo "configure:593: checking host system type" >&5
595 case "$host_alias" in
599 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
600 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
602 *) host_alias=$nonopt ;;
606 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
607 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610 echo "$ac_t""$host" 1>&6
618 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
619 echo "configure:620: checking whether ${MAKE-make} sets \${MAKE}" >&5
620 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
621 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 cat > conftestmake <<\EOF
626 @echo 'ac_maketemp="${MAKE}"'
628 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
629 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
630 if test -n "$ac_maketemp"; then
631 eval ac_cv_prog_make_${ac_make}_set=yes
633 eval ac_cv_prog_make_${ac_make}_set=no
637 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
638 echo "$ac_t""yes" 1>&6
641 echo "$ac_t""no" 1>&6
642 SET_MAKE="MAKE=${MAKE-make}"
645 if test -z "$CC"; then
646 # Extract the first word of "gcc", so it can be a program name with args.
647 set dummy gcc; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
669 if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
672 echo "$ac_t""no" 1>&6
675 if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677 set dummy cc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
710 set dummy "$ac_dir/$ac_word" "$@"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
721 echo "$ac_t""no" 1>&6
724 if test -z "$CC"; then
727 # Extract the first word of "cl", so it can be a program name with args.
728 set dummy cl; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 cat > conftest.$ac_ext << EOF
773 #line 774 "configure"
774 #include "confdefs.h"
778 if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 ac_cv_prog_cc_works=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
784 ac_cv_prog_cc_cross=yes
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 ac_cv_prog_cc_works=no
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.c <<EOF
818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
833 ac_test_CFLAGS="${CFLAGS+set}"
834 ac_save_CFLAGS="$CFLAGS"
836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 echo 'void f(){}' > conftest.c
842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852 if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854 elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
861 if test "$GCC" = yes; then
869 if test -z "$CPP"; then
870 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
871 echo "configure:872: checking how to run the C preprocessor" >&5
872 # On Suns, sometimes $CPP names a directory.
873 if test -n "$CPP" && test -d "$CPP"; then
876 if test -z "$CPP"; then
877 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 # This must be in double quotes, not single quotes, because CPP may get
881 # substituted into the Makefile and "${CC-cc}" will confuse make.
883 # On the NeXT, cc -E runs the code through the compiler's parser,
884 # not just through cpp.
885 cat > conftest.$ac_ext <<EOF
886 #line 887 "configure"
887 #include "confdefs.h"
891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
892 { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
894 if test -z "$ac_err"; then
898 echo "configure: failed program was:" >&5
899 cat conftest.$ac_ext >&5
901 CPP="${CC-cc} -E -traditional-cpp"
902 cat > conftest.$ac_ext <<EOF
903 #line 904 "configure"
904 #include "confdefs.h"
908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
909 { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
911 if test -z "$ac_err"; then
915 echo "configure: failed program was:" >&5
916 cat conftest.$ac_ext >&5
918 CPP="${CC-cc} -nologo -E"
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
926 { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
928 if test -z "$ac_err"; then
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
942 ac_cv_prog_CPP="$CPP"
944 CPP="$ac_cv_prog_CPP"
946 ac_cv_prog_CPP="$CPP"
948 echo "$ac_t""$CPP" 1>&6
952 # Find a good install program. We prefer a C program (faster),
953 # so one script is as good as another. But avoid the broken or
954 # incompatible versions:
955 # SysV /etc/install, /usr/sbin/install
956 # SunOS /usr/etc/install
959 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
960 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
961 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
962 # ./install, which can be erroneously created by make from ./install.sh.
963 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
964 echo "configure:965: checking for a BSD compatible install" >&5
965 if test -z "$INSTALL"; then
966 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
970 for ac_dir in $PATH; do
971 # Account for people who put trailing slashes in PATH elements.
973 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
975 # OSF1 and SCO ODT 3.0 have their own names for install.
976 # Don't use installbsd from OSF since it installs stuff as root
978 for ac_prog in ginstall scoinst install; do
979 if test -f $ac_dir/$ac_prog; then
980 if test $ac_prog = install &&
981 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
982 # AIX install. It has an incompatible calling convention.
985 ac_cv_path_install="$ac_dir/$ac_prog -c"
996 if test "${ac_cv_path_install+set}" = set; then
997 INSTALL="$ac_cv_path_install"
999 # As a last resort, use the slow shell script. We don't cache a
1000 # path for INSTALL within a source directory, because that will
1001 # break other packages using the cache if that directory is
1002 # removed, or if the path is relative.
1003 INSTALL="$ac_install_sh"
1006 echo "$ac_t""$INSTALL" 1>&6
1008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1009 # It thinks the first close brace ends the variable substitution.
1010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1017 echo $ac_n "checking for working const""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working const" >&5
1019 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1028 /* Ultrix mips cc rejects this. */
1029 typedef int charset[2]; const charset x;
1030 /* SunOS 4.1.1 cc rejects this. */
1031 char const *const *ccp;
1033 /* NEC SVR4.0.2 mips cc rejects this. */
1034 struct point {int x, y;};
1035 static struct point const zero = {0,0};
1036 /* AIX XL C 1.02.0.0 rejects this.
1037 It does not let you subtract one const X* pointer from another in an arm
1038 of an if-expression whose if-part is not a constant expression */
1039 const char *g = "string";
1040 ccp = &g + (g ? g-g : 0);
1041 /* HPUX 7.0 cc rejects these. */
1044 ccp = (char const *const *) p;
1045 { /* SCO 3.2v4 cc rejects this. */
1047 char const *s = 0 ? (char *) 0 : (char const *) 0;
1051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1053 const int *foo = &x[0];
1056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1057 typedef const int *iptr;
1061 { /* AIX XL C 1.02.0.0 rejects this saying
1062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1063 struct s { int j; const int *ap[3]; };
1064 struct s *b; b->j = 5;
1066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1072 if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1084 echo "$ac_t""$ac_cv_c_const" 1>&6
1085 if test $ac_cv_c_const = no; then
1086 cat >> confdefs.h <<\EOF
1092 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether byte ordering is bigendian" >&5
1094 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 ac_cv_c_bigendian=unknown
1098 # See if sys/param.h defines the BYTE_ORDER macro.
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1102 #include <sys/types.h>
1103 #include <sys/param.h>
1106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1111 if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1113 # It does; now see whether it defined to BIG_ENDIAN or not.
1114 cat > conftest.$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1117 #include <sys/types.h>
1118 #include <sys/param.h>
1121 #if BYTE_ORDER != BIG_ENDIAN
1126 if { (eval echo configure:1127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1128 ac_cv_c_bigendian=yes
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1133 ac_cv_c_bigendian=no
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1141 if test $ac_cv_c_bigendian = unknown; then
1142 if test "$cross_compiling" = yes; then
1143 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1145 cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1149 /* Are we little or big endian? From Harbison&Steele. */
1153 char c[sizeof (long)];
1156 exit (u.c[sizeof (long) - 1] == 1);
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1161 ac_cv_c_bigendian=no
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1166 ac_cv_c_bigendian=yes
1174 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1175 if test $ac_cv_c_bigendian = yes; then
1176 cat >> confdefs.h <<\EOF
1177 #define WORDS_BIGENDIAN 1
1183 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether compiler accepts bswap x86 instruction" >&5
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 unsigned int foo( unsigned int x )
1189 { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1194 if { (eval echo configure:1195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1196 cat >> confdefs.h <<\EOF
1197 #define HAVE_X86_BSWAP 1
1199 echo "$ac_t""yes" 1>&6
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1204 echo "$ac_t""no" 1>&6
1208 for ac_func in gettimeofday select strerror strtod strtol
1210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_func" >&5
1212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1218 /* System header to define __stub macros and hopefully few prototypes,
1219 which can conflict with char $ac_func(); below. */
1221 /* Override any gcc2 internal prototype to avoid an error. */
1222 /* We use char because int might match the return type of a gcc2
1223 builtin and then its argument prototype would still apply. */
1228 /* The GNU C library defines this for functions which it implements
1229 to always fail with ENOSYS. Some functions are actually named
1230 something starting with __ and the normal name is an alias. */
1231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1241 eval "ac_cv_func_$ac_func=yes"
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1246 eval "ac_cv_func_$ac_func=no"
1251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1252 echo "$ac_t""yes" 1>&6
1253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1254 cat >> confdefs.h <<EOF
1255 #define $ac_tr_func 1
1259 echo "$ac_t""no" 1>&6
1263 for ac_func in setenv putenv
1265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_func" >&5
1267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1273 /* System header to define __stub macros and hopefully few prototypes,
1274 which can conflict with char $ac_func(); below. */
1276 /* Override any gcc2 internal prototype to avoid an error. */
1277 /* We use char because int might match the return type of a gcc2
1278 builtin and then its argument prototype would still apply. */
1283 /* The GNU C library defines this for functions which it implements
1284 to always fail with ENOSYS. Some functions are actually named
1285 something starting with __ and the normal name is an alias. */
1286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1294 if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1296 eval "ac_cv_func_$ac_func=yes"
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1301 eval "ac_cv_func_$ac_func=no"
1306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1309 cat >> confdefs.h <<EOF
1310 #define $ac_tr_func 1
1314 echo "$ac_t""no" 1>&6
1318 echo $ac_n "checking for connect""... $ac_c" 1>&6
1319 echo "configure:1320: checking for connect" >&5
1320 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 /* System header to define __stub macros and hopefully few prototypes,
1327 which can conflict with char connect(); below. */
1329 /* Override any gcc2 internal prototype to avoid an error. */
1330 /* We use char because int might match the return type of a gcc2
1331 builtin and then its argument prototype would still apply. */
1336 /* The GNU C library defines this for functions which it implements
1337 to always fail with ENOSYS. Some functions are actually named
1338 something starting with __ and the normal name is an alias. */
1339 #if defined (__stub_connect) || defined (__stub___connect)
1347 if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 eval "ac_cv_func_connect=yes"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1354 eval "ac_cv_func_connect=no"
1359 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1360 echo "$ac_t""yes" 1>&6
1363 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1365 echo "configure:1366: checking for connect in -lsocket" >&5
1366 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 ac_save_LIBS="$LIBS"
1371 LIBS="-lsocket $LIBS"
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386 eval "ac_cv_lib_$ac_lib_var=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 eval "ac_cv_lib_$ac_lib_var=no"
1394 LIBS="$ac_save_LIBS"
1397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1401 cat >> confdefs.h <<EOF
1402 #define $ac_tr_lib 1
1405 LIBS="-lsocket $LIBS"
1408 echo "$ac_t""no" 1>&6
1413 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1414 echo "configure:1415: checking for gethostbyname" >&5
1415 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* System header to define __stub macros and hopefully few prototypes,
1422 which can conflict with char gethostbyname(); below. */
1424 /* Override any gcc2 internal prototype to avoid an error. */
1425 /* We use char because int might match the return type of a gcc2
1426 builtin and then its argument prototype would still apply. */
1427 char gethostbyname();
1431 /* The GNU C library defines this for functions which it implements
1432 to always fail with ENOSYS. Some functions are actually named
1433 something starting with __ and the normal name is an alias. */
1434 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1444 eval "ac_cv_func_gethostbyname=yes"
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 eval "ac_cv_func_gethostbyname=no"
1454 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1458 echo "$ac_t""no" 1>&6
1459 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1460 echo "configure:1461: checking for gethostbyname in -lnsl" >&5
1461 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 ac_save_LIBS="$LIBS"
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 /* Override any gcc2 internal prototype to avoid an error. */
1471 /* We use char because int might match the return type of a gcc2
1472 builtin and then its argument prototype would still apply. */
1473 char gethostbyname();
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1481 eval "ac_cv_lib_$ac_lib_var=yes"
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 eval "ac_cv_lib_$ac_lib_var=no"
1489 LIBS="$ac_save_LIBS"
1492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1494 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1496 cat >> confdefs.h <<EOF
1497 #define $ac_tr_lib 1
1503 echo "$ac_t""no" 1>&6
1508 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1509 echo "configure:1510: checking for nanosleep" >&5
1510 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 /* System header to define __stub macros and hopefully few prototypes,
1517 which can conflict with char nanosleep(); below. */
1519 /* Override any gcc2 internal prototype to avoid an error. */
1520 /* We use char because int might match the return type of a gcc2
1521 builtin and then its argument prototype would still apply. */
1526 /* The GNU C library defines this for functions which it implements
1527 to always fail with ENOSYS. Some functions are actually named
1528 something starting with __ and the normal name is an alias. */
1529 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1539 eval "ac_cv_func_nanosleep=yes"
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1544 eval "ac_cv_func_nanosleep=no"
1549 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1550 echo "$ac_t""yes" 1>&6
1553 echo "$ac_t""no" 1>&6
1554 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1555 echo "configure:1556: checking for nanosleep in -lrt" >&5
1556 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 ac_save_LIBS="$LIBS"
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* Override any gcc2 internal prototype to avoid an error. */
1566 /* We use char because int might match the return type of a gcc2
1567 builtin and then its argument prototype would still apply. */
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 eval "ac_cv_lib_$ac_lib_var=yes"
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 eval "ac_cv_lib_$ac_lib_var=no"
1584 LIBS="$ac_save_LIBS"
1587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1588 echo "$ac_t""yes" 1>&6
1589 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1590 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1591 cat >> confdefs.h <<EOF
1592 #define $ac_tr_lib 1
1598 echo "$ac_t""no" 1>&6
1599 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1600 echo "configure:1601: checking for nanosleep in -lposix4" >&5
1601 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 ac_save_LIBS="$LIBS"
1606 LIBS="-lposix4 $LIBS"
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* Override any gcc2 internal prototype to avoid an error. */
1611 /* We use char because int might match the return type of a gcc2
1612 builtin and then its argument prototype would still apply. */
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1621 eval "ac_cv_lib_$ac_lib_var=yes"
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1626 eval "ac_cv_lib_$ac_lib_var=no"
1629 LIBS="$ac_save_LIBS"
1632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1633 echo "$ac_t""yes" 1>&6
1634 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1636 cat >> confdefs.h <<EOF
1637 #define $ac_tr_lib 1
1640 LIBS="-lposix4 $LIBS"
1643 echo "$ac_t""no" 1>&6
1650 for ac_func in usleep
1652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_func" >&5
1654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* System header to define __stub macros and hopefully few prototypes,
1661 which can conflict with char $ac_func(); below. */
1663 /* Override any gcc2 internal prototype to avoid an error. */
1664 /* We use char because int might match the return type of a gcc2
1665 builtin and then its argument prototype would still apply. */
1670 /* The GNU C library defines this for functions which it implements
1671 to always fail with ENOSYS. Some functions are actually named
1672 something starting with __ and the normal name is an alias. */
1673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 eval "ac_cv_func_$ac_func=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1688 eval "ac_cv_func_$ac_func=no"
1693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694 echo "$ac_t""yes" 1>&6
1695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1696 cat >> confdefs.h <<EOF
1697 #define $ac_tr_func 1
1701 echo "$ac_t""no" 1>&6
1705 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1706 echo "configure:1707: checking for inet_aton" >&5
1707 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char inet_aton(); below. */
1716 /* Override any gcc2 internal prototype to avoid an error. */
1717 /* We use char because int might match the return type of a gcc2
1718 builtin and then its argument prototype would still apply. */
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 eval "ac_cv_func_inet_aton=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 eval "ac_cv_func_inet_aton=no"
1746 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1747 echo "$ac_t""yes" 1>&6
1750 echo "$ac_t""no" 1>&6
1751 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1752 echo "configure:1753: checking for inet_aton in -lresolv" >&5
1753 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_save_LIBS="$LIBS"
1758 LIBS="-lresolv $LIBS"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 eval "ac_cv_lib_$ac_lib_var=no"
1781 LIBS="$ac_save_LIBS"
1784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1788 cat >> confdefs.h <<EOF
1789 #define $ac_tr_lib 1
1792 LIBS="-lresolv $LIBS"
1795 echo "$ac_t""no" 1>&6
1800 for ac_func in vasprintf
1802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_func" >&5
1804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $ac_func(); below. */
1813 /* Override any gcc2 internal prototype to avoid an error. */
1814 /* We use char because int might match the return type of a gcc2
1815 builtin and then its argument prototype would still apply. */
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 eval "ac_cv_func_$ac_func=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_func_$ac_func=no"
1843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1846 cat >> confdefs.h <<EOF
1847 #define $ac_tr_func 1
1851 echo "$ac_t""no" 1>&6
1855 for ac_hdr in unistd.h
1857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_hdr" >&5
1860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1873 eval "ac_cv_header_$ac_safe=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_header_$ac_safe=no"
1883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1886 cat >> confdefs.h <<EOF
1887 #define $ac_tr_hdr 1
1891 echo "$ac_t""no" 1>&6
1895 for ac_func in getpagesize
1897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_func" >&5
1899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $ac_func(); below. */
1908 /* Override any gcc2 internal prototype to avoid an error. */
1909 /* We use char because int might match the return type of a gcc2
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1928 eval "ac_cv_func_$ac_func=yes"
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 eval "ac_cv_func_$ac_func=no"
1938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1941 cat >> confdefs.h <<EOF
1942 #define $ac_tr_func 1
1946 echo "$ac_t""no" 1>&6
1950 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1951 echo "configure:1952: checking for working mmap" >&5
1952 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test "$cross_compiling" = yes; then
1956 ac_cv_func_mmap_fixed_mapped=no
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1962 /* Thanks to Mike Haertel and Jim Avera for this test.
1963 Here is a matrix of mmap possibilities:
1964 mmap private not fixed
1965 mmap private fixed at somewhere currently unmapped
1966 mmap private fixed at somewhere already mapped
1967 mmap shared not fixed
1968 mmap shared fixed at somewhere currently unmapped
1969 mmap shared fixed at somewhere already mapped
1970 For private mappings, we should verify that changes cannot be read()
1971 back from the file, nor mmap's back from the file at a different
1972 address. (There have been systems where private was not correctly
1973 implemented like the infamous i386 svr4.0, and systems where the
1974 VM page cache was not coherent with the filesystem buffer cache
1975 like early versions of FreeBSD and possibly contemporary NetBSD.)
1976 For shared mappings, we should conversely verify that changes get
1977 propogated back to all the places they're supposed to be.
1979 Grep wants private fixed already mapped.
1980 The main things grep needs to know about mmap are:
1981 * does it exist and is it safe to write into the mmap'd area
1982 * how to use it (BSD variants) */
1983 #include <sys/types.h>
1985 #include <sys/mman.h>
1987 /* This mess was copied from the GNU getpagesize.h. */
1988 #ifndef HAVE_GETPAGESIZE
1989 # ifdef HAVE_UNISTD_H
1990 # include <unistd.h>
1993 /* Assume that all systems that can run configure have sys/param.h. */
1994 # ifndef HAVE_SYS_PARAM_H
1995 # define HAVE_SYS_PARAM_H 1
1998 # ifdef _SC_PAGESIZE
1999 # define getpagesize() sysconf(_SC_PAGESIZE)
2000 # else /* no _SC_PAGESIZE */
2001 # ifdef HAVE_SYS_PARAM_H
2002 # include <sys/param.h>
2003 # ifdef EXEC_PAGESIZE
2004 # define getpagesize() EXEC_PAGESIZE
2005 # else /* no EXEC_PAGESIZE */
2007 # define getpagesize() NBPG * CLSIZE
2010 # endif /* no CLSIZE */
2011 # else /* no NBPG */
2013 # define getpagesize() NBPC
2014 # else /* no NBPC */
2016 # define getpagesize() PAGESIZE
2017 # endif /* PAGESIZE */
2018 # endif /* no NBPC */
2019 # endif /* no NBPG */
2020 # endif /* no EXEC_PAGESIZE */
2021 # else /* no HAVE_SYS_PARAM_H */
2022 # define getpagesize() 8192 /* punt totally */
2023 # endif /* no HAVE_SYS_PARAM_H */
2024 # endif /* no _SC_PAGESIZE */
2026 #endif /* no HAVE_GETPAGESIZE */
2029 extern "C" { void *malloc(unsigned); }
2037 char *data, *data2, *data3;
2041 pagesize = getpagesize();
2044 * First, make a file with some known garbage in it.
2046 data = malloc(pagesize);
2049 for (i = 0; i < pagesize; ++i)
2050 *(data + i) = rand();
2052 fd = creat("conftestmmap", 0600);
2055 if (write(fd, data, pagesize) != pagesize)
2060 * Next, try to mmap the file at a fixed address which
2061 * already has something else allocated at it. If we can,
2062 * also make sure that we see the same garbage.
2064 fd = open("conftestmmap", O_RDWR);
2067 data2 = malloc(2 * pagesize);
2070 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2071 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2072 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2074 for (i = 0; i < pagesize; ++i)
2075 if (*(data + i) != *(data2 + i))
2079 * Finally, make sure that changes to the mapped area
2080 * do not percolate back to the file as seen by read().
2081 * (This is a bug on some variants of i386 svr4.0.)
2083 for (i = 0; i < pagesize; ++i)
2084 *(data2 + i) = *(data2 + i) + 1;
2085 data3 = malloc(pagesize);
2088 if (read(fd, data3, pagesize) != pagesize)
2090 for (i = 0; i < pagesize; ++i)
2091 if (*(data + i) != *(data3 + i))
2094 unlink("conftestmmap");
2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2101 ac_cv_func_mmap_fixed_mapped=yes
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 ac_cv_func_mmap_fixed_mapped=no
2113 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2115 cat >> confdefs.h <<\EOF
2121 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2122 echo "configure:2123: checking return type of signal handlers" >&5
2123 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2129 #include <sys/types.h>
2135 extern "C" void (*signal (int, void (*)(int)))(int);
2137 void (*signal ()) ();
2144 if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2146 ac_cv_type_signal=void
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2151 ac_cv_type_signal=int
2156 echo "$ac_t""$ac_cv_type_signal" 1>&6
2157 cat >> confdefs.h <<EOF
2158 #define RETSIGTYPE $ac_cv_type_signal
2162 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2163 echo "configure:2164: checking for dlopen in -ldl" >&5
2164 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 ac_save_LIBS="$LIBS"
2170 cat > conftest.$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2173 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2182 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2184 eval "ac_cv_lib_$ac_lib_var=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2189 eval "ac_cv_lib_$ac_lib_var=no"
2192 LIBS="$ac_save_LIBS"
2195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2196 echo "$ac_t""yes" 1>&6
2197 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2199 cat >> confdefs.h <<EOF
2200 #define $ac_tr_lib 1
2206 echo "$ac_t""no" 1>&6
2209 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2210 echo "configure:2211: checking for optarg in -lgnugetopt" >&5
2211 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 ac_save_LIBS="$LIBS"
2216 LIBS="-lgnugetopt $LIBS"
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2220 /* Override any gcc2 internal prototype to avoid an error. */
2221 /* We use char because int might match the return type of a gcc2
2222 builtin and then its argument prototype would still apply. */
2229 if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2231 eval "ac_cv_lib_$ac_lib_var=yes"
2233 echo "configure: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2236 eval "ac_cv_lib_$ac_lib_var=no"
2239 LIBS="$ac_save_LIBS"
2242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2243 echo "$ac_t""yes" 1>&6
2244 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2245 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2246 cat >> confdefs.h <<EOF
2247 #define $ac_tr_lib 1
2250 LIBS="-lgnugetopt $LIBS"
2253 echo "$ac_t""no" 1>&6
2256 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2257 echo "configure:2258: checking for _ in -lbe" >&5
2258 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 ac_save_LIBS="$LIBS"
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 /* Override any gcc2 internal prototype to avoid an error. */
2268 /* We use char because int might match the return type of a gcc2
2269 builtin and then its argument prototype would still apply. */
2276 if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2278 eval "ac_cv_lib_$ac_lib_var=yes"
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2283 eval "ac_cv_lib_$ac_lib_var=no"
2286 LIBS="$ac_save_LIBS"
2289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2290 echo "$ac_t""yes" 1>&6
2291 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2293 cat >> confdefs.h <<EOF
2294 #define $ac_tr_lib 1
2300 echo "$ac_t""no" 1>&6
2303 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2304 echo "configure:2305: checking for _ in -lgame" >&5
2305 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 ac_save_LIBS="$LIBS"
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2323 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325 eval "ac_cv_lib_$ac_lib_var=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 eval "ac_cv_lib_$ac_lib_var=no"
2333 LIBS="$ac_save_LIBS"
2336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_lib 1
2347 echo "$ac_t""no" 1>&6
2350 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2351 echo "configure:2352: checking for _ in -lroot" >&5
2352 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 ac_save_LIBS="$LIBS"
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 /* Override any gcc2 internal prototype to avoid an error. */
2362 /* We use char because int might match the return type of a gcc2
2363 builtin and then its argument prototype would still apply. */
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 eval "ac_cv_lib_$ac_lib_var=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_lib_$ac_lib_var=no"
2380 LIBS="$ac_save_LIBS"
2383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2387 cat >> confdefs.h <<EOF
2388 #define $ac_tr_lib 1
2394 echo "$ac_t""no" 1>&6
2397 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2398 echo "configure:2399: checking for powl in -lm" >&5
2399 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 ac_save_LIBS="$LIBS"
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 /* Override any gcc2 internal prototype to avoid an error. */
2409 /* We use char because int might match the return type of a gcc2
2410 builtin and then its argument prototype would still apply. */
2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2419 eval "ac_cv_lib_$ac_lib_var=yes"
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2424 eval "ac_cv_lib_$ac_lib_var=no"
2427 LIBS="$ac_save_LIBS"
2430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2431 echo "$ac_t""yes" 1>&6
2432 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2434 cat >> confdefs.h <<EOF
2435 #define $ac_tr_lib 1
2441 echo "$ac_t""no" 1>&6
2444 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2445 echo "configure:2446: checking for pthread_create in -lpthread" >&5
2446 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_save_LIBS="$LIBS"
2451 LIBS="-lpthread $LIBS"
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 /* Override any gcc2 internal prototype to avoid an error. */
2456 /* We use char because int might match the return type of a gcc2
2457 builtin and then its argument prototype would still apply. */
2458 char pthread_create();
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466 eval "ac_cv_lib_$ac_lib_var=yes"
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 eval "ac_cv_lib_$ac_lib_var=no"
2474 LIBS="$ac_save_LIBS"
2477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2481 cat >> confdefs.h <<EOF
2482 #define $ac_tr_lib 1
2485 LIBS="-lpthread $LIBS"
2488 echo "$ac_t""no" 1>&6
2491 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2492 echo "configure:2493: checking for thread_create in -lthreads" >&5
2493 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 ac_save_LIBS="$LIBS"
2498 LIBS="-lthreads $LIBS"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* Override any gcc2 internal prototype to avoid an error. */
2503 /* We use char because int might match the return type of a gcc2
2504 builtin and then its argument prototype would still apply. */
2505 char thread_create();
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2513 eval "ac_cv_lib_$ac_lib_var=yes"
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 eval "ac_cv_lib_$ac_lib_var=no"
2521 LIBS="$ac_save_LIBS"
2524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2528 cat >> confdefs.h <<EOF
2529 #define $ac_tr_lib 1
2532 LIBS="-lthreads $LIBS"
2535 echo "$ac_t""no" 1>&6
2539 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2540 echo "configure:2541: checking for getopt_long" >&5
2541 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 /* System header to define __stub macros and hopefully few prototypes,
2548 which can conflict with char getopt_long(); below. */
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 /* We use char because int might match the return type of a gcc2
2552 builtin and then its argument prototype would still apply. */
2557 /* The GNU C library defines this for functions which it implements
2558 to always fail with ENOSYS. Some functions are actually named
2559 something starting with __ and the normal name is an alias. */
2560 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2568 if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2570 eval "ac_cv_func_getopt_long=yes"
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2575 eval "ac_cv_func_getopt_long=no"
2580 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2584 echo "$ac_t""no" 1>&6
2585 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2590 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2591 for ac_hdr in stddef.h
2593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2595 echo "configure:2596: checking for $ac_hdr" >&5
2596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 cat > conftest.$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2605 { (eval echo configure:2606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2607 if test -z "$ac_err"; then
2609 eval "ac_cv_header_$ac_safe=yes"
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 eval "ac_cv_header_$ac_safe=no"
2619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2622 cat >> confdefs.h <<EOF
2623 #define $ac_tr_hdr 1
2627 echo "$ac_t""no" 1>&6
2631 for ac_hdr in getopt.h
2633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_hdr" >&5
2636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 cat > conftest.$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2645 { (eval echo configure:2646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2647 if test -z "$ac_err"; then
2649 eval "ac_cv_header_$ac_safe=yes"
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2655 eval "ac_cv_header_$ac_safe=no"
2659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2660 echo "$ac_t""yes" 1>&6
2661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2662 cat >> confdefs.h <<EOF
2663 #define $ac_tr_hdr 1
2667 echo "$ac_t""no" 1>&6
2671 for ac_hdr in sys/sockio.h
2673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_hdr" >&5
2676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2689 eval "ac_cv_header_$ac_safe=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 eval "ac_cv_header_$ac_safe=no"
2699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2702 cat >> confdefs.h <<EOF
2703 #define $ac_tr_hdr 1
2707 echo "$ac_t""no" 1>&6
2711 for ac_hdr in fcntl.h sys/time.h unistd.h
2713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_hdr" >&5
2716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727 if test -z "$ac_err"; then
2729 eval "ac_cv_header_$ac_safe=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_header_$ac_safe=no"
2739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2740 echo "$ac_t""yes" 1>&6
2741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2742 cat >> confdefs.h <<EOF
2743 #define $ac_tr_hdr 1
2747 echo "$ac_t""no" 1>&6
2751 for ac_hdr in sys/soundcard.h machine/soundcard.h
2753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_hdr" >&5
2756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2765 { (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2767 if test -z "$ac_err"; then
2769 eval "ac_cv_header_$ac_safe=yes"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2775 eval "ac_cv_header_$ac_safe=no"
2779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2780 echo "$ac_t""yes" 1>&6
2781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2782 cat >> confdefs.h <<EOF
2783 #define $ac_tr_hdr 1
2787 echo "$ac_t""no" 1>&6
2791 for ac_hdr in dlfcn.h image.h
2793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_hdr" >&5
2796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2805 { (eval echo configure:2806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2807 if test -z "$ac_err"; then
2809 eval "ac_cv_header_$ac_safe=yes"
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2815 eval "ac_cv_header_$ac_safe=no"
2819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2820 echo "$ac_t""yes" 1>&6
2821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2822 cat >> confdefs.h <<EOF
2823 #define $ac_tr_hdr 1
2827 echo "$ac_t""no" 1>&6
2831 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2835 echo "configure:2836: checking for $ac_hdr" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2849 eval "ac_cv_header_$ac_safe=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 eval "ac_cv_header_$ac_safe=no"
2859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2862 cat >> confdefs.h <<EOF
2863 #define $ac_tr_hdr 1
2867 echo "$ac_t""no" 1>&6
2871 for ac_hdr in machine/param.h
2873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_hdr" >&5
2876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2885 { (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2887 if test -z "$ac_err"; then
2889 eval "ac_cv_header_$ac_safe=yes"
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2895 eval "ac_cv_header_$ac_safe=no"
2899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2900 echo "$ac_t""yes" 1>&6
2901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2902 cat >> confdefs.h <<EOF
2903 #define $ac_tr_hdr 1
2907 echo "$ac_t""no" 1>&6
2912 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_hdr" >&5
2917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2926 { (eval echo configure:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2928 if test -z "$ac_err"; then
2930 eval "ac_cv_header_$ac_safe=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2936 eval "ac_cv_header_$ac_safe=no"
2940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2941 echo "$ac_t""yes" 1>&6
2942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2943 cat >> confdefs.h <<EOF
2944 #define $ac_tr_hdr 1
2948 echo "$ac_t""no" 1>&6
2955 CFLAGS="${CFLAGS} -Wall -Werror"
2956 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2957 echo "configure:2958: checking for ntohl in sys/param.h" >&5
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/param.h>
2962 void foo() { int meuh; ntohl(meuh); }
2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 cat >> confdefs.h <<\EOF
2970 #define NTOHL_IN_SYS_PARAM_H 1
2973 echo "$ac_t""yes" 1>&6
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 echo "$ac_t""no" 1>&6
2982 CFLAGS="${CFLAGS} -rdynamic"
2983 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2984 echo "configure:2985: checking if \$CC accepts -rdynamic" >&5
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2993 if { (eval echo configure:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2995 DYNAMIC_FLAG="-rdynamic"
2996 echo "$ac_t""yes" 1>&6
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3001 echo "$ac_t""no" 1>&6
3007 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3008 echo "configure:3009: checking for boolean_t in sys/types.h" >&5
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <sys/types.h>
3013 void quux() { boolean_t foo; }
3018 if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 cat >> confdefs.h <<\EOF
3021 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3024 echo "$ac_t""yes" 1>&6
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 echo "$ac_t""no" 1>&6
3033 echo $ac_n "checking for working const""... $ac_c" 1>&6
3034 echo "configure:3035: checking for working const" >&5
3035 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3044 /* Ultrix mips cc rejects this. */
3045 typedef int charset[2]; const charset x;
3046 /* SunOS 4.1.1 cc rejects this. */
3047 char const *const *ccp;
3049 /* NEC SVR4.0.2 mips cc rejects this. */
3050 struct point {int x, y;};
3051 static struct point const zero = {0,0};
3052 /* AIX XL C 1.02.0.0 rejects this.
3053 It does not let you subtract one const X* pointer from another in an arm
3054 of an if-expression whose if-part is not a constant expression */
3055 const char *g = "string";
3056 ccp = &g + (g ? g-g : 0);
3057 /* HPUX 7.0 cc rejects these. */
3060 ccp = (char const *const *) p;
3061 { /* SCO 3.2v4 cc rejects this. */
3063 char const *s = 0 ? (char *) 0 : (char const *) 0;
3067 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3069 const int *foo = &x[0];
3072 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3073 typedef const int *iptr;
3077 { /* AIX XL C 1.02.0.0 rejects this saying
3078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3079 struct s { int j; const int *ap[3]; };
3080 struct s *b; b->j = 5;
3082 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3100 echo "$ac_t""$ac_cv_c_const" 1>&6
3101 if test $ac_cv_c_const = no; then
3102 cat >> confdefs.h <<\EOF
3108 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3109 echo "configure:3110: checking for ANSI C header files" >&5
3110 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3122 { (eval echo configure:3123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3124 if test -z "$ac_err"; then
3126 ac_cv_header_stdc=yes
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3132 ac_cv_header_stdc=no
3136 if test $ac_cv_header_stdc = yes; then
3137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3138 cat > conftest.$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3144 egrep "memchr" >/dev/null 2>&1; then
3148 ac_cv_header_stdc=no
3154 if test $ac_cv_header_stdc = yes; then
3155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162 egrep "free" >/dev/null 2>&1; then
3166 ac_cv_header_stdc=no
3172 if test $ac_cv_header_stdc = yes; then
3173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3174 if test "$cross_compiling" = yes; then
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3181 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3182 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3184 int main () { int i; for (i = 0; i < 256; i++)
3185 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3189 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 ac_cv_header_stdc=no
3204 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3205 if test $ac_cv_header_stdc = yes; then
3206 cat >> confdefs.h <<\EOF
3207 #define STDC_HEADERS 1
3212 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3213 echo "configure:3214: checking for size_t" >&5
3214 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 #include <sys/types.h>
3226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3229 ac_cv_type_size_t=yes
3232 ac_cv_type_size_t=no
3237 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3238 if test $ac_cv_type_size_t = no; then
3239 cat >> confdefs.h <<\EOF
3240 #define size_t unsigned
3245 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3246 echo "configure:3247: checking whether time.h and sys/time.h may both be included" >&5
3247 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 #include <sys/types.h>
3254 #include <sys/time.h>
3260 if { (eval echo configure:3261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3262 ac_cv_header_time=yes
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 ac_cv_header_time=no
3272 echo "$ac_t""$ac_cv_header_time" 1>&6
3273 if test $ac_cv_header_time = yes; then
3274 cat >> confdefs.h <<\EOF
3275 #define TIME_WITH_SYS_TIME 1
3281 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3282 if test x$host_os = xbeos; then
3283 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3285 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3288 for ac_hdr in sys/ioctl.h
3290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3292 echo "configure:3293: checking for $ac_hdr" >&5
3293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3302 { (eval echo configure:3303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3304 if test -z "$ac_err"; then
3306 eval "ac_cv_header_$ac_safe=yes"
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3312 eval "ac_cv_header_$ac_safe=no"
3316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3317 echo "$ac_t""yes" 1>&6
3318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3319 cat >> confdefs.h <<EOF
3320 #define $ac_tr_hdr 1
3322 PLUGINS=${PLUGINS}"dvd "
3323 for ac_hdr in linux/cdrom.h
3325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_hdr" >&5
3328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
3336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3337 { (eval echo configure:3338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3339 if test -z "$ac_err"; then
3341 eval "ac_cv_header_$ac_safe=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_header_$ac_safe=no"
3351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3354 cat >> confdefs.h <<EOF
3355 #define $ac_tr_hdr 1
3359 echo "$ac_t""no" 1>&6
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <linux/cdrom.h>
3368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3369 egrep "dvd" >/dev/null 2>&1; then
3371 cat >> confdefs.h <<\EOF
3379 echo "$ac_t""no" 1>&6
3385 # Check whether --enable-ppro or --disable-ppro was given.
3386 if test "${enable_ppro+set}" = set; then
3387 enableval="$enable_ppro"
3388 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3390 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3393 # Check whether --enable-mmx or --disable-mmx was given.
3394 if test "${enable_mmx+set}" = set; then
3395 enableval="$enable_mmx"
3396 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3398 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3401 # Check whether --enable-css or --disable-css was given.
3402 if test "${enable_css+set}" = set; then
3403 enableval="$enable_css"
3404 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3409 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3413 # Check whether --enable-debug or --disable-debug was given.
3414 if test "${enable_debug+set}" = set; then
3415 enableval="$enable_debug"
3416 if test x$enableval = xyes; then DEBUG=1; fi
3419 # Check whether --enable-stats or --disable-stats was given.
3420 if test "${enable_stats+set}" = set; then
3421 enableval="$enable_stats"
3422 if test x$enableval = xyes; then STATS=1; fi
3425 # Check whether --enable-optimizations or --disable-optimizations was given.
3426 if test "${enable_optimizations+set}" = set; then
3427 enableval="$enable_optimizations"
3428 if test x$enableval = xno; then OPTIMS=0; fi
3437 if test x$host_os = xbeos; then
3438 PLUGINS=${PLUGINS}"dummy null beos "
3445 # Check whether --enable-dummy or --disable-dummy was given.
3446 if test "${enable_dummy+set}" = set; then
3447 enableval="$enable_dummy"
3451 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3452 # Check whether --enable-null or --disable-null was given.
3453 if test "${enable_null+set}" = set; then
3454 enableval="$enable_null"
3458 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3459 # Check whether --enable-dsp or --disable-dsp was given.
3460 if test "${enable_dsp+set}" = set; then
3461 enableval="$enable_dsp"
3465 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3466 # Check whether --enable-esd or --disable-esd was given.
3467 if test "${enable_esd+set}" = set; then
3468 enableval="$enable_esd"
3469 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3472 # Check whether --enable-fb or --disable-fb was given.
3473 if test "${enable_fb+set}" = set; then
3474 enableval="$enable_fb"
3475 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3478 # Check whether --with-ggi or --without-ggi was given.
3479 if test "${with_ggi+set}" = set; then
3481 if test "x$withval" != "xno";
3483 PLUGINS=${PLUGINS}"ggi ";
3484 if test "x$withval" != "xyes";
3486 LIB_GGI="-l"$withval
3493 # Check whether --with-sdl or --without-sdl was given.
3494 if test "${with_sdl+set}" = set; then
3496 if test "x$withval" != "xno";
3498 PLUGINS=${PLUGINS}"sdl ";
3499 if test "x$withval" != "xyes";
3501 LIB_SDL="L/usr/X11R6/lib -l"$withval
3503 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3508 if test "x$withval" = "x";
3510 PLUGINS=${PLUGINS}"sdl "
3511 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3513 # Check whether --with-glide or --without-glide was given.
3514 if test "${with_glide+set}" = set; then
3515 withval="$with_glide"
3516 if test "x$withval" != "xno";
3518 PLUGINS=${PLUGINS}"glide ";
3519 if test "x$withval" != "xyes";
3521 LIB_GLIDE="-l"$withval
3523 LIB_GLIDE="-lglide2x"
3528 # Check whether --enable-ncurses or --disable-ncurses was given.
3529 if test "${enable_ncurses+set}" = set; then
3530 enableval="$enable_ncurses"
3531 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3534 # Check whether --enable-kde or --disable-kde was given.
3535 if test "${enable_kde+set}" = set; then
3536 enableval="$enable_kde"
3537 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; KVLC=1; fi
3540 # Check whether --enable-gnome or --disable-gnome was given.
3541 if test "${enable_gnome+set}" = set; then
3542 enableval="$enable_gnome"
3543 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3546 # Check whether --enable-gtk or --disable-gtk was given.
3547 if test "${enable_gtk+set}" = set; then
3548 enableval="$enable_gtk"
3552 if test x$enable_gtk != xno; then PLUGINS=${PLUGINS}"gtk "; GVLC=1; fi
3553 # Check whether --enable-x11 or --disable-x11 was given.
3554 if test "${enable_x11+set}" = set; then
3555 enableval="$enable_x11"
3559 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3561 # Check whether --enable-alsa or --disable-alsa was given.
3562 if test "${enable_alsa+set}" = set; then
3563 enableval="$enable_alsa"
3564 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3565 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3566 echo "configure:3567: checking for sys/asoundlib.h" >&5
3567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 #include <sys/asoundlib.h>
3575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3576 { (eval echo configure:3577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3578 if test -z "$ac_err"; then
3580 eval "ac_cv_header_$ac_safe=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3586 eval "ac_cv_header_$ac_safe=no"
3590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3593 echo "configure:3594: checking for main in -lasound" >&5
3594 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 ac_save_LIBS="$LIBS"
3599 LIBS="-lasound $LIBS"
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3610 eval "ac_cv_lib_$ac_lib_var=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_lib_$ac_lib_var=no"
3618 LIBS="$ac_save_LIBS"
3621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3622 echo "$ac_t""yes" 1>&6
3625 echo "$ac_t""no" 1>&6
3630 echo "$ac_t""no" 1>&6
3633 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3637 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3638 if test x$KVLC = x1 ; then ALIASES=${ALIASES}"kvlc "; fi
3656 cat > confcache <<\EOF
3657 # This file is a shell script that caches the results of configure
3658 # tests run on this system so they can be shared between configure
3659 # scripts and configure runs. It is not useful on other systems.
3660 # If it contains results you don't want to keep, you may remove or edit it.
3662 # By default, configure uses ./config.cache as the cache file,
3663 # creating it if it does not exist already. You can give configure
3664 # the --cache-file=FILE option to use a different cache file; that is
3665 # what configure does when it calls configure scripts in
3666 # subdirectories, so they share the cache.
3667 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3668 # config.status only pays attention to the cache file if you give it the
3669 # --recheck option to rerun configure.
3672 # The following way of writing the cache mishandles newlines in values,
3673 # but we know of no workaround that is simple, portable, and efficient.
3674 # So, don't put newlines in cache variables' values.
3675 # Ultrix sh set writes to stderr and can't be redirected directly,
3676 # and sets the high bit in the cache file unless we assign to the vars.
3678 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3680 # `set' does not quote correctly, so add quotes (double-quote substitution
3681 # turns \\\\ into \\, and sed turns \\ into \).
3683 -e "s/'/'\\\\''/g" \
3684 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3687 # `set' quotes correctly as required by POSIX, so do not add quotes.
3688 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3691 if cmp -s $cache_file confcache; then
3694 if test -w $cache_file; then
3695 echo "updating cache $cache_file"
3696 cat confcache > $cache_file
3698 echo "not updating unwritable cache $cache_file"
3703 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3706 # Let make expand exec_prefix.
3707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3709 # Any assignment to VPATH causes Sun make to only execute
3710 # the first set of double-colon rules, so remove it if not needed.
3711 # If there is a colon in the path, we need to keep it.
3712 if test "x$srcdir" = x.; then
3713 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3716 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3718 DEFS=-DHAVE_CONFIG_H
3720 # Without the "./", some shells look in PATH for config.status.
3721 : ${CONFIG_STATUS=./config.status}
3723 echo creating $CONFIG_STATUS
3724 rm -f $CONFIG_STATUS
3725 cat > $CONFIG_STATUS <<EOF
3727 # Generated automatically by configure.
3728 # Run this file to recreate the current configuration.
3729 # This directory was configured as follows,
3730 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3732 # $0 $ac_configure_args
3734 # Compiler output produced by configure, useful for debugging
3735 # configure, is in ./config.log if it exists.
3737 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3740 case "\$ac_option" in
3741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3742 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3743 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3744 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3745 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3747 -help | --help | --hel | --he | --h)
3748 echo "\$ac_cs_usage"; exit 0 ;;
3749 *) echo "\$ac_cs_usage"; exit 1 ;;
3753 ac_given_srcdir=$srcdir
3754 ac_given_INSTALL="$INSTALL"
3756 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3758 cat >> $CONFIG_STATUS <<EOF
3760 # Protect against being on the right side of a sed subst in config.status.
3761 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3762 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3766 s%@CFLAGS@%$CFLAGS%g
3767 s%@CPPFLAGS@%$CPPFLAGS%g
3768 s%@CXXFLAGS@%$CXXFLAGS%g
3769 s%@FFLAGS@%$FFLAGS%g
3771 s%@LDFLAGS@%$LDFLAGS%g
3773 s%@exec_prefix@%$exec_prefix%g
3774 s%@prefix@%$prefix%g
3775 s%@program_transform_name@%$program_transform_name%g
3776 s%@bindir@%$bindir%g
3777 s%@sbindir@%$sbindir%g
3778 s%@libexecdir@%$libexecdir%g
3779 s%@datadir@%$datadir%g
3780 s%@sysconfdir@%$sysconfdir%g
3781 s%@sharedstatedir@%$sharedstatedir%g
3782 s%@localstatedir@%$localstatedir%g
3783 s%@libdir@%$libdir%g
3784 s%@includedir@%$includedir%g
3785 s%@oldincludedir@%$oldincludedir%g
3786 s%@infodir@%$infodir%g
3787 s%@mandir@%$mandir%g
3789 s%@host_alias@%$host_alias%g
3790 s%@host_cpu@%$host_cpu%g
3791 s%@host_vendor@%$host_vendor%g
3792 s%@host_os@%$host_os%g
3793 s%@VLC_VERSION@%$VLC_VERSION%g
3794 s%@VLC_CODENAME@%$VLC_CODENAME%g
3795 s%@SET_MAKE@%$SET_MAKE%g
3798 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3799 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3800 s%@INSTALL_DATA@%$INSTALL_DATA%g
3801 s%@LIBOBJS@%$LIBOBJS%g
3804 s%@PLUGINS@%$PLUGINS%g
3805 s%@ALIASES@%$ALIASES%g
3808 s%@OPTIMS@%$OPTIMS%g
3810 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3811 s%@LIB_SDL@%$LIB_SDL%g
3812 s%@LIB_GLIDE@%$LIB_GLIDE%g
3813 s%@LIB_GGI@%$LIB_GGI%g
3818 cat >> $CONFIG_STATUS <<\EOF
3820 # Split the substitutions into bite-sized pieces for seds with
3821 # small command number limits, like on Digital OSF/1 and HP-UX.
3822 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3823 ac_file=1 # Number of current file.
3824 ac_beg=1 # First line for current file.
3825 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3828 while $ac_more_lines; do
3829 if test $ac_beg -gt 1; then
3830 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3832 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3834 if test ! -s conftest.s$ac_file; then
3836 rm -f conftest.s$ac_file
3838 if test -z "$ac_sed_cmds"; then
3839 ac_sed_cmds="sed -f conftest.s$ac_file"
3841 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3843 ac_file=`expr $ac_file + 1`
3845 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3848 if test -z "$ac_sed_cmds"; then
3853 cat >> $CONFIG_STATUS <<EOF
3855 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3857 cat >> $CONFIG_STATUS <<\EOF
3858 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3861 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3862 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3863 *) ac_file_in="${ac_file}.in" ;;
3866 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3868 # Remove last slash and all that follows it. Not all systems have dirname.
3869 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3870 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3871 # The file is in a subdirectory.
3872 test ! -d "$ac_dir" && mkdir "$ac_dir"
3873 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3874 # A "../" for each directory in $ac_dir_suffix.
3875 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3877 ac_dir_suffix= ac_dots=
3880 case "$ac_given_srcdir" in
3882 if test -z "$ac_dots"; then top_srcdir=.
3883 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3884 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3886 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3887 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3890 case "$ac_given_INSTALL" in
3891 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3892 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3895 echo creating "$ac_file"
3897 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3899 *Makefile*) ac_comsub="1i\\
3900 # $configure_input" ;;
3904 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3906 s%@configure_input@%$configure_input%g
3907 s%@srcdir@%$srcdir%g
3908 s%@top_srcdir@%$top_srcdir%g
3909 s%@INSTALL@%$INSTALL%g
3910 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3914 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3915 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3917 # ac_d sets the value in "#define NAME VALUE" lines.
3918 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3919 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3922 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3923 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3924 ac_uB='\([ ]\)%\1#\2define\3'
3927 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3928 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3929 ac_eB='$%\1#\2define\3'
3933 if test "${CONFIG_HEADERS+set}" != set; then
3935 cat >> $CONFIG_STATUS <<EOF
3936 CONFIG_HEADERS="include/defs.h"
3938 cat >> $CONFIG_STATUS <<\EOF
3940 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3943 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3944 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3945 *) ac_file_in="${ac_file}.in" ;;
3948 echo creating $ac_file
3950 rm -f conftest.frag conftest.in conftest.out
3951 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3952 cat $ac_file_inputs > conftest.in
3956 # Transform confdefs.h into a sed script conftest.vals that substitutes
3957 # the proper values into config.h.in to produce config.h. And first:
3958 # Protect against being on the right side of a sed subst in config.status.
3959 # Protect against being in an unquoted here document in config.status.
3961 cat > conftest.hdr <<\EOF
3964 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3968 sed -n -f conftest.hdr confdefs.h > conftest.vals
3971 # This sed command replaces #undef with comments. This is necessary, for
3972 # example, in the case of _POSIX_SOURCE, which is predefined and required
3973 # on some systems where configure will not decide to define it.
3974 cat >> conftest.vals <<\EOF
3975 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3978 # Break up conftest.vals because some shells have a limit on
3979 # the size of here documents, and old seds have small limits too.
3984 ac_lines=`grep -c . conftest.vals`
3985 # grep -c gives empty output for an empty file on some AIX systems.
3986 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3987 # Write a limited-size here document to conftest.frag.
3988 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3989 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3991 sed -f conftest.frag conftest.in > conftest.out
3993 mv conftest.out conftest.in
3995 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3997 mv conftest.tail conftest.vals
4001 cat >> $CONFIG_STATUS <<\EOF
4002 rm -f conftest.frag conftest.h
4003 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4004 cat conftest.in >> conftest.h
4006 if cmp -s $ac_file conftest.h 2>/dev/null; then
4007 echo "$ac_file is unchanged"
4010 # Remove last slash and all that follows it. Not all systems have dirname.
4011 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4012 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4013 # The file is in a subdirectory.
4014 test ! -d "$ac_dir" && mkdir "$ac_dir"
4017 mv conftest.h $ac_file
4022 cat >> $CONFIG_STATUS <<EOF
4025 cat >> $CONFIG_STATUS <<\EOF
4029 chmod +x $CONFIG_STATUS
4030 rm -fr confdefs* $ac_clean_files
4031 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4037 vlc version : ${VLC_VERSION}
4039 architecture : ${ARCH}
4040 debug mode : ${DEBUG}
4041 statistics : ${STATS}
4042 optimizations : ${OPTIMS}
4043 CSS decryption : ${CSS}
4044 plugins : ${PLUGINS}
4045 vlc aliases : ${ALIASES}