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 --enable-debug Enable debug mode (default is no)"
17 --enable-stats Enable printing of statistics (default is yes)"
19 --disable-optimizations Disable compiler optimizations (default enabled)"
21 --enable-ppro Enable PentiumPro optimizations (default is no)"
23 --enable-mmx Enable MMX optimizations (default is no)"
25 --enable-dummy dummy audio and video support (default enabled)"
27 --enable-dsp Linux /dev/dsp support (default enabled)"
29 --enable-esd Esound library support (default disabled)"
31 --enable-fb Linux framebuffer support (default disabled)"
33 --enable-ggi GGI support (default disabled)"
35 --enable-sdl SDL support (default disabled)"
37 --enable-glide Glide (3dfx) support (default disabled)"
39 --enable-gnome Gnome support (default disabled)"
41 --enable-alsa Alsa sound drivers supprt (default disabled)"
43 --enable-x11 X11 support (default enabled)"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file=./config.cache
58 program_transform_name=s,x,x,
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
219 -host | --host | --hos | --ho)
221 -host=* | --host=* | --hos=* | --ho=*)
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
236 -libdir | --libdir | --libdi | --libd)
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
263 # Obsolete; use --without-fp.
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 sbindir="$ac_optarg" ;;
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 sharedstatedir="$ac_optarg" ;;
340 -site | --site | --sit)
342 -site=* | --site=* | --sit=*)
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=src/interface/main.c
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
528 echo "creating cache $cache_file"
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
541 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='\c' ac_t=
557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
558 if test -f $ac_dir/install-sh; then
560 ac_install_sh="$ac_aux_dir/install-sh -c"
562 elif test -f $ac_dir/install.sh; then
564 ac_install_sh="$ac_aux_dir/install.sh -c"
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
576 # Make sure we can run config.sub.
577 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
581 echo $ac_n "checking host system type""... $ac_c" 1>&6
582 echo "configure:577: checking host system type" >&5
585 case "$host_alias" in
589 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
590 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 *) host_alias=$nonopt ;;
596 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
597 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
598 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
599 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
600 echo "$ac_t""$host" 1>&6
608 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
609 echo "configure:604: checking whether ${MAKE-make} sets \${MAKE}" >&5
610 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
611 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 cat > conftestmake <<\EOF
616 @echo 'ac_maketemp="${MAKE}"'
618 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
619 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
620 if test -n "$ac_maketemp"; then
621 eval ac_cv_prog_make_${ac_make}_set=yes
623 eval ac_cv_prog_make_${ac_make}_set=no
627 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
628 echo "$ac_t""yes" 1>&6
631 echo "$ac_t""no" 1>&6
632 SET_MAKE="MAKE=${MAKE-make}"
635 if test -z "$CC"; then
636 # Extract the first word of "gcc", so it can be a program name with args.
637 set dummy gcc; ac_word=$2
638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
639 echo "configure:634: checking for $ac_word" >&5
640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
643 if test -n "$CC"; then
644 ac_cv_prog_CC="$CC" # Let the user override the test.
646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
648 for ac_dir in $ac_dummy; do
649 test -z "$ac_dir" && ac_dir=.
650 if test -f $ac_dir/$ac_word; then
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
666 # Extract the first word of "cc", so it can be a program name with args.
667 set dummy cc; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:664: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
691 if test $ac_prog_rejected = yes; then
692 # We found a bogon in the path, so make sure we never use it.
693 set dummy $ac_cv_prog_CC
695 if test $# -gt 0; then
696 # We chose a different compiler from the bogus one.
697 # However, it has the same basename, so the bogon will be chosen
698 # first if we set CC to just the basename; use the full file name.
700 set dummy "$ac_dir/$ac_word" "$@"
708 if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
711 echo "$ac_t""no" 1>&6
714 if test -z "$CC"; then
717 # Extract the first word of "cl", so it can be a program name with args.
718 set dummy cl; ac_word=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 echo "configure:715: checking for $ac_word" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 if test -n "$CC"; then
725 ac_cv_prog_CC="$CC" # Let the user override the test.
727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
729 for ac_dir in $ac_dummy; do
730 test -z "$ac_dir" && ac_dir=.
731 if test -f $ac_dir/$ac_word; then
740 if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
743 echo "$ac_t""no" 1>&6
748 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
752 echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
756 ac_cpp='$CPP $CPPFLAGS'
757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
759 cross_compiling=$ac_cv_prog_cc_cross
761 cat > conftest.$ac_ext << EOF
763 #line 758 "configure"
764 #include "confdefs.h"
768 if { (eval echo configure:763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
769 ac_cv_prog_cc_works=yes
770 # If we can't run a trivial program, we are probably using a cross compiler.
771 if (./conftest; exit) 2>/dev/null; then
772 ac_cv_prog_cc_cross=no
774 ac_cv_prog_cc_cross=yes
777 echo "configure: failed program was:" >&5
778 cat conftest.$ac_ext >&5
779 ac_cv_prog_cc_works=no
783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
784 ac_cpp='$CPP $CPPFLAGS'
785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
787 cross_compiling=$ac_cv_prog_cc_cross
789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
790 if test $ac_cv_prog_cc_works = no; then
791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
794 echo "configure:789: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
796 cross_compiling=$ac_cv_prog_cc_cross
798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
799 echo "configure:794: checking whether we are using GNU C" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 cat > conftest.c <<EOF
808 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
815 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
817 if test $ac_cv_prog_gcc = yes; then
823 ac_test_CFLAGS="${CFLAGS+set}"
824 ac_save_CFLAGS="$CFLAGS"
826 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
827 echo "configure:822: checking whether ${CC-cc} accepts -g" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 echo 'void f(){}' > conftest.c
832 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
841 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
842 if test "$ac_test_CFLAGS" = set; then
843 CFLAGS="$ac_save_CFLAGS"
844 elif test $ac_cv_prog_cc_g = yes; then
845 if test "$GCC" = yes; then
851 if test "$GCC" = yes; then
859 if test -z "$CPP"; then
860 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
861 echo "configure:856: checking how to run the C preprocessor" >&5
862 # On Suns, sometimes $CPP names a directory.
863 if test -n "$CPP" && test -d "$CPP"; then
866 if test -z "$CPP"; then
867 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 # This must be in double quotes, not single quotes, because CPP may get
871 # substituted into the Makefile and "${CC-cc}" will confuse make.
873 # On the NeXT, cc -E runs the code through the compiler's parser,
874 # not just through cpp.
875 cat > conftest.$ac_ext <<EOF
876 #line 871 "configure"
877 #include "confdefs.h"
881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
882 { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
884 if test -z "$ac_err"; then
888 echo "configure: failed program was:" >&5
889 cat conftest.$ac_ext >&5
891 CPP="${CC-cc} -E -traditional-cpp"
892 cat > conftest.$ac_ext <<EOF
893 #line 888 "configure"
894 #include "confdefs.h"
898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
899 { (eval echo configure:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
901 if test -z "$ac_err"; then
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
908 CPP="${CC-cc} -nologo -E"
909 cat > conftest.$ac_ext <<EOF
910 #line 905 "configure"
911 #include "confdefs.h"
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
918 if test -z "$ac_err"; then
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
932 ac_cv_prog_CPP="$CPP"
934 CPP="$ac_cv_prog_CPP"
936 ac_cv_prog_CPP="$CPP"
938 echo "$ac_t""$CPP" 1>&6
942 # Find a good install program. We prefer a C program (faster),
943 # so one script is as good as another. But avoid the broken or
944 # incompatible versions:
945 # SysV /etc/install, /usr/sbin/install
946 # SunOS /usr/etc/install
949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
952 # ./install, which can be erroneously created by make from ./install.sh.
953 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
954 echo "configure:949: checking for a BSD compatible install" >&5
955 if test -z "$INSTALL"; then
956 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
960 for ac_dir in $PATH; do
961 # Account for people who put trailing slashes in PATH elements.
963 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
965 # OSF1 and SCO ODT 3.0 have their own names for install.
966 # Don't use installbsd from OSF since it installs stuff as root
968 for ac_prog in ginstall scoinst install; do
969 if test -f $ac_dir/$ac_prog; then
970 if test $ac_prog = install &&
971 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
972 # AIX install. It has an incompatible calling convention.
975 ac_cv_path_install="$ac_dir/$ac_prog -c"
986 if test "${ac_cv_path_install+set}" = set; then
987 INSTALL="$ac_cv_path_install"
989 # As a last resort, use the slow shell script. We don't cache a
990 # path for INSTALL within a source directory, because that will
991 # break other packages using the cache if that directory is
992 # removed, or if the path is relative.
993 INSTALL="$ac_install_sh"
996 echo "$ac_t""$INSTALL" 1>&6
998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
999 # It thinks the first close brace ends the variable substitution.
1000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1007 echo $ac_n "checking for working const""... $ac_c" 1>&6
1008 echo "configure:1003: checking for working const" >&5
1009 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftest.$ac_ext <<EOF
1013 #line 1008 "configure"
1014 #include "confdefs.h"
1018 /* Ultrix mips cc rejects this. */
1019 typedef int charset[2]; const charset x = {0,0};
1020 /* SunOS 4.1.1 cc rejects this. */
1021 char const *const *ccp;
1023 /* NEC SVR4.0.2 mips cc rejects this. */
1024 struct point {int x, y;};
1025 static struct point const zero = {0,0};
1026 /* AIX XL C 1.02.0.0 rejects this.
1027 It does not let you subtract one const X* pointer from another in an arm
1028 of an if-expression whose if-part is not a constant expression */
1029 const char *g = "string";
1030 ccp = &g + (g ? g-g : 0);
1031 /* HPUX 7.0 cc rejects these. */
1034 ccp = (char const *const *) p;
1035 { /* SCO 3.2v4 cc rejects this. */
1037 char const *s = 0 ? (char *) 0 : (char const *) 0;
1041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1043 const int *foo = &x[0];
1046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1047 typedef const int *iptr;
1051 { /* AIX XL C 1.02.0.0 rejects this saying
1052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1053 struct s { int j; const int *ap[3]; };
1054 struct s *b; b->j = 5;
1056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1062 if { (eval echo configure:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1074 echo "$ac_t""$ac_cv_c_const" 1>&6
1075 if test $ac_cv_c_const = no; then
1076 cat >> confdefs.h <<\EOF
1082 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1083 echo "configure:1078: checking whether byte ordering is bigendian" >&5
1084 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 ac_cv_c_bigendian=unknown
1088 # See if sys/param.h defines the BYTE_ORDER macro.
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1085 "configure"
1091 #include "confdefs.h"
1092 #include <sys/types.h>
1093 #include <sys/param.h>
1096 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1101 if { (eval echo configure:1096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 # It does; now see whether it defined to BIG_ENDIAN or not.
1104 cat > conftest.$ac_ext <<EOF
1105 #line 1100 "configure"
1106 #include "confdefs.h"
1107 #include <sys/types.h>
1108 #include <sys/param.h>
1111 #if BYTE_ORDER != BIG_ENDIAN
1116 if { (eval echo configure:1111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1118 ac_cv_c_bigendian=yes
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1123 ac_cv_c_bigendian=no
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1131 if test $ac_cv_c_bigendian = unknown; then
1132 if test "$cross_compiling" = yes; then
1133 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1131 "configure"
1137 #include "confdefs.h"
1139 /* Are we little or big endian? From Harbison&Steele. */
1143 char c[sizeof (long)];
1146 exit (u.c[sizeof (long) - 1] == 1);
1149 if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1151 ac_cv_c_bigendian=no
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1156 ac_cv_c_bigendian=yes
1164 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1165 if test $ac_cv_c_bigendian = yes; then
1166 cat >> confdefs.h <<\EOF
1167 #define WORDS_BIGENDIAN 1
1173 for ac_func in gettimeofday select strerror strtod strtol
1175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1176 echo "configure:1171: checking for $ac_func" >&5
1177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1176 "configure"
1182 #include "confdefs.h"
1183 /* System header to define __stub macros and hopefully few prototypes,
1184 which can conflict with char $ac_func(); below. */
1186 /* Override any gcc2 internal prototype to avoid an error. */
1187 /* We use char because int might match the return type of a gcc2
1188 builtin and then its argument prototype would still apply. */
1193 /* The GNU C library defines this for functions which it implements
1194 to always fail with ENOSYS. Some functions are actually named
1195 something starting with __ and the normal name is an alias. */
1196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1204 if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1206 eval "ac_cv_func_$ac_func=yes"
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1211 eval "ac_cv_func_$ac_func=no"
1216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1217 echo "$ac_t""yes" 1>&6
1218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1219 cat >> confdefs.h <<EOF
1220 #define $ac_tr_func 1
1224 echo "$ac_t""no" 1>&6
1228 for ac_func in setenv putenv
1230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1231 echo "configure:1226: checking for $ac_func" >&5
1232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1231 "configure"
1237 #include "confdefs.h"
1238 /* System header to define __stub macros and hopefully few prototypes,
1239 which can conflict with char $ac_func(); below. */
1241 /* Override any gcc2 internal prototype to avoid an error. */
1242 /* We use char because int might match the return type of a gcc2
1243 builtin and then its argument prototype would still apply. */
1248 /* The GNU C library defines this for functions which it implements
1249 to always fail with ENOSYS. Some functions are actually named
1250 something starting with __ and the normal name is an alias. */
1251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1259 if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1261 eval "ac_cv_func_$ac_func=yes"
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1266 eval "ac_cv_func_$ac_func=no"
1271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1272 echo "$ac_t""yes" 1>&6
1273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1274 cat >> confdefs.h <<EOF
1275 #define $ac_tr_func 1
1279 echo "$ac_t""no" 1>&6
1283 echo $ac_n "checking for connect""... $ac_c" 1>&6
1284 echo "configure:1279: checking for connect" >&5
1285 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 cat > conftest.$ac_ext <<EOF
1289 #line 1284 "configure"
1290 #include "confdefs.h"
1291 /* System header to define __stub macros and hopefully few prototypes,
1292 which can conflict with char connect(); below. */
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1301 /* The GNU C library defines this for functions which it implements
1302 to always fail with ENOSYS. Some functions are actually named
1303 something starting with __ and the normal name is an alias. */
1304 #if defined (__stub_connect) || defined (__stub___connect)
1312 if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1314 eval "ac_cv_func_connect=yes"
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1319 eval "ac_cv_func_connect=no"
1324 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1328 echo "$ac_t""no" 1>&6
1329 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1330 echo "configure:1325: checking for connect in -lsocket" >&5
1331 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 ac_save_LIBS="$LIBS"
1336 LIBS="-lsocket $LIBS"
1337 cat > conftest.$ac_ext <<EOF
1338 #line 1333 "configure"
1339 #include "confdefs.h"
1340 /* Override any gcc2 internal prototype to avoid an error. */
1341 /* We use char because int might match the return type of a gcc2
1342 builtin and then its argument prototype would still apply. */
1349 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1351 eval "ac_cv_lib_$ac_lib_var=yes"
1353 echo "configure: failed program was:" >&5
1354 cat conftest.$ac_ext >&5
1356 eval "ac_cv_lib_$ac_lib_var=no"
1359 LIBS="$ac_save_LIBS"
1362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1363 echo "$ac_t""yes" 1>&6
1364 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1366 cat >> confdefs.h <<EOF
1367 #define $ac_tr_lib 1
1370 LIBS="-lsocket $LIBS"
1373 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1379 echo "configure:1374: checking for gethostbyname" >&5
1380 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1379 "configure"
1385 #include "confdefs.h"
1386 /* System header to define __stub macros and hopefully few prototypes,
1387 which can conflict with char gethostbyname(); below. */
1389 /* Override any gcc2 internal prototype to avoid an error. */
1390 /* We use char because int might match the return type of a gcc2
1391 builtin and then its argument prototype would still apply. */
1392 char gethostbyname();
1396 /* The GNU C library defines this for functions which it implements
1397 to always fail with ENOSYS. Some functions are actually named
1398 something starting with __ and the normal name is an alias. */
1399 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1407 if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1409 eval "ac_cv_func_gethostbyname=yes"
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 eval "ac_cv_func_gethostbyname=no"
1419 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1420 echo "$ac_t""yes" 1>&6
1423 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1425 echo "configure:1420: checking for gethostbyname in -lnsl" >&5
1426 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 ac_save_LIBS="$LIBS"
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1428 "configure"
1434 #include "confdefs.h"
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1438 char gethostbyname();
1444 if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1446 eval "ac_cv_lib_$ac_lib_var=yes"
1448 echo "configure: failed program was:" >&5
1449 cat conftest.$ac_ext >&5
1451 eval "ac_cv_lib_$ac_lib_var=no"
1454 LIBS="$ac_save_LIBS"
1457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1461 cat >> confdefs.h <<EOF
1462 #define $ac_tr_lib 1
1468 echo "$ac_t""no" 1>&6
1473 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1474 echo "configure:1469: checking for nanosleep" >&5
1475 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1474 "configure"
1480 #include "confdefs.h"
1481 /* System header to define __stub macros and hopefully few prototypes,
1482 which can conflict with char nanosleep(); below. */
1484 /* Override any gcc2 internal prototype to avoid an error. */
1485 /* We use char because int might match the return type of a gcc2
1486 builtin and then its argument prototype would still apply. */
1491 /* The GNU C library defines this for functions which it implements
1492 to always fail with ENOSYS. Some functions are actually named
1493 something starting with __ and the normal name is an alias. */
1494 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1502 if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1504 eval "ac_cv_func_nanosleep=yes"
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1509 eval "ac_cv_func_nanosleep=no"
1514 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1518 echo "$ac_t""no" 1>&6
1519 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1520 echo "configure:1515: checking for nanosleep in -lrt" >&5
1521 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_save_LIBS="$LIBS"
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1523 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1539 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 eval "ac_cv_lib_$ac_lib_var=no"
1549 LIBS="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1556 cat >> confdefs.h <<EOF
1557 #define $ac_tr_lib 1
1563 echo "$ac_t""no" 1>&6
1564 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1565 echo "configure:1560: checking for nanosleep in -lposix4" >&5
1566 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 ac_save_LIBS="$LIBS"
1571 LIBS="-lposix4 $LIBS"
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1568 "configure"
1574 #include "confdefs.h"
1575 /* Override any gcc2 internal prototype to avoid an error. */
1576 /* We use char because int might match the return type of a gcc2
1577 builtin and then its argument prototype would still apply. */
1584 if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1586 eval "ac_cv_lib_$ac_lib_var=yes"
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1591 eval "ac_cv_lib_$ac_lib_var=no"
1594 LIBS="$ac_save_LIBS"
1597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1598 echo "$ac_t""yes" 1>&6
1599 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1601 cat >> confdefs.h <<EOF
1602 #define $ac_tr_lib 1
1605 LIBS="-lposix4 $LIBS"
1608 echo "$ac_t""no" 1>&6
1615 for ac_func in usleep
1617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1618 echo "configure:1613: checking for $ac_func" >&5
1619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1618 "configure"
1624 #include "confdefs.h"
1625 /* System header to define __stub macros and hopefully few prototypes,
1626 which can conflict with char $ac_func(); below. */
1628 /* Override any gcc2 internal prototype to avoid an error. */
1629 /* We use char because int might match the return type of a gcc2
1630 builtin and then its argument prototype would still apply. */
1635 /* The GNU C library defines this for functions which it implements
1636 to always fail with ENOSYS. Some functions are actually named
1637 something starting with __ and the normal name is an alias. */
1638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1646 if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 eval "ac_cv_func_$ac_func=yes"
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 eval "ac_cv_func_$ac_func=no"
1658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1659 echo "$ac_t""yes" 1>&6
1660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1661 cat >> confdefs.h <<EOF
1662 #define $ac_tr_func 1
1666 echo "$ac_t""no" 1>&6
1670 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1671 echo "configure:1666: checking for inet_aton" >&5
1672 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1671 "configure"
1677 #include "confdefs.h"
1678 /* System header to define __stub macros and hopefully few prototypes,
1679 which can conflict with char inet_aton(); below. */
1681 /* Override any gcc2 internal prototype to avoid an error. */
1682 /* We use char because int might match the return type of a gcc2
1683 builtin and then its argument prototype would still apply. */
1688 /* The GNU C library defines this for functions which it implements
1689 to always fail with ENOSYS. Some functions are actually named
1690 something starting with __ and the normal name is an alias. */
1691 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1699 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1701 eval "ac_cv_func_inet_aton=yes"
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 eval "ac_cv_func_inet_aton=no"
1711 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1715 echo "$ac_t""no" 1>&6
1716 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1717 echo "configure:1712: checking for inet_aton in -lresolv" >&5
1718 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 ac_save_LIBS="$LIBS"
1723 LIBS="-lresolv $LIBS"
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1720 "configure"
1726 #include "confdefs.h"
1727 /* Override any gcc2 internal prototype to avoid an error. */
1728 /* We use char because int might match the return type of a gcc2
1729 builtin and then its argument prototype would still apply. */
1736 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738 eval "ac_cv_lib_$ac_lib_var=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 eval "ac_cv_lib_$ac_lib_var=no"
1746 LIBS="$ac_save_LIBS"
1749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1750 echo "$ac_t""yes" 1>&6
1751 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1752 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1753 cat >> confdefs.h <<EOF
1754 #define $ac_tr_lib 1
1757 LIBS="-lresolv $LIBS"
1760 echo "$ac_t""no" 1>&6
1765 for ac_hdr in unistd.h
1767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1769 echo "configure:1764: checking for $ac_hdr" >&5
1770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1769 "configure"
1775 #include "confdefs.h"
1778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1779 { (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1781 if test -z "$ac_err"; then
1783 eval "ac_cv_header_$ac_safe=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 eval "ac_cv_header_$ac_safe=no"
1793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1796 cat >> confdefs.h <<EOF
1797 #define $ac_tr_hdr 1
1801 echo "$ac_t""no" 1>&6
1805 for ac_func in getpagesize
1807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808 echo "configure:1803: checking for $ac_func" >&5
1809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1808 "configure"
1814 #include "confdefs.h"
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1836 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 eval "ac_cv_func_$ac_func=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_func_$ac_func=no"
1848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1851 cat >> confdefs.h <<EOF
1852 #define $ac_tr_func 1
1856 echo "$ac_t""no" 1>&6
1860 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1861 echo "configure:1856: checking for working mmap" >&5
1862 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 if test "$cross_compiling" = yes; then
1866 ac_cv_func_mmap_fixed_mapped=no
1868 cat > conftest.$ac_ext <<EOF
1869 #line 1864 "configure"
1870 #include "confdefs.h"
1872 /* Thanks to Mike Haertel and Jim Avera for this test.
1873 Here is a matrix of mmap possibilities:
1874 mmap private not fixed
1875 mmap private fixed at somewhere currently unmapped
1876 mmap private fixed at somewhere already mapped
1877 mmap shared not fixed
1878 mmap shared fixed at somewhere currently unmapped
1879 mmap shared fixed at somewhere already mapped
1880 For private mappings, we should verify that changes cannot be read()
1881 back from the file, nor mmap's back from the file at a different
1882 address. (There have been systems where private was not correctly
1883 implemented like the infamous i386 svr4.0, and systems where the
1884 VM page cache was not coherent with the filesystem buffer cache
1885 like early versions of FreeBSD and possibly contemporary NetBSD.)
1886 For shared mappings, we should conversely verify that changes get
1887 propogated back to all the places they're supposed to be.
1889 Grep wants private fixed already mapped.
1890 The main things grep needs to know about mmap are:
1891 * does it exist and is it safe to write into the mmap'd area
1892 * how to use it (BSD variants) */
1893 #include <sys/types.h>
1895 #include <sys/mman.h>
1897 #include <sys/stat.h>
1899 #ifdef HAVE_UNISTD_H
1900 # include <unistd.h>
1903 /* This mess was copied from the GNU getpagesize.h. */
1904 #ifndef HAVE_GETPAGESIZE
1906 /* Assume that all systems that can run configure have sys/param.h. */
1907 # ifndef HAVE_SYS_PARAM_H
1908 # define HAVE_SYS_PARAM_H 1
1911 # ifdef _SC_PAGESIZE
1912 # define getpagesize() sysconf(_SC_PAGESIZE)
1913 # else /* no _SC_PAGESIZE */
1914 # ifdef HAVE_SYS_PARAM_H
1915 # include <sys/param.h>
1916 # ifdef EXEC_PAGESIZE
1917 # define getpagesize() EXEC_PAGESIZE
1918 # else /* no EXEC_PAGESIZE */
1920 # define getpagesize() NBPG * CLSIZE
1923 # endif /* no CLSIZE */
1924 # else /* no NBPG */
1926 # define getpagesize() NBPC
1927 # else /* no NBPC */
1929 # define getpagesize() PAGESIZE
1930 # endif /* PAGESIZE */
1931 # endif /* no NBPC */
1932 # endif /* no NBPG */
1933 # endif /* no EXEC_PAGESIZE */
1934 # else /* no HAVE_SYS_PARAM_H */
1935 # define getpagesize() 8192 /* punt totally */
1936 # endif /* no HAVE_SYS_PARAM_H */
1937 # endif /* no _SC_PAGESIZE */
1939 #endif /* no HAVE_GETPAGESIZE */
1942 extern "C" { void *malloc(unsigned); }
1950 char *data, *data2, *data3;
1954 pagesize = getpagesize();
1957 * First, make a file with some known garbage in it.
1959 data = (char*)malloc(pagesize);
1962 for (i = 0; i < pagesize; ++i)
1963 *(data + i) = rand();
1965 fd = creat("conftestmmap", 0600);
1968 if (write(fd, data, pagesize) != pagesize)
1973 * Next, try to mmap the file at a fixed address which
1974 * already has something else allocated at it. If we can,
1975 * also make sure that we see the same garbage.
1977 fd = open("conftestmmap", O_RDWR);
1980 data2 = (char*)malloc(2 * pagesize);
1983 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1984 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1985 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1987 for (i = 0; i < pagesize; ++i)
1988 if (*(data + i) != *(data2 + i))
1992 * Finally, make sure that changes to the mapped area
1993 * do not percolate back to the file as seen by read().
1994 * (This is a bug on some variants of i386 svr4.0.)
1996 for (i = 0; i < pagesize; ++i)
1997 *(data2 + i) = *(data2 + i) + 1;
1998 data3 = (char*)malloc(pagesize);
2001 if (read(fd, data3, pagesize) != pagesize)
2003 for (i = 0; i < pagesize; ++i)
2004 if (*(data + i) != *(data3 + i))
2007 unlink("conftestmmap");
2012 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2014 ac_cv_func_mmap_fixed_mapped=yes
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2019 ac_cv_func_mmap_fixed_mapped=no
2026 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2027 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2028 cat >> confdefs.h <<\EOF
2034 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2035 echo "configure:2030: checking for vprintf" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2035 "configure"
2041 #include "confdefs.h"
2042 /* System header to define __stub macros and hopefully few prototypes,
2043 which can conflict with char vprintf(); below. */
2045 /* Override any gcc2 internal prototype to avoid an error. */
2046 /* We use char because int might match the return type of a gcc2
2047 builtin and then its argument prototype would still apply. */
2052 /* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2063 if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2065 eval "ac_cv_func_vprintf=yes"
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 eval "ac_cv_func_vprintf=no"
2075 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2077 cat >> confdefs.h <<\EOF
2078 #define HAVE_VPRINTF 1
2082 echo "$ac_t""no" 1>&6
2085 if test "$ac_cv_func_vprintf" != yes; then
2086 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2087 echo "configure:2082: checking for _doprnt" >&5
2088 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2087 "configure"
2093 #include "confdefs.h"
2094 /* System header to define __stub macros and hopefully few prototypes,
2095 which can conflict with char _doprnt(); below. */
2097 /* Override any gcc2 internal prototype to avoid an error. */
2098 /* We use char because int might match the return type of a gcc2
2099 builtin and then its argument prototype would still apply. */
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2115 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2117 eval "ac_cv_func__doprnt=yes"
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2122 eval "ac_cv_func__doprnt=no"
2127 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 cat >> confdefs.h <<\EOF
2130 #define HAVE_DOPRNT 1
2134 echo "$ac_t""no" 1>&6
2139 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2140 echo "configure:2135: checking return type of signal handlers" >&5
2141 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2140 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2153 extern "C" void (*signal (int, void (*)(int)))(int);
2155 void (*signal ()) ();
2162 if { (eval echo configure:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2164 ac_cv_type_signal=void
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 ac_cv_type_signal=int
2174 echo "$ac_t""$ac_cv_type_signal" 1>&6
2175 cat >> confdefs.h <<EOF
2176 #define RETSIGTYPE $ac_cv_type_signal
2180 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2181 echo "configure:2176: checking for dlopen in -ldl" >&5
2182 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 ac_save_LIBS="$LIBS"
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2184 "configure"
2190 #include "confdefs.h"
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2200 if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2202 eval "ac_cv_lib_$ac_lib_var=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 eval "ac_cv_lib_$ac_lib_var=no"
2210 LIBS="$ac_save_LIBS"
2213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2217 cat >> confdefs.h <<EOF
2218 #define $ac_tr_lib 1
2224 echo "$ac_t""no" 1>&6
2227 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2228 echo "configure:2223: checking for optarg in -lgnugetopt" >&5
2229 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 ac_save_LIBS="$LIBS"
2234 LIBS="-lgnugetopt $LIBS"
2235 cat > conftest.$ac_ext <<EOF
2236 #line 2231 "configure"
2237 #include "confdefs.h"
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2247 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2249 eval "ac_cv_lib_$ac_lib_var=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_lib_$ac_lib_var=no"
2257 LIBS="$ac_save_LIBS"
2260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2264 cat >> confdefs.h <<EOF
2265 #define $ac_tr_lib 1
2268 LIBS="-lgnugetopt $LIBS"
2271 echo "$ac_t""no" 1>&6
2274 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2275 echo "configure:2270: checking for _ in -lbe" >&5
2276 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 ac_save_LIBS="$LIBS"
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2278 "configure"
2284 #include "confdefs.h"
2285 /* Override any gcc2 internal prototype to avoid an error. */
2286 /* We use char because int might match the return type of a gcc2
2287 builtin and then its argument prototype would still apply. */
2294 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2296 eval "ac_cv_lib_$ac_lib_var=yes"
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2301 eval "ac_cv_lib_$ac_lib_var=no"
2304 LIBS="$ac_save_LIBS"
2307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2309 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2311 cat >> confdefs.h <<EOF
2312 #define $ac_tr_lib 1
2318 echo "$ac_t""no" 1>&6
2321 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2322 echo "configure:2317: checking for _ in -lgame" >&5
2323 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 ac_save_LIBS="$LIBS"
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2325 "configure"
2331 #include "confdefs.h"
2332 /* Override any gcc2 internal prototype to avoid an error. */
2333 /* We use char because int might match the return type of a gcc2
2334 builtin and then its argument prototype would still apply. */
2341 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2343 eval "ac_cv_lib_$ac_lib_var=yes"
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2348 eval "ac_cv_lib_$ac_lib_var=no"
2351 LIBS="$ac_save_LIBS"
2354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2358 cat >> confdefs.h <<EOF
2359 #define $ac_tr_lib 1
2365 echo "$ac_t""no" 1>&6
2368 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2369 echo "configure:2364: checking for _ in -lroot" >&5
2370 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS="$LIBS"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2372 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2388 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2405 cat >> confdefs.h <<EOF
2406 #define $ac_tr_lib 1
2412 echo "$ac_t""no" 1>&6
2415 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2416 echo "configure:2411: checking for powl in -lm" >&5
2417 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 ac_save_LIBS="$LIBS"
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2419 "configure"
2425 #include "confdefs.h"
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2435 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2437 eval "ac_cv_lib_$ac_lib_var=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_lib_$ac_lib_var=no"
2445 LIBS="$ac_save_LIBS"
2448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2452 cat >> confdefs.h <<EOF
2453 #define $ac_tr_lib 1
2459 echo "$ac_t""no" 1>&6
2462 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2463 echo "configure:2458: checking for pthread_create in -lpthread" >&5
2464 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 ac_save_LIBS="$LIBS"
2469 LIBS="-lpthread $LIBS"
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2466 "configure"
2472 #include "confdefs.h"
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2476 char pthread_create();
2482 if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484 eval "ac_cv_lib_$ac_lib_var=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 eval "ac_cv_lib_$ac_lib_var=no"
2492 LIBS="$ac_save_LIBS"
2495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2498 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2499 cat >> confdefs.h <<EOF
2500 #define $ac_tr_lib 1
2503 LIBS="-lpthread $LIBS"
2506 echo "$ac_t""no" 1>&6
2509 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2510 echo "configure:2505: checking for thread_create in -lthreads" >&5
2511 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 ac_save_LIBS="$LIBS"
2516 LIBS="-lthreads $LIBS"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2513 "configure"
2519 #include "confdefs.h"
2520 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2523 char thread_create();
2529 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 eval "ac_cv_lib_$ac_lib_var=yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 eval "ac_cv_lib_$ac_lib_var=no"
2539 LIBS="$ac_save_LIBS"
2542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2543 echo "$ac_t""yes" 1>&6
2544 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2545 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2546 cat >> confdefs.h <<EOF
2547 #define $ac_tr_lib 1
2550 LIBS="-lthreads $LIBS"
2553 echo "$ac_t""no" 1>&6
2557 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2558 echo "configure:2553: checking for getopt_long" >&5
2559 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2558 "configure"
2564 #include "confdefs.h"
2565 /* System header to define __stub macros and hopefully few prototypes,
2566 which can conflict with char getopt_long(); below. */
2568 /* Override any gcc2 internal prototype to avoid an error. */
2569 /* We use char because int might match the return type of a gcc2
2570 builtin and then its argument prototype would still apply. */
2575 /* The GNU C library defines this for functions which it implements
2576 to always fail with ENOSYS. Some functions are actually named
2577 something starting with __ and the normal name is an alias. */
2578 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2586 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588 eval "ac_cv_func_getopt_long=yes"
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2593 eval "ac_cv_func_getopt_long=no"
2598 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2602 echo "$ac_t""no" 1>&6
2603 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2608 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2612 echo "configure:2607: checking for $ac_hdr" >&5
2613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2612 "configure"
2618 #include "confdefs.h"
2621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2622 { (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2624 if test -z "$ac_err"; then
2626 eval "ac_cv_header_$ac_safe=yes"
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 eval "ac_cv_header_$ac_safe=no"
2636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2637 echo "$ac_t""yes" 1>&6
2638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2639 cat >> confdefs.h <<EOF
2640 #define $ac_tr_hdr 1
2644 echo "$ac_t""no" 1>&6
2648 for ac_hdr in sys/soundcard.h machine/soundcard.h
2650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2652 echo "configure:2647: checking for $ac_hdr" >&5
2653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2652 "configure"
2658 #include "confdefs.h"
2661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2662 { (eval echo configure:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2664 if test -z "$ac_err"; then
2666 eval "ac_cv_header_$ac_safe=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_header_$ac_safe=no"
2676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2679 cat >> confdefs.h <<EOF
2680 #define $ac_tr_hdr 1
2684 echo "$ac_t""no" 1>&6
2688 for ac_hdr in dlfcn.h image.h
2690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2692 echo "configure:2687: checking for $ac_hdr" >&5
2693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2692 "configure"
2698 #include "confdefs.h"
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2706 eval "ac_cv_header_$ac_safe=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_header_$ac_safe=no"
2716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2719 cat >> confdefs.h <<EOF
2720 #define $ac_tr_hdr 1
2724 echo "$ac_t""no" 1>&6
2728 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2732 echo "configure:2727: checking for $ac_hdr" >&5
2733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2732 "configure"
2738 #include "confdefs.h"
2741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2742 { (eval echo configure:2737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2744 if test -z "$ac_err"; then
2746 eval "ac_cv_header_$ac_safe=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 eval "ac_cv_header_$ac_safe=no"
2756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2757 echo "$ac_t""yes" 1>&6
2758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2759 cat >> confdefs.h <<EOF
2760 #define $ac_tr_hdr 1
2764 echo "$ac_t""no" 1>&6
2769 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2773 echo "configure:2768: checking for $ac_hdr" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2773 "configure"
2779 #include "confdefs.h"
2782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2785 if test -z "$ac_err"; then
2787 eval "ac_cv_header_$ac_safe=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2793 eval "ac_cv_header_$ac_safe=no"
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_hdr 1
2805 echo "$ac_t""no" 1>&6
2810 echo $ac_n "checking for working const""... $ac_c" 1>&6
2811 echo "configure:2806: checking for working const" >&5
2812 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 cat > conftest.$ac_ext <<EOF
2816 #line 2811 "configure"
2817 #include "confdefs.h"
2821 /* Ultrix mips cc rejects this. */
2822 typedef int charset[2]; const charset x = {0,0};
2823 /* SunOS 4.1.1 cc rejects this. */
2824 char const *const *ccp;
2826 /* NEC SVR4.0.2 mips cc rejects this. */
2827 struct point {int x, y;};
2828 static struct point const zero = {0,0};
2829 /* AIX XL C 1.02.0.0 rejects this.
2830 It does not let you subtract one const X* pointer from another in an arm
2831 of an if-expression whose if-part is not a constant expression */
2832 const char *g = "string";
2833 ccp = &g + (g ? g-g : 0);
2834 /* HPUX 7.0 cc rejects these. */
2837 ccp = (char const *const *) p;
2838 { /* SCO 3.2v4 cc rejects this. */
2840 char const *s = 0 ? (char *) 0 : (char const *) 0;
2844 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2846 const int *foo = &x[0];
2849 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2850 typedef const int *iptr;
2854 { /* AIX XL C 1.02.0.0 rejects this saying
2855 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2856 struct s { int j; const int *ap[3]; };
2857 struct s *b; b->j = 5;
2859 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2865 if { (eval echo configure:2860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2877 echo "$ac_t""$ac_cv_c_const" 1>&6
2878 if test $ac_cv_c_const = no; then
2879 cat >> confdefs.h <<\EOF
2885 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2886 echo "configure:2881: checking for ANSI C header files" >&5
2887 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2886 "configure"
2892 #include "confdefs.h"
2898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2899 { (eval echo configure:2894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2901 if test -z "$ac_err"; then
2903 ac_cv_header_stdc=yes
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2909 ac_cv_header_stdc=no
2913 if test $ac_cv_header_stdc = yes; then
2914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2911 "configure"
2917 #include "confdefs.h"
2920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2921 egrep "memchr" >/dev/null 2>&1; then
2925 ac_cv_header_stdc=no
2931 if test $ac_cv_header_stdc = yes; then
2932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2929 "configure"
2935 #include "confdefs.h"
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 egrep "free" >/dev/null 2>&1; then
2943 ac_cv_header_stdc=no
2949 if test $ac_cv_header_stdc = yes; then
2950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2951 if test "$cross_compiling" = yes; then
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2950 "configure"
2956 #include "confdefs.h"
2958 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2959 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2961 int main () { int i; for (i = 0; i < 256; i++)
2962 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2966 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2973 ac_cv_header_stdc=no
2981 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2982 if test $ac_cv_header_stdc = yes; then
2983 cat >> confdefs.h <<\EOF
2984 #define STDC_HEADERS 1
2989 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2990 echo "configure:2985: checking for size_t" >&5
2991 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2990 "configure"
2996 #include "confdefs.h"
2997 #include <sys/types.h>
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3006 ac_cv_type_size_t=yes
3009 ac_cv_type_size_t=no
3014 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3015 if test $ac_cv_type_size_t = no; then
3016 cat >> confdefs.h <<\EOF
3017 #define size_t unsigned
3022 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3023 echo "configure:3018: checking whether time.h and sys/time.h may both be included" >&5
3024 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3023 "configure"
3029 #include "confdefs.h"
3030 #include <sys/types.h>
3031 #include <sys/time.h>
3037 if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 ac_cv_header_time=yes
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 ac_cv_header_time=no
3049 echo "$ac_t""$ac_cv_header_time" 1>&6
3050 if test $ac_cv_header_time = yes; then
3051 cat >> confdefs.h <<\EOF
3052 #define TIME_WITH_SYS_TIME 1
3058 PLUGINS=${PLUGINS}"yuv ";
3061 # Check whether --enable-ppro or --disable-ppro was given.
3062 if test "${enable_ppro+set}" = set; then
3063 enableval="$enable_ppro"
3064 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3067 # Check whether --enable-mmx or --disable-mmx was given.
3068 if test "${enable_mmx+set}" = set; then
3069 enableval="$enable_mmx"
3070 if test x`echo $ARCH | cut -b3-4` = x86 ; then if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi; fi
3073 # Check whether --enable-debug or --disable-debug was given.
3074 if test "${enable_debug+set}" = set; then
3075 enableval="$enable_debug"
3076 if test x$enableval = xyes; then DEBUG=1; fi
3079 # Check whether --enable-stats or --disable-stats was given.
3080 if test "${enable_stats+set}" = set; then
3081 enableval="$enable_stats"
3083 if test x$enable_stats != xno; then STATS=1; fi
3085 # Check whether --enable-optims or --disable-optims was given.
3086 if test "${enable_optims+set}" = set; then
3087 enableval="$enable_optims"
3089 if test x$enable_optims != xno; then OPTIMS=1; fi
3095 if test x$host_os = xbeos; then
3096 PLUGINS=${PLUGINS}"dummy beos "
3100 # Check whether --enable-dummy or --disable-dummy was given.
3101 if test "${enable_dummy+set}" = set; then
3102 enableval="$enable_dummy"
3106 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3107 # Check whether --enable-dsp or --disable-dsp was given.
3108 if test "${enable_dsp+set}" = set; then
3109 enableval="$enable_dsp"
3113 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3114 # Check whether --enable-esd or --disable-esd was given.
3115 if test "${enable_esd+set}" = set; then
3116 enableval="$enable_esd"
3117 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3120 # Check whether --enable-fb or --disable-fb was given.
3121 if test "${enable_fb+set}" = set; then
3122 enableval="$enable_fb"
3123 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3126 # Check whether --enable-ggi or --disable-ggi was given.
3127 if test "${enable_ggi+set}" = set; then
3128 enableval="$enable_ggi"
3129 if test x$enable_ggi = xyes; then PLUGINS=${PLUGINS}"ggi "; fi
3132 # Check whether --enable-sdl or --disable-sdl was given.
3133 if test "${enable_sdl+set}" = set; then
3134 enableval="$enable_sdl"
3135 if test x$enable_sdl = xyes; then PLUGINS=${PLUGINS}"sdl "; fi
3138 # Check whether --enable-glide or --disable-glide was given.
3139 if test "${enable_glide+set}" = set; then
3140 enableval="$enable_glide"
3141 if test x$enable_glide = xyes; then PLUGINS=${PLUGINS}"glide "; fi
3144 # Check whether --enable-gnome or --disable-gnome was given.
3145 if test "${enable_gnome+set}" = set; then
3146 enableval="$enable_gnome"
3147 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3150 # Check whether --enable-alsa or --disable-alsa was given.
3151 if test "${enable_alsa+set}" = set; then
3152 enableval="$enable_alsa"
3153 if test x$enable_alsa = xyes; then PLUGINS=${PLUGINS}"alsa "; fi
3156 # Check whether --enable-x11 or --disable-x11 was given.
3157 if test "${enable_x11+set}" = set; then
3158 enableval="$enable_x11"
3162 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3172 cat > confcache <<\EOF
3173 # This file is a shell script that caches the results of configure
3174 # tests run on this system so they can be shared between configure
3175 # scripts and configure runs. It is not useful on other systems.
3176 # If it contains results you don't want to keep, you may remove or edit it.
3178 # By default, configure uses ./config.cache as the cache file,
3179 # creating it if it does not exist already. You can give configure
3180 # the --cache-file=FILE option to use a different cache file; that is
3181 # what configure does when it calls configure scripts in
3182 # subdirectories, so they share the cache.
3183 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3184 # config.status only pays attention to the cache file if you give it the
3185 # --recheck option to rerun configure.
3188 # The following way of writing the cache mishandles newlines in values,
3189 # but we know of no workaround that is simple, portable, and efficient.
3190 # So, don't put newlines in cache variables' values.
3191 # Ultrix sh set writes to stderr and can't be redirected directly,
3192 # and sets the high bit in the cache file unless we assign to the vars.
3194 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3196 # `set' does not quote correctly, so add quotes (double-quote substitution
3197 # turns \\\\ into \\, and sed turns \\ into \).
3199 -e "s/'/'\\\\''/g" \
3200 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3203 # `set' quotes correctly as required by POSIX, so do not add quotes.
3204 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3207 if cmp -s $cache_file confcache; then
3210 if test -w $cache_file; then
3211 echo "updating cache $cache_file"
3212 cat confcache > $cache_file
3214 echo "not updating unwritable cache $cache_file"
3219 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3221 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3222 # Let make expand exec_prefix.
3223 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3225 # Any assignment to VPATH causes Sun make to only execute
3226 # the first set of double-colon rules, so remove it if not needed.
3227 # If there is a colon in the path, we need to keep it.
3228 if test "x$srcdir" = x.; then
3229 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3232 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3234 DEFS=-DHAVE_CONFIG_H
3236 # Without the "./", some shells look in PATH for config.status.
3237 : ${CONFIG_STATUS=./config.status}
3239 echo creating $CONFIG_STATUS
3240 rm -f $CONFIG_STATUS
3241 cat > $CONFIG_STATUS <<EOF
3243 # Generated automatically by configure.
3244 # Run this file to recreate the current configuration.
3245 # This directory was configured as follows,
3246 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3248 # $0 $ac_configure_args
3250 # Compiler output produced by configure, useful for debugging
3251 # configure, is in ./config.log if it exists.
3253 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3256 case "\$ac_option" in
3257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3258 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3259 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3260 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3261 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3263 -help | --help | --hel | --he | --h)
3264 echo "\$ac_cs_usage"; exit 0 ;;
3265 *) echo "\$ac_cs_usage"; exit 1 ;;
3269 ac_given_srcdir=$srcdir
3270 ac_given_INSTALL="$INSTALL"
3272 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3274 cat >> $CONFIG_STATUS <<EOF
3276 # Protect against being on the right side of a sed subst in config.status.
3277 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3278 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3282 s%@CFLAGS@%$CFLAGS%g
3283 s%@CPPFLAGS@%$CPPFLAGS%g
3284 s%@CXXFLAGS@%$CXXFLAGS%g
3285 s%@FFLAGS@%$FFLAGS%g
3287 s%@LDFLAGS@%$LDFLAGS%g
3289 s%@exec_prefix@%$exec_prefix%g
3290 s%@prefix@%$prefix%g
3291 s%@program_transform_name@%$program_transform_name%g
3292 s%@bindir@%$bindir%g
3293 s%@sbindir@%$sbindir%g
3294 s%@libexecdir@%$libexecdir%g
3295 s%@datadir@%$datadir%g
3296 s%@sysconfdir@%$sysconfdir%g
3297 s%@sharedstatedir@%$sharedstatedir%g
3298 s%@localstatedir@%$localstatedir%g
3299 s%@libdir@%$libdir%g
3300 s%@includedir@%$includedir%g
3301 s%@oldincludedir@%$oldincludedir%g
3302 s%@infodir@%$infodir%g
3303 s%@mandir@%$mandir%g
3305 s%@host_alias@%$host_alias%g
3306 s%@host_cpu@%$host_cpu%g
3307 s%@host_vendor@%$host_vendor%g
3308 s%@host_os@%$host_os%g
3309 s%@VLC_VERSION@%$VLC_VERSION%g
3310 s%@VLC_CODENAME@%$VLC_CODENAME%g
3311 s%@SET_MAKE@%$SET_MAKE%g
3314 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3315 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3316 s%@INSTALL_DATA@%$INSTALL_DATA%g
3317 s%@LIBOBJS@%$LIBOBJS%g
3320 s%@PLUGINS@%$PLUGINS%g
3321 s%@ALIASES@%$ALIASES%g
3324 s%@OPTIMS@%$OPTIMS%g
3329 cat >> $CONFIG_STATUS <<\EOF
3331 # Split the substitutions into bite-sized pieces for seds with
3332 # small command number limits, like on Digital OSF/1 and HP-UX.
3333 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3334 ac_file=1 # Number of current file.
3335 ac_beg=1 # First line for current file.
3336 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3339 while $ac_more_lines; do
3340 if test $ac_beg -gt 1; then
3341 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3343 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3345 if test ! -s conftest.s$ac_file; then
3347 rm -f conftest.s$ac_file
3349 if test -z "$ac_sed_cmds"; then
3350 ac_sed_cmds="sed -f conftest.s$ac_file"
3352 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3354 ac_file=`expr $ac_file + 1`
3356 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3359 if test -z "$ac_sed_cmds"; then
3364 cat >> $CONFIG_STATUS <<EOF
3366 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3368 cat >> $CONFIG_STATUS <<\EOF
3369 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3370 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3372 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3373 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3374 *) ac_file_in="${ac_file}.in" ;;
3377 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3379 # Remove last slash and all that follows it. Not all systems have dirname.
3380 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3381 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3382 # The file is in a subdirectory.
3383 test ! -d "$ac_dir" && mkdir "$ac_dir"
3384 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3385 # A "../" for each directory in $ac_dir_suffix.
3386 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3388 ac_dir_suffix= ac_dots=
3391 case "$ac_given_srcdir" in
3393 if test -z "$ac_dots"; then top_srcdir=.
3394 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3395 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3397 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3398 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3401 case "$ac_given_INSTALL" in
3402 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3403 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3406 echo creating "$ac_file"
3408 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3410 *Makefile*) ac_comsub="1i\\
3411 # $configure_input" ;;
3415 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3417 s%@configure_input@%$configure_input%g
3418 s%@srcdir@%$srcdir%g
3419 s%@top_srcdir@%$top_srcdir%g
3420 s%@INSTALL@%$INSTALL%g
3421 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3425 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3426 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3428 # ac_d sets the value in "#define NAME VALUE" lines.
3429 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3430 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3433 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3434 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3435 ac_uB='\([ ]\)%\1#\2define\3'
3438 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3439 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3440 ac_eB='$%\1#\2define\3'
3444 if test "${CONFIG_HEADERS+set}" != set; then
3446 cat >> $CONFIG_STATUS <<EOF
3447 CONFIG_HEADERS="include/defs.h"
3449 cat >> $CONFIG_STATUS <<\EOF
3451 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3452 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3454 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3455 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3456 *) ac_file_in="${ac_file}.in" ;;
3459 echo creating $ac_file
3461 rm -f conftest.frag conftest.in conftest.out
3462 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3463 cat $ac_file_inputs > conftest.in
3467 # Transform confdefs.h into a sed script conftest.vals that substitutes
3468 # the proper values into config.h.in to produce config.h. And first:
3469 # Protect against being on the right side of a sed subst in config.status.
3470 # Protect against being in an unquoted here document in config.status.
3472 cat > conftest.hdr <<\EOF
3475 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3479 sed -n -f conftest.hdr confdefs.h > conftest.vals
3482 # This sed command replaces #undef with comments. This is necessary, for
3483 # example, in the case of _POSIX_SOURCE, which is predefined and required
3484 # on some systems where configure will not decide to define it.
3485 cat >> conftest.vals <<\EOF
3486 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3489 # Break up conftest.vals because some shells have a limit on
3490 # the size of here documents, and old seds have small limits too.
3495 ac_lines=`grep -c . conftest.vals`
3496 # grep -c gives empty output for an empty file on some AIX systems.
3497 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3498 # Write a limited-size here document to conftest.frag.
3499 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3500 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3502 sed -f conftest.frag conftest.in > conftest.out
3504 mv conftest.out conftest.in
3506 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3508 mv conftest.tail conftest.vals
3512 cat >> $CONFIG_STATUS <<\EOF
3513 rm -f conftest.frag conftest.h
3514 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3515 cat conftest.in >> conftest.h
3517 if cmp -s $ac_file conftest.h 2>/dev/null; then
3518 echo "$ac_file is unchanged"
3521 # Remove last slash and all that follows it. Not all systems have dirname.
3522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3524 # The file is in a subdirectory.
3525 test ! -d "$ac_dir" && mkdir "$ac_dir"
3528 mv conftest.h $ac_file
3533 cat >> $CONFIG_STATUS <<EOF
3536 cat >> $CONFIG_STATUS <<\EOF
3540 chmod +x $CONFIG_STATUS
3541 rm -fr confdefs* $ac_clean_files
3542 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3548 vlc version : ${VLC_VERSION}
3550 architecture : ${ARCH}
3551 debug mode : ${DEBUG}
3552 statistics : ${STATS}
3553 optimizations : ${OPTIMS}
3554 plugins : ${PLUGINS}
3555 vlc aliases : ${ALIASES}