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-rc rc module (default enabled)"
21 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
23 --disable-mmx Disable MMX optimizations (default enabled for x86)"
25 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
27 --disable-css Disable DVD CSS decryption (default enabled)"
29 --enable-debug Enable debug mode (default disabled)"
31 --enable-stats Enable printing of statistics (default disabled)"
33 --enable-trace Enable trace mode (default disabled)"
35 --disable-optimizations Disable compiler optimizations (default enabled)"
37 --disable-dsp Linux /dev/dsp support (default enabled)"
39 --enable-esd Esound library support (default disabled)"
41 --enable-darwin Darwin sound support (default disabled)"
43 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
45 --enable-fb Linux framebuffer support (default disabled)"
47 --with-ggi[=name] GGI support (default disabled)"
49 --with-sdl[=name] SDL support (default enabled)"
51 --with-directx[=name] Windows DirectX support (default enabled)"
53 --with-glide[=name] Glide (3dfx) support (default disabled)"
55 --enable-ncurses ncurses interface support (default disabled)"
57 --enable-qt Qt interface support (default disabled)"
59 --enable-kde KDE interface support (default disabled)"
61 --enable-gnome Gnome interface support (default disabled)"
63 --disable-gtk Gtk+ support (default enabled)"
65 --disable-x11 X11 support (default enabled)"
67 --disable-xvideo XVideo support (default enabled)"
69 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
71 # Initialize some variables set by options.
72 # The variables have the same names as the options, with
73 # dashes changed to underlines.
75 cache_file
=.
/config.cache
84 program_transform_name
=s
,x
,x
,
92 bindir
='${exec_prefix}/bin'
93 sbindir
='${exec_prefix}/sbin'
94 libexecdir
='${exec_prefix}/libexec'
95 datadir
='${prefix}/share'
96 sysconfdir
='${prefix}/etc'
97 sharedstatedir
='${prefix}/com'
98 localstatedir
='${prefix}/var'
99 libdir
='${exec_prefix}/lib'
100 includedir
='${prefix}/include'
101 oldincludedir
='/usr/include'
102 infodir
='${prefix}/info'
103 mandir
='${prefix}/man'
105 # Initialize some other variables.
108 SHELL
=${CONFIG_SHELL-/bin/sh}
109 # Maximum number of lines to put in a shell here document.
116 # If the previous option needs an argument, assign it.
117 if test -n "$ac_prev"; then
118 eval "$ac_prev=\$ac_option"
124 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128 # Accept the important Cygnus configure options, so we can diagnose typos.
132 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
134 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
135 bindir
="$ac_optarg" ;;
137 -build |
--build |
--buil |
--bui |
--bu)
139 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
140 build
="$ac_optarg" ;;
142 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
143 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
144 ac_prev
=cache_file
;;
145 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
146 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
147 cache_file
="$ac_optarg" ;;
149 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
151 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
153 datadir
="$ac_optarg" ;;
155 -disable-* |
--disable-*)
156 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}=no" ;;
164 -enable-* |
--enable-*)
165 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}='$ac_optarg'" ;;
177 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
178 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
179 |
--exec |
--exe |
--ex)
180 ac_prev
=exec_prefix
;;
181 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
182 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
183 |
--exec=* |
--exe=* |
--ex=*)
184 exec_prefix
="$ac_optarg" ;;
186 -gas |
--gas |
--ga |
--g)
187 # Obsolete; use --with-gas.
190 -help |
--help |
--hel |
--he)
191 # Omit some internal or obsolete options to make the list less imposing.
192 # This message is too long to be a string in the A/UX 3.1 sh.
194 Usage: configure [options] [host]
195 Options: [defaults in brackets after descriptions]
197 --cache-file=FILE cache test results in FILE
198 --help print this message
199 --no-create do not create output files
200 --quiet, --silent do not print \`checking...' messages
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host |
--host |
--hos |
--ho)
247 -host=* |
--host=* |
--hos=* |
--ho=*)
250 -includedir |
--includedir |
--includedi |
--included |
--include \
251 |
--includ |
--inclu |
--incl |
--inc)
252 ac_prev
=includedir
;;
253 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
254 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
255 includedir
="$ac_optarg" ;;
257 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
259 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
260 infodir
="$ac_optarg" ;;
262 -libdir |
--libdir |
--libdi |
--libd)
264 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
265 libdir
="$ac_optarg" ;;
267 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
268 |
--libexe |
--libex |
--libe)
269 ac_prev
=libexecdir
;;
270 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
271 |
--libexe=* |
--libex=* |
--libe=*)
272 libexecdir
="$ac_optarg" ;;
274 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
275 |
--localstate |
--localstat |
--localsta |
--localst \
276 |
--locals |
--local |
--loca |
--loc |
--lo)
277 ac_prev
=localstatedir
;;
278 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
279 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
280 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
281 localstatedir
="$ac_optarg" ;;
283 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
285 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
286 mandir
="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
296 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
297 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
300 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
301 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
302 |
--oldin |
--oldi |
--old |
--ol |
--o)
303 ac_prev
=oldincludedir
;;
304 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
305 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
306 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
307 oldincludedir
="$ac_optarg" ;;
309 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
311 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
312 prefix
="$ac_optarg" ;;
314 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
315 |
--program-pre |
--program-pr |
--program-p)
316 ac_prev
=program_prefix
;;
317 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
318 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
319 program_prefix
="$ac_optarg" ;;
321 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
322 |
--program-suf |
--program-su |
--program-s)
323 ac_prev
=program_suffix
;;
324 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
325 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
326 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
336 -program-transform-name=* |
--program-transform-name=* \
337 |
--program-transform-nam=* |
--program-transform-na=* \
338 |
--program-transform-n=* |
--program-transform-=* \
339 |
--program-transform=* |
--program-transfor=* \
340 |
--program-transfo=* |
--program-transf=* \
341 |
--program-trans=* |
--program-tran=* \
342 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
343 program_transform_name
="$ac_optarg" ;;
345 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
346 |
-silent |
--silent |
--silen |
--sile |
--sil)
349 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
351 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
353 sbindir
="$ac_optarg" ;;
355 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
356 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
357 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
359 ac_prev
=sharedstatedir
;;
360 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
361 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
362 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
364 sharedstatedir
="$ac_optarg" ;;
366 -site |
--site |
--sit)
368 -site=* |
--site=* |
--sit=*)
371 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
373 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
374 srcdir
="$ac_optarg" ;;
376 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
377 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
378 ac_prev
=sysconfdir
;;
379 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
380 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
381 sysconfdir
="$ac_optarg" ;;
383 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
385 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
386 target
="$ac_optarg" ;;
388 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
391 -version |
--version |
--versio |
--versi |
--vers)
392 echo "configure generated by autoconf version 2.13"
396 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package
=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* |
--without-*)
409 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
422 |
--x-incl |
--x-inc |
--x-in |
--x-i)
423 ac_prev
=x_includes
;;
424 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
425 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
426 x_includes
="$ac_optarg" ;;
428 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
429 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
430 ac_prev
=x_libraries
;;
431 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
432 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
433 x_libraries
="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE
; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c) ;;
485 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
486 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
487 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest
* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file
=src
/interface
/main.c
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted
=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted
=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$CONFIG_SITE"; then
537 if test "x$prefix" != xNONE
; then
538 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
540 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 for ac_site_file
in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
554 echo "creating cache $cache_file"
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp
='$CPP $CPPFLAGS'
561 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling
=$ac_cv_prog_cc_cross
567 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
568 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
569 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
576 ac_n
= ac_c
='\c' ac_t
=
583 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
584 if test -f $ac_dir/install-sh
; then
586 ac_install_sh
="$ac_aux_dir/install-sh -c"
588 elif test -f $ac_dir/install.sh
; then
590 ac_install_sh
="$ac_aux_dir/install.sh -c"
594 if test -z "$ac_aux_dir"; then
595 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
597 ac_config_guess
=$ac_aux_dir/config.guess
598 ac_config_sub
=$ac_aux_dir/config.sub
599 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
602 # Make sure we can run config.sub.
603 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
604 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
607 echo $ac_n "checking host system type""... $ac_c" 1>&6
608 echo "configure:609: checking host system type" >&5
611 case "$host_alias" in
615 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
616 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
618 *) host_alias
=$nonopt ;;
622 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
623 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$host" 1>&6
634 save_CFLAGS
="${CFLAGS}"
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 cat > conftestmake
<<\EOF
644 @
echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_
${ac_make}_set
=yes
651 eval ac_cv_prog_make_
${ac_make}_set
=no
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
659 echo "$ac_t""no" 1>&6
660 SET_MAKE
="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc
; ac_word
=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$CC"; then
671 ac_cv_prog_CC
="$CC" # Let the user override the test.
673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
675 for ac_dir
in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir
=.
677 if test -f $ac_dir/$ac_word; then
686 if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
689 echo "$ac_t""no" 1>&6
692 if test -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694 set dummy cc
; ac_word
=$2
695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echo "configure:697: checking for $ac_word" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 if test -n "$CC"; then
701 ac_cv_prog_CC
="$CC" # Let the user override the test.
703 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
709 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
718 if test $ac_prog_rejected = yes; then
719 # We found a bogon in the path, so make sure we never use it.
720 set dummy
$ac_cv_prog_CC
722 if test $# -gt 0; then
723 # We chose a different compiler from the bogus one.
724 # However, it has the same basename, so the bogon will be chosen
725 # first if we set CC to just the basename; use the full file name.
727 set dummy
"$ac_dir/$ac_word" "$@"
735 if test -n "$CC"; then
736 echo "$ac_t""$CC" 1>&6
738 echo "$ac_t""no" 1>&6
741 if test -z "$CC"; then
744 # Extract the first word of "cl", so it can be a program name with args.
745 set dummy cl
; ac_word
=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC
="$CC" # Let the user override the test.
754 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
756 for ac_dir
in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir
=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
775 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
783 ac_cpp
='$CPP $CPPFLAGS'
784 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
785 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
786 cross_compiling
=$ac_cv_prog_cc_cross
788 cat > conftest.
$ac_ext << EOF
790 #line 791 "configure"
791 #include "confdefs.h"
795 if { (eval echo configure
:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
796 ac_cv_prog_cc_works
=yes
797 # If we can't run a trivial program, we are probably using a cross compiler.
798 if (.
/conftest
; exit) 2>/dev
/null
; then
799 ac_cv_prog_cc_cross
=no
801 ac_cv_prog_cc_cross
=yes
804 echo "configure: failed program was:" >&5
805 cat conftest.
$ac_ext >&5
806 ac_cv_prog_cc_works
=no
810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
811 ac_cpp
='$CPP $CPPFLAGS'
812 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
813 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
814 cross_compiling
=$ac_cv_prog_cc_cross
816 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
817 if test $ac_cv_prog_cc_works = no
; then
818 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
821 echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
822 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
823 cross_compiling
=$ac_cv_prog_cc_cross
825 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
826 echo "configure:827: checking whether we are using GNU C" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 cat > conftest.c
<<EOF
835 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
842 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
844 if test $ac_cv_prog_gcc = yes; then
850 ac_test_CFLAGS
="${CFLAGS+set}"
851 ac_save_CFLAGS
="$CFLAGS"
853 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
854 echo "configure:855: checking whether ${CC-cc} accepts -g" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 echo 'void f(){}' > conftest.c
859 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
868 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
869 if test "$ac_test_CFLAGS" = set; then
870 CFLAGS
="$ac_save_CFLAGS"
871 elif test $ac_cv_prog_cc_g = yes; then
872 if test "$GCC" = yes; then
878 if test "$GCC" = yes; then
885 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
886 echo "configure:887: checking how to run the C preprocessor" >&5
887 # On Suns, sometimes $CPP names a directory.
888 if test -n "$CPP" && test -d "$CPP"; then
891 if test -z "$CPP"; then
892 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 # This must be in double quotes, not single quotes, because CPP may get
896 # substituted into the Makefile and "${CC-cc}" will confuse make.
898 # On the NeXT, cc -E runs the code through the compiler's parser,
899 # not just through cpp.
900 cat > conftest.
$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure
:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
913 echo "configure: failed program was:" >&5
914 cat conftest.
$ac_ext >&5
916 CPP
="${CC-cc} -E -traditional-cpp"
917 cat > conftest.
$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure
:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
930 echo "configure: failed program was:" >&5
931 cat conftest.
$ac_ext >&5
933 CPP
="${CC-cc} -nologo -E"
934 cat > conftest.
$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 { (eval echo configure
:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943 if test -z "$ac_err"; then
947 echo "configure: failed program was:" >&5
948 cat conftest.
$ac_ext >&5
957 ac_cv_prog_CPP
="$CPP"
959 CPP
="$ac_cv_prog_CPP"
961 ac_cv_prog_CPP
="$CPP"
963 echo "$ac_t""$CPP" 1>&6
965 # Extract the first word of "ranlib", so it can be a program name with args.
966 set dummy ranlib
; ac_word
=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$RANLIB"; then
973 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
977 for ac_dir
in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir
=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_prog_RANLIB
="ranlib"
985 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
988 RANLIB
="$ac_cv_prog_RANLIB"
989 if test -n "$RANLIB"; then
990 echo "$ac_t""$RANLIB" 1>&6
992 echo "$ac_t""no" 1>&6
996 # Find a good install program. We prefer a C program (faster),
997 # so one script is as good as another. But avoid the broken or
998 # incompatible versions:
999 # SysV /etc/install, /usr/sbin/install
1000 # SunOS /usr/etc/install
1001 # IRIX /sbin/install
1003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1006 # ./install, which can be erroneously created by make from ./install.sh.
1007 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1008 echo "configure:1009: checking for a BSD compatible install" >&5
1009 if test -z "$INSTALL"; then
1010 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1014 for ac_dir
in $PATH; do
1015 # Account for people who put trailing slashes in PATH elements.
1017 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1019 # OSF1 and SCO ODT 3.0 have their own names for install.
1020 # Don't use installbsd from OSF since it installs stuff as root
1022 for ac_prog
in ginstall scoinst
install; do
1023 if test -f $ac_dir/$ac_prog; then
1024 if test $ac_prog = install &&
1025 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1026 # AIX install. It has an incompatible calling convention.
1029 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1040 if test "${ac_cv_path_install+set}" = set; then
1041 INSTALL
="$ac_cv_path_install"
1043 # As a last resort, use the slow shell script. We don't cache a
1044 # path for INSTALL within a source directory, because that will
1045 # break other packages using the cache if that directory is
1046 # removed, or if the path is relative.
1047 INSTALL
="$ac_install_sh"
1050 echo "$ac_t""$INSTALL" 1>&6
1052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1053 # It thinks the first close brace ends the variable substitution.
1054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1058 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1061 echo $ac_n "checking for working const""... $ac_c" 1>&6
1062 echo "configure:1063: checking for working const" >&5
1063 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 cat > conftest.
$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1072 /* Ultrix mips cc rejects this. */
1073 typedef int charset[2]; const charset x;
1074 /* SunOS 4.1.1 cc rejects this. */
1075 char const *const *ccp;
1077 /* NEC SVR4.0.2 mips cc rejects this. */
1078 struct point {int x, y;};
1079 static struct point const zero = {0,0};
1080 /* AIX XL C 1.02.0.0 rejects this.
1081 It does not let you subtract one const X* pointer from another in an arm
1082 of an if-expression whose if-part is not a constant expression */
1083 const char *g = "string";
1084 ccp = &g + (g ? g-g : 0);
1085 /* HPUX 7.0 cc rejects these. */
1088 ccp = (char const *const *) p;
1089 { /* SCO 3.2v4 cc rejects this. */
1091 char const *s = 0 ? (char *) 0 : (char const *) 0;
1095 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1097 const int *foo = &x[0];
1100 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1101 typedef const int *iptr;
1105 { /* AIX XL C 1.02.0.0 rejects this saying
1106 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1107 struct s { int j; const int *ap[3]; };
1108 struct s *b; b->j = 5;
1110 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1116 if { (eval echo configure
:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1120 echo "configure: failed program was:" >&5
1121 cat conftest.
$ac_ext >&5
1128 echo "$ac_t""$ac_cv_c_const" 1>&6
1129 if test $ac_cv_c_const = no
; then
1130 cat >> confdefs.h
<<\EOF
1137 if test x
${cross_compiling} != xyes
; then
1138 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1139 echo "configure:1140: checking whether byte ordering is bigendian" >&5
1140 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 ac_cv_c_bigendian
=unknown
1144 # See if sys/param.h defines the BYTE_ORDER macro.
1145 cat > conftest.
$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1148 #include <sys/types.h>
1149 #include <sys/param.h>
1152 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1157 if { (eval echo configure
:1158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1159 # It does; now see whether it defined to BIG_ENDIAN or not.
1160 cat > conftest.
$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163 #include <sys/types.h>
1164 #include <sys/param.h>
1167 #if BYTE_ORDER != BIG_ENDIAN
1172 if { (eval echo configure
:1173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1174 ac_cv_c_bigendian
=yes
1176 echo "configure: failed program was:" >&5
1177 cat conftest.
$ac_ext >&5
1179 ac_cv_c_bigendian
=no
1183 echo "configure: failed program was:" >&5
1184 cat conftest.
$ac_ext >&5
1187 if test $ac_cv_c_bigendian = unknown
; then
1188 if test "$cross_compiling" = yes; then
1189 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1191 cat > conftest.
$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1195 /* Are we little or big endian? From Harbison&Steele. */
1199 char c[sizeof (long)];
1202 exit (u.c[sizeof (long) - 1] == 1);
1205 if { (eval echo configure
:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1207 ac_cv_c_bigendian
=no
1209 echo "configure: failed program was:" >&5
1210 cat conftest.
$ac_ext >&5
1212 ac_cv_c_bigendian
=yes
1220 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1221 if test $ac_cv_c_bigendian = yes; then
1222 cat >> confdefs.h
<<\EOF
1223 #define WORDS_BIGENDIAN 1
1230 for ac_func
in gettimeofday
select strerror strtod strtol
1232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1233 echo "configure:1234: checking for $ac_func" >&5
1234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 /* System header to define __stub macros and hopefully few prototypes,
1241 which can conflict with char $ac_func(); below. */
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1250 /* The GNU C library defines this for functions which it implements
1251 to always fail with ENOSYS. Some functions are actually named
1252 something starting with __ and the normal name is an alias. */
1253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1261 if { (eval echo configure
:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1263 eval "ac_cv_func_$ac_func=yes"
1265 echo "configure: failed program was:" >&5
1266 cat conftest.
$ac_ext >&5
1268 eval "ac_cv_func_$ac_func=no"
1273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1275 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1276 cat >> confdefs.h
<<EOF
1277 #define $ac_tr_func 1
1281 echo "$ac_t""no" 1>&6
1285 for ac_func
in setenv putenv
1287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_func" >&5
1289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 cat > conftest.
$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1295 /* System header to define __stub macros and hopefully few prototypes,
1296 which can conflict with char $ac_func(); below. */
1298 /* Override any gcc2 internal prototype to avoid an error. */
1299 /* We use char because int might match the return type of a gcc2
1300 builtin and then its argument prototype would still apply. */
1305 /* The GNU C library defines this for functions which it implements
1306 to always fail with ENOSYS. Some functions are actually named
1307 something starting with __ and the normal name is an alias. */
1308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1316 if { (eval echo configure
:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1318 eval "ac_cv_func_$ac_func=yes"
1320 echo "configure: failed program was:" >&5
1321 cat conftest.
$ac_ext >&5
1323 eval "ac_cv_func_$ac_func=no"
1328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1329 echo "$ac_t""yes" 1>&6
1330 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1331 cat >> confdefs.h
<<EOF
1332 #define $ac_tr_func 1
1336 echo "$ac_t""no" 1>&6
1340 echo $ac_n "checking for connect""... $ac_c" 1>&6
1341 echo "configure:1342: checking for connect" >&5
1342 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 cat > conftest.
$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1348 /* System header to define __stub macros and hopefully few prototypes,
1349 which can conflict with char connect(); below. */
1351 /* Override any gcc2 internal prototype to avoid an error. */
1352 /* We use char because int might match the return type of a gcc2
1353 builtin and then its argument prototype would still apply. */
1358 /* The GNU C library defines this for functions which it implements
1359 to always fail with ENOSYS. Some functions are actually named
1360 something starting with __ and the normal name is an alias. */
1361 #if defined (__stub_connect) || defined (__stub___connect)
1369 if { (eval echo configure
:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1371 eval "ac_cv_func_connect=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.
$ac_ext >&5
1376 eval "ac_cv_func_connect=no"
1381 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1382 echo "$ac_t""yes" 1>&6
1385 echo "$ac_t""no" 1>&6
1387 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1388 echo "configure:1389: checking for connect in -lsocket" >&5
1389 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 ac_save_LIBS
="$LIBS"
1394 LIBS
="-lsocket $LIBS"
1395 cat > conftest.
$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 /* Override any gcc2 internal prototype to avoid an error. */
1399 /* We use char because int might match the return type of a gcc2
1400 builtin and then its argument prototype would still apply. */
1407 if { (eval echo configure
:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1409 eval "ac_cv_lib_$ac_lib_var=yes"
1411 echo "configure: failed program was:" >&5
1412 cat conftest.
$ac_ext >&5
1414 eval "ac_cv_lib_$ac_lib_var=no"
1417 LIBS
="$ac_save_LIBS"
1420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1421 echo "$ac_t""yes" 1>&6
1422 LIB
="${LIB} -lsocket"
1424 echo "$ac_t""no" 1>&6
1430 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1431 echo "configure:1432: checking for gethostbyname" >&5
1432 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 /* System header to define __stub macros and hopefully few prototypes,
1439 which can conflict with char gethostbyname(); below. */
1441 /* Override any gcc2 internal prototype to avoid an error. */
1442 /* We use char because int might match the return type of a gcc2
1443 builtin and then its argument prototype would still apply. */
1444 char gethostbyname();
1448 /* The GNU C library defines this for functions which it implements
1449 to always fail with ENOSYS. Some functions are actually named
1450 something starting with __ and the normal name is an alias. */
1451 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1459 if { (eval echo configure
:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1461 eval "ac_cv_func_gethostbyname=yes"
1463 echo "configure: failed program was:" >&5
1464 cat conftest.
$ac_ext >&5
1466 eval "ac_cv_func_gethostbyname=no"
1471 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1472 echo "$ac_t""yes" 1>&6
1475 echo "$ac_t""no" 1>&6
1477 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1478 echo "configure:1479: checking for gethostbyname in -lnsl" >&5
1479 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 ac_save_LIBS
="$LIBS"
1485 cat > conftest.
$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 /* Override any gcc2 internal prototype to avoid an error. */
1489 /* We use char because int might match the return type of a gcc2
1490 builtin and then its argument prototype would still apply. */
1491 char gethostbyname();
1497 if { (eval echo configure
:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1499 eval "ac_cv_lib_$ac_lib_var=yes"
1501 echo "configure: failed program was:" >&5
1502 cat conftest.
$ac_ext >&5
1504 eval "ac_cv_lib_$ac_lib_var=no"
1507 LIBS
="$ac_save_LIBS"
1510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1511 echo "$ac_t""yes" 1>&6
1514 echo "$ac_t""no" 1>&6
1520 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1521 echo "configure:1522: checking for nanosleep" >&5
1522 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 /* System header to define __stub macros and hopefully few prototypes,
1529 which can conflict with char nanosleep(); below. */
1531 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1538 /* The GNU C library defines this for functions which it implements
1539 to always fail with ENOSYS. Some functions are actually named
1540 something starting with __ and the normal name is an alias. */
1541 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1549 if { (eval echo configure
:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1551 eval "ac_cv_func_nanosleep=yes"
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 eval "ac_cv_func_nanosleep=no"
1561 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1562 echo "$ac_t""yes" 1>&6
1565 echo "$ac_t""no" 1>&6
1567 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1568 echo "configure:1569: checking for nanosleep in -lrt" >&5
1569 ac_lib_var
=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 ac_save_LIBS
="$LIBS"
1575 cat > conftest.
$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 /* Override any gcc2 internal prototype to avoid an error. */
1579 /* We use char because int might match the return type of a gcc2
1580 builtin and then its argument prototype would still apply. */
1587 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1589 eval "ac_cv_lib_$ac_lib_var=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 eval "ac_cv_lib_$ac_lib_var=no"
1597 LIBS
="$ac_save_LIBS"
1600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1604 echo "$ac_t""no" 1>&6
1606 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1607 echo "configure:1608: checking for nanosleep in -lposix4" >&5
1608 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 ac_save_LIBS
="$LIBS"
1613 LIBS
="-lposix4 $LIBS"
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 /* Override any gcc2 internal prototype to avoid an error. */
1618 /* We use char because int might match the return type of a gcc2
1619 builtin and then its argument prototype would still apply. */
1626 if { (eval echo configure
:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1628 eval "ac_cv_lib_$ac_lib_var=yes"
1630 echo "configure: failed program was:" >&5
1631 cat conftest.
$ac_ext >&5
1633 eval "ac_cv_lib_$ac_lib_var=no"
1636 LIBS
="$ac_save_LIBS"
1639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1640 echo "$ac_t""yes" 1>&6
1641 LIB
="${LIB} -lposix4"
1643 echo "$ac_t""no" 1>&6
1652 for ac_func
in usleep
1654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_func" >&5
1656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.
$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 /* System header to define __stub macros and hopefully few prototypes,
1663 which can conflict with char $ac_func(); below. */
1665 /* Override any gcc2 internal prototype to avoid an error. */
1666 /* We use char because int might match the return type of a gcc2
1667 builtin and then its argument prototype would still apply. */
1672 /* The GNU C library defines this for functions which it implements
1673 to always fail with ENOSYS. Some functions are actually named
1674 something starting with __ and the normal name is an alias. */
1675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1683 if { (eval echo configure
:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1685 eval "ac_cv_func_$ac_func=yes"
1687 echo "configure: failed program was:" >&5
1688 cat conftest.
$ac_ext >&5
1690 eval "ac_cv_func_$ac_func=no"
1695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1697 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1698 cat >> confdefs.h
<<EOF
1699 #define $ac_tr_func 1
1703 echo "$ac_t""no" 1>&6
1707 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1708 echo "configure:1709: checking for inet_aton" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char inet_aton(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1736 if { (eval echo configure
:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1738 eval "ac_cv_func_inet_aton=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 eval "ac_cv_func_inet_aton=no"
1748 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1752 echo "$ac_t""no" 1>&6
1754 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1755 echo "configure:1756: checking for inet_aton in -lresolv" >&5
1756 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 ac_save_LIBS
="$LIBS"
1761 LIBS
="-lresolv $LIBS"
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 /* Override any gcc2 internal prototype to avoid an error. */
1766 /* We use char because int might match the return type of a gcc2
1767 builtin and then its argument prototype would still apply. */
1774 if { (eval echo configure
:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1776 eval "ac_cv_lib_$ac_lib_var=yes"
1778 echo "configure: failed program was:" >&5
1779 cat conftest.
$ac_ext >&5
1781 eval "ac_cv_lib_$ac_lib_var=no"
1784 LIBS
="$ac_save_LIBS"
1787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1788 echo "$ac_t""yes" 1>&6
1789 LIB
="${LIB} -lresolv"
1791 echo "$ac_t""no" 1>&6
1797 for ac_func
in vasprintf
1799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_func" >&5
1801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 cat > conftest.
$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* System header to define __stub macros and hopefully few prototypes,
1808 which can conflict with char $ac_func(); below. */
1810 /* Override any gcc2 internal prototype to avoid an error. */
1811 /* We use char because int might match the return type of a gcc2
1812 builtin and then its argument prototype would still apply. */
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1828 if { (eval echo configure
:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1830 eval "ac_cv_func_$ac_func=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1835 eval "ac_cv_func_$ac_func=no"
1840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1841 echo "$ac_t""yes" 1>&6
1842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1843 cat >> confdefs.h
<<EOF
1844 #define $ac_tr_func 1
1848 echo "$ac_t""no" 1>&6
1854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_func" >&5
1856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.
$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $ac_func(); below. */
1865 /* Override any gcc2 internal prototype to avoid an error. */
1866 /* We use char because int might match the return type of a gcc2
1867 builtin and then its argument prototype would still apply. */
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1883 if { (eval echo configure
:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1885 eval "ac_cv_func_$ac_func=yes"
1887 echo "configure: failed program was:" >&5
1888 cat conftest.
$ac_ext >&5
1890 eval "ac_cv_func_$ac_func=no"
1895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1897 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1898 cat >> confdefs.h
<<EOF
1899 #define $ac_tr_func 1
1903 echo "$ac_t""no" 1>&6
1908 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1909 echo "configure:1910: checking for getopt_long" >&5
1910 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 /* System header to define __stub macros and hopefully few prototypes,
1917 which can conflict with char getopt_long(); below. */
1919 /* Override any gcc2 internal prototype to avoid an error. */
1920 /* We use char because int might match the return type of a gcc2
1921 builtin and then its argument prototype would still apply. */
1926 /* The GNU C library defines this for functions which it implements
1927 to always fail with ENOSYS. Some functions are actually named
1928 something starting with __ and the normal name is an alias. */
1929 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1937 if { (eval echo configure
:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1939 eval "ac_cv_func_getopt_long=yes"
1941 echo "configure: failed program was:" >&5
1942 cat conftest.
$ac_ext >&5
1944 eval "ac_cv_func_getopt_long=no"
1949 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1950 echo "$ac_t""yes" 1>&6
1951 cat >> confdefs.h
<<\EOF
1952 #define HAVE_GETOPT_LONG 1
1956 echo "$ac_t""no" 1>&6
1957 # FreeBSD has a gnugetopt library for this:
1958 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1959 echo "configure:1960: checking for getopt_long in -lgnugetopt" >&5
1960 ac_lib_var
=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 ac_save_LIBS
="$LIBS"
1965 LIBS
="-lgnugetopt $LIBS"
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1969 /* Override any gcc2 internal prototype to avoid an error. */
1970 /* We use char because int might match the return type of a gcc2
1971 builtin and then its argument prototype would still apply. */
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1980 eval "ac_cv_lib_$ac_lib_var=yes"
1982 echo "configure: failed program was:" >&5
1983 cat conftest.
$ac_ext >&5
1985 eval "ac_cv_lib_$ac_lib_var=no"
1988 LIBS
="$ac_save_LIBS"
1991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1993 cat >> confdefs.h
<<\EOF
1994 #define HAVE_GETOPT_LONG 1
1996 LIB
="${LIB} -lgnugetopt"
1998 echo "$ac_t""no" 1>&6
2006 for ac_hdr
in unistd.h
2008 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2010 echo "configure:2011: checking for $ac_hdr" >&5
2011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.
$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2019 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2020 { (eval echo configure
:2021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2021 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2022 if test -z "$ac_err"; then
2024 eval "ac_cv_header_$ac_safe=yes"
2027 echo "configure: failed program was:" >&5
2028 cat conftest.
$ac_ext >&5
2030 eval "ac_cv_header_$ac_safe=no"
2034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2035 echo "$ac_t""yes" 1>&6
2036 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2037 cat >> confdefs.h
<<EOF
2038 #define $ac_tr_hdr 1
2042 echo "$ac_t""no" 1>&6
2046 for ac_func
in getpagesize
2048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2049 echo "configure:2050: checking for $ac_func" >&5
2050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.
$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $ac_func(); below. */
2059 /* Override any gcc2 internal prototype to avoid an error. */
2060 /* We use char because int might match the return type of a gcc2
2061 builtin and then its argument prototype would still apply. */
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2077 if { (eval echo configure
:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2079 eval "ac_cv_func_$ac_func=yes"
2081 echo "configure: failed program was:" >&5
2082 cat conftest.
$ac_ext >&5
2084 eval "ac_cv_func_$ac_func=no"
2089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2091 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2092 cat >> confdefs.h
<<EOF
2093 #define $ac_tr_func 1
2097 echo "$ac_t""no" 1>&6
2101 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2102 echo "configure:2103: checking for working mmap" >&5
2103 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 if test "$cross_compiling" = yes; then
2107 ac_cv_func_mmap_fixed_mapped
=no
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2113 /* Thanks to Mike Haertel and Jim Avera for this test.
2114 Here is a matrix of mmap possibilities:
2115 mmap private not fixed
2116 mmap private fixed at somewhere currently unmapped
2117 mmap private fixed at somewhere already mapped
2118 mmap shared not fixed
2119 mmap shared fixed at somewhere currently unmapped
2120 mmap shared fixed at somewhere already mapped
2121 For private mappings, we should verify that changes cannot be read()
2122 back from the file, nor mmap's back from the file at a different
2123 address. (There have been systems where private was not correctly
2124 implemented like the infamous i386 svr4.0, and systems where the
2125 VM page cache was not coherent with the filesystem buffer cache
2126 like early versions of FreeBSD and possibly contemporary NetBSD.)
2127 For shared mappings, we should conversely verify that changes get
2128 propogated back to all the places they're supposed to be.
2130 Grep wants private fixed already mapped.
2131 The main things grep needs to know about mmap are:
2132 * does it exist and is it safe to write into the mmap'd area
2133 * how to use it (BSD variants) */
2134 #include <sys/types.h>
2136 #include <sys/mman.h>
2138 /* This mess was copied from the GNU getpagesize.h. */
2139 #ifndef HAVE_GETPAGESIZE
2140 # ifdef HAVE_UNISTD_H
2141 # include <unistd.h>
2144 /* Assume that all systems that can run configure have sys/param.h. */
2145 # ifndef HAVE_SYS_PARAM_H
2146 # define HAVE_SYS_PARAM_H 1
2149 # ifdef _SC_PAGESIZE
2150 # define getpagesize() sysconf(_SC_PAGESIZE)
2151 # else /* no _SC_PAGESIZE */
2152 # ifdef HAVE_SYS_PARAM_H
2153 # include <sys/param.h>
2154 # ifdef EXEC_PAGESIZE
2155 # define getpagesize() EXEC_PAGESIZE
2156 # else /* no EXEC_PAGESIZE */
2158 # define getpagesize() NBPG * CLSIZE
2161 # endif /* no CLSIZE */
2162 # else /* no NBPG */
2164 # define getpagesize() NBPC
2165 # else /* no NBPC */
2167 # define getpagesize() PAGESIZE
2168 # endif /* PAGESIZE */
2169 # endif /* no NBPC */
2170 # endif /* no NBPG */
2171 # endif /* no EXEC_PAGESIZE */
2172 # else /* no HAVE_SYS_PARAM_H */
2173 # define getpagesize() 8192 /* punt totally */
2174 # endif /* no HAVE_SYS_PARAM_H */
2175 # endif /* no _SC_PAGESIZE */
2177 #endif /* no HAVE_GETPAGESIZE */
2180 extern "C" { void *malloc(unsigned); }
2188 char *data, *data2, *data3;
2192 pagesize = getpagesize();
2195 * First, make a file with some known garbage in it.
2197 data = malloc(pagesize);
2200 for (i = 0; i < pagesize; ++i)
2201 *(data + i) = rand();
2203 fd = creat("conftestmmap", 0600);
2206 if (write(fd, data, pagesize) != pagesize)
2211 * Next, try to mmap the file at a fixed address which
2212 * already has something else allocated at it. If we can,
2213 * also make sure that we see the same garbage.
2215 fd = open("conftestmmap", O_RDWR);
2218 data2 = malloc(2 * pagesize);
2221 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2222 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2223 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2225 for (i = 0; i < pagesize; ++i)
2226 if (*(data + i) != *(data2 + i))
2230 * Finally, make sure that changes to the mapped area
2231 * do not percolate back to the file as seen by read().
2232 * (This is a bug on some variants of i386 svr4.0.)
2234 for (i = 0; i < pagesize; ++i)
2235 *(data2 + i) = *(data2 + i) + 1;
2236 data3 = malloc(pagesize);
2239 if (read(fd, data3, pagesize) != pagesize)
2241 for (i = 0; i < pagesize; ++i)
2242 if (*(data + i) != *(data3 + i))
2245 unlink("conftestmmap");
2250 if { (eval echo configure
:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2252 ac_cv_func_mmap_fixed_mapped
=yes
2254 echo "configure: failed program was:" >&5
2255 cat conftest.
$ac_ext >&5
2257 ac_cv_func_mmap_fixed_mapped
=no
2264 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2265 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2266 cat >> confdefs.h
<<\EOF
2272 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2273 echo "configure:2274: checking return type of signal handlers" >&5
2274 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.
$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <sys/types.h>
2286 extern "C" void (*signal (int, void (*)(int)))(int);
2288 void (*signal ()) ();
2295 if { (eval echo configure
:2296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2297 ac_cv_type_signal
=void
2299 echo "configure: failed program was:" >&5
2300 cat conftest.
$ac_ext >&5
2302 ac_cv_type_signal
=int
2307 echo "$ac_t""$ac_cv_type_signal" 1>&6
2308 cat >> confdefs.h
<<EOF
2309 #define RETSIGTYPE $ac_cv_type_signal
2313 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2314 echo "configure:2315: checking for dlopen in -ldl" >&5
2315 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 ac_save_LIBS
="$LIBS"
2321 cat > conftest.
$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* Override any gcc2 internal prototype to avoid an error. */
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2333 if { (eval echo configure
:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2335 eval "ac_cv_lib_$ac_lib_var=yes"
2337 echo "configure: failed program was:" >&5
2338 cat conftest.
$ac_ext >&5
2340 eval "ac_cv_lib_$ac_lib_var=no"
2343 LIBS
="$ac_save_LIBS"
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2350 echo "$ac_t""no" 1>&6
2353 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2354 echo "configure:2355: checking for pow in -lm" >&5
2355 ac_lib_var
=`echo m'_'pow | sed 'y%./+-%__p_%'`
2356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 ac_save_LIBS
="$LIBS"
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2375 eval "ac_cv_lib_$ac_lib_var=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2380 eval "ac_cv_lib_$ac_lib_var=no"
2383 LIBS
="$ac_save_LIBS"
2386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 LIB_YUV
="${LIB_YUV} -lm"
2390 echo "$ac_t""no" 1>&6
2394 CPPFLAGS
="${CPPFLAGS} -I/usr/local/include"
2395 CFLAGS
="${CFLAGS} -I/usr/local/include"
2398 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2399 echo "configure:2400: checking for pthread_attr_init in -lpthread" >&5
2400 ac_lib_var
=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 ac_save_LIBS
="$LIBS"
2405 LIBS
="-lpthread $LIBS"
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 /* Override any gcc2 internal prototype to avoid an error. */
2410 /* We use char because int might match the return type of a gcc2
2411 builtin and then its argument prototype would still apply. */
2412 char pthread_attr_init();
2418 if { (eval echo configure
:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2420 eval "ac_cv_lib_$ac_lib_var=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.
$ac_ext >&5
2425 eval "ac_cv_lib_$ac_lib_var=no"
2428 LIBS
="$ac_save_LIBS"
2431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2432 echo "$ac_t""yes" 1>&6
2433 PTHREAD_LIBS
="-lpthread"
2435 echo "$ac_t""no" 1>&6
2438 if test "x${PTHREAD_LIBS}" = xerror
; then
2439 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2440 echo "configure:2441: checking for pthread_attr_init in -lpthreads" >&5
2441 ac_lib_var
=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_save_LIBS
="$LIBS"
2446 LIBS
="-lpthreads $LIBS"
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* Override any gcc2 internal prototype to avoid an error. */
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2453 char pthread_attr_init();
2459 if { (eval echo configure
:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2461 eval "ac_cv_lib_$ac_lib_var=yes"
2463 echo "configure: failed program was:" >&5
2464 cat conftest.
$ac_ext >&5
2466 eval "ac_cv_lib_$ac_lib_var=no"
2469 LIBS
="$ac_save_LIBS"
2472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 PTHREAD_LIBS
="-lpthreads"
2476 echo "$ac_t""no" 1>&6
2480 if test "x${PTHREAD_LIBS}" = xerror
; then
2481 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2482 echo "configure:2483: checking for pthread_attr_init in -lc_r" >&5
2483 ac_lib_var
=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 ac_save_LIBS
="$LIBS"
2489 cat > conftest.
$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 /* Override any gcc2 internal prototype to avoid an error. */
2493 /* We use char because int might match the return type of a gcc2
2494 builtin and then its argument prototype would still apply. */
2495 char pthread_attr_init();
2501 if { (eval echo configure
:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2503 eval "ac_cv_lib_$ac_lib_var=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 eval "ac_cv_lib_$ac_lib_var=no"
2511 LIBS
="$ac_save_LIBS"
2514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 PTHREAD_LIBS
="-lc_r"
2518 echo "$ac_t""no" 1>&6
2522 if test "x${PTHREAD_LIBS}" = xerror
; then
2524 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2525 echo "configure:2526: checking for pthread_attr_init" >&5
2526 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.
$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* System header to define __stub macros and hopefully few prototypes,
2533 which can conflict with char pthread_attr_init(); below. */
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2538 char pthread_attr_init();
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2548 pthread_attr_init();
2553 if { (eval echo configure
:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2555 eval "ac_cv_func_pthread_attr_init=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2560 eval "ac_cv_func_pthread_attr_init=no"
2565 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2569 echo "$ac_t""no" 1>&6
2573 LIB
="${LIB} ${PTHREAD_LIBS}"
2575 cat > conftest.
$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <pthread.h>
2580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2581 egrep "pthread_cond_t" >/dev
/null
2>&1; then
2584 cat >> confdefs.h
<<\EOF
2585 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2592 cat > conftest.
$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 #include <strings.h>
2597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2598 egrep "strncasecmp" >/dev
/null
2>&1; then
2601 cat >> confdefs.h
<<\EOF
2602 #define STRNCASECMP_IN_STRINGS_H 1
2610 for ac_hdr
in stddef.h getopt.h
strings.h
2612 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_hdr" >&5
2615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2624 { (eval echo configure
:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2626 if test -z "$ac_err"; then
2628 eval "ac_cv_header_$ac_safe=yes"
2631 echo "configure: failed program was:" >&5
2632 cat conftest.
$ac_ext >&5
2634 eval "ac_cv_header_$ac_safe=no"
2638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2639 echo "$ac_t""yes" 1>&6
2640 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2641 cat >> confdefs.h
<<EOF
2642 #define $ac_tr_hdr 1
2646 echo "$ac_t""no" 1>&6
2650 for ac_hdr
in sys
/sockio.h fcntl.h sys
/time.h unistd.h
2652 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_hdr" >&5
2655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.
$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2663 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure
:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2668 eval "ac_cv_header_$ac_safe=yes"
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2674 eval "ac_cv_header_$ac_safe=no"
2678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2681 cat >> confdefs.h
<<EOF
2682 #define $ac_tr_hdr 1
2686 echo "$ac_t""no" 1>&6
2690 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h
2692 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_hdr" >&5
2695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 cat > conftest.
$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2703 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704 { (eval echo configure
:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2706 if test -z "$ac_err"; then
2708 eval "ac_cv_header_$ac_safe=yes"
2711 echo "configure: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2714 eval "ac_cv_header_$ac_safe=no"
2718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2721 cat >> confdefs.h
<<EOF
2722 #define $ac_tr_hdr 1
2726 echo "$ac_t""no" 1>&6
2730 for ac_hdr
in dlfcn.h image.h
2732 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_hdr" >&5
2735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.
$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2743 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2744 { (eval echo configure
:2745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2745 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2746 if test -z "$ac_err"; then
2748 eval "ac_cv_header_$ac_safe=yes"
2751 echo "configure: failed program was:" >&5
2752 cat conftest.
$ac_ext >&5
2754 eval "ac_cv_header_$ac_safe=no"
2758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2761 cat >> confdefs.h
<<EOF
2762 #define $ac_tr_hdr 1
2766 echo "$ac_t""no" 1>&6
2770 for ac_hdr
in arpa
/inet.h net
/if.h netinet
/in.h sys
/socket.h
2772 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2774 echo "configure:2775: checking for $ac_hdr" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2784 { (eval echo configure
:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2786 if test -z "$ac_err"; then
2788 eval "ac_cv_header_$ac_safe=yes"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2794 eval "ac_cv_header_$ac_safe=no"
2798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2801 cat >> confdefs.h
<<EOF
2802 #define $ac_tr_hdr 1
2806 echo "$ac_t""no" 1>&6
2810 for ac_hdr
in machine
/param.h
2812 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_hdr" >&5
2815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.
$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2823 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure
:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2828 eval "ac_cv_header_$ac_safe=yes"
2831 echo "configure: failed program was:" >&5
2832 cat conftest.
$ac_ext >&5
2834 eval "ac_cv_header_$ac_safe=no"
2838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2840 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2841 cat >> confdefs.h
<<EOF
2842 #define $ac_tr_hdr 1
2846 echo "$ac_t""no" 1>&6
2851 for ac_hdr
in cthreads.h pthread.h kernel
/scheduler.h kernel
/OS.h
2853 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_hdr" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.
$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure
:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2869 eval "ac_cv_header_$ac_safe=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2882 cat >> confdefs.h
<<EOF
2883 #define $ac_tr_hdr 1
2887 echo "$ac_t""no" 1>&6
2892 CFLAGS
="${CFLAGS} -Wall -Werror"
2893 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2894 echo "configure:2895: checking for ntohl in sys/param.h" >&5
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <sys/param.h>
2899 void foo() { int meuh; ntohl(meuh); }
2904 if { (eval echo configure
:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2906 cat >> confdefs.h
<<\EOF
2907 #define NTOHL_IN_SYS_PARAM_H 1
2910 echo "$ac_t""yes" 1>&6
2912 echo "configure: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2915 echo "$ac_t""no" 1>&6
2919 CFLAGS
="${save_CFLAGS}"
2921 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2922 echo "configure:2923: checking for boolean_t in sys/types.h" >&5
2923 cat > conftest.
$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 #include <sys/types.h>
2927 void quux() { boolean_t foo; }
2932 if { (eval echo configure
:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2934 cat >> confdefs.h
<<\EOF
2935 #define BOOLEAN_T_IN_SYS_TYPES_H 1
2938 echo "$ac_t""yes" 1>&6
2940 echo "configure: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2943 echo "$ac_t""no" 1>&6
2946 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
2947 echo "configure:2948: checking for boolean_t in pthread.h" >&5
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 #include <pthread.h>
2952 void quux() { boolean_t foo; }
2957 if { (eval echo configure
:2958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2959 cat >> confdefs.h
<<\EOF
2960 #define BOOLEAN_T_IN_PTHREAD_H 1
2963 echo "$ac_t""yes" 1>&6
2965 echo "configure: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2968 echo "$ac_t""no" 1>&6
2972 echo $ac_n "checking for working const""... $ac_c" 1>&6
2973 echo "configure:2974: checking for working const" >&5
2974 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.
$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2983 /* Ultrix mips cc rejects this. */
2984 typedef int charset[2]; const charset x;
2985 /* SunOS 4.1.1 cc rejects this. */
2986 char const *const *ccp;
2988 /* NEC SVR4.0.2 mips cc rejects this. */
2989 struct point {int x, y;};
2990 static struct point const zero = {0,0};
2991 /* AIX XL C 1.02.0.0 rejects this.
2992 It does not let you subtract one const X* pointer from another in an arm
2993 of an if-expression whose if-part is not a constant expression */
2994 const char *g = "string";
2995 ccp = &g + (g ? g-g : 0);
2996 /* HPUX 7.0 cc rejects these. */
2999 ccp = (char const *const *) p;
3000 { /* SCO 3.2v4 cc rejects this. */
3002 char const *s = 0 ? (char *) 0 : (char const *) 0;
3006 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3008 const int *foo = &x[0];
3011 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3012 typedef const int *iptr;
3016 { /* AIX XL C 1.02.0.0 rejects this saying
3017 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3018 struct s { int j; const int *ap[3]; };
3019 struct s *b; b->j = 5;
3021 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3027 if { (eval echo configure
:3028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3031 echo "configure: failed program was:" >&5
3032 cat conftest.
$ac_ext >&5
3039 echo "$ac_t""$ac_cv_c_const" 1>&6
3040 if test $ac_cv_c_const = no
; then
3041 cat >> confdefs.h
<<\EOF
3047 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3048 echo "configure:3049: checking for ANSI C header files" >&5
3049 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.
$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3060 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3061 { (eval echo configure
:3062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3062 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3063 if test -z "$ac_err"; then
3065 ac_cv_header_stdc
=yes
3068 echo "configure: failed program was:" >&5
3069 cat conftest.
$ac_ext >&5
3071 ac_cv_header_stdc
=no
3075 if test $ac_cv_header_stdc = yes; then
3076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3077 cat > conftest.
$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 egrep "memchr" >/dev
/null
2>&1; then
3087 ac_cv_header_stdc
=no
3093 if test $ac_cv_header_stdc = yes; then
3094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3095 cat > conftest.
$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3101 egrep "free" >/dev
/null
2>&1; then
3105 ac_cv_header_stdc
=no
3111 if test $ac_cv_header_stdc = yes; then
3112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3113 if test "$cross_compiling" = yes; then
3116 cat > conftest.
$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3120 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3121 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3123 int main () { int i; for (i = 0; i < 256; i++)
3124 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3128 if { (eval echo configure
:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3132 echo "configure: failed program was:" >&5
3133 cat conftest.
$ac_ext >&5
3135 ac_cv_header_stdc
=no
3143 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3144 if test $ac_cv_header_stdc = yes; then
3145 cat >> confdefs.h
<<\EOF
3146 #define STDC_HEADERS 1
3151 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3152 echo "configure:3153: checking for size_t" >&5
3153 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 cat > conftest.
$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <sys/types.h>
3165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3166 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3168 ac_cv_type_size_t
=yes
3171 ac_cv_type_size_t
=no
3176 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3177 if test $ac_cv_type_size_t = no
; then
3178 cat >> confdefs.h
<<\EOF
3179 #define size_t unsigned
3184 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3185 echo "configure:3186: checking whether time.h and sys/time.h may both be included" >&5
3186 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.
$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 #include <sys/types.h>
3193 #include <sys/time.h>
3199 if { (eval echo configure
:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3201 ac_cv_header_time
=yes
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 ac_cv_header_time
=no
3211 echo "$ac_t""$ac_cv_header_time" 1>&6
3212 if test $ac_cv_header_time = yes; then
3213 cat >> confdefs.h
<<\EOF
3214 #define TIME_WITH_SYS_TIME 1
3222 BUILTINS
="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3226 MMX_PLUGINS
="idctmmx motionmmx"
3227 MMXEXT_PLUGINS
="idctmmxext motionmmxext imdct3dn"
3230 MMX_PLUGINS
="yuvmmx idctmmx motionmmx"
3231 MMXEXT_PLUGINS
="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3235 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3236 echo "configure:3237: checking if \$CC groks MMX inline assembly" >&5
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3245 if { (eval echo configure
:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247 ACCEL_PLUGINS
="${ACCEL_PLUGINS} ${MMX_PLUGINS}"
3248 echo "$ac_t""yes" 1>&6
3250 echo "configure: failed program was:" >&5
3251 cat conftest.
$ac_ext >&5
3253 echo "$ac_t""no" 1>&6
3257 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3258 echo "configure:3259: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3267 if { (eval echo configure
:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269 ACCEL_PLUGINS
="${ACCEL_PLUGINS} ${MMXEXT_PLUGINS}"
3270 echo "$ac_t""yes" 1>&6
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 echo "$ac_t""no" 1>&6
3279 for ac_hdr
in sys
/ioctl.h
3281 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3283 echo "configure:3284: checking for $ac_hdr" >&5
3284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.
$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3292 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3293 { (eval echo configure
:3294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3294 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3295 if test -z "$ac_err"; then
3297 eval "ac_cv_header_$ac_safe=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3303 eval "ac_cv_header_$ac_safe=no"
3307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3310 cat >> confdefs.h
<<EOF
3311 #define $ac_tr_hdr 1
3314 BUILTINS
="${BUILTINS} dvd"
3315 for ac_hdr
in sys
/cdio.h sys
/dvdio.h linux
/cdrom.h
3317 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3319 echo "configure:3320: checking for $ac_hdr" >&5
3320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3323 cat > conftest.
$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3328 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3329 { (eval echo configure
:3330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3330 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3331 if test -z "$ac_err"; then
3333 eval "ac_cv_header_$ac_safe=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3339 eval "ac_cv_header_$ac_safe=no"
3343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3346 cat >> confdefs.h
<<EOF
3347 #define $ac_tr_hdr 1
3351 echo "$ac_t""no" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 #include <sys/dvdio.h>
3361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362 egrep "dvd_struct" >/dev
/null
2>&1; then
3365 cat >> confdefs.h
<<\EOF
3366 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3374 cat > conftest.
$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 #include <sys/cdio.h>
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380 egrep "dvd_struct" >/dev
/null
2>&1; then
3383 cat >> confdefs.h
<<\EOF
3384 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3392 if test x
$BSD_DVD_STRUCT = x1
; then
3393 cat >> confdefs.h
<<\EOF
3394 #define HAVE_BSD_DVD_STRUCT 1
3398 cat > conftest.
$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 #include <linux/cdrom.h>
3403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3404 egrep "dvd_struct" >/dev
/null
2>&1; then
3407 cat >> confdefs.h
<<\EOF
3408 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3417 echo "$ac_t""no" 1>&6
3422 # Check whether --enable-dummy or --disable-dummy was given.
3423 if test "${enable_dummy+set}" = set; then
3424 enableval
="$enable_dummy"
3428 if test x
$enable_dummy != xno
; then
3429 BUILTINS
="${BUILTINS} dummy"; fi
3431 # Check whether --enable-null or --disable-null was given.
3432 if test "${enable_null+set}" = set; then
3433 enableval
="$enable_null"
3437 if test x
$enable_null != xno
; then
3438 BUILTINS
="${BUILTINS} null"; fi
3440 # Check whether --enable-rc or --disable-rc was given.
3441 if test "${enable_rc+set}" = set; then
3442 enableval
="$enable_rc"
3446 if test x
$enable_rc != xno
; then
3447 BUILTINS
="${BUILTINS} rc"; fi
3449 # Check whether --enable-ppro or --disable-ppro was given.
3450 if test "${enable_ppro+set}" = set; then
3451 enableval
="$enable_ppro"
3452 if test x
$enableval = xyes
; then ARCH
="${ARCH} ppro"; fi
3454 if test x
${host_cpu} = xi686
; then ARCH
="${ARCH} ppro"; fi
3458 # Check whether --enable-mmx or --disable-mmx was given.
3459 if test "${enable_mmx+set}" = set; then
3460 enableval
="$enable_mmx"
3461 if test x
$enableval = xyes
; then ARCH
="${ARCH} mmx";
3462 BUILTINS
="${BUILTINS} ${ACCEL_PLUGINS}"; fi
3464 if test x
${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx
";
3465 BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
3469 # Check whether --enable-altivec or --disable-altivec was given.
3470 if test "${enable_altivec+set}" = set; then
3471 enableval="$enable_altivec"
3472 if test x$enableval = xyes; then ARCH="${ARCH} altivec
";
3473 BUILTINS="${BUILTINS} idctaltivec
"
3474 LIB_IDCTALTIVEC="-framework vecLib
"
3478 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec
"; PLUGINS="${PLUGINS} idctaltivec
"; fi ])
3480 # Check whether --enable-css or --disable-css was given.
3481 if test "${enable_css+set}" = set; then
3482 enableval="$enable_css"
3483 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3488 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3493 # Check whether --enable-debug or --disable-debug was given.
3494 if test "${enable_debug+set}" = set; then
3495 enableval="$enable_debug"
3496 if test x$enableval = xyes; then DEBUG=1; fi
3500 # Check whether --enable-stats or --disable-stats was given.
3501 if test "${enable_stats+set}" = set; then
3502 enableval="$enable_stats"
3503 if test x$enableval = xyes; then STATS=1; fi
3507 # Check whether --enable-trace or --disable-trace was given.
3508 if test "${enable_trace+set}" = set; then
3509 enableval="$enable_trace"
3510 if test x$enableval = xyes; then TRACE=1; fi
3514 # Check whether --enable-optimizations or --disable-optimizations was given.
3515 if test "${enable_optimizations+set}" = set; then
3516 enableval="$enable_optimizations"
3517 if test x$enableval = xno; then OPTIMS=0; fi
3525 if test x$host_os = xbeos; then
3526 BUILTINS="${BUILTINS} beos
"
3527 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3531 # Check whether --enable-dsp or --disable-dsp was given.
3532 if test "${enable_dsp+set}" = set; then
3533 enableval="$enable_dsp"
3537 if test x$enable_dsp != xno; then
3538 if test -c /dev/dsp; then
3539 PLUGINS="${PLUGINS} dsp
"
3543 # Check whether --enable-esd or --disable-esd was given.
3544 if test "${enable_esd+set}" = set; then
3545 enableval="$enable_esd"
3546 if test x$enable_esd = xyes; then
3547 # Extract the first word of "esd-config
", so it can be a program name with args.
3548 set dummy esd-config; ac_word=$2
3549 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3550 echo "configure
:3551: checking
for $ac_word" >&5
3551 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3552 echo $ac_n "(cached
) $ac_c" 1>&6
3554 case "$ESD_CONFIG" in
3556 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3559 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3564 for ac_dir in $ac_dummy; do
3565 test -z "$ac_dir" && ac_dir=.
3566 if test -f $ac_dir/$ac_word; then
3567 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3572 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no
"
3576 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3577 if test -n "$ESD_CONFIG"; then
3578 echo "$ac_t""$ESD_CONFIG" 1>&6
3580 echo "$ac_t""no
" 1>&6
3583 if test x${ESD_CONFIG} != xno; then
3584 PLUGINS="${PLUGINS} esd
"
3585 LIB_ESD="`${ESD_CONFIG} --libs`"
3591 # Check whether --enable-darwin or --disable-darwin was given.
3592 if test "${enable_darwin+set}" = set; then
3593 enableval="$enable_darwin"
3594 if test x$enable_darwin = xyes; then
3595 PLUGINS="${PLUGINS} darwin
"
3596 LIB_DARWIN="-framework CoreAudio
"
3601 # Check whether --enable-macosx or --disable-macosx was given.
3602 if test "${enable_macosx+set}" = set; then
3603 enableval="$enable_macosx"
3604 if test x$enable_macosx = xyes; then
3605 BUILTINS="${BUILTINS} macosx
"
3606 LIB_MACOSX="-framework CoreAudio
-framework Carbon
-framework AGL
"
3607 LIB_TS="${LIB_TS} -framework AGL
-framework Carbon
"
3608 LIB_SDL="${LIB_SDL} -framework AGL
-framework Carbon
"
3611 for ac_hdr in Carbon/Carbon.h
3613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3614 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3615 echo "configure
:3616: checking
for $ac_hdr" >&5
3616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3617 echo $ac_n "(cached
) $ac_c" 1>&6
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure
"
3621 #include "confdefs.h
"
3624 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3625 { (eval echo configure:3626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3627 if test -z "$ac_err"; then
3629 eval "ac_cv_header_
$ac_safe=yes"
3632 echo "configure
: failed program was
:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_header_
$ac_safe=no
"
3639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3640 echo "$ac_t""yes" 1>&6
3641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3642 cat >> confdefs.h <<EOF
3643 #define $ac_tr_hdr 1
3645 BUILTINS="${BUILTINS} macosx
"
3646 LIB_MACOSX="-framework CoreAudio
-framework Carbon
-framework AGL
"
3647 LIB_TS="${LIB_TS} -framework AGL
-framework Carbon
"
3648 LIB_SDL="${LIB_SDL} -framework AGL
-framework Carbon
"
3651 echo "$ac_t""no
" 1>&6
3658 # Check whether --enable-fb or --disable-fb was given.
3659 if test "${enable_fb+set}" = set; then
3660 enableval="$enable_fb"
3661 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb
"; fi
3665 # Check whether --with-ggi or --without-ggi was given.
3666 if test "${with_ggi+set}" = set; then
3668 if test "x
$withval" != "xno
";
3670 PLUGINS="${PLUGINS} ggi
";
3671 if test "x
$withval" != "xyes
";
3673 LIB_GGI="-l"$withval
3681 # Check whether --with-sdl or --without-sdl was given.
3682 if test "${with_sdl+set}" = set; then
3684 if test "x
$withval" != "xno
";
3686 PLUGINS="${PLUGINS} sdl
";
3687 if test "x
$withval" != "xyes
";
3689 LIB_SDL="${LIB_SDL} -L/usr
/X11R
6/lib
-L"$withval"/lib
-lSDL"
3690 INCLUDE="${INCLUDE} -I"$withval"/include
"
3692 for ac_hdr in SDL/SDL.h
3694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3695 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3696 echo "configure
:3697: checking
for $ac_hdr" >&5
3697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3698 echo $ac_n "(cached
) $ac_c" 1>&6
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure
"
3702 #include "confdefs.h
"
3705 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3706 { (eval echo configure:3707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3708 if test -z "$ac_err"; then
3710 eval "ac_cv_header_
$ac_safe=yes"
3713 echo "configure
: failed program was
:" >&5
3714 cat conftest.$ac_ext >&5
3716 eval "ac_cv_header_
$ac_safe=no
"
3720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3723 cat >> confdefs.h <<EOF
3724 #define $ac_tr_hdr 1
3728 echo "$ac_t""no
" 1>&6
3729 echo "Cannot
find SDL headers
!"; exit
3733 LIB_SDL="${LIB_SDL} -L/usr
/X11R
6/lib
-lSDL"
3738 if test "x
$withval" = "x
";
3740 for ac_hdr in SDL/SDL.h
3742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3743 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3744 echo "configure
:3745: checking
for $ac_hdr" >&5
3745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3746 echo $ac_n "(cached
) $ac_c" 1>&6
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure
"
3750 #include "confdefs.h
"
3753 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3754 { (eval echo configure:3755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3756 if test -z "$ac_err"; then
3758 eval "ac_cv_header_
$ac_safe=yes"
3761 echo "configure
: failed program was
:" >&5
3762 cat conftest.$ac_ext >&5
3764 eval "ac_cv_header_
$ac_safe=no
"
3768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3771 cat >> confdefs.h <<EOF
3772 #define $ac_tr_hdr 1
3774 PLUGINS="${PLUGINS} sdl
"
3775 LIB_SDL="${LIB_SDL} -L/usr
/X11R
6/lib
-lSDL"
3777 echo "$ac_t""no
" 1>&6
3783 # Check whether --with-directx or --without-directx was given.
3784 if test "${with_directx+set}" = set; then
3785 withval="$with_directx"
3786 if test "x
$withval" != "xno
";
3788 PLUGINS="${PLUGINS} directx
";
3789 if test "x
$withval" != "xyes
";
3791 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib
-lddraw -ldsound"
3792 INCLUDE="${INCLUDE} -I"$withval"/include
"
3794 for ac_hdr in directx.h
3796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3797 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3798 echo "configure
:3799: checking
for $ac_hdr" >&5
3799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3800 echo $ac_n "(cached
) $ac_c" 1>&6
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure
"
3804 #include "confdefs.h
"
3807 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3808 { (eval echo configure:3809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3810 if test -z "$ac_err"; then
3812 eval "ac_cv_header_
$ac_safe=yes"
3815 echo "configure
: failed program was
:" >&5
3816 cat conftest.$ac_ext >&5
3818 eval "ac_cv_header_
$ac_safe=no
"
3822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3825 cat >> confdefs.h <<EOF
3826 #define $ac_tr_hdr 1
3830 echo "$ac_t""no
" 1>&6
3831 echo "Cannot
find DirectX headers
!"; exit
3835 LIB_DIRECTX="${LIB_DIRECTX} -L/usr
/lib
-lddraw -ldsound"
3840 if test "x
$withval" = "x
";
3842 for ac_hdr in directx.h
3844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3845 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3846 echo "configure
:3847: checking
for $ac_hdr" >&5
3847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3848 echo $ac_n "(cached
) $ac_c" 1>&6
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure
"
3852 #include "confdefs.h
"
3855 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3856 { (eval echo configure:3857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3858 if test -z "$ac_err"; then
3860 eval "ac_cv_header_
$ac_safe=yes"
3863 echo "configure
: failed program was
:" >&5
3864 cat conftest.$ac_ext >&5
3866 eval "ac_cv_header_
$ac_safe=no
"
3870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3873 cat >> confdefs.h <<EOF
3874 #define $ac_tr_hdr 1
3876 PLUGINS="${PLUGINS} directx
"
3877 LIB_DIRECTX="${LIB_DIRECTX} -L/usr
/lib
-lddraw -ldsound"
3879 echo "$ac_t""no
" 1>&6
3885 # Check whether --with-glide or --without-glide was given.
3886 if test "${with_glide+set}" = set; then
3887 withval="$with_glide"
3888 if test "x
$withval" != "xno
";
3890 PLUGINS="${PLUGINS} glide
";
3891 if test "x
$withval" != "xyes
";
3893 LIB_GLIDE="-l"$withval" -lm"
3895 LIB_GLIDE="-lglide2x -lm"
3901 # Check whether --enable-ncurses or --disable-ncurses was given.
3902 if test "${enable_ncurses+set}" = set; then
3903 enableval="$enable_ncurses"
3904 if test x$enable_ncurses = xyes; then
3905 PLUGINS="${PLUGINS} ncurses
"
3906 LIB_NCURSES="-lncurses"
3911 # Check whether --enable-qt or --disable-qt was given.
3912 if test "${enable_qt+set}" = set; then
3913 enableval="$enable_qt"
3914 if test x$enable_qt = xyes; then
3915 PLUGINS="${PLUGINS} qt
"
3916 ALIASES="${ALIASES} qvlc
"
3917 LIB_QT="-lqt -L${QTDIR}/lib
"
3918 if test -x ${QTDIR}/bin/moc ;
3920 MOC=${QTDIR}/bin/moc
3928 # Check whether --enable-kde or --disable-kde was given.
3929 if test "${enable_kde+set}" = set; then
3930 enableval="$enable_kde"
3931 if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde
"; ALIASES="${ALIASES} kvlc
"; fi
3935 # Check whether --enable-gnome or --disable-gnome was given.
3936 if test "${enable_gnome+set}" = set; then
3937 enableval="$enable_gnome"
3938 if test x$enable_gnome = xyes; then
3939 PLUGINS="${PLUGINS} gnome
"
3940 ALIASES="${ALIASES} gnome-vlc
"
3941 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
3946 # Check whether --enable-gtk or --disable-gtk was given.
3947 if test "${enable_gtk+set}" = set; then
3948 enableval="$enable_gtk"
3952 if test x$enable_gtk != xno; then
3953 # Extract the first word of "gtk-config
", so it can be a program name with args.
3954 set dummy gtk-config; ac_word=$2
3955 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3956 echo "configure
:3957: checking
for $ac_word" >&5
3957 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
3958 echo $ac_n "(cached
) $ac_c" 1>&6
3960 case "$GTK_CONFIG" in
3962 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
3965 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
3968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3970 for ac_dir in $ac_dummy; do
3971 test -z "$ac_dir" && ac_dir=.
3972 if test -f $ac_dir/$ac_word; then
3973 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
3978 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no
"
3982 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
3983 if test -n "$GTK_CONFIG"; then
3984 echo "$ac_t""$GTK_CONFIG" 1>&6
3986 echo "$ac_t""no
" 1>&6
3989 if test x${GTK_CONFIG} != xno; then
3990 PLUGINS="${PLUGINS} gtk
"
3991 ALIASES="${ALIASES} gvlc
"
3992 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
3993 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
3997 # Check whether --enable-x11 or --disable-x11 was given.
3998 if test "${enable_x11+set}" = set; then
3999 enableval="$enable_x11"
4003 if test x$enable_x11 != xno; then
4004 if test x$x_includes = xNONE; then
4005 x_includes=/usr/X11R6/include
4007 if test x$x_libraries = xNONE; then
4008 x_libraries=/usr/X11R6/lib
4010 saved_CPPFLAGS=$CPPFLAGS
4011 CPPFLAGS="$CPPFLAGS -I$x_includes"
4012 for ac_hdr in X11/Xlib.h
4014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4015 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4016 echo "configure
:4017: checking
for $ac_hdr" >&5
4017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4018 echo $ac_n "(cached
) $ac_c" 1>&6
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure
"
4022 #include "confdefs.h
"
4025 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4026 { (eval echo configure:4027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4028 if test -z "$ac_err"; then
4030 eval "ac_cv_header_
$ac_safe=yes"
4033 echo "configure
: failed program was
:" >&5
4034 cat conftest.$ac_ext >&5
4036 eval "ac_cv_header_
$ac_safe=no
"
4040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4043 cat >> confdefs.h <<EOF
4044 #define $ac_tr_hdr 1
4047 PLUGINS="${PLUGINS} x11
"
4048 LIB_X11="-L$x_libraries -lX11 -lXext"
4049 CFLAGS_X11="-I$x_includes"
4051 CPPFLAGS=$saved_CPPFLAGS
4053 echo "$ac_t""no
" 1>&6
4059 # Check whether --enable-xvideo or --disable-xvideo was given.
4060 if test "${enable_xvideo+set}" = set; then
4061 enableval="$enable_xvideo"
4065 if test x$enable_xvideo != xno; then
4066 if test x$x_includes = xNONE; then
4067 x_includes=/usr/X11R6/include
4069 if test x$x_libraries = xNONE; then
4070 x_libraries=/usr/X11R6/lib
4072 saved_CPPFLAGS=$CPPFLAGS
4073 CPPFLAGS="$CPPFLAGS -I$x_includes"
4074 for ac_hdr in X11/extensions/Xv.h
4076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4077 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4078 echo "configure
:4079: checking
for $ac_hdr" >&5
4079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4080 echo $ac_n "(cached
) $ac_c" 1>&6
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure
"
4084 #include "confdefs.h
"
4087 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4088 { (eval echo configure:4089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4090 if test -z "$ac_err"; then
4092 eval "ac_cv_header_
$ac_safe=yes"
4095 echo "configure
: failed program was
:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_header_
$ac_safe=no
"
4102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4105 cat >> confdefs.h <<EOF
4106 #define $ac_tr_hdr 1
4109 PLUGINS="${PLUGINS} xvideo
"
4110 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4111 CFLAGS_X11="-I$x_includes"
4113 CPPFLAGS=$saved_CPPFLAGS
4115 echo "$ac_t""no
" 1>&6
4121 # Check whether --enable-alsa or --disable-alsa was given.
4122 if test "${enable_alsa+set}" = set; then
4123 enableval="$enable_alsa"
4124 if test x$enable_alsa = xyes; then ac_safe=`echo "sys
/asoundlib.h
" | sed 'y%./+-%__p_%'`
4125 echo $ac_n "checking
for sys
/asoundlib.h
""...
$ac_c" 1>&6
4126 echo "configure
:4127: checking
for sys
/asoundlib.h
" >&5
4127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4128 echo $ac_n "(cached
) $ac_c" 1>&6
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure
"
4132 #include "confdefs.h
"
4133 #include <sys/asoundlib.h>
4135 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4136 { (eval echo configure:4137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4138 if test -z "$ac_err"; then
4140 eval "ac_cv_header_
$ac_safe=yes"
4143 echo "configure
: failed program was
:" >&5
4144 cat conftest.$ac_ext >&5
4146 eval "ac_cv_header_
$ac_safe=no
"
4150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 echo $ac_n "checking
for main
in -lasound""...
$ac_c" 1>&6
4153 echo "configure
:4154: checking
for main
in -lasound" >&5
4154 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4156 echo $ac_n "(cached
) $ac_c" 1>&6
4158 ac_save_LIBS="$LIBS"
4159 LIBS="-lasound $LIBS"
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure
"
4162 #include "confdefs.h
"
4168 if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4170 eval "ac_cv_lib_
$ac_lib_var=yes"
4172 echo "configure
: failed program was
:" >&5
4173 cat conftest.$ac_ext >&5
4175 eval "ac_cv_lib_
$ac_lib_var=no
"
4178 LIBS="$ac_save_LIBS"
4181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4182 echo "$ac_t""yes" 1>&6
4185 echo "$ac_t""no
" 1>&6
4190 echo "$ac_t""no
" 1>&6
4193 if test x$have_alsa = xtrue; then
4194 PLUGINS="${PLUGINS} alsa
"
4243 cat > confcache <<\EOF
4244 # This file is a shell script that caches the results of configure
4245 # tests run on this system so they can be shared between configure
4246 # scripts and configure runs. It is not useful on other systems.
4247 # If it contains results you don't want to keep, you may remove or edit it.
4249 # By default, configure uses ./config.cache as the cache file,
4250 # creating it if it does not exist already. You can give configure
4251 # the --cache-file=FILE option to use a different cache file; that is
4252 # what configure does when it calls configure scripts in
4253 # subdirectories, so they share the cache.
4254 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4255 # config.status only pays attention to the cache file if you give it the
4256 # --recheck option to rerun configure.
4259 # The following way of writing the cache mishandles newlines in values,
4260 # but we know of no workaround that is simple, portable, and efficient.
4261 # So, don't put newlines in cache variables' values.
4262 # Ultrix sh set writes to stderr and can't be redirected directly,
4263 # and sets the high bit in the cache file unless we assign to the vars.
4265 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4267 # `set' does not quote correctly, so add quotes (double-quote substitution
4268 # turns \\\\ into \\, and sed turns \\ into \).
4270 -e "s
/'/'\\\\''/g
" \
4271 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4274 # `set' quotes correctly as required by POSIX, so do not add quotes.
4275 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4278 if cmp -s $cache_file confcache; then
4281 if test -w $cache_file; then
4282 echo "updating cache
$cache_file"
4283 cat confcache > $cache_file
4285 echo "not updating unwritable cache
$cache_file"
4290 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4292 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4293 # Let make expand exec_prefix.
4294 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4296 # Any assignment to VPATH causes Sun make to only execute
4297 # the first set of double-colon rules, so remove it if not needed.
4298 # If there is a colon in the path, we need to keep it.
4299 if test "x
$srcdir" = x.; then
4300 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4303 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4305 DEFS=-DHAVE_CONFIG_H
4307 # Without the ".
/", some shells look in PATH for config.status.
4308 : ${CONFIG_STATUS=./config.status}
4310 echo creating $CONFIG_STATUS
4311 rm -f $CONFIG_STATUS
4312 cat > $CONFIG_STATUS <<EOF
4314 # Generated automatically by configure.
4315 # Run this file to recreate the current configuration.
4316 # This directory was configured as follows,
4317 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4319 # $0 $ac_configure_args
4321 # Compiler output produced by configure, useful for debugging
4322 # configure, is in ./config.log if it exists.
4324 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
4327 case "\
$ac_option" in
4328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4329 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4330 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4331 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4332 echo "$CONFIG_STATUS generated by autoconf version
2.13"
4334 -help | --help | --hel | --he | --h)
4335 echo "\
$ac_cs_usage"; exit 0 ;;
4336 *) echo "\
$ac_cs_usage"; exit 1 ;;
4340 ac_given_srcdir=$srcdir
4341 ac_given_INSTALL="$INSTALL"
4343 trap 'rm -fr `echo "Makefile.opts include
/config.h include
/defs.h
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
4345 cat >> $CONFIG_STATUS <<EOF
4347 # Protect against being on the right side of a sed subst in config.status.
4348 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4349 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4353 s%@CFLAGS@%$CFLAGS%g
4354 s%@CPPFLAGS@%$CPPFLAGS%g
4355 s%@CXXFLAGS@%$CXXFLAGS%g
4356 s%@FFLAGS@%$FFLAGS%g
4358 s%@LDFLAGS@%$LDFLAGS%g
4360 s%@exec_prefix@%$exec_prefix%g
4361 s%@prefix@%$prefix%g
4362 s%@program_transform_name@%$program_transform_name%g
4363 s%@bindir@%$bindir%g
4364 s%@sbindir@%$sbindir%g
4365 s%@libexecdir@%$libexecdir%g
4366 s%@datadir@%$datadir%g
4367 s%@sysconfdir@%$sysconfdir%g
4368 s%@sharedstatedir@%$sharedstatedir%g
4369 s%@localstatedir@%$localstatedir%g
4370 s%@libdir@%$libdir%g
4371 s%@includedir@%$includedir%g
4372 s%@oldincludedir@%$oldincludedir%g
4373 s%@infodir@%$infodir%g
4374 s%@mandir@%$mandir%g
4376 s%@host_alias@%$host_alias%g
4377 s%@host_cpu@%$host_cpu%g
4378 s%@host_vendor@%$host_vendor%g
4379 s%@host_os@%$host_os%g
4380 s%@VLC_VERSION@%$VLC_VERSION%g
4381 s%@VLC_CODENAME@%$VLC_CODENAME%g
4382 s%@SET_MAKE@%$SET_MAKE%g
4385 s%@RANLIB@%$RANLIB%g
4386 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4387 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4388 s%@INSTALL_DATA@%$INSTALL_DATA%g
4389 s%@GETOPT@%$GETOPT%g
4390 s%@ESD_CONFIG@%$ESD_CONFIG%g
4391 s%@GTK_CONFIG@%$GTK_CONFIG%g
4394 s%@PLUGINS@%$PLUGINS%g
4395 s%@BUILTINS@%$BUILTINS%g
4396 s%@ALIASES@%$ALIASES%g
4397 s%@DEFINE@%$DEFINE%g
4398 s%@INCLUDE@%$INCLUDE%g
4402 s%@OPTIMS@%$OPTIMS%g
4405 s%@LCFLAGS@%$LCFLAGS%g
4407 s%@LIB_ALSA@%$LIB_ALSA%g
4408 s%@LIB_BEOS@%$LIB_BEOS%g
4409 s%@LIB_DARWIN@%$LIB_DARWIN%g
4410 s%@LIB_ESD@%$LIB_ESD%g
4411 s%@LIB_GGI@%$LIB_GGI%g
4412 s%@LIB_GLIDE@%$LIB_GLIDE%g
4413 s%@LIB_GNOME@%$LIB_GNOME%g
4414 s%@LIB_GTK@%$LIB_GTK%g
4415 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4416 s%@LIB_MACOSX@%$LIB_MACOSX%g
4417 s%@LIB_NCURSES@%$LIB_NCURSES%g
4418 s%@LIB_QT@%$LIB_QT%g
4419 s%@LIB_TS@%$LIB_TS%g
4420 s%@LIB_SDL@%$LIB_SDL%g
4421 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4422 s%@LIB_X11@%$LIB_X11%g
4423 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4424 s%@LIB_YUV@%$LIB_YUV%g
4425 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4426 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4427 s%@CFLAGS_X11@%$CFLAGS_X11%g
4432 cat >> $CONFIG_STATUS <<\EOF
4434 # Split the substitutions into bite-sized pieces for seds with
4435 # small command number limits, like on Digital OSF/1 and HP-UX.
4436 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4437 ac_file=1 # Number of current file.
4438 ac_beg=1 # First line for current file.
4439 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4442 while $ac_more_lines; do
4443 if test $ac_beg -gt 1; then
4444 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
4446 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
4448 if test ! -s conftest.s$ac_file; then
4450 rm -f conftest.s$ac_file
4452 if test -z "$ac_sed_cmds"; then
4453 ac_sed_cmds="sed -f conftest.s
$ac_file"
4455 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
4457 ac_file=`expr $ac_file + 1`
4459 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4462 if test -z "$ac_sed_cmds"; then
4467 cat >> $CONFIG_STATUS <<EOF
4469 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4471 cat >> $CONFIG_STATUS <<\EOF
4472 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
4473 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
4475 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4476 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4477 *) ac_file_in="${ac_file}.
in" ;;
4480 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4482 # Remove last slash and all that follows it. Not all systems have dirname.
4483 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4484 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4485 # The file is in a subdirectory.
4486 test ! -d "$ac_dir" && mkdir "$ac_dir"
4487 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4488 # A "..
/" for each directory in $ac_dir_suffix.
4489 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4491 ac_dir_suffix= ac_dots=
4494 case "$ac_given_srcdir" in
4496 if test -z "$ac_dots"; then top_srcdir=.
4497 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4498 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4500 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4501 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4504 case "$ac_given_INSTALL" in
4505 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4506 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4509 echo creating "$ac_file"
4511 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
4513 *Makefile*) ac_comsub="1i
\\
4514 # $configure_input" ;;
4518 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4520 s%@configure_input@%$configure_input%g
4521 s%@srcdir@%$srcdir%g
4522 s%@top_srcdir@%$top_srcdir%g
4523 s%@INSTALL@%$INSTALL%g
4524 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4528 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4529 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4531 # ac_d sets the value in "#define NAME VALUE" lines.
4532 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4533 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4536 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4537 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4538 ac_uB
='\([ ]\)%\1#\2define\3'
4541 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4542 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4543 ac_eB
='$%\1#\2define\3'
4547 if test "${CONFIG_HEADERS+set}" != set; then
4549 cat >> $CONFIG_STATUS <<EOF
4550 CONFIG_HEADERS="include/defs.h"
4552 cat >> $CONFIG_STATUS <<\EOF
4554 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4557 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4558 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4559 *) ac_file_in
="${ac_file}.in" ;;
4562 echo creating
$ac_file
4564 rm -f conftest.frag conftest.
in conftest.out
4565 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4566 cat $ac_file_inputs > conftest.
in
4570 # Transform confdefs.h into a sed script conftest.vals that substitutes
4571 # the proper values into config.h.in to produce config.h. And first:
4572 # Protect against being on the right side of a sed subst in config.status.
4573 # Protect against being in an unquoted here document in config.status.
4575 cat > conftest.hdr
<<\EOF
4578 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4582 sed -n -f conftest.hdr confdefs.h > conftest.vals
4585 # This sed command replaces #undef with comments. This is necessary, for
4586 # example, in the case of _POSIX_SOURCE, which is predefined and required
4587 # on some systems where configure will not decide to define it.
4588 cat >> conftest.vals <<\EOF
4589 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4592 # Break up conftest.vals because some shells have a limit on
4593 # the size of here documents, and old seds have small limits too.
4598 ac_lines=`grep -c . conftest.vals
`
4599 # grep -c gives empty output for an empty file on some AIX systems.
4600 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4601 # Write a limited-size here document to conftest.frag.
4602 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4603 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4605 sed -f conftest.frag conftest.in > conftest.out
4607 mv conftest.out conftest.in
4609 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4611 mv conftest.tail conftest.vals
4615 cat >> $CONFIG_STATUS <<\EOF
4616 rm -f conftest.frag conftest.h
4617 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4618 cat conftest.in >> conftest.h
4620 if cmp -s $ac_file conftest.h 2>/dev/null; then
4621 echo "$ac_file is unchanged"
4624 # Remove last slash and all that follows it. Not all systems have dirname.
4625 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4626 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4627 # The file is in a subdirectory.
4628 test ! -d "$ac_dir" && mkdir "$ac_dir"
4631 mv conftest.h $ac_file
4636 cat >> $CONFIG_STATUS <<EOF
4639 cat >> $CONFIG_STATUS <<\EOF
4643 chmod +x $CONFIG_STATUS
4644 rm -fr confdefs* $ac_clean_files
4645 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4651 vlc version : ${VLC_VERSION}
4653 architecture : ${ARCH}
4654 debug mode : ${DEBUG}
4655 statistics : ${STATS}
4656 trace mode : ${TRACE}
4657 optimizations : ${OPTIMS}
4658 CSS decryption : ${CSS}
4659 need builtin getopt : ${GETOPT}
4660 built-in modules :${BUILTINS}
4661 plugin modules :${PLUGINS}
4662 vlc aliases :${ALIASES}
4664 You may now tune Makefile.opts at your convenience."