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-dummy dummy module (default enabled)"
17 --disable-null Null module (default enabled)"
19 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
21 --disable-mmx Disable MMX optimizations (default enabled for x86)"
23 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
25 --disable-css Disable DVD CSS decryption (default enabled)"
27 --enable-debug Enable debug mode (default disabled)"
29 --enable-stats Enable printing of statistics (default disabled)"
31 --disable-optimizations Disable compiler optimizations (default enabled)"
33 --disable-dsp Linux /dev/dsp support (default enabled)"
35 --enable-esd Esound library support (default disabled)"
37 --enable-darwin Darwin sound support (default disabled)"
39 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
41 --enable-fb Linux framebuffer support (default disabled)"
43 --with-ggi[=name] GGI support (default disabled)"
45 --with-sdl[=name] SDL support (default enabled)"
47 --with-glide[=name] Glide (3dfx) support (default disabled)"
49 --enable-ncurses ncurses interface support (default disabled)"
51 --enable-qt Qt interface support (default disabled)"
53 --enable-kde KDE interface support (default disabled)"
55 --enable-gnome Gnome interface support (default disabled)"
57 --disable-gtk Gtk+ support (default enabled)"
59 --disable-x11 X11 support (default enabled)"
61 --enable-xvideo XVideo interface support (default disabled)"
63 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
239 -host | --host | --hos | --ho)
241 -host=* | --host=* | --hos=* | --ho=*)
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
412 # Obsolete; use --with-x.
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=src/interface/main.c
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 if test ! -r $srcdir/$ac_unique_file; then
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
577 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
578 if test -f $ac_dir/install-sh; then
580 ac_install_sh="$ac_aux_dir/install-sh -c"
582 elif test -f $ac_dir/install.sh; then
584 ac_install_sh="$ac_aux_dir/install.sh -c"
588 if test -z "$ac_aux_dir"; then
589 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
591 ac_config_guess=$ac_aux_dir/config.guess
592 ac_config_sub=$ac_aux_dir/config.sub
593 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
605 case "$host_alias" in
609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
612 *) host_alias=$nonopt ;;
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
628 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
629 echo "configure:630: checking whether ${MAKE-make} sets \${MAKE}" >&5
630 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
631 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 cat > conftestmake <<\EOF
636 @echo 'ac_maketemp="${MAKE}"'
638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
639 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
640 if test -n "$ac_maketemp"; then
641 eval ac_cv_prog_make_${ac_make}_set=yes
643 eval ac_cv_prog_make_${ac_make}_set=no
647 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
648 echo "$ac_t""yes" 1>&6
651 echo "$ac_t""no" 1>&6
652 SET_MAKE="MAKE=${MAKE-make}"
655 if test -z "$CC"; then
656 # Extract the first word of "gcc", so it can be a program name with args.
657 set dummy gcc; ac_word=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 if test -n "$CC"; then
664 ac_cv_prog_CC="$CC" # Let the user override the test.
666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
685 if test -z "$CC"; then
686 # Extract the first word of "cc", so it can be a program name with args.
687 set dummy cc; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 if test -n "$CC"; then
694 ac_cv_prog_CC="$CC" # Let the user override the test.
696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
699 for ac_dir in $ac_dummy; do
700 test -z "$ac_dir" && ac_dir=.
701 if test -f $ac_dir/$ac_word; then
702 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
711 if test $ac_prog_rejected = yes; then
712 # We found a bogon in the path, so make sure we never use it.
713 set dummy $ac_cv_prog_CC
715 if test $# -gt 0; then
716 # We chose a different compiler from the bogus one.
717 # However, it has the same basename, so the bogon will be chosen
718 # first if we set CC to just the basename; use the full file name.
720 set dummy "$ac_dir/$ac_word" "$@"
728 if test -n "$CC"; then
729 echo "$ac_t""$CC" 1>&6
731 echo "$ac_t""no" 1>&6
734 if test -z "$CC"; then
737 # Extract the first word of "cl", so it can be a program name with args.
738 set dummy cl; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC="$CC" # Let the user override the test.
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
749 for ac_dir in $ac_dummy; do
750 test -z "$ac_dir" && ac_dir=.
751 if test -f $ac_dir/$ac_word; then
760 if test -n "$CC"; then
761 echo "$ac_t""$CC" 1>&6
763 echo "$ac_t""no" 1>&6
768 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
772 echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
776 ac_cpp='$CPP $CPPFLAGS'
777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
779 cross_compiling=$ac_cv_prog_cc_cross
781 cat > conftest.$ac_ext << EOF
783 #line 784 "configure"
784 #include "confdefs.h"
788 if { (eval echo configure:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
789 ac_cv_prog_cc_works=yes
790 # If we can't run a trivial program, we are probably using a cross compiler.
791 if (./conftest; exit) 2>/dev/null; then
792 ac_cv_prog_cc_cross=no
794 ac_cv_prog_cc_cross=yes
797 echo "configure: failed program was:" >&5
798 cat conftest.$ac_ext >&5
799 ac_cv_prog_cc_works=no
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp='$CPP $CPPFLAGS'
805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling=$ac_cv_prog_cc_cross
809 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
810 if test $ac_cv_prog_cc_works = no; then
811 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
815 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
816 cross_compiling=$ac_cv_prog_cc_cross
818 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
819 echo "configure:820: checking whether we are using GNU C" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 cat > conftest.c <<EOF
828 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
835 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
837 if test $ac_cv_prog_gcc = yes; then
843 ac_test_CFLAGS="${CFLAGS+set}"
844 ac_save_CFLAGS="$CFLAGS"
846 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
847 echo "configure:848: checking whether ${CC-cc} accepts -g" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 echo 'void f(){}' > conftest.c
852 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
861 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
862 if test "$ac_test_CFLAGS" = set; then
863 CFLAGS="$ac_save_CFLAGS"
864 elif test $ac_cv_prog_cc_g = yes; then
865 if test "$GCC" = yes; then
871 if test "$GCC" = yes; then
879 if test -z "$CPP"; then
880 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
881 echo "configure:882: checking how to run the C preprocessor" >&5
882 # On Suns, sometimes $CPP names a directory.
883 if test -n "$CPP" && test -d "$CPP"; then
886 if test -z "$CPP"; then
887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 # This must be in double quotes, not single quotes, because CPP may get
891 # substituted into the Makefile and "${CC-cc}" will confuse make.
893 # On the NeXT, cc -E runs the code through the compiler's parser,
894 # not just through cpp.
895 cat > conftest.$ac_ext <<EOF
896 #line 897 "configure"
897 #include "confdefs.h"
901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
902 { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
904 if test -z "$ac_err"; then
908 echo "configure: failed program was:" >&5
909 cat conftest.$ac_ext >&5
911 CPP="${CC-cc} -E -traditional-cpp"
912 cat > conftest.$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
919 { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
921 if test -z "$ac_err"; then
925 echo "configure: failed program was:" >&5
926 cat conftest.$ac_ext >&5
928 CPP="${CC-cc} -nologo -E"
929 cat > conftest.$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
936 { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
938 if test -z "$ac_err"; then
942 echo "configure: failed program was:" >&5
943 cat conftest.$ac_ext >&5
952 ac_cv_prog_CPP="$CPP"
954 CPP="$ac_cv_prog_CPP"
956 ac_cv_prog_CPP="$CPP"
958 echo "$ac_t""$CPP" 1>&6
962 # Find a good install program. We prefer a C program (faster),
963 # so one script is as good as another. But avoid the broken or
964 # incompatible versions:
965 # SysV /etc/install, /usr/sbin/install
966 # SunOS /usr/etc/install
969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
972 # ./install, which can be erroneously created by make from ./install.sh.
973 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
974 echo "configure:975: checking for a BSD compatible install" >&5
975 if test -z "$INSTALL"; then
976 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
980 for ac_dir in $PATH; do
981 # Account for people who put trailing slashes in PATH elements.
983 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
985 # OSF1 and SCO ODT 3.0 have their own names for install.
986 # Don't use installbsd from OSF since it installs stuff as root
988 for ac_prog in ginstall scoinst install; do
989 if test -f $ac_dir/$ac_prog; then
990 if test $ac_prog = install &&
991 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
992 # AIX install. It has an incompatible calling convention.
995 ac_cv_path_install="$ac_dir/$ac_prog -c"
1006 if test "${ac_cv_path_install+set}" = set; then
1007 INSTALL="$ac_cv_path_install"
1009 # As a last resort, use the slow shell script. We don't cache a
1010 # path for INSTALL within a source directory, because that will
1011 # break other packages using the cache if that directory is
1012 # removed, or if the path is relative.
1013 INSTALL="$ac_install_sh"
1016 echo "$ac_t""$INSTALL" 1>&6
1018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1019 # It thinks the first close brace ends the variable substitution.
1020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1027 echo $ac_n "checking for working const""... $ac_c" 1>&6
1028 echo "configure:1029: checking for working const" >&5
1029 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1038 /* Ultrix mips cc rejects this. */
1039 typedef int charset[2]; const charset x = {0,0};
1040 /* SunOS 4.1.1 cc rejects this. */
1041 char const *const *ccp;
1043 /* NEC SVR4.0.2 mips cc rejects this. */
1044 struct point {int x, y;};
1045 static struct point const zero = {0,0};
1046 /* AIX XL C 1.02.0.0 rejects this.
1047 It does not let you subtract one const X* pointer from another in an arm
1048 of an if-expression whose if-part is not a constant expression */
1049 const char *g = "string";
1050 ccp = &g + (g ? g-g : 0);
1051 /* HPUX 7.0 cc rejects these. */
1054 ccp = (char const *const *) p;
1055 { /* SCO 3.2v4 cc rejects this. */
1057 char const *s = 0 ? (char *) 0 : (char const *) 0;
1061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1063 const int *foo = &x[0];
1066 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1067 typedef const int *iptr;
1071 { /* AIX XL C 1.02.0.0 rejects this saying
1072 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1073 struct s { int j; const int *ap[3]; };
1074 struct s *b; b->j = 5;
1076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1082 if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1094 echo "$ac_t""$ac_cv_c_const" 1>&6
1095 if test $ac_cv_c_const = no; then
1096 cat >> confdefs.h <<\EOF
1102 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether byte ordering is bigendian" >&5
1104 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 ac_cv_c_bigendian=unknown
1108 # See if sys/param.h defines the BYTE_ORDER macro.
1109 cat > conftest.$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1112 #include <sys/types.h>
1113 #include <sys/param.h>
1116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1121 if { (eval echo configure:1122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1123 # It does; now see whether it defined to BIG_ENDIAN or not.
1124 cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1127 #include <sys/types.h>
1128 #include <sys/param.h>
1131 #if BYTE_ORDER != BIG_ENDIAN
1136 if { (eval echo configure:1137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1138 ac_cv_c_bigendian=yes
1140 echo "configure: failed program was:" >&5
1141 cat conftest.$ac_ext >&5
1143 ac_cv_c_bigendian=no
1147 echo "configure: failed program was:" >&5
1148 cat conftest.$ac_ext >&5
1151 if test $ac_cv_c_bigendian = unknown; then
1152 if test "$cross_compiling" = yes; then
1153 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1155 cat > conftest.$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1159 /* Are we little or big endian? From Harbison&Steele. */
1163 char c[sizeof (long)];
1166 exit (u.c[sizeof (long) - 1] == 1);
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1171 ac_cv_c_bigendian=no
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1176 ac_cv_c_bigendian=yes
1184 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1185 if test $ac_cv_c_bigendian = yes; then
1186 cat >> confdefs.h <<\EOF
1187 #define WORDS_BIGENDIAN 1
1193 for ac_func in gettimeofday select strerror strtod strtol
1195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_func" >&5
1197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1203 /* System header to define __stub macros and hopefully few prototypes,
1204 which can conflict with char $ac_func(); below. */
1206 /* Override any gcc2 internal prototype to avoid an error. */
1207 /* We use char because int might match the return type of a gcc2
1208 builtin and then its argument prototype would still apply. */
1213 /* The GNU C library defines this for functions which it implements
1214 to always fail with ENOSYS. Some functions are actually named
1215 something starting with __ and the normal name is an alias. */
1216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1226 eval "ac_cv_func_$ac_func=yes"
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1231 eval "ac_cv_func_$ac_func=no"
1236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1239 cat >> confdefs.h <<EOF
1240 #define $ac_tr_func 1
1244 echo "$ac_t""no" 1>&6
1248 for ac_func in setenv putenv
1250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_func" >&5
1252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* System header to define __stub macros and hopefully few prototypes,
1259 which can conflict with char $ac_func(); below. */
1261 /* Override any gcc2 internal prototype to avoid an error. */
1262 /* We use char because int might match the return type of a gcc2
1263 builtin and then its argument prototype would still apply. */
1268 /* The GNU C library defines this for functions which it implements
1269 to always fail with ENOSYS. Some functions are actually named
1270 something starting with __ and the normal name is an alias. */
1271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1279 if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1281 eval "ac_cv_func_$ac_func=yes"
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 eval "ac_cv_func_$ac_func=no"
1291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1292 echo "$ac_t""yes" 1>&6
1293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1294 cat >> confdefs.h <<EOF
1295 #define $ac_tr_func 1
1299 echo "$ac_t""no" 1>&6
1303 echo $ac_n "checking for connect""... $ac_c" 1>&6
1304 echo "configure:1305: checking for connect" >&5
1305 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* System header to define __stub macros and hopefully few prototypes,
1312 which can conflict with char connect(); below. */
1314 /* Override any gcc2 internal prototype to avoid an error. */
1315 /* We use char because int might match the return type of a gcc2
1316 builtin and then its argument prototype would still apply. */
1321 /* The GNU C library defines this for functions which it implements
1322 to always fail with ENOSYS. Some functions are actually named
1323 something starting with __ and the normal name is an alias. */
1324 #if defined (__stub_connect) || defined (__stub___connect)
1332 if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1334 eval "ac_cv_func_connect=yes"
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1339 eval "ac_cv_func_connect=no"
1344 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1348 echo "$ac_t""no" 1>&6
1349 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1350 echo "configure:1351: checking for connect in -lsocket" >&5
1351 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 ac_save_LIBS="$LIBS"
1356 LIBS="-lsocket $LIBS"
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1371 eval "ac_cv_lib_$ac_lib_var=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 eval "ac_cv_lib_$ac_lib_var=no"
1379 LIBS="$ac_save_LIBS"
1382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1383 echo "$ac_t""yes" 1>&6
1384 LIB=${LIB}" -lsocket"
1386 echo "$ac_t""no" 1>&6
1391 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1392 echo "configure:1393: checking for gethostbyname" >&5
1393 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 /* System header to define __stub macros and hopefully few prototypes,
1400 which can conflict with char gethostbyname(); below. */
1402 /* Override any gcc2 internal prototype to avoid an error. */
1403 /* We use char because int might match the return type of a gcc2
1404 builtin and then its argument prototype would still apply. */
1405 char gethostbyname();
1409 /* The GNU C library defines this for functions which it implements
1410 to always fail with ENOSYS. Some functions are actually named
1411 something starting with __ and the normal name is an alias. */
1412 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1422 eval "ac_cv_func_gethostbyname=yes"
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1427 eval "ac_cv_func_gethostbyname=no"
1432 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1433 echo "$ac_t""yes" 1>&6
1436 echo "$ac_t""no" 1>&6
1437 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1438 echo "configure:1439: checking for gethostbyname in -lnsl" >&5
1439 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 ac_save_LIBS="$LIBS"
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 /* Override any gcc2 internal prototype to avoid an error. */
1449 /* We use char because int might match the return type of a gcc2
1450 builtin and then its argument prototype would still apply. */
1451 char gethostbyname();
1457 if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1459 eval "ac_cv_lib_$ac_lib_var=yes"
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1464 eval "ac_cv_lib_$ac_lib_var=no"
1467 LIBS="$ac_save_LIBS"
1470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1471 echo "$ac_t""yes" 1>&6
1474 echo "$ac_t""no" 1>&6
1479 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1480 echo "configure:1481: checking for nanosleep" >&5
1481 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 /* System header to define __stub macros and hopefully few prototypes,
1488 which can conflict with char nanosleep(); below. */
1490 /* Override any gcc2 internal prototype to avoid an error. */
1491 /* We use char because int might match the return type of a gcc2
1492 builtin and then its argument prototype would still apply. */
1497 /* The GNU C library defines this for functions which it implements
1498 to always fail with ENOSYS. Some functions are actually named
1499 something starting with __ and the normal name is an alias. */
1500 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1508 if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1510 eval "ac_cv_func_nanosleep=yes"
1512 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1515 eval "ac_cv_func_nanosleep=no"
1520 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1521 echo "$ac_t""yes" 1>&6
1524 echo "$ac_t""no" 1>&6
1525 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1526 echo "configure:1527: checking for nanosleep in -lrt" >&5
1527 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 ac_save_LIBS="$LIBS"
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 /* Override any gcc2 internal prototype to avoid an error. */
1537 /* We use char because int might match the return type of a gcc2
1538 builtin and then its argument prototype would still apply. */
1545 if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1547 eval "ac_cv_lib_$ac_lib_var=yes"
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1552 eval "ac_cv_lib_$ac_lib_var=no"
1555 LIBS="$ac_save_LIBS"
1558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1559 echo "$ac_t""yes" 1>&6
1562 echo "$ac_t""no" 1>&6
1563 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1564 echo "configure:1565: checking for nanosleep in -lposix4" >&5
1565 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 ac_save_LIBS="$LIBS"
1570 LIBS="-lposix4 $LIBS"
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574 /* Override any gcc2 internal prototype to avoid an error. */
1575 /* We use char because int might match the return type of a gcc2
1576 builtin and then its argument prototype would still apply. */
1583 if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1585 eval "ac_cv_lib_$ac_lib_var=yes"
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1590 eval "ac_cv_lib_$ac_lib_var=no"
1593 LIBS="$ac_save_LIBS"
1596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1597 echo "$ac_t""yes" 1>&6
1598 LIB=${LIB}" -lposix4"
1600 echo "$ac_t""no" 1>&6
1607 for ac_func in usleep
1609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_func" >&5
1611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 /* System header to define __stub macros and hopefully few prototypes,
1618 which can conflict with char $ac_func(); below. */
1620 /* Override any gcc2 internal prototype to avoid an error. */
1621 /* We use char because int might match the return type of a gcc2
1622 builtin and then its argument prototype would still apply. */
1627 /* The GNU C library defines this for functions which it implements
1628 to always fail with ENOSYS. Some functions are actually named
1629 something starting with __ and the normal name is an alias. */
1630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1640 eval "ac_cv_func_$ac_func=yes"
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1645 eval "ac_cv_func_$ac_func=no"
1650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1651 echo "$ac_t""yes" 1>&6
1652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1653 cat >> confdefs.h <<EOF
1654 #define $ac_tr_func 1
1658 echo "$ac_t""no" 1>&6
1662 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1663 echo "configure:1664: checking for inet_aton" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char inet_aton(); below. */
1673 /* Override any gcc2 internal prototype to avoid an error. */
1674 /* We use char because int might match the return type of a gcc2
1675 builtin and then its argument prototype would still apply. */
1680 /* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 eval "ac_cv_func_inet_aton=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 eval "ac_cv_func_inet_aton=no"
1703 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1707 echo "$ac_t""no" 1>&6
1708 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1709 echo "configure:1710: checking for inet_aton in -lresolv" >&5
1710 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 ac_save_LIBS="$LIBS"
1715 LIBS="-lresolv $LIBS"
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 /* Override any gcc2 internal prototype to avoid an error. */
1720 /* We use char because int might match the return type of a gcc2
1721 builtin and then its argument prototype would still apply. */
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730 eval "ac_cv_lib_$ac_lib_var=yes"
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 eval "ac_cv_lib_$ac_lib_var=no"
1738 LIBS="$ac_save_LIBS"
1741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 LIB=${LIB}" -lresolv"
1745 echo "$ac_t""no" 1>&6
1750 for ac_func in vasprintf
1752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_func" >&5
1754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $ac_func(); below. */
1763 /* Override any gcc2 internal prototype to avoid an error. */
1764 /* We use char because int might match the return type of a gcc2
1765 builtin and then its argument prototype would still apply. */
1770 /* The GNU C library defines this for functions which it implements
1771 to always fail with ENOSYS. Some functions are actually named
1772 something starting with __ and the normal name is an alias. */
1773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1783 eval "ac_cv_func_$ac_func=yes"
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1788 eval "ac_cv_func_$ac_func=no"
1793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1796 cat >> confdefs.h <<EOF
1797 #define $ac_tr_func 1
1801 echo "$ac_t""no" 1>&6
1806 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1807 echo "configure:1808: checking for getopt_long" >&5
1808 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char getopt_long(); below. */
1817 /* Override any gcc2 internal prototype to avoid an error. */
1818 /* We use char because int might match the return type of a gcc2
1819 builtin and then its argument prototype would still apply. */
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1837 eval "ac_cv_func_getopt_long=yes"
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 eval "ac_cv_func_getopt_long=no"
1847 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1849 cat >> confdefs.h <<\EOF
1850 #define HAVE_GETOPT_LONG 1
1854 echo "$ac_t""no" 1>&6
1855 # FreeBSD has a gnugetopt library for this:
1856 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1857 echo "configure:1858: checking for getopt_long in -lgnugetopt" >&5
1858 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 ac_save_LIBS="$LIBS"
1863 LIBS="-lgnugetopt $LIBS"
1864 cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 /* Override any gcc2 internal prototype to avoid an error. */
1868 /* We use char because int might match the return type of a gcc2
1869 builtin and then its argument prototype would still apply. */
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1878 eval "ac_cv_lib_$ac_lib_var=yes"
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1883 eval "ac_cv_lib_$ac_lib_var=no"
1886 LIBS="$ac_save_LIBS"
1889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1890 echo "$ac_t""yes" 1>&6
1891 cat >> confdefs.h <<\EOF
1892 #define HAVE_GETOPT_LONG 1
1894 LIB=${LIB}" -lgnugetopt"
1896 echo "$ac_t""no" 1>&6
1897 GETOPT="extras/GNUgetopt/getopt.o extras/GNUgetopt/getopt1.o"
1904 for ac_hdr in unistd.h
1906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1908 echo "configure:1909: checking for $ac_hdr" >&5
1909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1918 { (eval echo configure:1919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1920 if test -z "$ac_err"; then
1922 eval "ac_cv_header_$ac_safe=yes"
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 eval "ac_cv_header_$ac_safe=no"
1932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1933 echo "$ac_t""yes" 1>&6
1934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1935 cat >> confdefs.h <<EOF
1936 #define $ac_tr_hdr 1
1940 echo "$ac_t""no" 1>&6
1944 for ac_func in getpagesize
1946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_func" >&5
1948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $ac_func(); below. */
1957 /* Override any gcc2 internal prototype to avoid an error. */
1958 /* We use char because int might match the return type of a gcc2
1959 builtin and then its argument prototype would still apply. */
1964 /* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977 eval "ac_cv_func_$ac_func=yes"
1979 echo "configure: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1982 eval "ac_cv_func_$ac_func=no"
1987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1990 cat >> confdefs.h <<EOF
1991 #define $ac_tr_func 1
1995 echo "$ac_t""no" 1>&6
1999 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2000 echo "configure:2001: checking for working mmap" >&5
2001 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 if test "$cross_compiling" = yes; then
2005 ac_cv_func_mmap_fixed_mapped=no
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2011 /* Thanks to Mike Haertel and Jim Avera for this test.
2012 Here is a matrix of mmap possibilities:
2013 mmap private not fixed
2014 mmap private fixed at somewhere currently unmapped
2015 mmap private fixed at somewhere already mapped
2016 mmap shared not fixed
2017 mmap shared fixed at somewhere currently unmapped
2018 mmap shared fixed at somewhere already mapped
2019 For private mappings, we should verify that changes cannot be read()
2020 back from the file, nor mmap's back from the file at a different
2021 address. (There have been systems where private was not correctly
2022 implemented like the infamous i386 svr4.0, and systems where the
2023 VM page cache was not coherent with the filesystem buffer cache
2024 like early versions of FreeBSD and possibly contemporary NetBSD.)
2025 For shared mappings, we should conversely verify that changes get
2026 propogated back to all the places they're supposed to be.
2028 Grep wants private fixed already mapped.
2029 The main things grep needs to know about mmap are:
2030 * does it exist and is it safe to write into the mmap'd area
2031 * how to use it (BSD variants) */
2032 #include <sys/types.h>
2034 #include <sys/mman.h>
2036 #include <sys/stat.h>
2038 #ifdef HAVE_UNISTD_H
2039 # include <unistd.h>
2042 /* This mess was copied from the GNU getpagesize.h. */
2043 #ifndef HAVE_GETPAGESIZE
2045 /* Assume that all systems that can run configure have sys/param.h. */
2046 # ifndef HAVE_SYS_PARAM_H
2047 # define HAVE_SYS_PARAM_H 1
2050 # ifdef _SC_PAGESIZE
2051 # define getpagesize() sysconf(_SC_PAGESIZE)
2052 # else /* no _SC_PAGESIZE */
2053 # ifdef HAVE_SYS_PARAM_H
2054 # include <sys/param.h>
2055 # ifdef EXEC_PAGESIZE
2056 # define getpagesize() EXEC_PAGESIZE
2057 # else /* no EXEC_PAGESIZE */
2059 # define getpagesize() NBPG * CLSIZE
2062 # endif /* no CLSIZE */
2063 # else /* no NBPG */
2065 # define getpagesize() NBPC
2066 # else /* no NBPC */
2068 # define getpagesize() PAGESIZE
2069 # endif /* PAGESIZE */
2070 # endif /* no NBPC */
2071 # endif /* no NBPG */
2072 # endif /* no EXEC_PAGESIZE */
2073 # else /* no HAVE_SYS_PARAM_H */
2074 # define getpagesize() 8192 /* punt totally */
2075 # endif /* no HAVE_SYS_PARAM_H */
2076 # endif /* no _SC_PAGESIZE */
2078 #endif /* no HAVE_GETPAGESIZE */
2081 extern "C" { void *malloc(unsigned); }
2089 char *data, *data2, *data3;
2093 pagesize = getpagesize();
2096 * First, make a file with some known garbage in it.
2098 data = (char*)malloc(pagesize);
2101 for (i = 0; i < pagesize; ++i)
2102 *(data + i) = rand();
2104 fd = creat("conftestmmap", 0600);
2107 if (write(fd, data, pagesize) != pagesize)
2112 * Next, try to mmap the file at a fixed address which
2113 * already has something else allocated at it. If we can,
2114 * also make sure that we see the same garbage.
2116 fd = open("conftestmmap", O_RDWR);
2119 data2 = (char*)malloc(2 * pagesize);
2122 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2123 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2124 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2126 for (i = 0; i < pagesize; ++i)
2127 if (*(data + i) != *(data2 + i))
2131 * Finally, make sure that changes to the mapped area
2132 * do not percolate back to the file as seen by read().
2133 * (This is a bug on some variants of i386 svr4.0.)
2135 for (i = 0; i < pagesize; ++i)
2136 *(data2 + i) = *(data2 + i) + 1;
2137 data3 = (char*)malloc(pagesize);
2140 if (read(fd, data3, pagesize) != pagesize)
2142 for (i = 0; i < pagesize; ++i)
2143 if (*(data + i) != *(data3 + i))
2146 unlink("conftestmmap");
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2153 ac_cv_func_mmap_fixed_mapped=yes
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 ac_cv_func_mmap_fixed_mapped=no
2165 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2166 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2167 cat >> confdefs.h <<\EOF
2173 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2174 echo "configure:2175: checking return type of signal handlers" >&5
2175 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2181 #include <sys/types.h>
2187 extern "C" void (*signal (int, void (*)(int)))(int);
2189 void (*signal ()) ();
2196 if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 ac_cv_type_signal=void
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 ac_cv_type_signal=int
2208 echo "$ac_t""$ac_cv_type_signal" 1>&6
2209 cat >> confdefs.h <<EOF
2210 #define RETSIGTYPE $ac_cv_type_signal
2214 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2215 echo "configure:2216: checking for dlopen in -ldl" >&5
2216 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 ac_save_LIBS="$LIBS"
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 /* Override any gcc2 internal prototype to avoid an error. */
2226 /* We use char because int might match the return type of a gcc2
2227 builtin and then its argument prototype would still apply. */
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2236 eval "ac_cv_lib_$ac_lib_var=yes"
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2241 eval "ac_cv_lib_$ac_lib_var=no"
2244 LIBS="$ac_save_LIBS"
2247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2248 echo "$ac_t""yes" 1>&6
2251 echo "$ac_t""no" 1>&6
2254 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2255 echo "configure:2256: checking for powl in -lm" >&5
2256 ac_lib_var=`echo m'_'powl | 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
2291 echo "$ac_t""no" 1>&6
2294 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2295 echo "configure:2296: checking for pthread_create in -lpthread" >&5
2296 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 ac_save_LIBS="$LIBS"
2301 LIBS="-lpthread $LIBS"
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 /* Override any gcc2 internal prototype to avoid an error. */
2306 /* We use char because int might match the return type of a gcc2
2307 builtin and then its argument prototype would still apply. */
2308 char pthread_create();
2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316 eval "ac_cv_lib_$ac_lib_var=yes"
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2321 eval "ac_cv_lib_$ac_lib_var=no"
2324 LIBS="$ac_save_LIBS"
2327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 LIB=${LIB}" -lpthread"
2331 echo "$ac_t""no" 1>&6
2334 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2335 echo "configure:2336: checking for thread_create in -lthreads" >&5
2336 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 ac_save_LIBS="$LIBS"
2341 LIBS="-lthreads $LIBS"
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 /* Override any gcc2 internal prototype to avoid an error. */
2346 /* We use char because int might match the return type of a gcc2
2347 builtin and then its argument prototype would still apply. */
2348 char thread_create();
2354 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2356 eval "ac_cv_lib_$ac_lib_var=yes"
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2361 eval "ac_cv_lib_$ac_lib_var=no"
2364 LIBS="$ac_save_LIBS"
2367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 LIB=${LIB}" -lthreads"
2371 echo "$ac_t""no" 1>&6
2375 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2376 for ac_hdr in stddef.h
2378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_hdr" >&5
2381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2390 { (eval echo configure:2391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2392 if test -z "$ac_err"; then
2394 eval "ac_cv_header_$ac_safe=yes"
2397 echo "configure: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2400 eval "ac_cv_header_$ac_safe=no"
2404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2407 cat >> confdefs.h <<EOF
2408 #define $ac_tr_hdr 1
2412 echo "$ac_t""no" 1>&6
2416 for ac_hdr in getopt.h
2418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_hdr" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2434 eval "ac_cv_header_$ac_safe=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_header_$ac_safe=no"
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2447 cat >> confdefs.h <<EOF
2448 #define $ac_tr_hdr 1
2452 echo "$ac_t""no" 1>&6
2456 for ac_hdr in sys/sockio.h
2458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_hdr" >&5
2461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2470 { (eval echo configure:2471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2472 if test -z "$ac_err"; then
2474 eval "ac_cv_header_$ac_safe=yes"
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2480 eval "ac_cv_header_$ac_safe=no"
2484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2485 echo "$ac_t""yes" 1>&6
2486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2487 cat >> confdefs.h <<EOF
2488 #define $ac_tr_hdr 1
2492 echo "$ac_t""no" 1>&6
2496 for ac_hdr in fcntl.h sys/time.h unistd.h
2498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_hdr" >&5
2501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510 { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512 if test -z "$ac_err"; then
2514 eval "ac_cv_header_$ac_safe=yes"
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 eval "ac_cv_header_$ac_safe=no"
2524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2527 cat >> confdefs.h <<EOF
2528 #define $ac_tr_hdr 1
2532 echo "$ac_t""no" 1>&6
2536 for ac_hdr in sys/soundcard.h machine/soundcard.h
2538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2554 eval "ac_cv_header_$ac_safe=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_header_$ac_safe=no"
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_hdr 1
2572 echo "$ac_t""no" 1>&6
2576 for ac_hdr in dlfcn.h image.h
2578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_hdr" >&5
2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2590 { (eval echo configure:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2592 if test -z "$ac_err"; then
2594 eval "ac_cv_header_$ac_safe=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 eval "ac_cv_header_$ac_safe=no"
2604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2605 echo "$ac_t""yes" 1>&6
2606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2607 cat >> confdefs.h <<EOF
2608 #define $ac_tr_hdr 1
2612 echo "$ac_t""no" 1>&6
2616 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_hdr" >&5
2621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2634 eval "ac_cv_header_$ac_safe=yes"
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 eval "ac_cv_header_$ac_safe=no"
2644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2647 cat >> confdefs.h <<EOF
2648 #define $ac_tr_hdr 1
2652 echo "$ac_t""no" 1>&6
2656 for ac_hdr in machine/param.h
2658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_hdr" >&5
2661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2670 { (eval echo configure:2671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2672 if test -z "$ac_err"; then
2674 eval "ac_cv_header_$ac_safe=yes"
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2680 eval "ac_cv_header_$ac_safe=no"
2684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2687 cat >> confdefs.h <<EOF
2688 #define $ac_tr_hdr 1
2692 echo "$ac_t""no" 1>&6
2697 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_hdr" >&5
2702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2711 { (eval echo configure:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2713 if test -z "$ac_err"; then
2715 eval "ac_cv_header_$ac_safe=yes"
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2721 eval "ac_cv_header_$ac_safe=no"
2725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2728 cat >> confdefs.h <<EOF
2729 #define $ac_tr_hdr 1
2733 echo "$ac_t""no" 1>&6
2740 CFLAGS="${CFLAGS} -Wall -Werror"
2741 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2742 echo "configure:2743: checking for ntohl in sys/param.h" >&5
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <sys/param.h>
2747 void foo() { int meuh; ntohl(meuh); }
2752 if { (eval echo configure:2753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2754 cat >> confdefs.h <<\EOF
2755 #define NTOHL_IN_SYS_PARAM_H 1
2758 echo "$ac_t""yes" 1>&6
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2763 echo "$ac_t""no" 1>&6
2767 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
2768 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2769 echo "configure:2770: checking if \$CC accepts -rdynamic" >&5
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2778 if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2780 LCFLAGS=${LCFLAGS}" -rdynamic"
2781 echo "$ac_t""yes" 1>&6
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2786 echo "$ac_t""no" 1>&6
2792 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2793 echo "configure:2794: checking for boolean_t in sys/types.h" >&5
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <sys/types.h>
2798 void quux() { boolean_t foo; }
2803 if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2805 cat >> confdefs.h <<\EOF
2806 #define BOOLEAN_T_IN_SYS_TYPES_H 1
2809 echo "$ac_t""yes" 1>&6
2811 echo "configure: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2814 echo "$ac_t""no" 1>&6
2817 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
2818 echo "configure:2819: checking for boolean_t in pthread.h" >&5
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2822 #include <pthread.h>
2823 void quux() { boolean_t foo; }
2828 if { (eval echo configure:2829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2830 cat >> confdefs.h <<\EOF
2831 #define BOOLEAN_T_IN_PTHREAD_H 1
2834 echo "$ac_t""yes" 1>&6
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2839 echo "$ac_t""no" 1>&6
2843 echo $ac_n "checking for working const""... $ac_c" 1>&6
2844 echo "configure:2845: checking for working const" >&5
2845 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2854 /* Ultrix mips cc rejects this. */
2855 typedef int charset[2]; const charset x = {0,0};
2856 /* SunOS 4.1.1 cc rejects this. */
2857 char const *const *ccp;
2859 /* NEC SVR4.0.2 mips cc rejects this. */
2860 struct point {int x, y;};
2861 static struct point const zero = {0,0};
2862 /* AIX XL C 1.02.0.0 rejects this.
2863 It does not let you subtract one const X* pointer from another in an arm
2864 of an if-expression whose if-part is not a constant expression */
2865 const char *g = "string";
2866 ccp = &g + (g ? g-g : 0);
2867 /* HPUX 7.0 cc rejects these. */
2870 ccp = (char const *const *) p;
2871 { /* SCO 3.2v4 cc rejects this. */
2873 char const *s = 0 ? (char *) 0 : (char const *) 0;
2877 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2879 const int *foo = &x[0];
2882 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2883 typedef const int *iptr;
2887 { /* AIX XL C 1.02.0.0 rejects this saying
2888 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2889 struct s { int j; const int *ap[3]; };
2890 struct s *b; b->j = 5;
2892 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2898 if { (eval echo configure:2899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2910 echo "$ac_t""$ac_cv_c_const" 1>&6
2911 if test $ac_cv_c_const = no; then
2912 cat >> confdefs.h <<\EOF
2918 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2919 echo "configure:2920: checking for ANSI C header files" >&5
2920 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2932 { (eval echo configure:2933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2934 if test -z "$ac_err"; then
2936 ac_cv_header_stdc=yes
2939 echo "configure: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2942 ac_cv_header_stdc=no
2946 if test $ac_cv_header_stdc = yes; then
2947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2954 egrep "memchr" >/dev/null 2>&1; then
2958 ac_cv_header_stdc=no
2964 if test $ac_cv_header_stdc = yes; then
2965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "free" >/dev/null 2>&1; then
2976 ac_cv_header_stdc=no
2982 if test $ac_cv_header_stdc = yes; then
2983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2984 if test "$cross_compiling" = yes; then
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2991 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2992 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2994 int main () { int i; for (i = 0; i < 256; i++)
2995 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 ac_cv_header_stdc=no
3014 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3015 if test $ac_cv_header_stdc = yes; then
3016 cat >> confdefs.h <<\EOF
3017 #define STDC_HEADERS 1
3022 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3023 echo "configure:3024: checking for size_t" >&5
3024 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 #include <sys/types.h>
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3039 ac_cv_type_size_t=yes
3042 ac_cv_type_size_t=no
3047 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3048 if test $ac_cv_type_size_t = no; then
3049 cat >> confdefs.h <<\EOF
3050 #define size_t unsigned
3055 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3056 echo "configure:3057: checking whether time.h and sys/time.h may both be included" >&5
3057 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <sys/types.h>
3064 #include <sys/time.h>
3070 if { (eval echo configure:3071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3072 ac_cv_header_time=yes
3074 echo "configure: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3077 ac_cv_header_time=no
3082 echo "$ac_t""$ac_cv_header_time" 1>&6
3083 if test $ac_cv_header_time = yes; then
3084 cat >> confdefs.h <<\EOF
3085 #define TIME_WITH_SYS_TIME 1
3091 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3092 if test x$host_os = xbeos; then
3093 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3095 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3098 for ac_hdr in sys/ioctl.h
3100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_hdr" >&5
3103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3112 { (eval echo configure:3113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3114 if test -z "$ac_err"; then
3116 eval "ac_cv_header_$ac_safe=yes"
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3122 eval "ac_cv_header_$ac_safe=no"
3126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3127 echo "$ac_t""yes" 1>&6
3128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3129 cat >> confdefs.h <<EOF
3130 #define $ac_tr_hdr 1
3132 PLUGINS=${PLUGINS}"dvd "
3133 for ac_hdr in linux/cdrom.h
3135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_hdr" >&5
3138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3147 { (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3149 if test -z "$ac_err"; then
3151 eval "ac_cv_header_$ac_safe=yes"
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3157 eval "ac_cv_header_$ac_safe=no"
3161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3164 cat >> confdefs.h <<EOF
3165 #define $ac_tr_hdr 1
3169 echo "$ac_t""no" 1>&6
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #include <linux/cdrom.h>
3178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3179 egrep "dvd" >/dev/null 2>&1; then
3181 cat >> confdefs.h <<\EOF
3189 echo "$ac_t""no" 1>&6
3195 # Check whether --enable-dummy or --disable-dummy was given.
3196 if test "${enable_dummy+set}" = set; then
3197 enableval="$enable_dummy"
3201 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3202 # Check whether --enable-null or --disable-null was given.
3203 if test "${enable_null+set}" = set; then
3204 enableval="$enable_null"
3208 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3209 # Check whether --enable-ppro or --disable-ppro was given.
3210 if test "${enable_ppro+set}" = set; then
3211 enableval="$enable_ppro"
3212 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3214 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3217 # Check whether --enable-mmx or --disable-mmx was given.
3218 if test "${enable_mmx+set}" = set; then
3219 enableval="$enable_mmx"
3220 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3222 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3225 # Check whether --enable-altivec or --disable-altivec was given.
3226 if test "${enable_altivec+set}" = set; then
3227 enableval="$enable_altivec"
3228 if test x$enableval = xyes; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi
3231 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi ])
3232 # Check whether --enable-css or --disable-css was given.
3233 if test "${enable_css+set}" = set; then
3234 enableval="$enable_css"
3235 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3240 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3244 # Check whether --enable-debug or --disable-debug was given.
3245 if test "${enable_debug+set}" = set; then
3246 enableval="$enable_debug"
3247 if test x$enableval = xyes; then DEBUG=1; fi
3250 # Check whether --enable-stats or --disable-stats was given.
3251 if test "${enable_stats+set}" = set; then
3252 enableval="$enable_stats"
3253 if test x$enableval = xyes; then STATS=1; fi
3256 # Check whether --enable-optimizations or --disable-optimizations was given.
3257 if test "${enable_optimizations+set}" = set; then
3258 enableval="$enable_optimizations"
3259 if test x$enableval = xno; then OPTIMS=0; fi
3267 if test x$host_os = xbeos; then
3268 PLUGINS=${PLUGINS}"beos "
3269 LIB=${LIB}" -lbe -lgame -lroot"
3275 # Check whether --enable-dsp or --disable-dsp was given.
3276 if test "${enable_dsp+set}" = set; then
3277 enableval="$enable_dsp"
3281 if test x$enable_dsp != xno; then
3282 if test -c /dev/dsp; then
3283 PLUGINS=${PLUGINS}"dsp "
3286 # Check whether --enable-esd or --disable-esd was given.
3287 if test "${enable_esd+set}" = set; then
3288 enableval="$enable_esd"
3289 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3292 # Check whether --enable-darwin or --disable-darwin was given.
3293 if test "${enable_darwin+set}" = set; then
3294 enableval="$enable_darwin"
3295 if test x$enable_darwin = xyes; then PLUGINS=${PLUGINS}"darwin "; fi
3298 # Check whether --enable-macosx or --disable-macosx was given.
3299 if test "${enable_macosx+set}" = set; then
3300 enableval="$enable_macosx"
3301 if test x$enable_macosx = xyes; then PLUGINS=${PLUGINS}"macosx "; fi
3303 for ac_hdr in Carbon/Carbon.h
3305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_hdr" >&5
3308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3317 { (eval echo configure:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3319 if test -z "$ac_err"; then
3321 eval "ac_cv_header_$ac_safe=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_header_$ac_safe=no"
3331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3334 cat >> confdefs.h <<EOF
3335 #define $ac_tr_hdr 1
3337 PLUGINS=${PLUGINS}"macosx "
3339 echo "$ac_t""no" 1>&6
3345 # Check whether --enable-fb or --disable-fb was given.
3346 if test "${enable_fb+set}" = set; then
3347 enableval="$enable_fb"
3348 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3351 # Check whether --with-ggi or --without-ggi was given.
3352 if test "${with_ggi+set}" = set; then
3354 if test "x$withval" != "xno";
3356 PLUGINS=${PLUGINS}"ggi ";
3357 if test "x$withval" != "xyes";
3359 LIB_GGI="-l"$withval
3366 # Check whether --with-sdl or --without-sdl was given.
3367 if test "${with_sdl+set}" = set; then
3369 if test "x$withval" != "xno";
3371 PLUGINS=${PLUGINS}"sdl ";
3372 if test "x$withval" != "xyes";
3374 LIB_SDL="-L/usr/X11R6/lib -L"$withval"/lib -l"$withval
3375 INCLUDE=${INCLUDE}" -I"$withval"/include"
3377 for ac_hdr in SDL/SDL.h
3379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3381 echo "configure:3382: checking for $ac_hdr" >&5
3382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3391 { (eval echo configure:3392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3393 if test -z "$ac_err"; then
3395 eval "ac_cv_header_$ac_safe=yes"
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3401 eval "ac_cv_header_$ac_safe=no"
3405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3406 echo "$ac_t""yes" 1>&6
3407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3408 cat >> confdefs.h <<EOF
3409 #define $ac_tr_hdr 1
3413 echo "$ac_t""no" 1>&6
3414 echo "Cannot find SDL headers !"; exit
3418 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3423 if test "x$withval" = "x";
3425 for ac_hdr in SDL/SDL.h
3427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_hdr" >&5
3430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3441 if test -z "$ac_err"; then
3443 eval "ac_cv_header_$ac_safe=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3449 eval "ac_cv_header_$ac_safe=no"
3453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_hdr 1
3459 PLUGINS=${PLUGINS}"sdl "
3460 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3462 echo "$ac_t""no" 1>&6
3467 # Check whether --with-glide or --without-glide was given.
3468 if test "${with_glide+set}" = set; then
3469 withval="$with_glide"
3470 if test "x$withval" != "xno";
3472 PLUGINS=${PLUGINS}"glide ";
3473 if test "x$withval" != "xyes";
3475 LIB_GLIDE="-l"$withval
3477 LIB_GLIDE="-lglide2x"
3482 # Check whether --enable-ncurses or --disable-ncurses was given.
3483 if test "${enable_ncurses+set}" = set; then
3484 enableval="$enable_ncurses"
3485 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3488 # Check whether --enable-qt or --disable-qt was given.
3489 if test "${enable_qt+set}" = set; then
3490 enableval="$enable_qt"
3491 if test x$enable_qt = xyes; then PLUGINS=${PLUGINS}"qt "; ALIASES=${ALIASES}"qvlc "; fi
3494 # Check whether --enable-kde or --disable-kde was given.
3495 if test "${enable_kde+set}" = set; then
3496 enableval="$enable_kde"
3497 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASES=${ALIASES}"kvlc "; fi
3500 # Check whether --enable-gnome or --disable-gnome was given.
3501 if test "${enable_gnome+set}" = set; then
3502 enableval="$enable_gnome"
3503 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3506 # Check whether --enable-gtk or --disable-gtk was given.
3507 if test "${enable_gtk+set}" = set; then
3508 enableval="$enable_gtk"
3512 if test x$enable_gtk != xno; then
3513 if which gtk-config; then
3514 PLUGINS=${PLUGINS}"gtk "
3518 # Check whether --enable-x11 or --disable-x11 was given.
3519 if test "${enable_x11+set}" = set; then
3520 enableval="$enable_x11"
3524 if test x$enable_x11 != xno; then
3525 for ac_hdr in X11/Xlib.h
3527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3529 echo "configure:3530: checking for $ac_hdr" >&5
3530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3539 { (eval echo configure:3540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3541 if test -z "$ac_err"; then
3543 eval "ac_cv_header_$ac_safe=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_header_$ac_safe=no"
3553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3554 echo "$ac_t""yes" 1>&6
3555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3556 cat >> confdefs.h <<EOF
3557 #define $ac_tr_hdr 1
3559 PLUGINS=${PLUGINS}"x11 "
3561 echo "$ac_t""no" 1>&6
3566 # Check whether --enable-xvideo or --disable-xvideo was given.
3567 if test "${enable_xvideo+set}" = set; then
3568 enableval="$enable_xvideo"
3569 if test x$enable_xvideo = xyes; then PLUGINS=${PLUGINS}"xvideo "; fi
3573 # Check whether --enable-alsa or --disable-alsa was given.
3574 if test "${enable_alsa+set}" = set; then
3575 enableval="$enable_alsa"
3576 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3577 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3578 echo "configure:3579: checking for sys/asoundlib.h" >&5
3579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <sys/asoundlib.h>
3587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3588 { (eval echo configure:3589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3590 if test -z "$ac_err"; then
3592 eval "ac_cv_header_$ac_safe=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 eval "ac_cv_header_$ac_safe=no"
3602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3605 echo "configure:3606: checking for main in -lasound" >&5
3606 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 ac_save_LIBS="$LIBS"
3611 LIBS="-lasound $LIBS"
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 eval "ac_cv_lib_$ac_lib_var=yes"
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3627 eval "ac_cv_lib_$ac_lib_var=no"
3630 LIBS="$ac_save_LIBS"
3633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3637 echo "$ac_t""no" 1>&6
3642 echo "$ac_t""no" 1>&6
3645 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3649 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3671 cat > confcache <<\EOF
3672 # This file is a shell script that caches the results of configure
3673 # tests run on this system so they can be shared between configure
3674 # scripts and configure runs. It is not useful on other systems.
3675 # If it contains results you don't want to keep, you may remove or edit it.
3677 # By default, configure uses ./config.cache as the cache file,
3678 # creating it if it does not exist already. You can give configure
3679 # the --cache-file=FILE option to use a different cache file; that is
3680 # what configure does when it calls configure scripts in
3681 # subdirectories, so they share the cache.
3682 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3683 # config.status only pays attention to the cache file if you give it the
3684 # --recheck option to rerun configure.
3687 # The following way of writing the cache mishandles newlines in values,
3688 # but we know of no workaround that is simple, portable, and efficient.
3689 # So, don't put newlines in cache variables' values.
3690 # Ultrix sh set writes to stderr and can't be redirected directly,
3691 # and sets the high bit in the cache file unless we assign to the vars.
3693 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3695 # `set' does not quote correctly, so add quotes (double-quote substitution
3696 # turns \\\\ into \\, and sed turns \\ into \).
3698 -e "s/'/'\\\\''/g" \
3699 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3702 # `set' quotes correctly as required by POSIX, so do not add quotes.
3703 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3706 if cmp -s $cache_file confcache; then
3709 if test -w $cache_file; then
3710 echo "updating cache $cache_file"
3711 cat confcache > $cache_file
3713 echo "not updating unwritable cache $cache_file"
3718 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3721 # Let make expand exec_prefix.
3722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3724 # Any assignment to VPATH causes Sun make to only execute
3725 # the first set of double-colon rules, so remove it if not needed.
3726 # If there is a colon in the path, we need to keep it.
3727 if test "x$srcdir" = x.; then
3728 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3731 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3733 DEFS=-DHAVE_CONFIG_H
3735 # Without the "./", some shells look in PATH for config.status.
3736 : ${CONFIG_STATUS=./config.status}
3738 echo creating $CONFIG_STATUS
3739 rm -f $CONFIG_STATUS
3740 cat > $CONFIG_STATUS <<EOF
3742 # Generated automatically by configure.
3743 # Run this file to recreate the current configuration.
3744 # This directory was configured as follows,
3745 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3747 # $0 $ac_configure_args
3749 # Compiler output produced by configure, useful for debugging
3750 # configure, is in ./config.log if it exists.
3752 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3755 case "\$ac_option" in
3756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3757 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3758 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3759 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3760 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3762 -help | --help | --hel | --he | --h)
3763 echo "\$ac_cs_usage"; exit 0 ;;
3764 *) echo "\$ac_cs_usage"; exit 1 ;;
3768 ac_given_srcdir=$srcdir
3769 ac_given_INSTALL="$INSTALL"
3771 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3773 cat >> $CONFIG_STATUS <<EOF
3775 # Protect against being on the right side of a sed subst in config.status.
3776 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3777 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3781 s%@CFLAGS@%$CFLAGS%g
3782 s%@CPPFLAGS@%$CPPFLAGS%g
3783 s%@CXXFLAGS@%$CXXFLAGS%g
3784 s%@FFLAGS@%$FFLAGS%g
3786 s%@LDFLAGS@%$LDFLAGS%g
3788 s%@exec_prefix@%$exec_prefix%g
3789 s%@prefix@%$prefix%g
3790 s%@program_transform_name@%$program_transform_name%g
3791 s%@bindir@%$bindir%g
3792 s%@sbindir@%$sbindir%g
3793 s%@libexecdir@%$libexecdir%g
3794 s%@datadir@%$datadir%g
3795 s%@sysconfdir@%$sysconfdir%g
3796 s%@sharedstatedir@%$sharedstatedir%g
3797 s%@localstatedir@%$localstatedir%g
3798 s%@libdir@%$libdir%g
3799 s%@includedir@%$includedir%g
3800 s%@oldincludedir@%$oldincludedir%g
3801 s%@infodir@%$infodir%g
3802 s%@mandir@%$mandir%g
3804 s%@host_alias@%$host_alias%g
3805 s%@host_cpu@%$host_cpu%g
3806 s%@host_vendor@%$host_vendor%g
3807 s%@host_os@%$host_os%g
3808 s%@VLC_VERSION@%$VLC_VERSION%g
3809 s%@VLC_CODENAME@%$VLC_CODENAME%g
3810 s%@SET_MAKE@%$SET_MAKE%g
3813 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3814 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3815 s%@INSTALL_DATA@%$INSTALL_DATA%g
3816 s%@GETOPT@%$GETOPT%g
3819 s%@PLUGINS@%$PLUGINS%g
3820 s%@ALIASES@%$ALIASES%g
3821 s%@INCLUDE@%$INCLUDE%g
3824 s%@OPTIMS@%$OPTIMS%g
3826 s%@LCFLAGS@%$LCFLAGS%g
3828 s%@LIB_SDL@%$LIB_SDL%g
3829 s%@LIB_GLIDE@%$LIB_GLIDE%g
3830 s%@LIB_GGI@%$LIB_GGI%g
3835 cat >> $CONFIG_STATUS <<\EOF
3837 # Split the substitutions into bite-sized pieces for seds with
3838 # small command number limits, like on Digital OSF/1 and HP-UX.
3839 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3840 ac_file=1 # Number of current file.
3841 ac_beg=1 # First line for current file.
3842 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3845 while $ac_more_lines; do
3846 if test $ac_beg -gt 1; then
3847 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3849 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3851 if test ! -s conftest.s$ac_file; then
3853 rm -f conftest.s$ac_file
3855 if test -z "$ac_sed_cmds"; then
3856 ac_sed_cmds="sed -f conftest.s$ac_file"
3858 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3860 ac_file=`expr $ac_file + 1`
3862 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3865 if test -z "$ac_sed_cmds"; then
3870 cat >> $CONFIG_STATUS <<EOF
3872 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3874 cat >> $CONFIG_STATUS <<\EOF
3875 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3878 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3879 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3880 *) ac_file_in="${ac_file}.in" ;;
3883 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3885 # Remove last slash and all that follows it. Not all systems have dirname.
3886 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3887 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3888 # The file is in a subdirectory.
3889 test ! -d "$ac_dir" && mkdir "$ac_dir"
3890 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3891 # A "../" for each directory in $ac_dir_suffix.
3892 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3894 ac_dir_suffix= ac_dots=
3897 case "$ac_given_srcdir" in
3899 if test -z "$ac_dots"; then top_srcdir=.
3900 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3901 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3903 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3904 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3907 case "$ac_given_INSTALL" in
3908 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3909 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3912 echo creating "$ac_file"
3914 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3916 *Makefile*) ac_comsub="1i\\
3917 # $configure_input" ;;
3921 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3923 s%@configure_input@%$configure_input%g
3924 s%@srcdir@%$srcdir%g
3925 s%@top_srcdir@%$top_srcdir%g
3926 s%@INSTALL@%$INSTALL%g
3927 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3934 # ac_d sets the value in "#define NAME VALUE" lines.
3935 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3936 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3939 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3940 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3941 ac_uB='\([ ]\)%\1#\2define\3'
3944 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3945 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3946 ac_eB='$%\1#\2define\3'
3950 if test "${CONFIG_HEADERS+set}" != set; then
3952 cat >> $CONFIG_STATUS <<EOF
3953 CONFIG_HEADERS="include/defs.h"
3955 cat >> $CONFIG_STATUS <<\EOF
3957 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3960 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3961 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3962 *) ac_file_in="${ac_file}.in" ;;
3965 echo creating $ac_file
3967 rm -f conftest.frag conftest.in conftest.out
3968 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3969 cat $ac_file_inputs > conftest.in
3973 # Transform confdefs.h into a sed script conftest.vals that substitutes
3974 # the proper values into config.h.in to produce config.h. And first:
3975 # Protect against being on the right side of a sed subst in config.status.
3976 # Protect against being in an unquoted here document in config.status.
3978 cat > conftest.hdr <<\EOF
3981 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3985 sed -n -f conftest.hdr confdefs.h > conftest.vals
3988 # This sed command replaces #undef with comments. This is necessary, for
3989 # example, in the case of _POSIX_SOURCE, which is predefined and required
3990 # on some systems where configure will not decide to define it.
3991 cat >> conftest.vals <<\EOF
3992 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3995 # Break up conftest.vals because some shells have a limit on
3996 # the size of here documents, and old seds have small limits too.
4001 ac_lines=`grep -c . conftest.vals`
4002 # grep -c gives empty output for an empty file on some AIX systems.
4003 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4004 # Write a limited-size here document to conftest.frag.
4005 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4006 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4008 sed -f conftest.frag conftest.in > conftest.out
4010 mv conftest.out conftest.in
4012 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4014 mv conftest.tail conftest.vals
4018 cat >> $CONFIG_STATUS <<\EOF
4019 rm -f conftest.frag conftest.h
4020 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4021 cat conftest.in >> conftest.h
4023 if cmp -s $ac_file conftest.h 2>/dev/null; then
4024 echo "$ac_file is unchanged"
4027 # Remove last slash and all that follows it. Not all systems have dirname.
4028 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4029 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4030 # The file is in a subdirectory.
4031 test ! -d "$ac_dir" && mkdir "$ac_dir"
4034 mv conftest.h $ac_file
4039 cat >> $CONFIG_STATUS <<EOF
4042 cat >> $CONFIG_STATUS <<\EOF
4046 chmod +x $CONFIG_STATUS
4047 rm -fr confdefs* $ac_clean_files
4048 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4054 vlc version : ${VLC_VERSION}
4056 architecture : ${ARCH}
4057 debug mode : ${DEBUG}
4058 statistics : ${STATS}
4059 optimizations : ${OPTIMS}
4060 CSS decryption : ${CSS}
4061 plugins : ${PLUGINS}
4062 vlc aliases : ${ALIASES}