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 --enable-debug Enable debug mode (default disabled)"
21 --enable-stats Enable printing of statistics (default disabled)"
23 --disable-optimizations Disable compiler optimizations (default enabled)"
25 --disable-dummy dummy module (default enabled)"
27 --disable-null Null module (default enabled)"
29 --disable-dsp Linux /dev/dsp support (default enabled)"
31 --enable-esd Esound library support (default disabled)"
33 --enable-fb Linux framebuffer support (default disabled)"
35 --with-ggi[=name] GGI support (default disabled)"
37 --with-sdl[=name] SDL support (default enabled)"
39 --with-glide[=name] Glide (3dfx) support (default disabled)"
41 --enable-ncurses ncurses interface support (default disabled)"
43 --enable-kde KDE interface support (default disabled)"
45 --disable-gnome Gnome support (default enabled)"
47 --disable-x11 X11 support (default enabled)"
49 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
55 cache_file=./config.cache
64 program_transform_name=s,x,x,
72 bindir='${exec_prefix}/bin'
73 sbindir='${exec_prefix}/sbin'
74 libexecdir='${exec_prefix}/libexec'
75 datadir='${prefix}/share'
76 sysconfdir='${prefix}/etc'
77 sharedstatedir='${prefix}/com'
78 localstatedir='${prefix}/var'
79 libdir='${exec_prefix}/lib'
80 includedir='${prefix}/include'
81 oldincludedir='/usr/include'
82 infodir='${prefix}/info'
83 mandir='${prefix}/man'
85 # Initialize some other variables.
88 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108 # Accept the important Cygnus configure options, so we can diagnose typos.
112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
117 -build | --build | --buil | --bui | --bu)
119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120 build="$ac_optarg" ;;
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124 ac_prev=cache_file ;;
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127 cache_file="$ac_optarg" ;;
129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 datadir="$ac_optarg" ;;
135 -disable-* | --disable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}=no" ;;
144 -enable-* | --enable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159 | --exec | --exe | --ex)
160 ac_prev=exec_prefix ;;
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163 | --exec=* | --exe=* | --ex=*)
164 exec_prefix="$ac_optarg" ;;
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
170 -help | --help | --hel | --he)
171 # Omit some internal or obsolete options to make the list less imposing.
172 # This message is too long to be a string in the A/UX 3.1 sh.
174 Usage: configure [options] [host]
175 Options: [defaults in brackets after descriptions]
177 --cache-file=FILE cache test results in FILE
178 --help print this message
179 --no-create do not create output files
180 --quiet, --silent do not print \`checking...' messages
181 --version print the version of autoconf that created configure
182 Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212 Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
225 -host | --host | --hos | --ho)
227 -host=* | --host=* | --hos=* | --ho=*)
230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
242 -libdir | --libdir | --libdi | --libd)
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
269 # Obsolete; use --without-fp.
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333 sbindir="$ac_optarg" ;;
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344 sharedstatedir="$ac_optarg" ;;
346 -site | --site | --sit)
348 -site=* | --site=* | --sit=*)
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.13"
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=src/interface/main.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='\c' ac_t=
563 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
564 if test -f $ac_dir/install-sh; then
566 ac_install_sh="$ac_aux_dir/install-sh -c"
568 elif test -f $ac_dir/install.sh; then
570 ac_install_sh="$ac_aux_dir/install.sh -c"
574 if test -z "$ac_aux_dir"; then
575 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
577 ac_config_guess=$ac_aux_dir/config.guess
578 ac_config_sub=$ac_aux_dir/config.sub
579 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582 # Make sure we can run config.sub.
583 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
584 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587 echo $ac_n "checking host system type""... $ac_c" 1>&6
588 echo "configure:589: checking host system type" >&5
591 case "$host_alias" in
595 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
596 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
598 *) host_alias=$nonopt ;;
602 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
603 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
604 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
605 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
606 echo "$ac_t""$host" 1>&6
614 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
615 echo "configure:616: checking whether ${MAKE-make} sets \${MAKE}" >&5
616 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
617 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 cat > conftestmake <<\EOF
622 @echo 'ac_maketemp="${MAKE}"'
624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
625 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
626 if test -n "$ac_maketemp"; then
627 eval ac_cv_prog_make_${ac_make}_set=yes
629 eval ac_cv_prog_make_${ac_make}_set=no
633 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
634 echo "$ac_t""yes" 1>&6
637 echo "$ac_t""no" 1>&6
638 SET_MAKE="MAKE=${MAKE-make}"
641 if test -z "$CC"; then
642 # Extract the first word of "gcc", so it can be a program name with args.
643 set dummy gcc; ac_word=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 if test -n "$CC"; then
650 ac_cv_prog_CC="$CC" # Let the user override the test.
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
671 if test -z "$CC"; then
672 # Extract the first word of "cc", so it can be a program name with args.
673 set dummy cc; ac_word=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 if test -n "$CC"; then
680 ac_cv_prog_CC="$CC" # Let the user override the test.
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
688 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 if test $ac_prog_rejected = yes; then
698 # We found a bogon in the path, so make sure we never use it.
699 set dummy $ac_cv_prog_CC
701 if test $# -gt 0; then
702 # We chose a different compiler from the bogus one.
703 # However, it has the same basename, so the bogon will be chosen
704 # first if we set CC to just the basename; use the full file name.
706 set dummy "$ac_dir/$ac_word" "$@"
714 if test -n "$CC"; then
715 echo "$ac_t""$CC" 1>&6
717 echo "$ac_t""no" 1>&6
720 if test -z "$CC"; then
723 # Extract the first word of "cl", so it can be a program name with args.
724 set dummy cl; ac_word=$2
725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726 echo "configure:727: checking for $ac_word" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 if test -n "$CC"; then
731 ac_cv_prog_CC="$CC" # Let the user override the test.
733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
735 for ac_dir in $ac_dummy; do
736 test -z "$ac_dir" && ac_dir=.
737 if test -f $ac_dir/$ac_word; then
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
749 echo "$ac_t""no" 1>&6
754 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762 ac_cpp='$CPP $CPPFLAGS'
763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765 cross_compiling=$ac_cv_prog_cc_cross
767 cat > conftest.$ac_ext << EOF
769 #line 770 "configure"
770 #include "confdefs.h"
774 if { (eval echo configure:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
775 ac_cv_prog_cc_works=yes
776 # If we can't run a trivial program, we are probably using a cross compiler.
777 if (./conftest; exit) 2>/dev/null; then
778 ac_cv_prog_cc_cross=no
780 ac_cv_prog_cc_cross=yes
783 echo "configure: failed program was:" >&5
784 cat conftest.$ac_ext >&5
785 ac_cv_prog_cc_works=no
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790 ac_cpp='$CPP $CPPFLAGS'
791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793 cross_compiling=$ac_cv_prog_cc_cross
795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796 if test $ac_cv_prog_cc_works = no; then
797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800 echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802 cross_compiling=$ac_cv_prog_cc_cross
804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805 echo "configure:806: checking whether we are using GNU C" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.c <<EOF
814 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
823 if test $ac_cv_prog_gcc = yes; then
829 ac_test_CFLAGS="${CFLAGS+set}"
830 ac_save_CFLAGS="$CFLAGS"
832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833 echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 echo 'void f(){}' > conftest.c
838 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848 if test "$ac_test_CFLAGS" = set; then
849 CFLAGS="$ac_save_CFLAGS"
850 elif test $ac_cv_prog_cc_g = yes; then
851 if test "$GCC" = yes; then
857 if test "$GCC" = yes; then
865 if test -z "$CPP"; then
866 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
867 echo "configure:868: checking how to run the C preprocessor" >&5
868 # On Suns, sometimes $CPP names a directory.
869 if test -n "$CPP" && test -d "$CPP"; then
872 if test -z "$CPP"; then
873 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 # This must be in double quotes, not single quotes, because CPP may get
877 # substituted into the Makefile and "${CC-cc}" will confuse make.
879 # On the NeXT, cc -E runs the code through the compiler's parser,
880 # not just through cpp.
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
888 { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
890 if test -z "$ac_err"; then
894 echo "configure: failed program was:" >&5
895 cat conftest.$ac_ext >&5
897 CPP="${CC-cc} -E -traditional-cpp"
898 cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
905 { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
907 if test -z "$ac_err"; then
911 echo "configure: failed program was:" >&5
912 cat conftest.$ac_ext >&5
914 CPP="${CC-cc} -nologo -E"
915 cat > conftest.$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
922 { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924 if test -z "$ac_err"; then
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
938 ac_cv_prog_CPP="$CPP"
940 CPP="$ac_cv_prog_CPP"
942 ac_cv_prog_CPP="$CPP"
944 echo "$ac_t""$CPP" 1>&6
948 # Find a good install program. We prefer a C program (faster),
949 # so one script is as good as another. But avoid the broken or
950 # incompatible versions:
951 # SysV /etc/install, /usr/sbin/install
952 # SunOS /usr/etc/install
955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
958 # ./install, which can be erroneously created by make from ./install.sh.
959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
960 echo "configure:961: checking for a BSD compatible install" >&5
961 if test -z "$INSTALL"; then
962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
966 for ac_dir in $PATH; do
967 # Account for people who put trailing slashes in PATH elements.
969 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
971 # OSF1 and SCO ODT 3.0 have their own names for install.
972 # Don't use installbsd from OSF since it installs stuff as root
974 for ac_prog in ginstall scoinst install; do
975 if test -f $ac_dir/$ac_prog; then
976 if test $ac_prog = install &&
977 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
978 # AIX install. It has an incompatible calling convention.
981 ac_cv_path_install="$ac_dir/$ac_prog -c"
992 if test "${ac_cv_path_install+set}" = set; then
993 INSTALL="$ac_cv_path_install"
995 # As a last resort, use the slow shell script. We don't cache a
996 # path for INSTALL within a source directory, because that will
997 # break other packages using the cache if that directory is
998 # removed, or if the path is relative.
999 INSTALL="$ac_install_sh"
1002 echo "$ac_t""$INSTALL" 1>&6
1004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1005 # It thinks the first close brace ends the variable substitution.
1006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1013 echo $ac_n "checking for working const""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working const" >&5
1015 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 /* Ultrix mips cc rejects this. */
1025 typedef int charset[2]; const charset x = {0,0};
1026 /* SunOS 4.1.1 cc rejects this. */
1027 char const *const *ccp;
1029 /* NEC SVR4.0.2 mips cc rejects this. */
1030 struct point {int x, y;};
1031 static struct point const zero = {0,0};
1032 /* AIX XL C 1.02.0.0 rejects this.
1033 It does not let you subtract one const X* pointer from another in an arm
1034 of an if-expression whose if-part is not a constant expression */
1035 const char *g = "string";
1036 ccp = &g + (g ? g-g : 0);
1037 /* HPUX 7.0 cc rejects these. */
1040 ccp = (char const *const *) p;
1041 { /* SCO 3.2v4 cc rejects this. */
1043 char const *s = 0 ? (char *) 0 : (char const *) 0;
1047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1049 const int *foo = &x[0];
1052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1053 typedef const int *iptr;
1057 { /* AIX XL C 1.02.0.0 rejects this saying
1058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1059 struct s { int j; const int *ap[3]; };
1060 struct s *b; b->j = 5;
1062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1068 if { (eval echo configure:1069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1072 echo "configure: failed program was:" >&5
1073 cat conftest.$ac_ext >&5
1080 echo "$ac_t""$ac_cv_c_const" 1>&6
1081 if test $ac_cv_c_const = no; then
1082 cat >> confdefs.h <<\EOF
1088 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether byte ordering is bigendian" >&5
1090 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 ac_cv_c_bigendian=unknown
1094 # See if sys/param.h defines the BYTE_ORDER macro.
1095 cat > conftest.$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1098 #include <sys/types.h>
1099 #include <sys/param.h>
1102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1107 if { (eval echo configure:1108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1109 # It does; now see whether it defined to BIG_ENDIAN or not.
1110 cat > conftest.$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1113 #include <sys/types.h>
1114 #include <sys/param.h>
1117 #if BYTE_ORDER != BIG_ENDIAN
1122 if { (eval echo configure:1123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1124 ac_cv_c_bigendian=yes
1126 echo "configure: failed program was:" >&5
1127 cat conftest.$ac_ext >&5
1129 ac_cv_c_bigendian=no
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1137 if test $ac_cv_c_bigendian = unknown; then
1138 if test "$cross_compiling" = yes; then
1139 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1141 cat > conftest.$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1145 /* Are we little or big endian? From Harbison&Steele. */
1149 char c[sizeof (long)];
1152 exit (u.c[sizeof (long) - 1] == 1);
1155 if { (eval echo configure:1156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1157 ac_cv_c_bigendian=no
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1162 ac_cv_c_bigendian=yes
1170 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1171 if test $ac_cv_c_bigendian = yes; then
1172 cat >> confdefs.h <<\EOF
1173 #define WORDS_BIGENDIAN 1
1179 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether compiler accepts bswap x86 instruction" >&5
1181 cat > conftest.$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1184 unsigned int foo( unsigned int x )
1185 { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1190 if { (eval echo configure:1191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1192 cat >> confdefs.h <<\EOF
1193 #define HAVE_X86_BSWAP 1
1195 echo "$ac_t""yes" 1>&6
1197 echo "configure: failed program was:" >&5
1198 cat conftest.$ac_ext >&5
1200 echo "$ac_t""no" 1>&6
1204 for ac_func in gettimeofday select strerror strtod strtol
1206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_func" >&5
1208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* System header to define __stub macros and hopefully few prototypes,
1215 which can conflict with char $ac_func(); below. */
1217 /* Override any gcc2 internal prototype to avoid an error. */
1218 /* We use char because int might match the return type of a gcc2
1219 builtin and then its argument prototype would still apply. */
1224 /* The GNU C library defines this for functions which it implements
1225 to always fail with ENOSYS. Some functions are actually named
1226 something starting with __ and the normal name is an alias. */
1227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1235 if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1237 eval "ac_cv_func_$ac_func=yes"
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 eval "ac_cv_func_$ac_func=no"
1247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1248 echo "$ac_t""yes" 1>&6
1249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1250 cat >> confdefs.h <<EOF
1251 #define $ac_tr_func 1
1255 echo "$ac_t""no" 1>&6
1259 for ac_func in setenv putenv
1261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_func" >&5
1263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 /* System header to define __stub macros and hopefully few prototypes,
1270 which can conflict with char $ac_func(); below. */
1272 /* Override any gcc2 internal prototype to avoid an error. */
1273 /* We use char because int might match the return type of a gcc2
1274 builtin and then its argument prototype would still apply. */
1279 /* The GNU C library defines this for functions which it implements
1280 to always fail with ENOSYS. Some functions are actually named
1281 something starting with __ and the normal name is an alias. */
1282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1292 eval "ac_cv_func_$ac_func=yes"
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1297 eval "ac_cv_func_$ac_func=no"
1302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1305 cat >> confdefs.h <<EOF
1306 #define $ac_tr_func 1
1310 echo "$ac_t""no" 1>&6
1314 echo $ac_n "checking for connect""... $ac_c" 1>&6
1315 echo "configure:1316: checking for connect" >&5
1316 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* System header to define __stub macros and hopefully few prototypes,
1323 which can conflict with char connect(); below. */
1325 /* Override any gcc2 internal prototype to avoid an error. */
1326 /* We use char because int might match the return type of a gcc2
1327 builtin and then its argument prototype would still apply. */
1332 /* The GNU C library defines this for functions which it implements
1333 to always fail with ENOSYS. Some functions are actually named
1334 something starting with __ and the normal name is an alias. */
1335 #if defined (__stub_connect) || defined (__stub___connect)
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1345 eval "ac_cv_func_connect=yes"
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1350 eval "ac_cv_func_connect=no"
1355 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1359 echo "$ac_t""no" 1>&6
1360 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1361 echo "configure:1362: checking for connect in -lsocket" >&5
1362 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_save_LIBS="$LIBS"
1367 LIBS="-lsocket $LIBS"
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* Override any gcc2 internal prototype to avoid an error. */
1372 /* We use char because int might match the return type of a gcc2
1373 builtin and then its argument prototype would still apply. */
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1382 eval "ac_cv_lib_$ac_lib_var=yes"
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1387 eval "ac_cv_lib_$ac_lib_var=no"
1390 LIBS="$ac_save_LIBS"
1393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1394 echo "$ac_t""yes" 1>&6
1395 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1397 cat >> confdefs.h <<EOF
1398 #define $ac_tr_lib 1
1401 LIBS="-lsocket $LIBS"
1404 echo "$ac_t""no" 1>&6
1409 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1410 echo "configure:1411: checking for gethostbyname" >&5
1411 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 /* System header to define __stub macros and hopefully few prototypes,
1418 which can conflict with char gethostbyname(); below. */
1420 /* Override any gcc2 internal prototype to avoid an error. */
1421 /* We use char because int might match the return type of a gcc2
1422 builtin and then its argument prototype would still apply. */
1423 char gethostbyname();
1427 /* The GNU C library defines this for functions which it implements
1428 to always fail with ENOSYS. Some functions are actually named
1429 something starting with __ and the normal name is an alias. */
1430 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1438 if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1440 eval "ac_cv_func_gethostbyname=yes"
1442 echo "configure: failed program was:" >&5
1443 cat conftest.$ac_ext >&5
1445 eval "ac_cv_func_gethostbyname=no"
1450 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1454 echo "$ac_t""no" 1>&6
1455 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1456 echo "configure:1457: checking for gethostbyname in -lnsl" >&5
1457 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 ac_save_LIBS="$LIBS"
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* Override any gcc2 internal prototype to avoid an error. */
1467 /* We use char because int might match the return type of a gcc2
1468 builtin and then its argument prototype would still apply. */
1469 char gethostbyname();
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1477 eval "ac_cv_lib_$ac_lib_var=yes"
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1482 eval "ac_cv_lib_$ac_lib_var=no"
1485 LIBS="$ac_save_LIBS"
1488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1490 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1492 cat >> confdefs.h <<EOF
1493 #define $ac_tr_lib 1
1499 echo "$ac_t""no" 1>&6
1504 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1505 echo "configure:1506: checking for nanosleep" >&5
1506 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512 /* System header to define __stub macros and hopefully few prototypes,
1513 which can conflict with char nanosleep(); below. */
1515 /* Override any gcc2 internal prototype to avoid an error. */
1516 /* We use char because int might match the return type of a gcc2
1517 builtin and then its argument prototype would still apply. */
1522 /* The GNU C library defines this for functions which it implements
1523 to always fail with ENOSYS. Some functions are actually named
1524 something starting with __ and the normal name is an alias. */
1525 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1533 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1535 eval "ac_cv_func_nanosleep=yes"
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1540 eval "ac_cv_func_nanosleep=no"
1545 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1549 echo "$ac_t""no" 1>&6
1550 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1551 echo "configure:1552: checking for nanosleep in -lrt" >&5
1552 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 ac_save_LIBS="$LIBS"
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 /* Override any gcc2 internal prototype to avoid an error. */
1562 /* We use char because int might match the return type of a gcc2
1563 builtin and then its argument prototype would still apply. */
1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1572 eval "ac_cv_lib_$ac_lib_var=yes"
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 eval "ac_cv_lib_$ac_lib_var=no"
1580 LIBS="$ac_save_LIBS"
1583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1584 echo "$ac_t""yes" 1>&6
1585 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1586 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1587 cat >> confdefs.h <<EOF
1588 #define $ac_tr_lib 1
1594 echo "$ac_t""no" 1>&6
1595 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1596 echo "configure:1597: checking for nanosleep in -lposix4" >&5
1597 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1601 ac_save_LIBS="$LIBS"
1602 LIBS="-lposix4 $LIBS"
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 /* Override any gcc2 internal prototype to avoid an error. */
1607 /* We use char because int might match the return type of a gcc2
1608 builtin and then its argument prototype would still apply. */
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1617 eval "ac_cv_lib_$ac_lib_var=yes"
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1622 eval "ac_cv_lib_$ac_lib_var=no"
1625 LIBS="$ac_save_LIBS"
1628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1632 cat >> confdefs.h <<EOF
1633 #define $ac_tr_lib 1
1636 LIBS="-lposix4 $LIBS"
1639 echo "$ac_t""no" 1>&6
1646 for ac_func in usleep
1648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_func" >&5
1650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 /* System header to define __stub macros and hopefully few prototypes,
1657 which can conflict with char $ac_func(); below. */
1659 /* Override any gcc2 internal prototype to avoid an error. */
1660 /* We use char because int might match the return type of a gcc2
1661 builtin and then its argument prototype would still apply. */
1666 /* The GNU C library defines this for functions which it implements
1667 to always fail with ENOSYS. Some functions are actually named
1668 something starting with __ and the normal name is an alias. */
1669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1677 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1679 eval "ac_cv_func_$ac_func=yes"
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1684 eval "ac_cv_func_$ac_func=no"
1689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1690 echo "$ac_t""yes" 1>&6
1691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1692 cat >> confdefs.h <<EOF
1693 #define $ac_tr_func 1
1697 echo "$ac_t""no" 1>&6
1701 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1702 echo "configure:1703: checking for inet_aton" >&5
1703 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 /* System header to define __stub macros and hopefully few prototypes,
1710 which can conflict with char inet_aton(); below. */
1712 /* Override any gcc2 internal prototype to avoid an error. */
1713 /* We use char because int might match the return type of a gcc2
1714 builtin and then its argument prototype would still apply. */
1719 /* The GNU C library defines this for functions which it implements
1720 to always fail with ENOSYS. Some functions are actually named
1721 something starting with __ and the normal name is an alias. */
1722 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1732 eval "ac_cv_func_inet_aton=yes"
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 eval "ac_cv_func_inet_aton=no"
1742 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1746 echo "$ac_t""no" 1>&6
1747 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1748 echo "configure:1749: checking for inet_aton in -lresolv" >&5
1749 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 ac_save_LIBS="$LIBS"
1754 LIBS="-lresolv $LIBS"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 eval "ac_cv_lib_$ac_lib_var=no"
1777 LIBS="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1783 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1784 cat >> confdefs.h <<EOF
1785 #define $ac_tr_lib 1
1788 LIBS="-lresolv $LIBS"
1791 echo "$ac_t""no" 1>&6
1796 for ac_func in vasprintf
1798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_func" >&5
1800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $ac_func(); below. */
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1827 if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1829 eval "ac_cv_func_$ac_func=yes"
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1834 eval "ac_cv_func_$ac_func=no"
1839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_func 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_hdr in unistd.h
1853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_hdr" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1869 eval "ac_cv_header_$ac_safe=yes"
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1875 eval "ac_cv_header_$ac_safe=no"
1879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1882 cat >> confdefs.h <<EOF
1883 #define $ac_tr_hdr 1
1887 echo "$ac_t""no" 1>&6
1891 for ac_func in getpagesize
1893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_func" >&5
1895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 /* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $ac_func(); below. */
1904 /* Override any gcc2 internal prototype to avoid an error. */
1905 /* We use char because int might match the return type of a gcc2
1906 builtin and then its argument prototype would still apply. */
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1924 eval "ac_cv_func_$ac_func=yes"
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1929 eval "ac_cv_func_$ac_func=no"
1934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1937 cat >> confdefs.h <<EOF
1938 #define $ac_tr_func 1
1942 echo "$ac_t""no" 1>&6
1946 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1947 echo "configure:1948: checking for working mmap" >&5
1948 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 if test "$cross_compiling" = yes; then
1952 ac_cv_func_mmap_fixed_mapped=no
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1958 /* Thanks to Mike Haertel and Jim Avera for this test.
1959 Here is a matrix of mmap possibilities:
1960 mmap private not fixed
1961 mmap private fixed at somewhere currently unmapped
1962 mmap private fixed at somewhere already mapped
1963 mmap shared not fixed
1964 mmap shared fixed at somewhere currently unmapped
1965 mmap shared fixed at somewhere already mapped
1966 For private mappings, we should verify that changes cannot be read()
1967 back from the file, nor mmap's back from the file at a different
1968 address. (There have been systems where private was not correctly
1969 implemented like the infamous i386 svr4.0, and systems where the
1970 VM page cache was not coherent with the filesystem buffer cache
1971 like early versions of FreeBSD and possibly contemporary NetBSD.)
1972 For shared mappings, we should conversely verify that changes get
1973 propogated back to all the places they're supposed to be.
1975 Grep wants private fixed already mapped.
1976 The main things grep needs to know about mmap are:
1977 * does it exist and is it safe to write into the mmap'd area
1978 * how to use it (BSD variants) */
1979 #include <sys/types.h>
1981 #include <sys/mman.h>
1983 #include <sys/stat.h>
1985 #ifdef HAVE_UNISTD_H
1986 # include <unistd.h>
1989 /* This mess was copied from the GNU getpagesize.h. */
1990 #ifndef HAVE_GETPAGESIZE
1992 /* Assume that all systems that can run configure have sys/param.h. */
1993 # ifndef HAVE_SYS_PARAM_H
1994 # define HAVE_SYS_PARAM_H 1
1997 # ifdef _SC_PAGESIZE
1998 # define getpagesize() sysconf(_SC_PAGESIZE)
1999 # else /* no _SC_PAGESIZE */
2000 # ifdef HAVE_SYS_PARAM_H
2001 # include <sys/param.h>
2002 # ifdef EXEC_PAGESIZE
2003 # define getpagesize() EXEC_PAGESIZE
2004 # else /* no EXEC_PAGESIZE */
2006 # define getpagesize() NBPG * CLSIZE
2009 # endif /* no CLSIZE */
2010 # else /* no NBPG */
2012 # define getpagesize() NBPC
2013 # else /* no NBPC */
2015 # define getpagesize() PAGESIZE
2016 # endif /* PAGESIZE */
2017 # endif /* no NBPC */
2018 # endif /* no NBPG */
2019 # endif /* no EXEC_PAGESIZE */
2020 # else /* no HAVE_SYS_PARAM_H */
2021 # define getpagesize() 8192 /* punt totally */
2022 # endif /* no HAVE_SYS_PARAM_H */
2023 # endif /* no _SC_PAGESIZE */
2025 #endif /* no HAVE_GETPAGESIZE */
2028 extern "C" { void *malloc(unsigned); }
2036 char *data, *data2, *data3;
2040 pagesize = getpagesize();
2043 * First, make a file with some known garbage in it.
2045 data = (char*)malloc(pagesize);
2048 for (i = 0; i < pagesize; ++i)
2049 *(data + i) = rand();
2051 fd = creat("conftestmmap", 0600);
2054 if (write(fd, data, pagesize) != pagesize)
2059 * Next, try to mmap the file at a fixed address which
2060 * already has something else allocated at it. If we can,
2061 * also make sure that we see the same garbage.
2063 fd = open("conftestmmap", O_RDWR);
2066 data2 = (char*)malloc(2 * pagesize);
2069 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2070 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2071 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2073 for (i = 0; i < pagesize; ++i)
2074 if (*(data + i) != *(data2 + i))
2078 * Finally, make sure that changes to the mapped area
2079 * do not percolate back to the file as seen by read().
2080 * (This is a bug on some variants of i386 svr4.0.)
2082 for (i = 0; i < pagesize; ++i)
2083 *(data2 + i) = *(data2 + i) + 1;
2084 data3 = (char*)malloc(pagesize);
2087 if (read(fd, data3, pagesize) != pagesize)
2089 for (i = 0; i < pagesize; ++i)
2090 if (*(data + i) != *(data3 + i))
2093 unlink("conftestmmap");
2098 if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2100 ac_cv_func_mmap_fixed_mapped=yes
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2105 ac_cv_func_mmap_fixed_mapped=no
2112 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2113 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2114 cat >> confdefs.h <<\EOF
2120 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2121 echo "configure:2122: checking return type of signal handlers" >&5
2122 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2134 extern "C" void (*signal (int, void (*)(int)))(int);
2136 void (*signal ()) ();
2143 if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2145 ac_cv_type_signal=void
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2150 ac_cv_type_signal=int
2155 echo "$ac_t""$ac_cv_type_signal" 1>&6
2156 cat >> confdefs.h <<EOF
2157 #define RETSIGTYPE $ac_cv_type_signal
2161 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2162 echo "configure:2163: checking for dlopen in -ldl" >&5
2163 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 ac_save_LIBS="$LIBS"
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 /* Override any gcc2 internal prototype to avoid an error. */
2173 /* We use char because int might match the return type of a gcc2
2174 builtin and then its argument prototype would still apply. */
2181 if { (eval echo configure:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2183 eval "ac_cv_lib_$ac_lib_var=yes"
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2188 eval "ac_cv_lib_$ac_lib_var=no"
2191 LIBS="$ac_save_LIBS"
2194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2195 echo "$ac_t""yes" 1>&6
2196 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2198 cat >> confdefs.h <<EOF
2199 #define $ac_tr_lib 1
2205 echo "$ac_t""no" 1>&6
2208 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2209 echo "configure:2210: checking for optarg in -lgnugetopt" >&5
2210 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 ac_save_LIBS="$LIBS"
2215 LIBS="-lgnugetopt $LIBS"
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2219 /* Override any gcc2 internal prototype to avoid an error. */
2220 /* We use char because int might match the return type of a gcc2
2221 builtin and then its argument prototype would still apply. */
2228 if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2230 eval "ac_cv_lib_$ac_lib_var=yes"
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2235 eval "ac_cv_lib_$ac_lib_var=no"
2238 LIBS="$ac_save_LIBS"
2241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2245 cat >> confdefs.h <<EOF
2246 #define $ac_tr_lib 1
2249 LIBS="-lgnugetopt $LIBS"
2252 echo "$ac_t""no" 1>&6
2255 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2256 echo "configure:2257: checking for _ in -lbe" >&5
2257 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 ac_save_LIBS="$LIBS"
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* Override any gcc2 internal prototype to avoid an error. */
2267 /* We use char because int might match the return type of a gcc2
2268 builtin and then its argument prototype would still apply. */
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2277 eval "ac_cv_lib_$ac_lib_var=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 eval "ac_cv_lib_$ac_lib_var=no"
2285 LIBS="$ac_save_LIBS"
2288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2292 cat >> confdefs.h <<EOF
2293 #define $ac_tr_lib 1
2299 echo "$ac_t""no" 1>&6
2302 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2303 echo "configure:2304: checking for _ in -lgame" >&5
2304 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 ac_save_LIBS="$LIBS"
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* Override any gcc2 internal prototype to avoid an error. */
2314 /* We use char because int might match the return type of a gcc2
2315 builtin and then its argument prototype would still apply. */
2322 if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2324 eval "ac_cv_lib_$ac_lib_var=yes"
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2329 eval "ac_cv_lib_$ac_lib_var=no"
2332 LIBS="$ac_save_LIBS"
2335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2336 echo "$ac_t""yes" 1>&6
2337 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2338 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2339 cat >> confdefs.h <<EOF
2340 #define $ac_tr_lib 1
2346 echo "$ac_t""no" 1>&6
2349 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2350 echo "configure:2351: checking for _ in -lroot" >&5
2351 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 ac_save_LIBS="$LIBS"
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 /* Override any gcc2 internal prototype to avoid an error. */
2361 /* We use char because int might match the return type of a gcc2
2362 builtin and then its argument prototype would still apply. */
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2371 eval "ac_cv_lib_$ac_lib_var=yes"
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2376 eval "ac_cv_lib_$ac_lib_var=no"
2379 LIBS="$ac_save_LIBS"
2382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2385 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2386 cat >> confdefs.h <<EOF
2387 #define $ac_tr_lib 1
2393 echo "$ac_t""no" 1>&6
2396 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2397 echo "configure:2398: checking for powl in -lm" >&5
2398 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 ac_save_LIBS="$LIBS"
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2418 eval "ac_cv_lib_$ac_lib_var=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 eval "ac_cv_lib_$ac_lib_var=no"
2426 LIBS="$ac_save_LIBS"
2429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2433 cat >> confdefs.h <<EOF
2434 #define $ac_tr_lib 1
2440 echo "$ac_t""no" 1>&6
2443 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2444 echo "configure:2445: checking for pthread_create in -lpthread" >&5
2445 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 ac_save_LIBS="$LIBS"
2450 LIBS="-lpthread $LIBS"
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2454 /* Override any gcc2 internal prototype to avoid an error. */
2455 /* We use char because int might match the return type of a gcc2
2456 builtin and then its argument prototype would still apply. */
2457 char pthread_create();
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 eval "ac_cv_lib_$ac_lib_var=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 eval "ac_cv_lib_$ac_lib_var=no"
2473 LIBS="$ac_save_LIBS"
2476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2480 cat >> confdefs.h <<EOF
2481 #define $ac_tr_lib 1
2484 LIBS="-lpthread $LIBS"
2487 echo "$ac_t""no" 1>&6
2490 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2491 echo "configure:2492: checking for thread_create in -lthreads" >&5
2492 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 ac_save_LIBS="$LIBS"
2497 LIBS="-lthreads $LIBS"
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 /* Override any gcc2 internal prototype to avoid an error. */
2502 /* We use char because int might match the return type of a gcc2
2503 builtin and then its argument prototype would still apply. */
2504 char thread_create();
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2512 eval "ac_cv_lib_$ac_lib_var=yes"
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2517 eval "ac_cv_lib_$ac_lib_var=no"
2520 LIBS="$ac_save_LIBS"
2523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2527 cat >> confdefs.h <<EOF
2528 #define $ac_tr_lib 1
2531 LIBS="-lthreads $LIBS"
2534 echo "$ac_t""no" 1>&6
2538 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2539 echo "configure:2540: checking for getopt_long" >&5
2540 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 /* System header to define __stub macros and hopefully few prototypes,
2547 which can conflict with char getopt_long(); below. */
2549 /* Override any gcc2 internal prototype to avoid an error. */
2550 /* We use char because int might match the return type of a gcc2
2551 builtin and then its argument prototype would still apply. */
2556 /* The GNU C library defines this for functions which it implements
2557 to always fail with ENOSYS. Some functions are actually named
2558 something starting with __ and the normal name is an alias. */
2559 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2569 eval "ac_cv_func_getopt_long=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_func_getopt_long=no"
2579 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2580 echo "$ac_t""yes" 1>&6
2583 echo "$ac_t""no" 1>&6
2584 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2589 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2590 for ac_hdr in stddef.h
2592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_hdr" >&5
2595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2608 eval "ac_cv_header_$ac_safe=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_header_$ac_safe=no"
2618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2621 cat >> confdefs.h <<EOF
2622 #define $ac_tr_hdr 1
2626 echo "$ac_t""no" 1>&6
2630 for ac_hdr in getopt.h
2632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2634 echo "configure:2635: checking for $ac_hdr" >&5
2635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2644 { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2646 if test -z "$ac_err"; then
2648 eval "ac_cv_header_$ac_safe=yes"
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2654 eval "ac_cv_header_$ac_safe=no"
2658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2659 echo "$ac_t""yes" 1>&6
2660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2661 cat >> confdefs.h <<EOF
2662 #define $ac_tr_hdr 1
2666 echo "$ac_t""no" 1>&6
2670 for ac_hdr in sys/sockio.h
2672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_hdr" >&5
2675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2684 { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2686 if test -z "$ac_err"; then
2688 eval "ac_cv_header_$ac_safe=yes"
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2694 eval "ac_cv_header_$ac_safe=no"
2698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_hdr 1
2706 echo "$ac_t""no" 1>&6
2710 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_hdr" >&5
2715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2728 eval "ac_cv_header_$ac_safe=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2734 eval "ac_cv_header_$ac_safe=no"
2738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2741 cat >> confdefs.h <<EOF
2742 #define $ac_tr_hdr 1
2746 echo "$ac_t""no" 1>&6
2750 for ac_hdr in sys/soundcard.h machine/soundcard.h
2752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2754 echo "configure:2755: checking for $ac_hdr" >&5
2755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2764 { (eval echo configure:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2766 if test -z "$ac_err"; then
2768 eval "ac_cv_header_$ac_safe=yes"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2774 eval "ac_cv_header_$ac_safe=no"
2778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2779 echo "$ac_t""yes" 1>&6
2780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2781 cat >> confdefs.h <<EOF
2782 #define $ac_tr_hdr 1
2786 echo "$ac_t""no" 1>&6
2790 for ac_hdr in dlfcn.h image.h
2792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_hdr" >&5
2795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2804 { (eval echo configure:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2806 if test -z "$ac_err"; then
2808 eval "ac_cv_header_$ac_safe=yes"
2811 echo "configure: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2814 eval "ac_cv_header_$ac_safe=no"
2818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2821 cat >> confdefs.h <<EOF
2822 #define $ac_tr_hdr 1
2826 echo "$ac_t""no" 1>&6
2830 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_hdr" >&5
2835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2844 { (eval echo configure:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2846 if test -z "$ac_err"; then
2848 eval "ac_cv_header_$ac_safe=yes"
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2854 eval "ac_cv_header_$ac_safe=no"
2858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2859 echo "$ac_t""yes" 1>&6
2860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2861 cat >> confdefs.h <<EOF
2862 #define $ac_tr_hdr 1
2866 echo "$ac_t""no" 1>&6
2870 for ac_hdr in machine/param.h
2872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_hdr" >&5
2875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2884 { (eval echo configure:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2886 if test -z "$ac_err"; then
2888 eval "ac_cv_header_$ac_safe=yes"
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2894 eval "ac_cv_header_$ac_safe=no"
2898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2901 cat >> confdefs.h <<EOF
2902 #define $ac_tr_hdr 1
2906 echo "$ac_t""no" 1>&6
2911 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2915 echo "configure:2916: checking for $ac_hdr" >&5
2916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2925 { (eval echo configure:2926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2927 if test -z "$ac_err"; then
2929 eval "ac_cv_header_$ac_safe=yes"
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 eval "ac_cv_header_$ac_safe=no"
2939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2940 echo "$ac_t""yes" 1>&6
2941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2942 cat >> confdefs.h <<EOF
2943 #define $ac_tr_hdr 1
2947 echo "$ac_t""no" 1>&6
2954 CFLAGS="${CFLAGS} -Wall -Werror"
2955 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2956 echo "configure:2957: checking for ntohl in sys/param.h" >&5
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 #include <sys/param.h>
2961 void foo() { int meuh; ntohl(meuh); }
2966 if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2968 cat >> confdefs.h <<\EOF
2969 #define NTOHL_IN_SYS_PARAM_H 1
2972 echo "$ac_t""yes" 1>&6
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2977 echo "$ac_t""no" 1>&6
2981 CFLAGS="${CFLAGS} -rdynamic"
2982 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2983 echo "configure:2984: checking if \$CC accepts -rdynamic" >&5
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2992 if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2994 DYNAMIC_FLAG="-rdynamic"
2995 echo "$ac_t""yes" 1>&6
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 echo "$ac_t""no" 1>&6
3006 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3007 echo "configure:3008: checking for boolean_t in sys/types.h" >&5
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 #include <sys/types.h>
3012 void quux() { boolean_t foo; }
3017 if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 cat >> confdefs.h <<\EOF
3020 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3023 echo "$ac_t""yes" 1>&6
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3028 echo "$ac_t""no" 1>&6
3032 echo $ac_n "checking for working const""... $ac_c" 1>&6
3033 echo "configure:3034: checking for working const" >&5
3034 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3043 /* Ultrix mips cc rejects this. */
3044 typedef int charset[2]; const charset x = {0,0};
3045 /* SunOS 4.1.1 cc rejects this. */
3046 char const *const *ccp;
3048 /* NEC SVR4.0.2 mips cc rejects this. */
3049 struct point {int x, y;};
3050 static struct point const zero = {0,0};
3051 /* AIX XL C 1.02.0.0 rejects this.
3052 It does not let you subtract one const X* pointer from another in an arm
3053 of an if-expression whose if-part is not a constant expression */
3054 const char *g = "string";
3055 ccp = &g + (g ? g-g : 0);
3056 /* HPUX 7.0 cc rejects these. */
3059 ccp = (char const *const *) p;
3060 { /* SCO 3.2v4 cc rejects this. */
3062 char const *s = 0 ? (char *) 0 : (char const *) 0;
3066 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3068 const int *foo = &x[0];
3071 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3072 typedef const int *iptr;
3076 { /* AIX XL C 1.02.0.0 rejects this saying
3077 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3078 struct s { int j; const int *ap[3]; };
3079 struct s *b; b->j = 5;
3081 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3087 if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3099 echo "$ac_t""$ac_cv_c_const" 1>&6
3100 if test $ac_cv_c_const = no; then
3101 cat >> confdefs.h <<\EOF
3107 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3108 echo "configure:3109: checking for ANSI C header files" >&5
3109 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3121 { (eval echo configure:3122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3123 if test -z "$ac_err"; then
3125 ac_cv_header_stdc=yes
3128 echo "configure: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3131 ac_cv_header_stdc=no
3135 if test $ac_cv_header_stdc = yes; then
3136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3137 cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3143 egrep "memchr" >/dev/null 2>&1; then
3147 ac_cv_header_stdc=no
3153 if test $ac_cv_header_stdc = yes; then
3154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 egrep "free" >/dev/null 2>&1; then
3165 ac_cv_header_stdc=no
3171 if test $ac_cv_header_stdc = yes; then
3172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3173 if test "$cross_compiling" = yes; then
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3180 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3181 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3183 int main () { int i; for (i = 0; i < 256; i++)
3184 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3195 ac_cv_header_stdc=no
3203 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3204 if test $ac_cv_header_stdc = yes; then
3205 cat >> confdefs.h <<\EOF
3206 #define STDC_HEADERS 1
3211 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3212 echo "configure:3213: checking for size_t" >&5
3213 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 #include <sys/types.h>
3225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3228 ac_cv_type_size_t=yes
3231 ac_cv_type_size_t=no
3236 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3237 if test $ac_cv_type_size_t = no; then
3238 cat >> confdefs.h <<\EOF
3239 #define size_t unsigned
3244 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3245 echo "configure:3246: checking whether time.h and sys/time.h may both be included" >&5
3246 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 #include <sys/types.h>
3253 #include <sys/time.h>
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3261 ac_cv_header_time=yes
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 ac_cv_header_time=no
3271 echo "$ac_t""$ac_cv_header_time" 1>&6
3272 if test $ac_cv_header_time = yes; then
3273 cat >> confdefs.h <<\EOF
3274 #define TIME_WITH_SYS_TIME 1
3280 for ac_hdr in sys/ioctl.h
3282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_hdr" >&5
3285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3298 eval "ac_cv_header_$ac_safe=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 eval "ac_cv_header_$ac_safe=no"
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3311 cat >> confdefs.h <<EOF
3312 #define $ac_tr_hdr 1
3314 for ac_hdr in linux/cdrom.h
3316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3318 echo "configure:3319: checking for $ac_hdr" >&5
3319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3328 { (eval echo configure:3329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3330 if test -z "$ac_err"; then
3332 eval "ac_cv_header_$ac_safe=yes"
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3338 eval "ac_cv_header_$ac_safe=no"
3342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3345 cat >> confdefs.h <<EOF
3346 #define $ac_tr_hdr 1
3350 echo "$ac_t""no" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 #include <linux/cdrom.h>
3359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3360 egrep "dvd" >/dev/null 2>&1; then
3362 cat >> confdefs.h <<\EOF
3371 echo "$ac_t""no" 1>&6
3376 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3377 if test x$host_os = xbeos; then
3378 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3380 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3383 if test x$DVD = x1; then
3384 PLUGINS=${PLUGINS}"dvd "
3388 # Check whether --enable-ppro or --disable-ppro was given.
3389 if test "${enable_ppro+set}" = set; then
3390 enableval="$enable_ppro"
3391 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3393 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3396 # Check whether --enable-mmx or --disable-mmx was given.
3397 if test "${enable_mmx+set}" = set; then
3398 enableval="$enable_mmx"
3399 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3401 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3404 # Check whether --enable-debug or --disable-debug was given.
3405 if test "${enable_debug+set}" = set; then
3406 enableval="$enable_debug"
3407 if test x$enableval = xyes; then DEBUG=1; fi
3410 # Check whether --enable-stats or --disable-stats was given.
3411 if test "${enable_stats+set}" = set; then
3412 enableval="$enable_stats"
3413 if test x$enableval = xyes; then STATS=1; fi
3416 # Check whether --enable-optimizations or --disable-optimizations was given.
3417 if test "${enable_optimizations+set}" = set; then
3418 enableval="$enable_optimizations"
3419 if test x$enableval = xno; then OPTIMS=0; fi
3428 if test x$host_os = xbeos; then
3429 PLUGINS=${PLUGINS}"dummy null beos "
3433 # Check whether --enable-dummy or --disable-dummy was given.
3434 if test "${enable_dummy+set}" = set; then
3435 enableval="$enable_dummy"
3439 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3440 # Check whether --enable-null or --disable-null was given.
3441 if test "${enable_null+set}" = set; then
3442 enableval="$enable_null"
3446 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3447 # Check whether --enable-dsp or --disable-dsp was given.
3448 if test "${enable_dsp+set}" = set; then
3449 enableval="$enable_dsp"
3453 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3454 # Check whether --enable-esd or --disable-esd was given.
3455 if test "${enable_esd+set}" = set; then
3456 enableval="$enable_esd"
3457 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3460 # Check whether --enable-fb or --disable-fb was given.
3461 if test "${enable_fb+set}" = set; then
3462 enableval="$enable_fb"
3463 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3466 # Check whether --with-ggi or --without-ggi was given.
3467 if test "${with_ggi+set}" = set; then
3469 PLUGINS=${PLUGINS}"ggi ";
3470 if test "x$withval" != "xyes";
3472 LIB_GGI="-l"$withval
3478 # Check whether --with-sdl or --without-sdl was given.
3479 if test "${with_sdl+set}" = set; then
3481 PLUGINS=${PLUGINS}"sdl ";
3482 if test "x$withval" != "xyes";
3484 LIB_SDL="L/usr/X11R6/lib -l"$withval
3486 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3490 if test "x$withval" = "x";
3492 PLUGINS=${PLUGINS}"sdl "
3493 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3495 # Check whether --with-glide or --without-glide was given.
3496 if test "${with_glide+set}" = set; then
3497 withval="$with_glide"
3498 PLUGINS=${PLUGINS}"glide ";
3499 if test "x$withval" != "xyes";
3501 LIB_GLIDE="-l"$withval
3503 LIB_GLIDE="-lglide2x"
3507 # Check whether --enable-ncurses or --disable-ncurses was given.
3508 if test "${enable_ncurses+set}" = set; then
3509 enableval="$enable_ncurses"
3510 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3513 # Check whether --enable-kde or --disable-kde was given.
3514 if test "${enable_kde+set}" = set; then
3515 enableval="$enable_kde"
3516 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASE=${ALIASES}"kvlc"; fi
3519 # Check whether --enable-gnome or --disable-gnome was given.
3520 if test "${enable_gnome+set}" = set; then
3521 enableval="$enable_gnome"
3525 if test x$enable_gnome != xno; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3526 # Check whether --enable-x11 or --disable-x11 was given.
3527 if test "${enable_x11+set}" = set; then
3528 enableval="$enable_x11"
3532 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3534 # Check whether --enable-alsa or --disable-alsa was given.
3535 if test "${enable_alsa+set}" = set; then
3536 enableval="$enable_alsa"
3537 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3538 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3539 echo "configure:3540: checking for sys/asoundlib.h" >&5
3540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <sys/asoundlib.h>
3548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3549 { (eval echo configure:3550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3551 if test -z "$ac_err"; then
3553 eval "ac_cv_header_$ac_safe=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 eval "ac_cv_header_$ac_safe=no"
3563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3566 echo "configure:3567: checking for main in -lasound" >&5
3567 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 ac_save_LIBS="$LIBS"
3572 LIBS="-lasound $LIBS"
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3583 eval "ac_cv_lib_$ac_lib_var=yes"
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3588 eval "ac_cv_lib_$ac_lib_var=no"
3591 LIBS="$ac_save_LIBS"
3594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3595 echo "$ac_t""yes" 1>&6
3598 echo "$ac_t""no" 1>&6
3603 echo "$ac_t""no" 1>&6
3606 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3624 cat > confcache <<\EOF
3625 # This file is a shell script that caches the results of configure
3626 # tests run on this system so they can be shared between configure
3627 # scripts and configure runs. It is not useful on other systems.
3628 # If it contains results you don't want to keep, you may remove or edit it.
3630 # By default, configure uses ./config.cache as the cache file,
3631 # creating it if it does not exist already. You can give configure
3632 # the --cache-file=FILE option to use a different cache file; that is
3633 # what configure does when it calls configure scripts in
3634 # subdirectories, so they share the cache.
3635 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3636 # config.status only pays attention to the cache file if you give it the
3637 # --recheck option to rerun configure.
3640 # The following way of writing the cache mishandles newlines in values,
3641 # but we know of no workaround that is simple, portable, and efficient.
3642 # So, don't put newlines in cache variables' values.
3643 # Ultrix sh set writes to stderr and can't be redirected directly,
3644 # and sets the high bit in the cache file unless we assign to the vars.
3646 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3648 # `set' does not quote correctly, so add quotes (double-quote substitution
3649 # turns \\\\ into \\, and sed turns \\ into \).
3651 -e "s/'/'\\\\''/g" \
3652 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3655 # `set' quotes correctly as required by POSIX, so do not add quotes.
3656 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3659 if cmp -s $cache_file confcache; then
3662 if test -w $cache_file; then
3663 echo "updating cache $cache_file"
3664 cat confcache > $cache_file
3666 echo "not updating unwritable cache $cache_file"
3671 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3674 # Let make expand exec_prefix.
3675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3677 # Any assignment to VPATH causes Sun make to only execute
3678 # the first set of double-colon rules, so remove it if not needed.
3679 # If there is a colon in the path, we need to keep it.
3680 if test "x$srcdir" = x.; then
3681 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3684 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3686 DEFS=-DHAVE_CONFIG_H
3688 # Without the "./", some shells look in PATH for config.status.
3689 : ${CONFIG_STATUS=./config.status}
3691 echo creating $CONFIG_STATUS
3692 rm -f $CONFIG_STATUS
3693 cat > $CONFIG_STATUS <<EOF
3695 # Generated automatically by configure.
3696 # Run this file to recreate the current configuration.
3697 # This directory was configured as follows,
3698 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3700 # $0 $ac_configure_args
3702 # Compiler output produced by configure, useful for debugging
3703 # configure, is in ./config.log if it exists.
3705 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3708 case "\$ac_option" in
3709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3710 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3711 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3712 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3713 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3715 -help | --help | --hel | --he | --h)
3716 echo "\$ac_cs_usage"; exit 0 ;;
3717 *) echo "\$ac_cs_usage"; exit 1 ;;
3721 ac_given_srcdir=$srcdir
3722 ac_given_INSTALL="$INSTALL"
3724 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3726 cat >> $CONFIG_STATUS <<EOF
3728 # Protect against being on the right side of a sed subst in config.status.
3729 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3730 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3734 s%@CFLAGS@%$CFLAGS%g
3735 s%@CPPFLAGS@%$CPPFLAGS%g
3736 s%@CXXFLAGS@%$CXXFLAGS%g
3737 s%@FFLAGS@%$FFLAGS%g
3739 s%@LDFLAGS@%$LDFLAGS%g
3741 s%@exec_prefix@%$exec_prefix%g
3742 s%@prefix@%$prefix%g
3743 s%@program_transform_name@%$program_transform_name%g
3744 s%@bindir@%$bindir%g
3745 s%@sbindir@%$sbindir%g
3746 s%@libexecdir@%$libexecdir%g
3747 s%@datadir@%$datadir%g
3748 s%@sysconfdir@%$sysconfdir%g
3749 s%@sharedstatedir@%$sharedstatedir%g
3750 s%@localstatedir@%$localstatedir%g
3751 s%@libdir@%$libdir%g
3752 s%@includedir@%$includedir%g
3753 s%@oldincludedir@%$oldincludedir%g
3754 s%@infodir@%$infodir%g
3755 s%@mandir@%$mandir%g
3757 s%@host_alias@%$host_alias%g
3758 s%@host_cpu@%$host_cpu%g
3759 s%@host_vendor@%$host_vendor%g
3760 s%@host_os@%$host_os%g
3761 s%@VLC_VERSION@%$VLC_VERSION%g
3762 s%@VLC_CODENAME@%$VLC_CODENAME%g
3763 s%@SET_MAKE@%$SET_MAKE%g
3766 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3767 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3768 s%@INSTALL_DATA@%$INSTALL_DATA%g
3769 s%@LIBOBJS@%$LIBOBJS%g
3772 s%@PLUGINS@%$PLUGINS%g
3773 s%@ALIASES@%$ALIASES%g
3776 s%@OPTIMS@%$OPTIMS%g
3777 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3778 s%@LIB_SDL@%$LIB_SDL%g
3779 s%@LIB_GLIDE@%$LIB_GLIDE%g
3780 s%@LIB_GGI@%$LIB_GGI%g
3785 cat >> $CONFIG_STATUS <<\EOF
3787 # Split the substitutions into bite-sized pieces for seds with
3788 # small command number limits, like on Digital OSF/1 and HP-UX.
3789 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3790 ac_file=1 # Number of current file.
3791 ac_beg=1 # First line for current file.
3792 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3795 while $ac_more_lines; do
3796 if test $ac_beg -gt 1; then
3797 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3799 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3801 if test ! -s conftest.s$ac_file; then
3803 rm -f conftest.s$ac_file
3805 if test -z "$ac_sed_cmds"; then
3806 ac_sed_cmds="sed -f conftest.s$ac_file"
3808 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3810 ac_file=`expr $ac_file + 1`
3812 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3815 if test -z "$ac_sed_cmds"; then
3820 cat >> $CONFIG_STATUS <<EOF
3822 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3824 cat >> $CONFIG_STATUS <<\EOF
3825 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3828 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3829 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3830 *) ac_file_in="${ac_file}.in" ;;
3833 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3835 # Remove last slash and all that follows it. Not all systems have dirname.
3836 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3837 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3838 # The file is in a subdirectory.
3839 test ! -d "$ac_dir" && mkdir "$ac_dir"
3840 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3841 # A "../" for each directory in $ac_dir_suffix.
3842 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3844 ac_dir_suffix= ac_dots=
3847 case "$ac_given_srcdir" in
3849 if test -z "$ac_dots"; then top_srcdir=.
3850 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3851 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3853 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3854 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3857 case "$ac_given_INSTALL" in
3858 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3859 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3862 echo creating "$ac_file"
3864 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3866 *Makefile*) ac_comsub="1i\\
3867 # $configure_input" ;;
3871 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3873 s%@configure_input@%$configure_input%g
3874 s%@srcdir@%$srcdir%g
3875 s%@top_srcdir@%$top_srcdir%g
3876 s%@INSTALL@%$INSTALL%g
3877 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3881 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3882 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3884 # ac_d sets the value in "#define NAME VALUE" lines.
3885 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3886 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3889 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3890 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3891 ac_uB='\([ ]\)%\1#\2define\3'
3894 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3895 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3896 ac_eB='$%\1#\2define\3'
3900 if test "${CONFIG_HEADERS+set}" != set; then
3902 cat >> $CONFIG_STATUS <<EOF
3903 CONFIG_HEADERS="include/defs.h"
3905 cat >> $CONFIG_STATUS <<\EOF
3907 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3910 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3911 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3912 *) ac_file_in="${ac_file}.in" ;;
3915 echo creating $ac_file
3917 rm -f conftest.frag conftest.in conftest.out
3918 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3919 cat $ac_file_inputs > conftest.in
3923 # Transform confdefs.h into a sed script conftest.vals that substitutes
3924 # the proper values into config.h.in to produce config.h. And first:
3925 # Protect against being on the right side of a sed subst in config.status.
3926 # Protect against being in an unquoted here document in config.status.
3928 cat > conftest.hdr <<\EOF
3931 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3935 sed -n -f conftest.hdr confdefs.h > conftest.vals
3938 # This sed command replaces #undef with comments. This is necessary, for
3939 # example, in the case of _POSIX_SOURCE, which is predefined and required
3940 # on some systems where configure will not decide to define it.
3941 cat >> conftest.vals <<\EOF
3942 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3945 # Break up conftest.vals because some shells have a limit on
3946 # the size of here documents, and old seds have small limits too.
3951 ac_lines=`grep -c . conftest.vals`
3952 # grep -c gives empty output for an empty file on some AIX systems.
3953 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3954 # Write a limited-size here document to conftest.frag.
3955 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3956 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3958 sed -f conftest.frag conftest.in > conftest.out
3960 mv conftest.out conftest.in
3962 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3964 mv conftest.tail conftest.vals
3968 cat >> $CONFIG_STATUS <<\EOF
3969 rm -f conftest.frag conftest.h
3970 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3971 cat conftest.in >> conftest.h
3973 if cmp -s $ac_file conftest.h 2>/dev/null; then
3974 echo "$ac_file is unchanged"
3977 # Remove last slash and all that follows it. Not all systems have dirname.
3978 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3980 # The file is in a subdirectory.
3981 test ! -d "$ac_dir" && mkdir "$ac_dir"
3984 mv conftest.h $ac_file
3989 cat >> $CONFIG_STATUS <<EOF
3992 cat >> $CONFIG_STATUS <<\EOF
3996 chmod +x $CONFIG_STATUS
3997 rm -fr confdefs* $ac_clean_files
3998 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4004 vlc version : ${VLC_VERSION}
4006 architecture : ${ARCH}
4007 debug mode : ${DEBUG}
4008 statistics : ${STATS}
4009 optimizations : ${OPTIMS}
4010 plugins : ${PLUGINS}
4011 vlc aliases : ${ALIASES}