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-activec Enable altivec optimizations (default enabled for PPC)"
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 disabled)"
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-alsa Alsa sound drivers support (Only for linux) (default disabled)"
63 # Initialize some variables set by options.
64 # The variables have the same names as the options, with
65 # dashes changed to underlines.
67 cache_file=./config.cache
76 program_transform_name=s,x,x,
84 bindir='${exec_prefix}/bin'
85 sbindir='${exec_prefix}/sbin'
86 libexecdir='${exec_prefix}/libexec'
87 datadir='${prefix}/share'
88 sysconfdir='${prefix}/etc'
89 sharedstatedir='${prefix}/com'
90 localstatedir='${prefix}/var'
91 libdir='${exec_prefix}/lib'
92 includedir='${prefix}/include'
93 oldincludedir='/usr/include'
94 infodir='${prefix}/info'
95 mandir='${prefix}/man'
97 # Initialize some other variables.
100 SHELL=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127 bindir="$ac_optarg" ;;
129 -build | --build | --buil | --bui | --bu)
131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132 build="$ac_optarg" ;;
134 -cache-file | --cache-file | --cache-fil | --cache-fi \
135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136 ac_prev=cache_file ;;
137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139 cache_file="$ac_optarg" ;;
141 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 datadir="$ac_optarg" ;;
147 -disable-* | --disable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* | --enable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171 | --exec | --exe | --ex)
172 ac_prev=exec_prefix ;;
173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175 | --exec=* | --exe=* | --ex=*)
176 exec_prefix="$ac_optarg" ;;
178 -gas | --gas | --ga | --g)
179 # Obsolete; use --with-gas.
182 -help | --help | --hel | --he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host | --host | --hos | --ho)
239 -host=* | --host=* | --hos=* | --ho=*)
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir="$ac_optarg" ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir="$ac_optarg" ;;
254 -libdir | --libdir | --libdi | --libd)
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir="$ac_optarg" ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir="$ac_optarg" ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir="$ac_optarg" ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir="$ac_optarg" ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix="$ac_optarg" ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix="$ac_optarg" ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix="$ac_optarg" ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name="$ac_optarg" ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 sbindir="$ac_optarg" ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 sharedstatedir="$ac_optarg" ;;
358 -site | --site | --sit)
360 -site=* | --site=* | --sit=*)
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir="$ac_optarg" ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir="$ac_optarg" ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target="$ac_optarg" ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 -version | --version | --versio | --versi | --vers)
384 echo "configure generated by autoconf version 2.13"
388 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes="$ac_optarg" ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476 | --no-cr | --no-c) ;;
477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file=src/interface/main.c
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE; then
530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
546 echo "creating cache $cache_file"
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp='$CPP $CPPFLAGS'
553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling=$ac_cv_prog_cc_cross
559 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
560 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
561 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='\c' ac_t=
575 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
576 if test -f $ac_dir/install-sh; then
578 ac_install_sh="$ac_aux_dir/install-sh -c"
580 elif test -f $ac_dir/install.sh; then
582 ac_install_sh="$ac_aux_dir/install.sh -c"
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
589 ac_config_guess=$ac_aux_dir/config.guess
590 ac_config_sub=$ac_aux_dir/config.sub
591 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
594 # Make sure we can run config.sub.
595 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
596 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599 echo $ac_n "checking host system type""... $ac_c" 1>&6
600 echo "configure:601: checking host system type" >&5
603 case "$host_alias" in
607 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
608 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
610 *) host_alias=$nonopt ;;
614 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
615 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
616 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
617 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
618 echo "$ac_t""$host" 1>&6
626 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
627 echo "configure:628: checking whether ${MAKE-make} sets \${MAKE}" >&5
628 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
629 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 cat > conftestmake <<\EOF
634 @echo 'ac_maketemp="${MAKE}"'
636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
637 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
638 if test -n "$ac_maketemp"; then
639 eval ac_cv_prog_make_${ac_make}_set=yes
641 eval ac_cv_prog_make_${ac_make}_set=no
645 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
646 echo "$ac_t""yes" 1>&6
649 echo "$ac_t""no" 1>&6
650 SET_MAKE="MAKE=${MAKE-make}"
653 if test -z "$CC"; then
654 # Extract the first word of "gcc", so it can be a program name with args.
655 set dummy gcc; ac_word=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
661 if test -n "$CC"; then
662 ac_cv_prog_CC="$CC" # Let the user override the test.
664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
666 for ac_dir in $ac_dummy; do
667 test -z "$ac_dir" && ac_dir=.
668 if test -f $ac_dir/$ac_word; then
677 if test -n "$CC"; then
678 echo "$ac_t""$CC" 1>&6
680 echo "$ac_t""no" 1>&6
683 if test -z "$CC"; then
684 # Extract the first word of "cc", so it can be a program name with args.
685 set dummy cc; ac_word=$2
686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687 echo "configure:688: checking for $ac_word" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 if test -n "$CC"; then
692 ac_cv_prog_CC="$CC" # Let the user override the test.
694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
697 for ac_dir in $ac_dummy; do
698 test -z "$ac_dir" && ac_dir=.
699 if test -f $ac_dir/$ac_word; then
700 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
709 if test $ac_prog_rejected = yes; then
710 # We found a bogon in the path, so make sure we never use it.
711 set dummy $ac_cv_prog_CC
713 if test $# -gt 0; then
714 # We chose a different compiler from the bogus one.
715 # However, it has the same basename, so the bogon will be chosen
716 # first if we set CC to just the basename; use the full file name.
718 set dummy "$ac_dir/$ac_word" "$@"
726 if test -n "$CC"; then
727 echo "$ac_t""$CC" 1>&6
729 echo "$ac_t""no" 1>&6
732 if test -z "$CC"; then
735 # Extract the first word of "cl", so it can be a program name with args.
736 set dummy cl; ac_word=$2
737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738 echo "configure:739: checking for $ac_word" >&5
739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 if test -n "$CC"; then
743 ac_cv_prog_CC="$CC" # Let the user override the test.
745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
747 for ac_dir in $ac_dummy; do
748 test -z "$ac_dir" && ac_dir=.
749 if test -f $ac_dir/$ac_word; then
758 if test -n "$CC"; then
759 echo "$ac_t""$CC" 1>&6
761 echo "$ac_t""no" 1>&6
766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
770 echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774 ac_cpp='$CPP $CPPFLAGS'
775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777 cross_compiling=$ac_cv_prog_cc_cross
779 cat > conftest.$ac_ext << EOF
781 #line 782 "configure"
782 #include "confdefs.h"
786 if { (eval echo configure:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
787 ac_cv_prog_cc_works=yes
788 # If we can't run a trivial program, we are probably using a cross compiler.
789 if (./conftest; exit) 2>/dev/null; then
790 ac_cv_prog_cc_cross=no
792 ac_cv_prog_cc_cross=yes
795 echo "configure: failed program was:" >&5
796 cat conftest.$ac_ext >&5
797 ac_cv_prog_cc_works=no
801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802 ac_cpp='$CPP $CPPFLAGS'
803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805 cross_compiling=$ac_cv_prog_cc_cross
807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808 if test $ac_cv_prog_cc_works = no; then
809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812 echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814 cross_compiling=$ac_cv_prog_cc_cross
816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817 echo "configure:818: checking whether we are using GNU C" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 cat > conftest.c <<EOF
826 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
833 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
835 if test $ac_cv_prog_gcc = yes; then
841 ac_test_CFLAGS="${CFLAGS+set}"
842 ac_save_CFLAGS="$CFLAGS"
844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 echo 'void f(){}' > conftest.c
850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860 if test "$ac_test_CFLAGS" = set; then
861 CFLAGS="$ac_save_CFLAGS"
862 elif test $ac_cv_prog_cc_g = yes; then
863 if test "$GCC" = yes; then
869 if test "$GCC" = yes; then
877 if test -z "$CPP"; then
878 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
879 echo "configure:880: checking how to run the C preprocessor" >&5
880 # On Suns, sometimes $CPP names a directory.
881 if test -n "$CPP" && test -d "$CPP"; then
884 if test -z "$CPP"; then
885 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 # This must be in double quotes, not single quotes, because CPP may get
889 # substituted into the Makefile and "${CC-cc}" will confuse make.
891 # On the NeXT, cc -E runs the code through the compiler's parser,
892 # not just through cpp.
893 cat > conftest.$ac_ext <<EOF
894 #line 895 "configure"
895 #include "confdefs.h"
899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
900 { (eval echo configure:901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
902 if test -z "$ac_err"; then
906 echo "configure: failed program was:" >&5
907 cat conftest.$ac_ext >&5
909 CPP="${CC-cc} -E -traditional-cpp"
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
917 { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
919 if test -z "$ac_err"; then
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
926 CPP="${CC-cc} -nologo -E"
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
936 if test -z "$ac_err"; then
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
950 ac_cv_prog_CPP="$CPP"
952 CPP="$ac_cv_prog_CPP"
954 ac_cv_prog_CPP="$CPP"
956 echo "$ac_t""$CPP" 1>&6
960 # Find a good install program. We prefer a C program (faster),
961 # so one script is as good as another. But avoid the broken or
962 # incompatible versions:
963 # SysV /etc/install, /usr/sbin/install
964 # SunOS /usr/etc/install
967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
970 # ./install, which can be erroneously created by make from ./install.sh.
971 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
972 echo "configure:973: checking for a BSD compatible install" >&5
973 if test -z "$INSTALL"; then
974 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
978 for ac_dir in $PATH; do
979 # Account for people who put trailing slashes in PATH elements.
981 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
983 # OSF1 and SCO ODT 3.0 have their own names for install.
984 # Don't use installbsd from OSF since it installs stuff as root
986 for ac_prog in ginstall scoinst install; do
987 if test -f $ac_dir/$ac_prog; then
988 if test $ac_prog = install &&
989 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
990 # AIX install. It has an incompatible calling convention.
993 ac_cv_path_install="$ac_dir/$ac_prog -c"
1004 if test "${ac_cv_path_install+set}" = set; then
1005 INSTALL="$ac_cv_path_install"
1007 # As a last resort, use the slow shell script. We don't cache a
1008 # path for INSTALL within a source directory, because that will
1009 # break other packages using the cache if that directory is
1010 # removed, or if the path is relative.
1011 INSTALL="$ac_install_sh"
1014 echo "$ac_t""$INSTALL" 1>&6
1016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1017 # It thinks the first close brace ends the variable substitution.
1018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1022 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1025 echo $ac_n "checking for working const""... $ac_c" 1>&6
1026 echo "configure:1027: checking for working const" >&5
1027 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1036 /* Ultrix mips cc rejects this. */
1037 typedef int charset[2]; const charset x;
1038 /* SunOS 4.1.1 cc rejects this. */
1039 char const *const *ccp;
1041 /* NEC SVR4.0.2 mips cc rejects this. */
1042 struct point {int x, y;};
1043 static struct point const zero = {0,0};
1044 /* AIX XL C 1.02.0.0 rejects this.
1045 It does not let you subtract one const X* pointer from another in an arm
1046 of an if-expression whose if-part is not a constant expression */
1047 const char *g = "string";
1048 ccp = &g + (g ? g-g : 0);
1049 /* HPUX 7.0 cc rejects these. */
1052 ccp = (char const *const *) p;
1053 { /* SCO 3.2v4 cc rejects this. */
1055 char const *s = 0 ? (char *) 0 : (char const *) 0;
1059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1061 const int *foo = &x[0];
1064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1065 typedef const int *iptr;
1069 { /* AIX XL C 1.02.0.0 rejects this saying
1070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1071 struct s { int j; const int *ap[3]; };
1072 struct s *b; b->j = 5;
1074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1080 if { (eval echo configure:1081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1084 echo "configure: failed program was:" >&5
1085 cat conftest.$ac_ext >&5
1092 echo "$ac_t""$ac_cv_c_const" 1>&6
1093 if test $ac_cv_c_const = no; then
1094 cat >> confdefs.h <<\EOF
1100 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether byte ordering is bigendian" >&5
1102 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 ac_cv_c_bigendian=unknown
1106 # See if sys/param.h defines the BYTE_ORDER macro.
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1110 #include <sys/types.h>
1111 #include <sys/param.h>
1114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1119 if { (eval echo configure:1120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1121 # It does; now see whether it defined to BIG_ENDIAN or not.
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1125 #include <sys/types.h>
1126 #include <sys/param.h>
1129 #if BYTE_ORDER != BIG_ENDIAN
1134 if { (eval echo configure:1135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1136 ac_cv_c_bigendian=yes
1138 echo "configure: failed program was:" >&5
1139 cat conftest.$ac_ext >&5
1141 ac_cv_c_bigendian=no
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1149 if test $ac_cv_c_bigendian = unknown; then
1150 if test "$cross_compiling" = yes; then
1151 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1157 /* Are we little or big endian? From Harbison&Steele. */
1161 char c[sizeof (long)];
1164 exit (u.c[sizeof (long) - 1] == 1);
1167 if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1169 ac_cv_c_bigendian=no
1171 echo "configure: failed program was:" >&5
1172 cat conftest.$ac_ext >&5
1174 ac_cv_c_bigendian=yes
1182 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1183 if test $ac_cv_c_bigendian = yes; then
1184 cat >> confdefs.h <<\EOF
1185 #define WORDS_BIGENDIAN 1
1191 for ac_func in gettimeofday select strerror strtod strtol
1193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_func" >&5
1195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201 /* System header to define __stub macros and hopefully few prototypes,
1202 which can conflict with char $ac_func(); below. */
1204 /* Override any gcc2 internal prototype to avoid an error. */
1205 /* We use char because int might match the return type of a gcc2
1206 builtin and then its argument prototype would still apply. */
1211 /* The GNU C library defines this for functions which it implements
1212 to always fail with ENOSYS. Some functions are actually named
1213 something starting with __ and the normal name is an alias. */
1214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1222 if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1224 eval "ac_cv_func_$ac_func=yes"
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1229 eval "ac_cv_func_$ac_func=no"
1234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1237 cat >> confdefs.h <<EOF
1238 #define $ac_tr_func 1
1242 echo "$ac_t""no" 1>&6
1246 for ac_func in setenv putenv
1248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_func" >&5
1250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1256 /* System header to define __stub macros and hopefully few prototypes,
1257 which can conflict with char $ac_func(); below. */
1259 /* Override any gcc2 internal prototype to avoid an error. */
1260 /* We use char because int might match the return type of a gcc2
1261 builtin and then its argument prototype would still apply. */
1266 /* The GNU C library defines this for functions which it implements
1267 to always fail with ENOSYS. Some functions are actually named
1268 something starting with __ and the normal name is an alias. */
1269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1279 eval "ac_cv_func_$ac_func=yes"
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1284 eval "ac_cv_func_$ac_func=no"
1289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1290 echo "$ac_t""yes" 1>&6
1291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1292 cat >> confdefs.h <<EOF
1293 #define $ac_tr_func 1
1297 echo "$ac_t""no" 1>&6
1301 echo $ac_n "checking for connect""... $ac_c" 1>&6
1302 echo "configure:1303: checking for connect" >&5
1303 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1309 /* System header to define __stub macros and hopefully few prototypes,
1310 which can conflict with char connect(); below. */
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1319 /* The GNU C library defines this for functions which it implements
1320 to always fail with ENOSYS. Some functions are actually named
1321 something starting with __ and the normal name is an alias. */
1322 #if defined (__stub_connect) || defined (__stub___connect)
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1332 eval "ac_cv_func_connect=yes"
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1337 eval "ac_cv_func_connect=no"
1342 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1347 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1348 echo "configure:1349: checking for connect in -lsocket" >&5
1349 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 ac_save_LIBS="$LIBS"
1354 LIBS="-lsocket $LIBS"
1355 cat > conftest.$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1358 /* Override any gcc2 internal prototype to avoid an error. */
1359 /* We use char because int might match the return type of a gcc2
1360 builtin and then its argument prototype would still apply. */
1367 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1369 eval "ac_cv_lib_$ac_lib_var=yes"
1371 echo "configure: failed program was:" >&5
1372 cat conftest.$ac_ext >&5
1374 eval "ac_cv_lib_$ac_lib_var=no"
1377 LIBS="$ac_save_LIBS"
1380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1381 echo "$ac_t""yes" 1>&6
1382 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1383 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1384 cat >> confdefs.h <<EOF
1385 #define $ac_tr_lib 1
1388 LIBS="-lsocket $LIBS"
1391 echo "$ac_t""no" 1>&6
1396 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1397 echo "configure:1398: checking for gethostbyname" >&5
1398 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404 /* System header to define __stub macros and hopefully few prototypes,
1405 which can conflict with char gethostbyname(); below. */
1407 /* Override any gcc2 internal prototype to avoid an error. */
1408 /* We use char because int might match the return type of a gcc2
1409 builtin and then its argument prototype would still apply. */
1410 char gethostbyname();
1414 /* The GNU C library defines this for functions which it implements
1415 to always fail with ENOSYS. Some functions are actually named
1416 something starting with __ and the normal name is an alias. */
1417 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1425 if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1427 eval "ac_cv_func_gethostbyname=yes"
1429 echo "configure: failed program was:" >&5
1430 cat conftest.$ac_ext >&5
1432 eval "ac_cv_func_gethostbyname=no"
1437 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1438 echo "$ac_t""yes" 1>&6
1441 echo "$ac_t""no" 1>&6
1442 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1443 echo "configure:1444: checking for gethostbyname in -lnsl" >&5
1444 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 ac_save_LIBS="$LIBS"
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 /* Override any gcc2 internal prototype to avoid an error. */
1454 /* We use char because int might match the return type of a gcc2
1455 builtin and then its argument prototype would still apply. */
1456 char gethostbyname();
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1464 eval "ac_cv_lib_$ac_lib_var=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 eval "ac_cv_lib_$ac_lib_var=no"
1472 LIBS="$ac_save_LIBS"
1475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1479 cat >> confdefs.h <<EOF
1480 #define $ac_tr_lib 1
1486 echo "$ac_t""no" 1>&6
1491 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1492 echo "configure:1493: checking for nanosleep" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500 which can conflict with char nanosleep(); below. */
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1509 /* The GNU C library defines this for functions which it implements
1510 to always fail with ENOSYS. Some functions are actually named
1511 something starting with __ and the normal name is an alias. */
1512 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1522 eval "ac_cv_func_nanosleep=yes"
1524 echo "configure: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1527 eval "ac_cv_func_nanosleep=no"
1532 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1536 echo "$ac_t""no" 1>&6
1537 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1538 echo "configure:1539: checking for nanosleep in -lrt" >&5
1539 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 ac_save_LIBS="$LIBS"
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 /* Override any gcc2 internal prototype to avoid an error. */
1549 /* We use char because int might match the return type of a gcc2
1550 builtin and then its argument prototype would still apply. */
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1559 eval "ac_cv_lib_$ac_lib_var=yes"
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 eval "ac_cv_lib_$ac_lib_var=no"
1567 LIBS="$ac_save_LIBS"
1570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1571 echo "$ac_t""yes" 1>&6
1572 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1574 cat >> confdefs.h <<EOF
1575 #define $ac_tr_lib 1
1581 echo "$ac_t""no" 1>&6
1582 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1583 echo "configure:1584: checking for nanosleep in -lposix4" >&5
1584 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 ac_save_LIBS="$LIBS"
1589 LIBS="-lposix4 $LIBS"
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 /* Override any gcc2 internal prototype to avoid an error. */
1594 /* We use char because int might match the return type of a gcc2
1595 builtin and then its argument prototype would still apply. */
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1604 eval "ac_cv_lib_$ac_lib_var=yes"
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1609 eval "ac_cv_lib_$ac_lib_var=no"
1612 LIBS="$ac_save_LIBS"
1615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1619 cat >> confdefs.h <<EOF
1620 #define $ac_tr_lib 1
1623 LIBS="-lposix4 $LIBS"
1626 echo "$ac_t""no" 1>&6
1633 for ac_func in usleep
1635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_func" >&5
1637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 /* System header to define __stub macros and hopefully few prototypes,
1644 which can conflict with char $ac_func(); below. */
1646 /* Override any gcc2 internal prototype to avoid an error. */
1647 /* We use char because int might match the return type of a gcc2
1648 builtin and then its argument prototype would still apply. */
1653 /* The GNU C library defines this for functions which it implements
1654 to always fail with ENOSYS. Some functions are actually named
1655 something starting with __ and the normal name is an alias. */
1656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1666 eval "ac_cv_func_$ac_func=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_func_$ac_func=no"
1676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1677 echo "$ac_t""yes" 1>&6
1678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1679 cat >> confdefs.h <<EOF
1680 #define $ac_tr_func 1
1684 echo "$ac_t""no" 1>&6
1688 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1689 echo "configure:1690: checking for inet_aton" >&5
1690 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 /* System header to define __stub macros and hopefully few prototypes,
1697 which can conflict with char inet_aton(); below. */
1699 /* Override any gcc2 internal prototype to avoid an error. */
1700 /* We use char because int might match the return type of a gcc2
1701 builtin and then its argument prototype would still apply. */
1706 /* The GNU C library defines this for functions which it implements
1707 to always fail with ENOSYS. Some functions are actually named
1708 something starting with __ and the normal name is an alias. */
1709 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1719 eval "ac_cv_func_inet_aton=yes"
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1724 eval "ac_cv_func_inet_aton=no"
1729 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1730 echo "$ac_t""yes" 1>&6
1733 echo "$ac_t""no" 1>&6
1734 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1735 echo "configure:1736: checking for inet_aton in -lresolv" >&5
1736 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 ac_save_LIBS="$LIBS"
1741 LIBS="-lresolv $LIBS"
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 /* Override any gcc2 internal prototype to avoid an error. */
1746 /* We use char because int might match the return type of a gcc2
1747 builtin and then its argument prototype would still apply. */
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 eval "ac_cv_lib_$ac_lib_var=yes"
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 eval "ac_cv_lib_$ac_lib_var=no"
1764 LIBS="$ac_save_LIBS"
1767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1768 echo "$ac_t""yes" 1>&6
1769 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1770 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1771 cat >> confdefs.h <<EOF
1772 #define $ac_tr_lib 1
1775 LIBS="-lresolv $LIBS"
1778 echo "$ac_t""no" 1>&6
1783 for ac_func in vasprintf
1785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $ac_func" >&5
1787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 /* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char $ac_func(); below. */
1796 /* Override any gcc2 internal prototype to avoid an error. */
1797 /* We use char because int might match the return type of a gcc2
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1814 if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1816 eval "ac_cv_func_$ac_func=yes"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.$ac_ext >&5
1821 eval "ac_cv_func_$ac_func=no"
1826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1829 cat >> confdefs.h <<EOF
1830 #define $ac_tr_func 1
1834 echo "$ac_t""no" 1>&6
1838 for ac_hdr in unistd.h
1840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_hdr" >&5
1843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1856 eval "ac_cv_header_$ac_safe=yes"
1859 echo "configure: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1862 eval "ac_cv_header_$ac_safe=no"
1866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1867 echo "$ac_t""yes" 1>&6
1868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1869 cat >> confdefs.h <<EOF
1870 #define $ac_tr_hdr 1
1874 echo "$ac_t""no" 1>&6
1878 for ac_func in getpagesize
1880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_func" >&5
1882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $ac_func(); below. */
1891 /* Override any gcc2 internal prototype to avoid an error. */
1892 /* We use char because int might match the return type of a gcc2
1893 builtin and then its argument prototype would still apply. */
1898 /* The GNU C library defines this for functions which it implements
1899 to always fail with ENOSYS. Some functions are actually named
1900 something starting with __ and the normal name is an alias. */
1901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1911 eval "ac_cv_func_$ac_func=yes"
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 eval "ac_cv_func_$ac_func=no"
1921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1922 echo "$ac_t""yes" 1>&6
1923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1924 cat >> confdefs.h <<EOF
1925 #define $ac_tr_func 1
1929 echo "$ac_t""no" 1>&6
1933 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1934 echo "configure:1935: checking for working mmap" >&5
1935 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 if test "$cross_compiling" = yes; then
1939 ac_cv_func_mmap_fixed_mapped=no
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1945 /* Thanks to Mike Haertel and Jim Avera for this test.
1946 Here is a matrix of mmap possibilities:
1947 mmap private not fixed
1948 mmap private fixed at somewhere currently unmapped
1949 mmap private fixed at somewhere already mapped
1950 mmap shared not fixed
1951 mmap shared fixed at somewhere currently unmapped
1952 mmap shared fixed at somewhere already mapped
1953 For private mappings, we should verify that changes cannot be read()
1954 back from the file, nor mmap's back from the file at a different
1955 address. (There have been systems where private was not correctly
1956 implemented like the infamous i386 svr4.0, and systems where the
1957 VM page cache was not coherent with the filesystem buffer cache
1958 like early versions of FreeBSD and possibly contemporary NetBSD.)
1959 For shared mappings, we should conversely verify that changes get
1960 propogated back to all the places they're supposed to be.
1962 Grep wants private fixed already mapped.
1963 The main things grep needs to know about mmap are:
1964 * does it exist and is it safe to write into the mmap'd area
1965 * how to use it (BSD variants) */
1966 #include <sys/types.h>
1968 #include <sys/mman.h>
1970 /* This mess was copied from the GNU getpagesize.h. */
1971 #ifndef HAVE_GETPAGESIZE
1972 # ifdef HAVE_UNISTD_H
1973 # include <unistd.h>
1976 /* Assume that all systems that can run configure have sys/param.h. */
1977 # ifndef HAVE_SYS_PARAM_H
1978 # define HAVE_SYS_PARAM_H 1
1981 # ifdef _SC_PAGESIZE
1982 # define getpagesize() sysconf(_SC_PAGESIZE)
1983 # else /* no _SC_PAGESIZE */
1984 # ifdef HAVE_SYS_PARAM_H
1985 # include <sys/param.h>
1986 # ifdef EXEC_PAGESIZE
1987 # define getpagesize() EXEC_PAGESIZE
1988 # else /* no EXEC_PAGESIZE */
1990 # define getpagesize() NBPG * CLSIZE
1993 # endif /* no CLSIZE */
1994 # else /* no NBPG */
1996 # define getpagesize() NBPC
1997 # else /* no NBPC */
1999 # define getpagesize() PAGESIZE
2000 # endif /* PAGESIZE */
2001 # endif /* no NBPC */
2002 # endif /* no NBPG */
2003 # endif /* no EXEC_PAGESIZE */
2004 # else /* no HAVE_SYS_PARAM_H */
2005 # define getpagesize() 8192 /* punt totally */
2006 # endif /* no HAVE_SYS_PARAM_H */
2007 # endif /* no _SC_PAGESIZE */
2009 #endif /* no HAVE_GETPAGESIZE */
2012 extern "C" { void *malloc(unsigned); }
2020 char *data, *data2, *data3;
2024 pagesize = getpagesize();
2027 * First, make a file with some known garbage in it.
2029 data = malloc(pagesize);
2032 for (i = 0; i < pagesize; ++i)
2033 *(data + i) = rand();
2035 fd = creat("conftestmmap", 0600);
2038 if (write(fd, data, pagesize) != pagesize)
2043 * Next, try to mmap the file at a fixed address which
2044 * already has something else allocated at it. If we can,
2045 * also make sure that we see the same garbage.
2047 fd = open("conftestmmap", O_RDWR);
2050 data2 = malloc(2 * pagesize);
2053 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2054 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2055 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2057 for (i = 0; i < pagesize; ++i)
2058 if (*(data + i) != *(data2 + i))
2062 * Finally, make sure that changes to the mapped area
2063 * do not percolate back to the file as seen by read().
2064 * (This is a bug on some variants of i386 svr4.0.)
2066 for (i = 0; i < pagesize; ++i)
2067 *(data2 + i) = *(data2 + i) + 1;
2068 data3 = malloc(pagesize);
2071 if (read(fd, data3, pagesize) != pagesize)
2073 for (i = 0; i < pagesize; ++i)
2074 if (*(data + i) != *(data3 + i))
2077 unlink("conftestmmap");
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2084 ac_cv_func_mmap_fixed_mapped=yes
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 ac_cv_func_mmap_fixed_mapped=no
2096 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2097 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2098 cat >> confdefs.h <<\EOF
2104 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2105 echo "configure:2106: checking return type of signal handlers" >&5
2106 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 #include <sys/types.h>
2118 extern "C" void (*signal (int, void (*)(int)))(int);
2120 void (*signal ()) ();
2127 if { (eval echo configure:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2129 ac_cv_type_signal=void
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2134 ac_cv_type_signal=int
2139 echo "$ac_t""$ac_cv_type_signal" 1>&6
2140 cat >> confdefs.h <<EOF
2141 #define RETSIGTYPE $ac_cv_type_signal
2145 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2146 echo "configure:2147: checking for dlopen in -ldl" >&5
2147 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 ac_save_LIBS="$LIBS"
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 /* Override any gcc2 internal prototype to avoid an error. */
2157 /* We use char because int might match the return type of a gcc2
2158 builtin and then its argument prototype would still apply. */
2165 if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2167 eval "ac_cv_lib_$ac_lib_var=yes"
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2172 eval "ac_cv_lib_$ac_lib_var=no"
2175 LIBS="$ac_save_LIBS"
2178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2179 echo "$ac_t""yes" 1>&6
2180 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2181 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2182 cat >> confdefs.h <<EOF
2183 #define $ac_tr_lib 1
2189 echo "$ac_t""no" 1>&6
2192 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2193 echo "configure:2194: checking for optarg in -lgnugetopt" >&5
2194 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 ac_save_LIBS="$LIBS"
2199 LIBS="-lgnugetopt $LIBS"
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 /* Override any gcc2 internal prototype to avoid an error. */
2204 /* We use char because int might match the return type of a gcc2
2205 builtin and then its argument prototype would still apply. */
2212 if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2214 eval "ac_cv_lib_$ac_lib_var=yes"
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 eval "ac_cv_lib_$ac_lib_var=no"
2222 LIBS="$ac_save_LIBS"
2225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2229 cat >> confdefs.h <<EOF
2230 #define $ac_tr_lib 1
2233 LIBS="-lgnugetopt $LIBS"
2236 echo "$ac_t""no" 1>&6
2239 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2240 echo "configure:2241: checking for _ in -lbe" >&5
2241 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 ac_save_LIBS="$LIBS"
2247 cat > conftest.$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 /* Override any gcc2 internal prototype to avoid an error. */
2251 /* We use char because int might match the return type of a gcc2
2252 builtin and then its argument prototype would still apply. */
2259 if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2261 eval "ac_cv_lib_$ac_lib_var=yes"
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2266 eval "ac_cv_lib_$ac_lib_var=no"
2269 LIBS="$ac_save_LIBS"
2272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2276 cat >> confdefs.h <<EOF
2277 #define $ac_tr_lib 1
2283 echo "$ac_t""no" 1>&6
2286 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2287 echo "configure:2288: checking for _ in -lgame" >&5
2288 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 ac_save_LIBS="$LIBS"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2297 /* Override any gcc2 internal prototype to avoid an error. */
2298 /* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2306 if { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2308 eval "ac_cv_lib_$ac_lib_var=yes"
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2313 eval "ac_cv_lib_$ac_lib_var=no"
2316 LIBS="$ac_save_LIBS"
2319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2320 echo "$ac_t""yes" 1>&6
2321 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2323 cat >> confdefs.h <<EOF
2324 #define $ac_tr_lib 1
2330 echo "$ac_t""no" 1>&6
2333 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2334 echo "configure:2335: checking for _ in -lroot" >&5
2335 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 ac_save_LIBS="$LIBS"
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 /* Override any gcc2 internal prototype to avoid an error. */
2345 /* We use char because int might match the return type of a gcc2
2346 builtin and then its argument prototype would still apply. */
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355 eval "ac_cv_lib_$ac_lib_var=yes"
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 eval "ac_cv_lib_$ac_lib_var=no"
2363 LIBS="$ac_save_LIBS"
2366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2370 cat >> confdefs.h <<EOF
2371 #define $ac_tr_lib 1
2377 echo "$ac_t""no" 1>&6
2380 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2381 echo "configure:2382: checking for powl in -lm" >&5
2382 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 ac_save_LIBS="$LIBS"
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2400 if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2402 eval "ac_cv_lib_$ac_lib_var=yes"
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 eval "ac_cv_lib_$ac_lib_var=no"
2410 LIBS="$ac_save_LIBS"
2413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2414 echo "$ac_t""yes" 1>&6
2415 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2416 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2417 cat >> confdefs.h <<EOF
2418 #define $ac_tr_lib 1
2424 echo "$ac_t""no" 1>&6
2427 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2428 echo "configure:2429: checking for pthread_create in -lpthread" >&5
2429 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 ac_save_LIBS="$LIBS"
2434 LIBS="-lpthread $LIBS"
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 /* Override any gcc2 internal prototype to avoid an error. */
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441 char pthread_create();
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_lib_$ac_lib_var=no"
2457 LIBS="$ac_save_LIBS"
2460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2464 cat >> confdefs.h <<EOF
2465 #define $ac_tr_lib 1
2468 LIBS="-lpthread $LIBS"
2471 echo "$ac_t""no" 1>&6
2474 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2475 echo "configure:2476: checking for thread_create in -lthreads" >&5
2476 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 ac_save_LIBS="$LIBS"
2481 LIBS="-lthreads $LIBS"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* Override any gcc2 internal prototype to avoid an error. */
2486 /* We use char because int might match the return type of a gcc2
2487 builtin and then its argument prototype would still apply. */
2488 char thread_create();
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496 eval "ac_cv_lib_$ac_lib_var=yes"
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 eval "ac_cv_lib_$ac_lib_var=no"
2504 LIBS="$ac_save_LIBS"
2507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2509 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2510 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2511 cat >> confdefs.h <<EOF
2512 #define $ac_tr_lib 1
2515 LIBS="-lthreads $LIBS"
2518 echo "$ac_t""no" 1>&6
2522 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2523 echo "configure:2524: checking for getopt_long" >&5
2524 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 /* System header to define __stub macros and hopefully few prototypes,
2531 which can conflict with char getopt_long(); below. */
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2540 /* The GNU C library defines this for functions which it implements
2541 to always fail with ENOSYS. Some functions are actually named
2542 something starting with __ and the normal name is an alias. */
2543 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2553 eval "ac_cv_func_getopt_long=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 eval "ac_cv_func_getopt_long=no"
2563 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2567 echo "$ac_t""no" 1>&6
2568 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2573 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2574 for ac_hdr in stddef.h
2576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_hdr" >&5
2579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2588 { (eval echo configure:2589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2590 if test -z "$ac_err"; then
2592 eval "ac_cv_header_$ac_safe=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 eval "ac_cv_header_$ac_safe=no"
2602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2603 echo "$ac_t""yes" 1>&6
2604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2605 cat >> confdefs.h <<EOF
2606 #define $ac_tr_hdr 1
2610 echo "$ac_t""no" 1>&6
2614 for ac_hdr in getopt.h
2616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2618 echo "configure:2619: checking for $ac_hdr" >&5
2619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2628 { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2630 if test -z "$ac_err"; then
2632 eval "ac_cv_header_$ac_safe=yes"
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 eval "ac_cv_header_$ac_safe=no"
2642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2643 echo "$ac_t""yes" 1>&6
2644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2645 cat >> confdefs.h <<EOF
2646 #define $ac_tr_hdr 1
2650 echo "$ac_t""no" 1>&6
2654 for ac_hdr in sys/sockio.h
2656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_hdr" >&5
2659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2668 { (eval echo configure:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2670 if test -z "$ac_err"; then
2672 eval "ac_cv_header_$ac_safe=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2678 eval "ac_cv_header_$ac_safe=no"
2682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2685 cat >> confdefs.h <<EOF
2686 #define $ac_tr_hdr 1
2690 echo "$ac_t""no" 1>&6
2694 for ac_hdr in fcntl.h sys/time.h unistd.h
2696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_hdr" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2712 eval "ac_cv_header_$ac_safe=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 eval "ac_cv_header_$ac_safe=no"
2722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2725 cat >> confdefs.h <<EOF
2726 #define $ac_tr_hdr 1
2730 echo "$ac_t""no" 1>&6
2734 for ac_hdr in sys/soundcard.h machine/soundcard.h
2736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2738 echo "configure:2739: checking for $ac_hdr" >&5
2739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2748 { (eval echo configure:2749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2750 if test -z "$ac_err"; then
2752 eval "ac_cv_header_$ac_safe=yes"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2758 eval "ac_cv_header_$ac_safe=no"
2762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2765 cat >> confdefs.h <<EOF
2766 #define $ac_tr_hdr 1
2770 echo "$ac_t""no" 1>&6
2774 for ac_hdr in dlfcn.h image.h
2776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_hdr" >&5
2779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2788 { (eval echo configure:2789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2790 if test -z "$ac_err"; then
2792 eval "ac_cv_header_$ac_safe=yes"
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2798 eval "ac_cv_header_$ac_safe=no"
2802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2803 echo "$ac_t""yes" 1>&6
2804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2805 cat >> confdefs.h <<EOF
2806 #define $ac_tr_hdr 1
2810 echo "$ac_t""no" 1>&6
2814 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_hdr" >&5
2819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2828 { (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2830 if test -z "$ac_err"; then
2832 eval "ac_cv_header_$ac_safe=yes"
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2838 eval "ac_cv_header_$ac_safe=no"
2842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2845 cat >> confdefs.h <<EOF
2846 #define $ac_tr_hdr 1
2850 echo "$ac_t""no" 1>&6
2854 for ac_hdr in machine/param.h
2856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2858 echo "configure:2859: checking for $ac_hdr" >&5
2859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2868 { (eval echo configure:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2870 if test -z "$ac_err"; then
2872 eval "ac_cv_header_$ac_safe=yes"
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2878 eval "ac_cv_header_$ac_safe=no"
2882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2883 echo "$ac_t""yes" 1>&6
2884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2885 cat >> confdefs.h <<EOF
2886 #define $ac_tr_hdr 1
2890 echo "$ac_t""no" 1>&6
2895 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2913 eval "ac_cv_header_$ac_safe=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2919 eval "ac_cv_header_$ac_safe=no"
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h <<EOF
2927 #define $ac_tr_hdr 1
2931 echo "$ac_t""no" 1>&6
2938 CFLAGS="${CFLAGS} -Wall -Werror"
2939 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2940 echo "configure:2941: checking for ntohl in sys/param.h" >&5
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <sys/param.h>
2945 void foo() { int meuh; ntohl(meuh); }
2950 if { (eval echo configure:2951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2952 cat >> confdefs.h <<\EOF
2953 #define NTOHL_IN_SYS_PARAM_H 1
2956 echo "$ac_t""yes" 1>&6
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 echo "$ac_t""no" 1>&6
2965 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
2966 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2967 echo "configure:2968: checking if \$CC accepts -rdynamic" >&5
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2976 if { (eval echo configure:2977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2978 DYNAMIC_FLAG="-rdynamic"
2979 echo "$ac_t""yes" 1>&6
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2984 echo "$ac_t""no" 1>&6
2990 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2991 echo "configure:2992: checking for boolean_t in sys/types.h" >&5
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
2996 void quux() { boolean_t foo; }
3001 if { (eval echo configure:3002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3003 cat >> confdefs.h <<\EOF
3004 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3007 echo "$ac_t""yes" 1>&6
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 echo "$ac_t""no" 1>&6
3015 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3016 echo "configure:3017: checking for boolean_t in pthread.h" >&5
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 #include <pthread.h>
3021 void quux() { boolean_t foo; }
3026 if { (eval echo configure:3027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3028 cat >> confdefs.h <<\EOF
3029 #define BOOLEAN_T_IN_PTHREAD_H 1
3032 echo "$ac_t""yes" 1>&6
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 echo "$ac_t""no" 1>&6
3041 echo $ac_n "checking for working const""... $ac_c" 1>&6
3042 echo "configure:3043: checking for working const" >&5
3043 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3052 /* Ultrix mips cc rejects this. */
3053 typedef int charset[2]; const charset x;
3054 /* SunOS 4.1.1 cc rejects this. */
3055 char const *const *ccp;
3057 /* NEC SVR4.0.2 mips cc rejects this. */
3058 struct point {int x, y;};
3059 static struct point const zero = {0,0};
3060 /* AIX XL C 1.02.0.0 rejects this.
3061 It does not let you subtract one const X* pointer from another in an arm
3062 of an if-expression whose if-part is not a constant expression */
3063 const char *g = "string";
3064 ccp = &g + (g ? g-g : 0);
3065 /* HPUX 7.0 cc rejects these. */
3068 ccp = (char const *const *) p;
3069 { /* SCO 3.2v4 cc rejects this. */
3071 char const *s = 0 ? (char *) 0 : (char const *) 0;
3075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3077 const int *foo = &x[0];
3080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3081 typedef const int *iptr;
3085 { /* AIX XL C 1.02.0.0 rejects this saying
3086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3087 struct s { int j; const int *ap[3]; };
3088 struct s *b; b->j = 5;
3090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3108 echo "$ac_t""$ac_cv_c_const" 1>&6
3109 if test $ac_cv_c_const = no; then
3110 cat >> confdefs.h <<\EOF
3116 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3117 echo "configure:3118: checking for ANSI C header files" >&5
3118 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130 { (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132 if test -z "$ac_err"; then
3134 ac_cv_header_stdc=yes
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3140 ac_cv_header_stdc=no
3144 if test $ac_cv_header_stdc = yes; then
3145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 egrep "memchr" >/dev/null 2>&1; then
3156 ac_cv_header_stdc=no
3162 if test $ac_cv_header_stdc = yes; then
3163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 egrep "free" >/dev/null 2>&1; then
3174 ac_cv_header_stdc=no
3180 if test $ac_cv_header_stdc = yes; then
3181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3182 if test "$cross_compiling" = yes; then
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3189 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3190 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3192 int main () { int i; for (i = 0; i < 256; i++)
3193 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3197 if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 ac_cv_header_stdc=no
3212 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3213 if test $ac_cv_header_stdc = yes; then
3214 cat >> confdefs.h <<\EOF
3215 #define STDC_HEADERS 1
3220 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3221 echo "configure:3222: checking for size_t" >&5
3222 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 #include <sys/types.h>
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3237 ac_cv_type_size_t=yes
3240 ac_cv_type_size_t=no
3245 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3246 if test $ac_cv_type_size_t = no; then
3247 cat >> confdefs.h <<\EOF
3248 #define size_t unsigned
3253 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3254 echo "configure:3255: checking whether time.h and sys/time.h may both be included" >&5
3255 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 #include <sys/types.h>
3262 #include <sys/time.h>
3268 if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 ac_cv_header_time=yes
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 ac_cv_header_time=no
3280 echo "$ac_t""$ac_cv_header_time" 1>&6
3281 if test $ac_cv_header_time = yes; then
3282 cat >> confdefs.h <<\EOF
3283 #define TIME_WITH_SYS_TIME 1
3289 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3290 if test x$host_os = xbeos; then
3291 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3293 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3296 for ac_hdr in sys/ioctl.h
3298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_hdr" >&5
3301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3310 { (eval echo configure:3311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3312 if test -z "$ac_err"; then
3314 eval "ac_cv_header_$ac_safe=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 eval "ac_cv_header_$ac_safe=no"
3324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3327 cat >> confdefs.h <<EOF
3328 #define $ac_tr_hdr 1
3330 PLUGINS=${PLUGINS}"dvd "
3331 for ac_hdr in linux/cdrom.h
3333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_hdr" >&5
3336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3345 { (eval echo configure:3346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3347 if test -z "$ac_err"; then
3349 eval "ac_cv_header_$ac_safe=yes"
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3355 eval "ac_cv_header_$ac_safe=no"
3359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3362 cat >> confdefs.h <<EOF
3363 #define $ac_tr_hdr 1
3367 echo "$ac_t""no" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <linux/cdrom.h>
3376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 egrep "dvd" >/dev/null 2>&1; then
3379 cat >> confdefs.h <<\EOF
3387 echo "$ac_t""no" 1>&6
3393 # Check whether --enable-dummy or --disable-dummy was given.
3394 if test "${enable_dummy+set}" = set; then
3395 enableval="$enable_dummy"
3399 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3400 # Check whether --enable-null or --disable-null was given.
3401 if test "${enable_null+set}" = set; then
3402 enableval="$enable_null"
3406 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3407 # Check whether --enable-ppro or --disable-ppro was given.
3408 if test "${enable_ppro+set}" = set; then
3409 enableval="$enable_ppro"
3410 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3412 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3415 # Check whether --enable-mmx or --disable-mmx was given.
3416 if test "${enable_mmx+set}" = set; then
3417 enableval="$enable_mmx"
3418 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3420 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
3423 # Check whether --enable-altivec or --disable-altivec was given.
3424 if test "${enable_altivec+set}" = set; then
3425 enableval="$enable_altivec"
3426 if test x$enableval = xyes; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi
3428 if test -d /System/Library/Frameworks/vecLib.framework; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi
3431 # Check whether --enable-css or --disable-css was given.
3432 if test "${enable_css+set}" = set; then
3433 enableval="$enable_css"
3434 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3439 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3443 # Check whether --enable-debug or --disable-debug was given.
3444 if test "${enable_debug+set}" = set; then
3445 enableval="$enable_debug"
3446 if test x$enableval = xyes; then DEBUG=1; fi
3449 # Check whether --enable-stats or --disable-stats was given.
3450 if test "${enable_stats+set}" = set; then
3451 enableval="$enable_stats"
3452 if test x$enableval = xyes; then STATS=1; fi
3455 # Check whether --enable-optimizations or --disable-optimizations was given.
3456 if test "${enable_optimizations+set}" = set; then
3457 enableval="$enable_optimizations"
3458 if test x$enableval = xno; then OPTIMS=0; fi
3467 if test x$host_os = xbeos; then
3468 PLUGINS=${PLUGINS}"beos "
3474 # Check whether --enable-dsp or --disable-dsp was given.
3475 if test "${enable_dsp+set}" = set; then
3476 enableval="$enable_dsp"
3480 if test x$enable_dsp != xno; then
3481 if test -c /dev/dsp; then
3482 PLUGINS=${PLUGINS}"dsp "
3485 # Check whether --enable-esd or --disable-esd was given.
3486 if test "${enable_esd+set}" = set; then
3487 enableval="$enable_esd"
3488 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3491 # Check whether --enable-darwin or --disable-darwin was given.
3492 if test "${enable_darwin+set}" = set; then
3493 enableval="$enable_darwin"
3494 if test x$enable_darwin = xyes; then PLUGINS=${PLUGINS}"darwin "; fi
3496 for ac_hdr in CoreAudio/AudioHardware.h
3498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_hdr" >&5
3501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3510 { (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3512 if test -z "$ac_err"; then
3514 eval "ac_cv_header_$ac_safe=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_header_$ac_safe=no"
3524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3527 cat >> confdefs.h <<EOF
3528 #define $ac_tr_hdr 1
3530 PLUGINS=${PLUGINS}"darwin "
3532 echo "$ac_t""no" 1>&6
3538 # Check whether --enable-macosx or --disable-macosx was given.
3539 if test "${enable_macosx+set}" = set; then
3540 enableval="$enable_macosx"
3541 if test x$enable_macosx = xyes; then PLUGINS=${PLUGINS}"macosx "; fi
3544 # Check whether --enable-fb or --disable-fb was given.
3545 if test "${enable_fb+set}" = set; then
3546 enableval="$enable_fb"
3547 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3550 # Check whether --with-ggi or --without-ggi was given.
3551 if test "${with_ggi+set}" = set; then
3553 if test "x$withval" != "xno";
3555 PLUGINS=${PLUGINS}"ggi ";
3556 if test "x$withval" != "xyes";
3558 LIB_GGI="-l"$withval
3565 # Check whether --with-sdl or --without-sdl was given.
3566 if test "${with_sdl+set}" = set; then
3568 if test "x$withval" != "xno";
3570 PLUGINS=${PLUGINS}"sdl ";
3571 if test "x$withval" != "xyes";
3573 LIB_SDL="L/usr/X11R6/lib -l"$withval
3575 for ac_hdr in SDL/SDL.h
3577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3579 echo "configure:3580: checking for $ac_hdr" >&5
3580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3589 { (eval echo configure:3590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3591 if test -z "$ac_err"; then
3593 eval "ac_cv_header_$ac_safe=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3599 eval "ac_cv_header_$ac_safe=no"
3603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3606 cat >> confdefs.h <<EOF
3607 #define $ac_tr_hdr 1
3611 echo "$ac_t""no" 1>&6
3612 echo "Cannot find SDL headers !"; exit
3616 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3621 if test "x$withval" = "x";
3623 for ac_hdr in SDL/SDL.h
3625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_hdr" >&5
3628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3637 { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3639 if test -z "$ac_err"; then
3641 eval "ac_cv_header_$ac_safe=yes"
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 eval "ac_cv_header_$ac_safe=no"
3651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3654 cat >> confdefs.h <<EOF
3655 #define $ac_tr_hdr 1
3657 PLUGINS=${PLUGINS}"sdl "
3658 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3660 echo "$ac_t""no" 1>&6
3665 # Check whether --with-glide or --without-glide was given.
3666 if test "${with_glide+set}" = set; then
3667 withval="$with_glide"
3668 if test "x$withval" != "xno";
3670 PLUGINS=${PLUGINS}"glide ";
3671 if test "x$withval" != "xyes";
3673 LIB_GLIDE="-l"$withval
3675 LIB_GLIDE="-lglide2x"
3680 # Check whether --enable-ncurses or --disable-ncurses was given.
3681 if test "${enable_ncurses+set}" = set; then
3682 enableval="$enable_ncurses"
3683 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3686 # Check whether --enable-qt or --disable-qt was given.
3687 if test "${enable_qt+set}" = set; then
3688 enableval="$enable_qt"
3689 if test x$enable_qt = xyes; then PLUGINS=${PLUGINS}"qt "; ALIASES=${ALIASES}"qvlc "; fi
3692 # Check whether --enable-kde or --disable-kde was given.
3693 if test "${enable_kde+set}" = set; then
3694 enableval="$enable_kde"
3695 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASES=${ALIASES}"kvlc "; fi
3698 # Check whether --enable-gnome or --disable-gnome was given.
3699 if test "${enable_gnome+set}" = set; then
3700 enableval="$enable_gnome"
3701 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3704 # Check whether --enable-gtk or --disable-gtk was given.
3705 if test "${enable_gtk+set}" = set; then
3706 enableval="$enable_gtk"
3710 if test x$enable_gtk != xno; then
3711 if which gtk-config; then
3712 PLUGINS=${PLUGINS}"gtk "
3716 # Check whether --enable-x11 or --disable-x11 was given.
3717 if test "${enable_x11+set}" = set; then
3718 enableval="$enable_x11"
3722 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3724 # Check whether --enable-alsa or --disable-alsa was given.
3725 if test "${enable_alsa+set}" = set; then
3726 enableval="$enable_alsa"
3727 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3728 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3729 echo "configure:3730: checking for sys/asoundlib.h" >&5
3730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <sys/asoundlib.h>
3738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3739 { (eval echo configure:3740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3741 if test -z "$ac_err"; then
3743 eval "ac_cv_header_$ac_safe=yes"
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3749 eval "ac_cv_header_$ac_safe=no"
3753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3754 echo "$ac_t""yes" 1>&6
3755 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3756 echo "configure:3757: checking for main in -lasound" >&5
3757 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 ac_save_LIBS="$LIBS"
3762 LIBS="-lasound $LIBS"
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 eval "ac_cv_lib_$ac_lib_var=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 eval "ac_cv_lib_$ac_lib_var=no"
3781 LIBS="$ac_save_LIBS"
3784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3788 echo "$ac_t""no" 1>&6
3793 echo "$ac_t""no" 1>&6
3796 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3800 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3818 cat > confcache <<\EOF
3819 # This file is a shell script that caches the results of configure
3820 # tests run on this system so they can be shared between configure
3821 # scripts and configure runs. It is not useful on other systems.
3822 # If it contains results you don't want to keep, you may remove or edit it.
3824 # By default, configure uses ./config.cache as the cache file,
3825 # creating it if it does not exist already. You can give configure
3826 # the --cache-file=FILE option to use a different cache file; that is
3827 # what configure does when it calls configure scripts in
3828 # subdirectories, so they share the cache.
3829 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3830 # config.status only pays attention to the cache file if you give it the
3831 # --recheck option to rerun configure.
3834 # The following way of writing the cache mishandles newlines in values,
3835 # but we know of no workaround that is simple, portable, and efficient.
3836 # So, don't put newlines in cache variables' values.
3837 # Ultrix sh set writes to stderr and can't be redirected directly,
3838 # and sets the high bit in the cache file unless we assign to the vars.
3840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3842 # `set' does not quote correctly, so add quotes (double-quote substitution
3843 # turns \\\\ into \\, and sed turns \\ into \).
3845 -e "s/'/'\\\\''/g" \
3846 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3849 # `set' quotes correctly as required by POSIX, so do not add quotes.
3850 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3853 if cmp -s $cache_file confcache; then
3856 if test -w $cache_file; then
3857 echo "updating cache $cache_file"
3858 cat confcache > $cache_file
3860 echo "not updating unwritable cache $cache_file"
3865 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3868 # Let make expand exec_prefix.
3869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3871 # Any assignment to VPATH causes Sun make to only execute
3872 # the first set of double-colon rules, so remove it if not needed.
3873 # If there is a colon in the path, we need to keep it.
3874 if test "x$srcdir" = x.; then
3875 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3878 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3880 DEFS=-DHAVE_CONFIG_H
3882 # Without the "./", some shells look in PATH for config.status.
3883 : ${CONFIG_STATUS=./config.status}
3885 echo creating $CONFIG_STATUS
3886 rm -f $CONFIG_STATUS
3887 cat > $CONFIG_STATUS <<EOF
3889 # Generated automatically by configure.
3890 # Run this file to recreate the current configuration.
3891 # This directory was configured as follows,
3892 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3894 # $0 $ac_configure_args
3896 # Compiler output produced by configure, useful for debugging
3897 # configure, is in ./config.log if it exists.
3899 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3902 case "\$ac_option" in
3903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3904 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3905 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3906 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3907 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3909 -help | --help | --hel | --he | --h)
3910 echo "\$ac_cs_usage"; exit 0 ;;
3911 *) echo "\$ac_cs_usage"; exit 1 ;;
3915 ac_given_srcdir=$srcdir
3916 ac_given_INSTALL="$INSTALL"
3918 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3920 cat >> $CONFIG_STATUS <<EOF
3922 # Protect against being on the right side of a sed subst in config.status.
3923 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3924 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3928 s%@CFLAGS@%$CFLAGS%g
3929 s%@CPPFLAGS@%$CPPFLAGS%g
3930 s%@CXXFLAGS@%$CXXFLAGS%g
3931 s%@FFLAGS@%$FFLAGS%g
3933 s%@LDFLAGS@%$LDFLAGS%g
3935 s%@exec_prefix@%$exec_prefix%g
3936 s%@prefix@%$prefix%g
3937 s%@program_transform_name@%$program_transform_name%g
3938 s%@bindir@%$bindir%g
3939 s%@sbindir@%$sbindir%g
3940 s%@libexecdir@%$libexecdir%g
3941 s%@datadir@%$datadir%g
3942 s%@sysconfdir@%$sysconfdir%g
3943 s%@sharedstatedir@%$sharedstatedir%g
3944 s%@localstatedir@%$localstatedir%g
3945 s%@libdir@%$libdir%g
3946 s%@includedir@%$includedir%g
3947 s%@oldincludedir@%$oldincludedir%g
3948 s%@infodir@%$infodir%g
3949 s%@mandir@%$mandir%g
3951 s%@host_alias@%$host_alias%g
3952 s%@host_cpu@%$host_cpu%g
3953 s%@host_vendor@%$host_vendor%g
3954 s%@host_os@%$host_os%g
3955 s%@VLC_VERSION@%$VLC_VERSION%g
3956 s%@VLC_CODENAME@%$VLC_CODENAME%g
3957 s%@SET_MAKE@%$SET_MAKE%g
3960 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3961 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3962 s%@INSTALL_DATA@%$INSTALL_DATA%g
3963 s%@LIBOBJS@%$LIBOBJS%g
3966 s%@PLUGINS@%$PLUGINS%g
3967 s%@ALIASES@%$ALIASES%g
3970 s%@OPTIMS@%$OPTIMS%g
3972 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3973 s%@LIB_SDL@%$LIB_SDL%g
3974 s%@LIB_GLIDE@%$LIB_GLIDE%g
3975 s%@LIB_GGI@%$LIB_GGI%g
3980 cat >> $CONFIG_STATUS <<\EOF
3982 # Split the substitutions into bite-sized pieces for seds with
3983 # small command number limits, like on Digital OSF/1 and HP-UX.
3984 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3985 ac_file=1 # Number of current file.
3986 ac_beg=1 # First line for current file.
3987 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3990 while $ac_more_lines; do
3991 if test $ac_beg -gt 1; then
3992 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3994 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3996 if test ! -s conftest.s$ac_file; then
3998 rm -f conftest.s$ac_file
4000 if test -z "$ac_sed_cmds"; then
4001 ac_sed_cmds="sed -f conftest.s$ac_file"
4003 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4005 ac_file=`expr $ac_file + 1`
4007 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4010 if test -z "$ac_sed_cmds"; then
4015 cat >> $CONFIG_STATUS <<EOF
4017 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
4019 cat >> $CONFIG_STATUS <<\EOF
4020 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4021 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4023 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4024 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4025 *) ac_file_in="${ac_file}.in" ;;
4028 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4030 # Remove last slash and all that follows it. Not all systems have dirname.
4031 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4032 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4033 # The file is in a subdirectory.
4034 test ! -d "$ac_dir" && mkdir "$ac_dir"
4035 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4036 # A "../" for each directory in $ac_dir_suffix.
4037 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4039 ac_dir_suffix= ac_dots=
4042 case "$ac_given_srcdir" in
4044 if test -z "$ac_dots"; then top_srcdir=.
4045 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4046 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4048 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4049 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4052 case "$ac_given_INSTALL" in
4053 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4054 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4057 echo creating "$ac_file"
4059 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4061 *Makefile*) ac_comsub="1i\\
4062 # $configure_input" ;;
4066 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4068 s%@configure_input@%$configure_input%g
4069 s%@srcdir@%$srcdir%g
4070 s%@top_srcdir@%$top_srcdir%g
4071 s%@INSTALL@%$INSTALL%g
4072 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4076 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4077 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4079 # ac_d sets the value in "#define NAME VALUE" lines.
4080 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4081 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4084 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4085 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4086 ac_uB='\([ ]\)%\1#\2define\3'
4089 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4090 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4091 ac_eB='$%\1#\2define\3'
4095 if test "${CONFIG_HEADERS+set}" != set; then
4097 cat >> $CONFIG_STATUS <<EOF
4098 CONFIG_HEADERS="include/defs.h"
4100 cat >> $CONFIG_STATUS <<\EOF
4102 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4105 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4106 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4107 *) ac_file_in="${ac_file}.in" ;;
4110 echo creating $ac_file
4112 rm -f conftest.frag conftest.in conftest.out
4113 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4114 cat $ac_file_inputs > conftest.in
4118 # Transform confdefs.h into a sed script conftest.vals that substitutes
4119 # the proper values into config.h.in to produce config.h. And first:
4120 # Protect against being on the right side of a sed subst in config.status.
4121 # Protect against being in an unquoted here document in config.status.
4123 cat > conftest.hdr <<\EOF
4126 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4130 sed -n -f conftest.hdr confdefs.h > conftest.vals
4133 # This sed command replaces #undef with comments. This is necessary, for
4134 # example, in the case of _POSIX_SOURCE, which is predefined and required
4135 # on some systems where configure will not decide to define it.
4136 cat >> conftest.vals <<\EOF
4137 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4140 # Break up conftest.vals because some shells have a limit on
4141 # the size of here documents, and old seds have small limits too.
4146 ac_lines=`grep -c . conftest.vals`
4147 # grep -c gives empty output for an empty file on some AIX systems.
4148 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4149 # Write a limited-size here document to conftest.frag.
4150 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4151 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4153 sed -f conftest.frag conftest.in > conftest.out
4155 mv conftest.out conftest.in
4157 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4159 mv conftest.tail conftest.vals
4163 cat >> $CONFIG_STATUS <<\EOF
4164 rm -f conftest.frag conftest.h
4165 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4166 cat conftest.in >> conftest.h
4168 if cmp -s $ac_file conftest.h 2>/dev/null; then
4169 echo "$ac_file is unchanged"
4172 # Remove last slash and all that follows it. Not all systems have dirname.
4173 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4174 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4175 # The file is in a subdirectory.
4176 test ! -d "$ac_dir" && mkdir "$ac_dir"
4179 mv conftest.h $ac_file
4184 cat >> $CONFIG_STATUS <<EOF
4187 cat >> $CONFIG_STATUS <<\EOF
4191 chmod +x $CONFIG_STATUS
4192 rm -fr confdefs* $ac_clean_files
4193 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4199 vlc version : ${VLC_VERSION}
4201 architecture : ${ARCH}
4202 debug mode : ${DEBUG}
4203 statistics : ${STATS}
4204 optimizations : ${OPTIMS}
4205 CSS decryption : ${CSS}
4206 plugins : ${PLUGINS}
4207 vlc aliases : ${ALIASES}