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 --enable-gnome Gnome interface support (default disabled)"
47 --disable-gtk Gtk+ support (default enabled)"
49 --disable-x11 X11 support (default enabled)"
51 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 datadir="$ac_optarg" ;;
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host | --host | --hos | --ho)
229 -host=* | --host=* | --hos=* | --ho=*)
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
350 -site=* | --site=* | --sit=*)
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=src/interface/main.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
565 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
566 if test -f $ac_dir/install-sh; then
568 ac_install_sh="$ac_aux_dir/install-sh -c"
570 elif test -f $ac_dir/install.sh; then
572 ac_install_sh="$ac_aux_dir/install.sh -c"
576 if test -z "$ac_aux_dir"; then
577 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
579 ac_config_guess=$ac_aux_dir/config.guess
580 ac_config_sub=$ac_aux_dir/config.sub
581 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
593 case "$host_alias" in
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 *) host_alias=$nonopt ;;
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
616 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
617 echo "configure:618: checking whether ${MAKE-make} sets \${MAKE}" >&5
618 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
619 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 cat > conftestmake <<\EOF
624 @echo 'ac_maketemp="${MAKE}"'
626 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
627 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
628 if test -n "$ac_maketemp"; then
629 eval ac_cv_prog_make_${ac_make}_set=yes
631 eval ac_cv_prog_make_${ac_make}_set=no
635 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
636 echo "$ac_t""yes" 1>&6
639 echo "$ac_t""no" 1>&6
640 SET_MAKE="MAKE=${MAKE-make}"
643 if test -z "$CC"; then
644 # Extract the first word of "gcc", so it can be a program name with args.
645 set dummy gcc; ac_word=$2
646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
647 echo "configure:648: checking for $ac_word" >&5
648 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
649 echo $ac_n "(cached) $ac_c" 1>&6
651 if test -n "$CC"; then
652 ac_cv_prog_CC="$CC" # Let the user override the test.
654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
656 for ac_dir in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir=.
658 if test -f $ac_dir/$ac_word; then
667 if test -n "$CC"; then
668 echo "$ac_t""$CC" 1>&6
670 echo "$ac_t""no" 1>&6
673 if test -z "$CC"; then
674 # Extract the first word of "cc", so it can be a program name with args.
675 set dummy cc; ac_word=$2
676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677 echo "configure:678: checking for $ac_word" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
681 if test -n "$CC"; then
682 ac_cv_prog_CC="$CC" # Let the user override the test.
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
687 for ac_dir in $ac_dummy; do
688 test -z "$ac_dir" && ac_dir=.
689 if test -f $ac_dir/$ac_word; then
690 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
699 if test $ac_prog_rejected = yes; then
700 # We found a bogon in the path, so make sure we never use it.
701 set dummy $ac_cv_prog_CC
703 if test $# -gt 0; then
704 # We chose a different compiler from the bogus one.
705 # However, it has the same basename, so the bogon will be chosen
706 # first if we set CC to just the basename; use the full file name.
708 set dummy "$ac_dir/$ac_word" "$@"
716 if test -n "$CC"; then
717 echo "$ac_t""$CC" 1>&6
719 echo "$ac_t""no" 1>&6
722 if test -z "$CC"; then
725 # Extract the first word of "cl", so it can be a program name with args.
726 set dummy cl; ac_word=$2
727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728 echo "configure:729: checking for $ac_word" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 if test -n "$CC"; then
733 ac_cv_prog_CC="$CC" # Let the user override the test.
735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
737 for ac_dir in $ac_dummy; do
738 test -z "$ac_dir" && ac_dir=.
739 if test -f $ac_dir/$ac_word; then
748 if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
751 echo "$ac_t""no" 1>&6
756 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
759 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
760 echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
764 ac_cpp='$CPP $CPPFLAGS'
765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
767 cross_compiling=$ac_cv_prog_cc_cross
769 cat > conftest.$ac_ext << EOF
771 #line 772 "configure"
772 #include "confdefs.h"
776 if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
777 ac_cv_prog_cc_works=yes
778 # If we can't run a trivial program, we are probably using a cross compiler.
779 if (./conftest; exit) 2>/dev/null; then
780 ac_cv_prog_cc_cross=no
782 ac_cv_prog_cc_cross=yes
785 echo "configure: failed program was:" >&5
786 cat conftest.$ac_ext >&5
787 ac_cv_prog_cc_works=no
791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
792 ac_cpp='$CPP $CPPFLAGS'
793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
795 cross_compiling=$ac_cv_prog_cc_cross
797 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
798 if test $ac_cv_prog_cc_works = no; then
799 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
801 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
802 echo "configure:803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
803 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
804 cross_compiling=$ac_cv_prog_cc_cross
806 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
807 echo "configure:808: checking whether we are using GNU C" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 cat > conftest.c <<EOF
816 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
823 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
825 if test $ac_cv_prog_gcc = yes; then
831 ac_test_CFLAGS="${CFLAGS+set}"
832 ac_save_CFLAGS="$CFLAGS"
834 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
835 echo "configure:836: checking whether ${CC-cc} accepts -g" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 echo 'void f(){}' > conftest.c
840 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
849 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
850 if test "$ac_test_CFLAGS" = set; then
851 CFLAGS="$ac_save_CFLAGS"
852 elif test $ac_cv_prog_cc_g = yes; then
853 if test "$GCC" = yes; then
859 if test "$GCC" = yes; then
867 if test -z "$CPP"; then
868 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
869 echo "configure:870: checking how to run the C preprocessor" >&5
870 # On Suns, sometimes $CPP names a directory.
871 if test -n "$CPP" && test -d "$CPP"; then
874 if test -z "$CPP"; then
875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
899 CPP="${CC-cc} -E -traditional-cpp"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
916 CPP="${CC-cc} -nologo -E"
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
940 ac_cv_prog_CPP="$CPP"
942 CPP="$ac_cv_prog_CPP"
944 ac_cv_prog_CPP="$CPP"
946 echo "$ac_t""$CPP" 1>&6
950 # Find a good install program. We prefer a C program (faster),
951 # so one script is as good as another. But avoid the broken or
952 # incompatible versions:
953 # SysV /etc/install, /usr/sbin/install
954 # SunOS /usr/etc/install
957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
960 # ./install, which can be erroneously created by make from ./install.sh.
961 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
962 echo "configure:963: checking for a BSD compatible install" >&5
963 if test -z "$INSTALL"; then
964 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
968 for ac_dir in $PATH; do
969 # Account for people who put trailing slashes in PATH elements.
971 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
973 # OSF1 and SCO ODT 3.0 have their own names for install.
974 # Don't use installbsd from OSF since it installs stuff as root
976 for ac_prog in ginstall scoinst install; do
977 if test -f $ac_dir/$ac_prog; then
978 if test $ac_prog = install &&
979 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
980 # AIX install. It has an incompatible calling convention.
983 ac_cv_path_install="$ac_dir/$ac_prog -c"
994 if test "${ac_cv_path_install+set}" = set; then
995 INSTALL="$ac_cv_path_install"
997 # As a last resort, use the slow shell script. We don't cache a
998 # path for INSTALL within a source directory, because that will
999 # break other packages using the cache if that directory is
1000 # removed, or if the path is relative.
1001 INSTALL="$ac_install_sh"
1004 echo "$ac_t""$INSTALL" 1>&6
1006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1007 # It thinks the first close brace ends the variable substitution.
1008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1015 echo $ac_n "checking for working const""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working const" >&5
1017 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 cat > conftest.$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1026 /* Ultrix mips cc rejects this. */
1027 typedef int charset[2]; const charset x;
1028 /* SunOS 4.1.1 cc rejects this. */
1029 char const *const *ccp;
1031 /* NEC SVR4.0.2 mips cc rejects this. */
1032 struct point {int x, y;};
1033 static struct point const zero = {0,0};
1034 /* AIX XL C 1.02.0.0 rejects this.
1035 It does not let you subtract one const X* pointer from another in an arm
1036 of an if-expression whose if-part is not a constant expression */
1037 const char *g = "string";
1038 ccp = &g + (g ? g-g : 0);
1039 /* HPUX 7.0 cc rejects these. */
1042 ccp = (char const *const *) p;
1043 { /* SCO 3.2v4 cc rejects this. */
1045 char const *s = 0 ? (char *) 0 : (char const *) 0;
1049 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1051 const int *foo = &x[0];
1054 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1055 typedef const int *iptr;
1059 { /* AIX XL C 1.02.0.0 rejects this saying
1060 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1061 struct s { int j; const int *ap[3]; };
1062 struct s *b; b->j = 5;
1064 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1070 if { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1074 echo "configure: failed program was:" >&5
1075 cat conftest.$ac_ext >&5
1082 echo "$ac_t""$ac_cv_c_const" 1>&6
1083 if test $ac_cv_c_const = no; then
1084 cat >> confdefs.h <<\EOF
1090 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether byte ordering is bigendian" >&5
1092 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 ac_cv_c_bigendian=unknown
1096 # See if sys/param.h defines the BYTE_ORDER macro.
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 #include <sys/types.h>
1101 #include <sys/param.h>
1104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1109 if { (eval echo configure:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1111 # It does; now see whether it defined to BIG_ENDIAN or not.
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1115 #include <sys/types.h>
1116 #include <sys/param.h>
1119 #if BYTE_ORDER != BIG_ENDIAN
1124 if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1126 ac_cv_c_bigendian=yes
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1131 ac_cv_c_bigendian=no
1135 echo "configure: failed program was:" >&5
1136 cat conftest.$ac_ext >&5
1139 if test $ac_cv_c_bigendian = unknown; then
1140 if test "$cross_compiling" = yes; then
1141 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1143 cat > conftest.$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1147 /* Are we little or big endian? From Harbison&Steele. */
1151 char c[sizeof (long)];
1154 exit (u.c[sizeof (long) - 1] == 1);
1157 if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1159 ac_cv_c_bigendian=no
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1164 ac_cv_c_bigendian=yes
1172 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1173 if test $ac_cv_c_bigendian = yes; then
1174 cat >> confdefs.h <<\EOF
1175 #define WORDS_BIGENDIAN 1
1181 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether compiler accepts bswap x86 instruction" >&5
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 unsigned int foo( unsigned int x )
1187 { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1192 if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1194 cat >> confdefs.h <<\EOF
1195 #define HAVE_X86_BSWAP 1
1197 echo "$ac_t""yes" 1>&6
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1202 echo "$ac_t""no" 1>&6
1206 for ac_func in gettimeofday select strerror strtod strtol
1208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_func" >&5
1210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 cat > conftest.$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1216 /* System header to define __stub macros and hopefully few prototypes,
1217 which can conflict with char $ac_func(); below. */
1219 /* Override any gcc2 internal prototype to avoid an error. */
1220 /* We use char because int might match the return type of a gcc2
1221 builtin and then its argument prototype would still apply. */
1226 /* The GNU C library defines this for functions which it implements
1227 to always fail with ENOSYS. Some functions are actually named
1228 something starting with __ and the normal name is an alias. */
1229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1237 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1239 eval "ac_cv_func_$ac_func=yes"
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 eval "ac_cv_func_$ac_func=no"
1249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1250 echo "$ac_t""yes" 1>&6
1251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1252 cat >> confdefs.h <<EOF
1253 #define $ac_tr_func 1
1257 echo "$ac_t""no" 1>&6
1261 for ac_func in setenv putenv
1263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1264 echo "configure:1265: checking for $ac_func" >&5
1265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 /* System header to define __stub macros and hopefully few prototypes,
1272 which can conflict with char $ac_func(); below. */
1274 /* Override any gcc2 internal prototype to avoid an error. */
1275 /* We use char because int might match the return type of a gcc2
1276 builtin and then its argument prototype would still apply. */
1281 /* The GNU C library defines this for functions which it implements
1282 to always fail with ENOSYS. Some functions are actually named
1283 something starting with __ and the normal name is an alias. */
1284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1292 if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1294 eval "ac_cv_func_$ac_func=yes"
1296 echo "configure: failed program was:" >&5
1297 cat conftest.$ac_ext >&5
1299 eval "ac_cv_func_$ac_func=no"
1304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1305 echo "$ac_t""yes" 1>&6
1306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1307 cat >> confdefs.h <<EOF
1308 #define $ac_tr_func 1
1312 echo "$ac_t""no" 1>&6
1316 echo $ac_n "checking for connect""... $ac_c" 1>&6
1317 echo "configure:1318: checking for connect" >&5
1318 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324 /* System header to define __stub macros and hopefully few prototypes,
1325 which can conflict with char connect(); below. */
1327 /* Override any gcc2 internal prototype to avoid an error. */
1328 /* We use char because int might match the return type of a gcc2
1329 builtin and then its argument prototype would still apply. */
1334 /* The GNU C library defines this for functions which it implements
1335 to always fail with ENOSYS. Some functions are actually named
1336 something starting with __ and the normal name is an alias. */
1337 #if defined (__stub_connect) || defined (__stub___connect)
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1347 eval "ac_cv_func_connect=yes"
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1352 eval "ac_cv_func_connect=no"
1357 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1358 echo "$ac_t""yes" 1>&6
1361 echo "$ac_t""no" 1>&6
1362 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1363 echo "configure:1364: checking for connect in -lsocket" >&5
1364 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 ac_save_LIBS="$LIBS"
1369 LIBS="-lsocket $LIBS"
1370 cat > conftest.$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1373 /* Override any gcc2 internal prototype to avoid an error. */
1374 /* We use char because int might match the return type of a gcc2
1375 builtin and then its argument prototype would still apply. */
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1384 eval "ac_cv_lib_$ac_lib_var=yes"
1386 echo "configure: failed program was:" >&5
1387 cat conftest.$ac_ext >&5
1389 eval "ac_cv_lib_$ac_lib_var=no"
1392 LIBS="$ac_save_LIBS"
1395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1396 echo "$ac_t""yes" 1>&6
1397 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1398 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1399 cat >> confdefs.h <<EOF
1400 #define $ac_tr_lib 1
1403 LIBS="-lsocket $LIBS"
1406 echo "$ac_t""no" 1>&6
1411 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1412 echo "configure:1413: checking for gethostbyname" >&5
1413 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 /* System header to define __stub macros and hopefully few prototypes,
1420 which can conflict with char gethostbyname(); below. */
1422 /* Override any gcc2 internal prototype to avoid an error. */
1423 /* We use char because int might match the return type of a gcc2
1424 builtin and then its argument prototype would still apply. */
1425 char gethostbyname();
1429 /* The GNU C library defines this for functions which it implements
1430 to always fail with ENOSYS. Some functions are actually named
1431 something starting with __ and the normal name is an alias. */
1432 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1440 if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1442 eval "ac_cv_func_gethostbyname=yes"
1444 echo "configure: failed program was:" >&5
1445 cat conftest.$ac_ext >&5
1447 eval "ac_cv_func_gethostbyname=no"
1452 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1453 echo "$ac_t""yes" 1>&6
1456 echo "$ac_t""no" 1>&6
1457 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1458 echo "configure:1459: checking for gethostbyname in -lnsl" >&5
1459 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 ac_save_LIBS="$LIBS"
1465 cat > conftest.$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1468 /* Override any gcc2 internal prototype to avoid an error. */
1469 /* We use char because int might match the return type of a gcc2
1470 builtin and then its argument prototype would still apply. */
1471 char gethostbyname();
1477 if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1479 eval "ac_cv_lib_$ac_lib_var=yes"
1481 echo "configure: failed program was:" >&5
1482 cat conftest.$ac_ext >&5
1484 eval "ac_cv_lib_$ac_lib_var=no"
1487 LIBS="$ac_save_LIBS"
1490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1491 echo "$ac_t""yes" 1>&6
1492 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1493 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1494 cat >> confdefs.h <<EOF
1495 #define $ac_tr_lib 1
1501 echo "$ac_t""no" 1>&6
1506 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1507 echo "configure:1508: checking for nanosleep" >&5
1508 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* System header to define __stub macros and hopefully few prototypes,
1515 which can conflict with char nanosleep(); below. */
1517 /* Override any gcc2 internal prototype to avoid an error. */
1518 /* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1524 /* The GNU C library defines this for functions which it implements
1525 to always fail with ENOSYS. Some functions are actually named
1526 something starting with __ and the normal name is an alias. */
1527 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1537 eval "ac_cv_func_nanosleep=yes"
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1542 eval "ac_cv_func_nanosleep=no"
1547 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1551 echo "$ac_t""no" 1>&6
1552 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1553 echo "configure:1554: checking for nanosleep in -lrt" >&5
1554 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 ac_save_LIBS="$LIBS"
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1572 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1574 eval "ac_cv_lib_$ac_lib_var=yes"
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1579 eval "ac_cv_lib_$ac_lib_var=no"
1582 LIBS="$ac_save_LIBS"
1585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1586 echo "$ac_t""yes" 1>&6
1587 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1589 cat >> confdefs.h <<EOF
1590 #define $ac_tr_lib 1
1596 echo "$ac_t""no" 1>&6
1597 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1598 echo "configure:1599: checking for nanosleep in -lposix4" >&5
1599 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 ac_save_LIBS="$LIBS"
1604 LIBS="-lposix4 $LIBS"
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1608 /* Override any gcc2 internal prototype to avoid an error. */
1609 /* We use char because int might match the return type of a gcc2
1610 builtin and then its argument prototype would still apply. */
1617 if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1619 eval "ac_cv_lib_$ac_lib_var=yes"
1621 echo "configure: failed program was:" >&5
1622 cat conftest.$ac_ext >&5
1624 eval "ac_cv_lib_$ac_lib_var=no"
1627 LIBS="$ac_save_LIBS"
1630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1631 echo "$ac_t""yes" 1>&6
1632 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1633 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1634 cat >> confdefs.h <<EOF
1635 #define $ac_tr_lib 1
1638 LIBS="-lposix4 $LIBS"
1641 echo "$ac_t""no" 1>&6
1648 for ac_func in usleep
1650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_func" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char $ac_func(); below. */
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1668 /* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1681 eval "ac_cv_func_$ac_func=yes"
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1686 eval "ac_cv_func_$ac_func=no"
1691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1694 cat >> confdefs.h <<EOF
1695 #define $ac_tr_func 1
1699 echo "$ac_t""no" 1>&6
1703 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1704 echo "configure:1705: checking for inet_aton" >&5
1705 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char inet_aton(); below. */
1714 /* Override any gcc2 internal prototype to avoid an error. */
1715 /* We use char because int might match the return type of a gcc2
1716 builtin and then its argument prototype would still apply. */
1721 /* The GNU C library defines this for functions which it implements
1722 to always fail with ENOSYS. Some functions are actually named
1723 something starting with __ and the normal name is an alias. */
1724 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 eval "ac_cv_func_inet_aton=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 eval "ac_cv_func_inet_aton=no"
1744 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1748 echo "$ac_t""no" 1>&6
1749 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1750 echo "configure:1751: checking for inet_aton in -lresolv" >&5
1751 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 ac_save_LIBS="$LIBS"
1756 LIBS="-lresolv $LIBS"
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 /* Override any gcc2 internal prototype to avoid an error. */
1761 /* We use char because int might match the return type of a gcc2
1762 builtin and then its argument prototype would still apply. */
1769 if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1771 eval "ac_cv_lib_$ac_lib_var=yes"
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1776 eval "ac_cv_lib_$ac_lib_var=no"
1779 LIBS="$ac_save_LIBS"
1782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1785 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1786 cat >> confdefs.h <<EOF
1787 #define $ac_tr_lib 1
1790 LIBS="-lresolv $LIBS"
1793 echo "$ac_t""no" 1>&6
1798 for ac_func in vasprintf
1800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_func" >&5
1802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $ac_func(); below. */
1811 /* Override any gcc2 internal prototype to avoid an error. */
1812 /* We use char because int might match the return type of a gcc2
1813 builtin and then its argument prototype would still apply. */
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831 eval "ac_cv_func_$ac_func=yes"
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 eval "ac_cv_func_$ac_func=no"
1841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1844 cat >> confdefs.h <<EOF
1845 #define $ac_tr_func 1
1849 echo "$ac_t""no" 1>&6
1853 for ac_hdr in unistd.h
1855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_hdr" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1871 eval "ac_cv_header_$ac_safe=yes"
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1877 eval "ac_cv_header_$ac_safe=no"
1881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1884 cat >> confdefs.h <<EOF
1885 #define $ac_tr_hdr 1
1889 echo "$ac_t""no" 1>&6
1893 for ac_func in getpagesize
1895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_func" >&5
1897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 /* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $ac_func(); below. */
1906 /* Override any gcc2 internal prototype to avoid an error. */
1907 /* We use char because int might match the return type of a gcc2
1908 builtin and then its argument prototype would still apply. */
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1926 eval "ac_cv_func_$ac_func=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 eval "ac_cv_func_$ac_func=no"
1936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1937 echo "$ac_t""yes" 1>&6
1938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1939 cat >> confdefs.h <<EOF
1940 #define $ac_tr_func 1
1944 echo "$ac_t""no" 1>&6
1948 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1949 echo "configure:1950: checking for working mmap" >&5
1950 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 if test "$cross_compiling" = yes; then
1954 ac_cv_func_mmap_fixed_mapped=no
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1960 /* Thanks to Mike Haertel and Jim Avera for this test.
1961 Here is a matrix of mmap possibilities:
1962 mmap private not fixed
1963 mmap private fixed at somewhere currently unmapped
1964 mmap private fixed at somewhere already mapped
1965 mmap shared not fixed
1966 mmap shared fixed at somewhere currently unmapped
1967 mmap shared fixed at somewhere already mapped
1968 For private mappings, we should verify that changes cannot be read()
1969 back from the file, nor mmap's back from the file at a different
1970 address. (There have been systems where private was not correctly
1971 implemented like the infamous i386 svr4.0, and systems where the
1972 VM page cache was not coherent with the filesystem buffer cache
1973 like early versions of FreeBSD and possibly contemporary NetBSD.)
1974 For shared mappings, we should conversely verify that changes get
1975 propogated back to all the places they're supposed to be.
1977 Grep wants private fixed already mapped.
1978 The main things grep needs to know about mmap are:
1979 * does it exist and is it safe to write into the mmap'd area
1980 * how to use it (BSD variants) */
1981 #include <sys/types.h>
1983 #include <sys/mman.h>
1985 /* This mess was copied from the GNU getpagesize.h. */
1986 #ifndef HAVE_GETPAGESIZE
1987 # ifdef HAVE_UNISTD_H
1988 # include <unistd.h>
1991 /* Assume that all systems that can run configure have sys/param.h. */
1992 # ifndef HAVE_SYS_PARAM_H
1993 # define HAVE_SYS_PARAM_H 1
1996 # ifdef _SC_PAGESIZE
1997 # define getpagesize() sysconf(_SC_PAGESIZE)
1998 # else /* no _SC_PAGESIZE */
1999 # ifdef HAVE_SYS_PARAM_H
2000 # include <sys/param.h>
2001 # ifdef EXEC_PAGESIZE
2002 # define getpagesize() EXEC_PAGESIZE
2003 # else /* no EXEC_PAGESIZE */
2005 # define getpagesize() NBPG * CLSIZE
2008 # endif /* no CLSIZE */
2009 # else /* no NBPG */
2011 # define getpagesize() NBPC
2012 # else /* no NBPC */
2014 # define getpagesize() PAGESIZE
2015 # endif /* PAGESIZE */
2016 # endif /* no NBPC */
2017 # endif /* no NBPG */
2018 # endif /* no EXEC_PAGESIZE */
2019 # else /* no HAVE_SYS_PARAM_H */
2020 # define getpagesize() 8192 /* punt totally */
2021 # endif /* no HAVE_SYS_PARAM_H */
2022 # endif /* no _SC_PAGESIZE */
2024 #endif /* no HAVE_GETPAGESIZE */
2027 extern "C" { void *malloc(unsigned); }
2035 char *data, *data2, *data3;
2039 pagesize = getpagesize();
2042 * First, make a file with some known garbage in it.
2044 data = malloc(pagesize);
2047 for (i = 0; i < pagesize; ++i)
2048 *(data + i) = rand();
2050 fd = creat("conftestmmap", 0600);
2053 if (write(fd, data, pagesize) != pagesize)
2058 * Next, try to mmap the file at a fixed address which
2059 * already has something else allocated at it. If we can,
2060 * also make sure that we see the same garbage.
2062 fd = open("conftestmmap", O_RDWR);
2065 data2 = malloc(2 * pagesize);
2068 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2069 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2070 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2072 for (i = 0; i < pagesize; ++i)
2073 if (*(data + i) != *(data2 + i))
2077 * Finally, make sure that changes to the mapped area
2078 * do not percolate back to the file as seen by read().
2079 * (This is a bug on some variants of i386 svr4.0.)
2081 for (i = 0; i < pagesize; ++i)
2082 *(data2 + i) = *(data2 + i) + 1;
2083 data3 = malloc(pagesize);
2086 if (read(fd, data3, pagesize) != pagesize)
2088 for (i = 0; i < pagesize; ++i)
2089 if (*(data + i) != *(data3 + i))
2092 unlink("conftestmmap");
2097 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2099 ac_cv_func_mmap_fixed_mapped=yes
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 ac_cv_func_mmap_fixed_mapped=no
2111 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2112 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2113 cat >> confdefs.h <<\EOF
2119 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2120 echo "configure:2121: checking return type of signal handlers" >&5
2121 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 #include <sys/types.h>
2133 extern "C" void (*signal (int, void (*)(int)))(int);
2135 void (*signal ()) ();
2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 ac_cv_type_signal=void
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2149 ac_cv_type_signal=int
2154 echo "$ac_t""$ac_cv_type_signal" 1>&6
2155 cat >> confdefs.h <<EOF
2156 #define RETSIGTYPE $ac_cv_type_signal
2160 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2161 echo "configure:2162: checking for dlopen in -ldl" >&5
2162 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 ac_save_LIBS="$LIBS"
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 /* Override any gcc2 internal prototype to avoid an error. */
2172 /* We use char because int might match the return type of a gcc2
2173 builtin and then its argument prototype would still apply. */
2180 if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2182 eval "ac_cv_lib_$ac_lib_var=yes"
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 eval "ac_cv_lib_$ac_lib_var=no"
2190 LIBS="$ac_save_LIBS"
2193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2196 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2197 cat >> confdefs.h <<EOF
2198 #define $ac_tr_lib 1
2204 echo "$ac_t""no" 1>&6
2207 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2208 echo "configure:2209: checking for optarg in -lgnugetopt" >&5
2209 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 ac_save_LIBS="$LIBS"
2214 LIBS="-lgnugetopt $LIBS"
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 /* Override any gcc2 internal prototype to avoid an error. */
2219 /* We use char because int might match the return type of a gcc2
2220 builtin and then its argument prototype would still apply. */
2227 if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2229 eval "ac_cv_lib_$ac_lib_var=yes"
2231 echo "configure: failed program was:" >&5
2232 cat conftest.$ac_ext >&5
2234 eval "ac_cv_lib_$ac_lib_var=no"
2237 LIBS="$ac_save_LIBS"
2240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2243 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2244 cat >> confdefs.h <<EOF
2245 #define $ac_tr_lib 1
2248 LIBS="-lgnugetopt $LIBS"
2251 echo "$ac_t""no" 1>&6
2254 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2255 echo "configure:2256: checking for _ in -lbe" >&5
2256 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 ac_save_LIBS="$LIBS"
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2274 if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2276 eval "ac_cv_lib_$ac_lib_var=yes"
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2281 eval "ac_cv_lib_$ac_lib_var=no"
2284 LIBS="$ac_save_LIBS"
2287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2290 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_lib 1
2298 echo "$ac_t""no" 1>&6
2301 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2302 echo "configure:2303: checking for _ in -lgame" >&5
2303 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 ac_save_LIBS="$LIBS"
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* Override any gcc2 internal prototype to avoid an error. */
2313 /* We use char because int might match the return type of a gcc2
2314 builtin and then its argument prototype would still apply. */
2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2323 eval "ac_cv_lib_$ac_lib_var=yes"
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2328 eval "ac_cv_lib_$ac_lib_var=no"
2331 LIBS="$ac_save_LIBS"
2334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2336 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2338 cat >> confdefs.h <<EOF
2339 #define $ac_tr_lib 1
2345 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2349 echo "configure:2350: checking for _ in -lroot" >&5
2350 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 ac_save_LIBS="$LIBS"
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* Override any gcc2 internal prototype to avoid an error. */
2360 /* We use char because int might match the return type of a gcc2
2361 builtin and then its argument prototype would still apply. */
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2370 eval "ac_cv_lib_$ac_lib_var=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 eval "ac_cv_lib_$ac_lib_var=no"
2378 LIBS="$ac_save_LIBS"
2381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2382 echo "$ac_t""yes" 1>&6
2383 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2384 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2385 cat >> confdefs.h <<EOF
2386 #define $ac_tr_lib 1
2392 echo "$ac_t""no" 1>&6
2395 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2396 echo "configure:2397: checking for powl in -lm" >&5
2397 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 ac_save_LIBS="$LIBS"
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* Override any gcc2 internal prototype to avoid an error. */
2407 /* We use char because int might match the return type of a gcc2
2408 builtin and then its argument prototype would still apply. */
2415 if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2417 eval "ac_cv_lib_$ac_lib_var=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2422 eval "ac_cv_lib_$ac_lib_var=no"
2425 LIBS="$ac_save_LIBS"
2428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2431 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2432 cat >> confdefs.h <<EOF
2433 #define $ac_tr_lib 1
2439 echo "$ac_t""no" 1>&6
2442 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2443 echo "configure:2444: checking for pthread_create in -lpthread" >&5
2444 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 ac_save_LIBS="$LIBS"
2449 LIBS="-lpthread $LIBS"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* Override any gcc2 internal prototype to avoid an error. */
2454 /* We use char because int might match the return type of a gcc2
2455 builtin and then its argument prototype would still apply. */
2456 char pthread_create();
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 eval "ac_cv_lib_$ac_lib_var=yes"
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 eval "ac_cv_lib_$ac_lib_var=no"
2472 LIBS="$ac_save_LIBS"
2475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2479 cat >> confdefs.h <<EOF
2480 #define $ac_tr_lib 1
2483 LIBS="-lpthread $LIBS"
2486 echo "$ac_t""no" 1>&6
2489 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2490 echo "configure:2491: checking for thread_create in -lthreads" >&5
2491 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 ac_save_LIBS="$LIBS"
2496 LIBS="-lthreads $LIBS"
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500 /* Override any gcc2 internal prototype to avoid an error. */
2501 /* We use char because int might match the return type of a gcc2
2502 builtin and then its argument prototype would still apply. */
2503 char thread_create();
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511 eval "ac_cv_lib_$ac_lib_var=yes"
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 eval "ac_cv_lib_$ac_lib_var=no"
2519 LIBS="$ac_save_LIBS"
2522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2523 echo "$ac_t""yes" 1>&6
2524 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2526 cat >> confdefs.h <<EOF
2527 #define $ac_tr_lib 1
2530 LIBS="-lthreads $LIBS"
2533 echo "$ac_t""no" 1>&6
2537 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2538 echo "configure:2539: checking for getopt_long" >&5
2539 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 /* System header to define __stub macros and hopefully few prototypes,
2546 which can conflict with char getopt_long(); below. */
2548 /* Override any gcc2 internal prototype to avoid an error. */
2549 /* We use char because int might match the return type of a gcc2
2550 builtin and then its argument prototype would still apply. */
2555 /* The GNU C library defines this for functions which it implements
2556 to always fail with ENOSYS. Some functions are actually named
2557 something starting with __ and the normal name is an alias. */
2558 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2566 if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2568 eval "ac_cv_func_getopt_long=yes"
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2573 eval "ac_cv_func_getopt_long=no"
2578 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2582 echo "$ac_t""no" 1>&6
2583 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2588 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2589 for ac_hdr in stddef.h
2591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_hdr" >&5
2594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2603 { (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2605 if test -z "$ac_err"; then
2607 eval "ac_cv_header_$ac_safe=yes"
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 eval "ac_cv_header_$ac_safe=no"
2617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2618 echo "$ac_t""yes" 1>&6
2619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2620 cat >> confdefs.h <<EOF
2621 #define $ac_tr_hdr 1
2625 echo "$ac_t""no" 1>&6
2629 for ac_hdr in getopt.h
2631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2633 echo "configure:2634: checking for $ac_hdr" >&5
2634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2643 { (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2645 if test -z "$ac_err"; then
2647 eval "ac_cv_header_$ac_safe=yes"
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2653 eval "ac_cv_header_$ac_safe=no"
2657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2658 echo "$ac_t""yes" 1>&6
2659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2660 cat >> confdefs.h <<EOF
2661 #define $ac_tr_hdr 1
2665 echo "$ac_t""no" 1>&6
2669 for ac_hdr in sys/sockio.h
2671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_hdr" >&5
2674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2687 eval "ac_cv_header_$ac_safe=yes"
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 eval "ac_cv_header_$ac_safe=no"
2697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2698 echo "$ac_t""yes" 1>&6
2699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2700 cat >> confdefs.h <<EOF
2701 #define $ac_tr_hdr 1
2705 echo "$ac_t""no" 1>&6
2709 for ac_hdr in fcntl.h sys/time.h unistd.h
2711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_hdr" >&5
2714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2727 eval "ac_cv_header_$ac_safe=yes"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2733 eval "ac_cv_header_$ac_safe=no"
2737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2740 cat >> confdefs.h <<EOF
2741 #define $ac_tr_hdr 1
2745 echo "$ac_t""no" 1>&6
2749 for ac_hdr in sys/soundcard.h machine/soundcard.h
2751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_hdr" >&5
2754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2765 if test -z "$ac_err"; then
2767 eval "ac_cv_header_$ac_safe=yes"
2770 echo "configure: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2773 eval "ac_cv_header_$ac_safe=no"
2777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2780 cat >> confdefs.h <<EOF
2781 #define $ac_tr_hdr 1
2785 echo "$ac_t""no" 1>&6
2789 for ac_hdr in dlfcn.h image.h
2791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_hdr" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2807 eval "ac_cv_header_$ac_safe=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2813 eval "ac_cv_header_$ac_safe=no"
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818 echo "$ac_t""yes" 1>&6
2819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2820 cat >> confdefs.h <<EOF
2821 #define $ac_tr_hdr 1
2825 echo "$ac_t""no" 1>&6
2829 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_hdr" >&5
2834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2843 { (eval echo configure:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2845 if test -z "$ac_err"; then
2847 eval "ac_cv_header_$ac_safe=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 eval "ac_cv_header_$ac_safe=no"
2857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2860 cat >> confdefs.h <<EOF
2861 #define $ac_tr_hdr 1
2865 echo "$ac_t""no" 1>&6
2869 for ac_hdr in machine/param.h
2871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2873 echo "configure:2874: checking for $ac_hdr" >&5
2874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2883 { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2885 if test -z "$ac_err"; then
2887 eval "ac_cv_header_$ac_safe=yes"
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2893 eval "ac_cv_header_$ac_safe=no"
2897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2900 cat >> confdefs.h <<EOF
2901 #define $ac_tr_hdr 1
2905 echo "$ac_t""no" 1>&6
2910 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h <<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2953 CFLAGS="${CFLAGS} -Wall -Werror"
2954 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2955 echo "configure:2956: checking for ntohl in sys/param.h" >&5
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 #include <sys/param.h>
2960 void foo() { int meuh; ntohl(meuh); }
2965 if { (eval echo configure:2966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967 cat >> confdefs.h <<\EOF
2968 #define NTOHL_IN_SYS_PARAM_H 1
2971 echo "$ac_t""yes" 1>&6
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 echo "$ac_t""no" 1>&6
2980 CFLAGS="${CFLAGS} -rdynamic"
2981 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2982 echo "configure:2983: checking if \$CC accepts -rdynamic" >&5
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2991 if { (eval echo configure:2992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2993 DYNAMIC_FLAG="-rdynamic"
2994 echo "$ac_t""yes" 1>&6
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3006 echo "configure:3007: checking for boolean_t in sys/types.h" >&5
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <sys/types.h>
3011 void quux() { boolean_t foo; }
3016 if { (eval echo configure:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018 cat >> confdefs.h <<\EOF
3019 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3022 echo "$ac_t""yes" 1>&6
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3027 echo "$ac_t""no" 1>&6
3031 echo $ac_n "checking for working const""... $ac_c" 1>&6
3032 echo "configure:3033: checking for working const" >&5
3033 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3042 /* Ultrix mips cc rejects this. */
3043 typedef int charset[2]; const charset x;
3044 /* SunOS 4.1.1 cc rejects this. */
3045 char const *const *ccp;
3047 /* NEC SVR4.0.2 mips cc rejects this. */
3048 struct point {int x, y;};
3049 static struct point const zero = {0,0};
3050 /* AIX XL C 1.02.0.0 rejects this.
3051 It does not let you subtract one const X* pointer from another in an arm
3052 of an if-expression whose if-part is not a constant expression */
3053 const char *g = "string";
3054 ccp = &g + (g ? g-g : 0);
3055 /* HPUX 7.0 cc rejects these. */
3058 ccp = (char const *const *) p;
3059 { /* SCO 3.2v4 cc rejects this. */
3061 char const *s = 0 ? (char *) 0 : (char const *) 0;
3065 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3067 const int *foo = &x[0];
3070 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3071 typedef const int *iptr;
3075 { /* AIX XL C 1.02.0.0 rejects this saying
3076 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3077 struct s { int j; const int *ap[3]; };
3078 struct s *b; b->j = 5;
3080 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3086 if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3098 echo "$ac_t""$ac_cv_c_const" 1>&6
3099 if test $ac_cv_c_const = no; then
3100 cat >> confdefs.h <<\EOF
3106 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3107 echo "configure:3108: checking for ANSI C header files" >&5
3108 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3120 { (eval echo configure:3121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3122 if test -z "$ac_err"; then
3124 ac_cv_header_stdc=yes
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3130 ac_cv_header_stdc=no
3134 if test $ac_cv_header_stdc = yes; then
3135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 egrep "memchr" >/dev/null 2>&1; then
3146 ac_cv_header_stdc=no
3152 if test $ac_cv_header_stdc = yes; then
3153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "free" >/dev/null 2>&1; then
3164 ac_cv_header_stdc=no
3170 if test $ac_cv_header_stdc = yes; then
3171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3172 if test "$cross_compiling" = yes; then
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3179 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3180 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3182 int main () { int i; for (i = 0; i < 256; i++)
3183 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3187 if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3194 ac_cv_header_stdc=no
3202 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3203 if test $ac_cv_header_stdc = yes; then
3204 cat >> confdefs.h <<\EOF
3205 #define STDC_HEADERS 1
3210 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3211 echo "configure:3212: checking for size_t" >&5
3212 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 #include <sys/types.h>
3224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3225 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3227 ac_cv_type_size_t=yes
3230 ac_cv_type_size_t=no
3235 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3236 if test $ac_cv_type_size_t = no; then
3237 cat >> confdefs.h <<\EOF
3238 #define size_t unsigned
3243 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3244 echo "configure:3245: checking whether time.h and sys/time.h may both be included" >&5
3245 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 #include <sys/types.h>
3252 #include <sys/time.h>
3258 if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3260 ac_cv_header_time=yes
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 ac_cv_header_time=no
3270 echo "$ac_t""$ac_cv_header_time" 1>&6
3271 if test $ac_cv_header_time = yes; then
3272 cat >> confdefs.h <<\EOF
3273 #define TIME_WITH_SYS_TIME 1
3279 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3280 if test x$host_os = xbeos; then
3281 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3283 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3286 for ac_hdr in sys/ioctl.h
3288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_hdr" >&5
3291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3300 { (eval echo configure:3301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3302 if test -z "$ac_err"; then
3304 eval "ac_cv_header_$ac_safe=yes"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 eval "ac_cv_header_$ac_safe=no"
3314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3315 echo "$ac_t""yes" 1>&6
3316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3317 cat >> confdefs.h <<EOF
3318 #define $ac_tr_hdr 1
3320 PLUGINS=${PLUGINS}"dvd "
3321 for ac_hdr in linux/cdrom.h
3323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_hdr" >&5
3326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3335 { (eval echo configure:3336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3337 if test -z "$ac_err"; then
3339 eval "ac_cv_header_$ac_safe=yes"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3345 eval "ac_cv_header_$ac_safe=no"
3349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3350 echo "$ac_t""yes" 1>&6
3351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3352 cat >> confdefs.h <<EOF
3353 #define $ac_tr_hdr 1
3357 echo "$ac_t""no" 1>&6
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 #include <linux/cdrom.h>
3366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3367 egrep "dvd" >/dev/null 2>&1; then
3369 cat >> confdefs.h <<\EOF
3377 echo "$ac_t""no" 1>&6
3383 # Check whether --enable-ppro or --disable-ppro was given.
3384 if test "${enable_ppro+set}" = set; then
3385 enableval="$enable_ppro"
3386 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3388 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3391 # Check whether --enable-mmx or --disable-mmx was given.
3392 if test "${enable_mmx+set}" = set; then
3393 enableval="$enable_mmx"
3394 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3396 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3399 # Check whether --enable-debug or --disable-debug was given.
3400 if test "${enable_debug+set}" = set; then
3401 enableval="$enable_debug"
3402 if test x$enableval = xyes; then DEBUG=1; fi
3405 # Check whether --enable-stats or --disable-stats was given.
3406 if test "${enable_stats+set}" = set; then
3407 enableval="$enable_stats"
3408 if test x$enableval = xyes; then STATS=1; fi
3411 # Check whether --enable-optimizations or --disable-optimizations was given.
3412 if test "${enable_optimizations+set}" = set; then
3413 enableval="$enable_optimizations"
3414 if test x$enableval = xno; then OPTIMS=0; fi
3423 if test x$host_os = xbeos; then
3424 PLUGINS=${PLUGINS}"dummy null beos "
3431 # Check whether --enable-dummy or --disable-dummy was given.
3432 if test "${enable_dummy+set}" = set; then
3433 enableval="$enable_dummy"
3437 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3438 # Check whether --enable-null or --disable-null was given.
3439 if test "${enable_null+set}" = set; then
3440 enableval="$enable_null"
3444 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3445 # Check whether --enable-dsp or --disable-dsp was given.
3446 if test "${enable_dsp+set}" = set; then
3447 enableval="$enable_dsp"
3451 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3452 # Check whether --enable-esd or --disable-esd was given.
3453 if test "${enable_esd+set}" = set; then
3454 enableval="$enable_esd"
3455 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3458 # Check whether --enable-fb or --disable-fb was given.
3459 if test "${enable_fb+set}" = set; then
3460 enableval="$enable_fb"
3461 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3464 # Check whether --with-ggi or --without-ggi was given.
3465 if test "${with_ggi+set}" = set; then
3467 PLUGINS=${PLUGINS}"ggi ";
3468 if test "x$withval" != "xyes";
3470 LIB_GGI="-l"$withval
3476 # Check whether --with-sdl or --without-sdl was given.
3477 if test "${with_sdl+set}" = set; then
3479 PLUGINS=${PLUGINS}"sdl ";
3480 if test "x$withval" != "xyes";
3482 LIB_SDL="L/usr/X11R6/lib -l"$withval
3484 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3488 if test "x$withval" = "x";
3490 PLUGINS=${PLUGINS}"sdl "
3491 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3493 # Check whether --with-glide or --without-glide was given.
3494 if test "${with_glide+set}" = set; then
3495 withval="$with_glide"
3496 PLUGINS=${PLUGINS}"glide ";
3497 if test "x$withval" != "xyes";
3499 LIB_GLIDE="-l"$withval
3501 LIB_GLIDE="-lglide2x"
3505 # Check whether --enable-ncurses or --disable-ncurses was given.
3506 if test "${enable_ncurses+set}" = set; then
3507 enableval="$enable_ncurses"
3508 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3511 # Check whether --enable-kde or --disable-kde was given.
3512 if test "${enable_kde+set}" = set; then
3513 enableval="$enable_kde"
3514 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; KVLC=1; fi
3517 # Check whether --enable-gnome or --disable-gnome was given.
3518 if test "${enable_gnome+set}" = set; then
3519 enableval="$enable_gnome"
3520 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3523 # Check whether --enable-gtk or --disable-gtk was given.
3524 if test "${enable_gtk+set}" = set; then
3525 enableval="$enable_gtk"
3529 if test x$enable_gtk != xno; then PLUGINS=${PLUGINS}"gtk "; GVLC=1; fi
3530 # Check whether --enable-x11 or --disable-x11 was given.
3531 if test "${enable_x11+set}" = set; then
3532 enableval="$enable_x11"
3536 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3538 # Check whether --enable-alsa or --disable-alsa was given.
3539 if test "${enable_alsa+set}" = set; then
3540 enableval="$enable_alsa"
3541 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3542 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3543 echo "configure:3544: checking for sys/asoundlib.h" >&5
3544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 #include <sys/asoundlib.h>
3552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3553 { (eval echo configure:3554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3555 if test -z "$ac_err"; then
3557 eval "ac_cv_header_$ac_safe=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 eval "ac_cv_header_$ac_safe=no"
3567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3569 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3570 echo "configure:3571: checking for main in -lasound" >&5
3571 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_save_LIBS="$LIBS"
3576 LIBS="-lasound $LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3585 if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587 eval "ac_cv_lib_$ac_lib_var=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3592 eval "ac_cv_lib_$ac_lib_var=no"
3595 LIBS="$ac_save_LIBS"
3598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3602 echo "$ac_t""no" 1>&6
3607 echo "$ac_t""no" 1>&6
3610 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3614 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3615 if test x$KVLC = x1 ; then ALIASES=${ALIASES}"kvlc "; fi
3632 cat > confcache <<\EOF
3633 # This file is a shell script that caches the results of configure
3634 # tests run on this system so they can be shared between configure
3635 # scripts and configure runs. It is not useful on other systems.
3636 # If it contains results you don't want to keep, you may remove or edit it.
3638 # By default, configure uses ./config.cache as the cache file,
3639 # creating it if it does not exist already. You can give configure
3640 # the --cache-file=FILE option to use a different cache file; that is
3641 # what configure does when it calls configure scripts in
3642 # subdirectories, so they share the cache.
3643 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3644 # config.status only pays attention to the cache file if you give it the
3645 # --recheck option to rerun configure.
3648 # The following way of writing the cache mishandles newlines in values,
3649 # but we know of no workaround that is simple, portable, and efficient.
3650 # So, don't put newlines in cache variables' values.
3651 # Ultrix sh set writes to stderr and can't be redirected directly,
3652 # and sets the high bit in the cache file unless we assign to the vars.
3654 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3656 # `set' does not quote correctly, so add quotes (double-quote substitution
3657 # turns \\\\ into \\, and sed turns \\ into \).
3659 -e "s/'/'\\\\''/g" \
3660 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3663 # `set' quotes correctly as required by POSIX, so do not add quotes.
3664 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3667 if cmp -s $cache_file confcache; then
3670 if test -w $cache_file; then
3671 echo "updating cache $cache_file"
3672 cat confcache > $cache_file
3674 echo "not updating unwritable cache $cache_file"
3679 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3682 # Let make expand exec_prefix.
3683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3685 # Any assignment to VPATH causes Sun make to only execute
3686 # the first set of double-colon rules, so remove it if not needed.
3687 # If there is a colon in the path, we need to keep it.
3688 if test "x$srcdir" = x.; then
3689 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3692 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3694 DEFS=-DHAVE_CONFIG_H
3696 # Without the "./", some shells look in PATH for config.status.
3697 : ${CONFIG_STATUS=./config.status}
3699 echo creating $CONFIG_STATUS
3700 rm -f $CONFIG_STATUS
3701 cat > $CONFIG_STATUS <<EOF
3703 # Generated automatically by configure.
3704 # Run this file to recreate the current configuration.
3705 # This directory was configured as follows,
3706 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3708 # $0 $ac_configure_args
3710 # Compiler output produced by configure, useful for debugging
3711 # configure, is in ./config.log if it exists.
3713 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3716 case "\$ac_option" in
3717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3718 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3719 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3720 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3721 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3723 -help | --help | --hel | --he | --h)
3724 echo "\$ac_cs_usage"; exit 0 ;;
3725 *) echo "\$ac_cs_usage"; exit 1 ;;
3729 ac_given_srcdir=$srcdir
3730 ac_given_INSTALL="$INSTALL"
3732 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3734 cat >> $CONFIG_STATUS <<EOF
3736 # Protect against being on the right side of a sed subst in config.status.
3737 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3738 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3742 s%@CFLAGS@%$CFLAGS%g
3743 s%@CPPFLAGS@%$CPPFLAGS%g
3744 s%@CXXFLAGS@%$CXXFLAGS%g
3745 s%@FFLAGS@%$FFLAGS%g
3747 s%@LDFLAGS@%$LDFLAGS%g
3749 s%@exec_prefix@%$exec_prefix%g
3750 s%@prefix@%$prefix%g
3751 s%@program_transform_name@%$program_transform_name%g
3752 s%@bindir@%$bindir%g
3753 s%@sbindir@%$sbindir%g
3754 s%@libexecdir@%$libexecdir%g
3755 s%@datadir@%$datadir%g
3756 s%@sysconfdir@%$sysconfdir%g
3757 s%@sharedstatedir@%$sharedstatedir%g
3758 s%@localstatedir@%$localstatedir%g
3759 s%@libdir@%$libdir%g
3760 s%@includedir@%$includedir%g
3761 s%@oldincludedir@%$oldincludedir%g
3762 s%@infodir@%$infodir%g
3763 s%@mandir@%$mandir%g
3765 s%@host_alias@%$host_alias%g
3766 s%@host_cpu@%$host_cpu%g
3767 s%@host_vendor@%$host_vendor%g
3768 s%@host_os@%$host_os%g
3769 s%@VLC_VERSION@%$VLC_VERSION%g
3770 s%@VLC_CODENAME@%$VLC_CODENAME%g
3771 s%@SET_MAKE@%$SET_MAKE%g
3774 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3775 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3776 s%@INSTALL_DATA@%$INSTALL_DATA%g
3777 s%@LIBOBJS@%$LIBOBJS%g
3780 s%@PLUGINS@%$PLUGINS%g
3781 s%@ALIASES@%$ALIASES%g
3784 s%@OPTIMS@%$OPTIMS%g
3785 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3786 s%@LIB_SDL@%$LIB_SDL%g
3787 s%@LIB_GLIDE@%$LIB_GLIDE%g
3788 s%@LIB_GGI@%$LIB_GGI%g
3793 cat >> $CONFIG_STATUS <<\EOF
3795 # Split the substitutions into bite-sized pieces for seds with
3796 # small command number limits, like on Digital OSF/1 and HP-UX.
3797 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3798 ac_file=1 # Number of current file.
3799 ac_beg=1 # First line for current file.
3800 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3803 while $ac_more_lines; do
3804 if test $ac_beg -gt 1; then
3805 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3807 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3809 if test ! -s conftest.s$ac_file; then
3811 rm -f conftest.s$ac_file
3813 if test -z "$ac_sed_cmds"; then
3814 ac_sed_cmds="sed -f conftest.s$ac_file"
3816 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3818 ac_file=`expr $ac_file + 1`
3820 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3823 if test -z "$ac_sed_cmds"; then
3828 cat >> $CONFIG_STATUS <<EOF
3830 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3832 cat >> $CONFIG_STATUS <<\EOF
3833 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3836 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3837 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3838 *) ac_file_in="${ac_file}.in" ;;
3841 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3843 # Remove last slash and all that follows it. Not all systems have dirname.
3844 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3846 # The file is in a subdirectory.
3847 test ! -d "$ac_dir" && mkdir "$ac_dir"
3848 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3849 # A "../" for each directory in $ac_dir_suffix.
3850 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3852 ac_dir_suffix= ac_dots=
3855 case "$ac_given_srcdir" in
3857 if test -z "$ac_dots"; then top_srcdir=.
3858 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3859 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3861 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3862 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3865 case "$ac_given_INSTALL" in
3866 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3867 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3870 echo creating "$ac_file"
3872 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3874 *Makefile*) ac_comsub="1i\\
3875 # $configure_input" ;;
3879 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3881 s%@configure_input@%$configure_input%g
3882 s%@srcdir@%$srcdir%g
3883 s%@top_srcdir@%$top_srcdir%g
3884 s%@INSTALL@%$INSTALL%g
3885 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3892 # ac_d sets the value in "#define NAME VALUE" lines.
3893 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3894 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3897 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3898 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3899 ac_uB='\([ ]\)%\1#\2define\3'
3902 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3903 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3904 ac_eB='$%\1#\2define\3'
3908 if test "${CONFIG_HEADERS+set}" != set; then
3910 cat >> $CONFIG_STATUS <<EOF
3911 CONFIG_HEADERS="include/defs.h"
3913 cat >> $CONFIG_STATUS <<\EOF
3915 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3918 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3919 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3920 *) ac_file_in="${ac_file}.in" ;;
3923 echo creating $ac_file
3925 rm -f conftest.frag conftest.in conftest.out
3926 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3927 cat $ac_file_inputs > conftest.in
3931 # Transform confdefs.h into a sed script conftest.vals that substitutes
3932 # the proper values into config.h.in to produce config.h. And first:
3933 # Protect against being on the right side of a sed subst in config.status.
3934 # Protect against being in an unquoted here document in config.status.
3936 cat > conftest.hdr <<\EOF
3939 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3943 sed -n -f conftest.hdr confdefs.h > conftest.vals
3946 # This sed command replaces #undef with comments. This is necessary, for
3947 # example, in the case of _POSIX_SOURCE, which is predefined and required
3948 # on some systems where configure will not decide to define it.
3949 cat >> conftest.vals <<\EOF
3950 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3953 # Break up conftest.vals because some shells have a limit on
3954 # the size of here documents, and old seds have small limits too.
3959 ac_lines=`grep -c . conftest.vals`
3960 # grep -c gives empty output for an empty file on some AIX systems.
3961 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3962 # Write a limited-size here document to conftest.frag.
3963 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3964 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3966 sed -f conftest.frag conftest.in > conftest.out
3968 mv conftest.out conftest.in
3970 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3972 mv conftest.tail conftest.vals
3976 cat >> $CONFIG_STATUS <<\EOF
3977 rm -f conftest.frag conftest.h
3978 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3979 cat conftest.in >> conftest.h
3981 if cmp -s $ac_file conftest.h 2>/dev/null; then
3982 echo "$ac_file is unchanged"
3985 # Remove last slash and all that follows it. Not all systems have dirname.
3986 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3988 # The file is in a subdirectory.
3989 test ! -d "$ac_dir" && mkdir "$ac_dir"
3992 mv conftest.h $ac_file
3997 cat >> $CONFIG_STATUS <<EOF
4000 cat >> $CONFIG_STATUS <<\EOF
4004 chmod +x $CONFIG_STATUS
4005 rm -fr confdefs* $ac_clean_files
4006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4012 vlc version : ${VLC_VERSION}
4014 architecture : ${ARCH}
4015 debug mode : ${DEBUG}
4016 statistics : ${STATS}
4017 optimizations : ${OPTIMS}
4018 plugins : ${PLUGINS}
4019 vlc aliases : ${ALIASES}