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-ppro Enable PentiumPro optimizations (default is no)"
17 --enable-mmx Enable MMX optimizations (default is no)"
19 --enable-dummy dummy audio and video support (default enabled)"
21 --enable-dsp Linux /dev/dsp support (default enabled)"
23 --enable-esd Esound library support (default disabled)"
25 --enable-fb Linux framebuffer support (default disabled)"
27 --enable-ggi GGI support (default disabled)"
29 --enable-sdl SDL support (default disabled)"
31 --enable-glide Glide (3dfx) support (default disabled)"
33 --enable-gnome Gnome support (default disabled)"
35 --enable-x11 X11 support (default enabled)"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file=./config.cache
50 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host | --host | --hos | --ho)
213 -host=* | --host=* | --hos=* | --ho=*)
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
228 -libdir | --libdir | --libdi | --libd)
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 sbindir="$ac_optarg" ;;
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 sharedstatedir="$ac_optarg" ;;
332 -site | --site | --sit)
334 -site=* | --site=* | --sit=*)
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=src/interface/main.c
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE; then
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568 # Make sure we can run config.sub.
569 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
570 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
573 echo $ac_n "checking host system type""... $ac_c" 1>&6
574 echo "configure:575: checking host system type" >&5
577 case "$host_alias" in
581 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
582 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
584 *) host_alias=$nonopt ;;
588 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
589 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
590 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
591 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592 echo "$ac_t""$host" 1>&6
600 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
601 echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5
602 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
603 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 cat > conftestmake <<\EOF
608 @echo 'ac_maketemp="${MAKE}"'
610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
611 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
612 if test -n "$ac_maketemp"; then
613 eval ac_cv_prog_make_${ac_make}_set=yes
615 eval ac_cv_prog_make_${ac_make}_set=no
619 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
620 echo "$ac_t""yes" 1>&6
623 echo "$ac_t""no" 1>&6
624 SET_MAKE="MAKE=${MAKE-make}"
627 if test -z "$CC"; then
628 # Extract the first word of "gcc", so it can be a program name with args.
629 set dummy gcc; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
635 if test -n "$CC"; then
636 ac_cv_prog_CC="$CC" # Let the user override the test.
638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
640 for ac_dir in $ac_dummy; do
641 test -z "$ac_dir" && ac_dir=.
642 if test -f $ac_dir/$ac_word; then
651 if test -n "$CC"; then
652 echo "$ac_t""$CC" 1>&6
654 echo "$ac_t""no" 1>&6
657 if test -z "$CC"; then
658 # Extract the first word of "cc", so it can be a program name with args.
659 set dummy cc; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 if test -n "$CC"; then
666 ac_cv_prog_CC="$CC" # Let the user override the test.
668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
683 if test $ac_prog_rejected = yes; then
684 # We found a bogon in the path, so make sure we never use it.
685 set dummy $ac_cv_prog_CC
687 if test $# -gt 0; then
688 # We chose a different compiler from the bogus one.
689 # However, it has the same basename, so the bogon will be chosen
690 # first if we set CC to just the basename; use the full file name.
692 set dummy "$ac_dir/$ac_word" "$@"
700 if test -n "$CC"; then
701 echo "$ac_t""$CC" 1>&6
703 echo "$ac_t""no" 1>&6
706 if test -z "$CC"; then
709 # Extract the first word of "cl", so it can be a program name with args.
710 set dummy cl; ac_word=$2
711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
712 echo "configure:713: checking for $ac_word" >&5
713 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
716 if test -n "$CC"; then
717 ac_cv_prog_CC="$CC" # Let the user override the test.
719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
721 for ac_dir in $ac_dummy; do
722 test -z "$ac_dir" && ac_dir=.
723 if test -f $ac_dir/$ac_word; then
732 if test -n "$CC"; then
733 echo "$ac_t""$CC" 1>&6
735 echo "$ac_t""no" 1>&6
740 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp='$CPP $CPPFLAGS'
749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling=$ac_cv_prog_cc_cross
753 cat > conftest.$ac_ext << EOF
755 #line 756 "configure"
756 #include "confdefs.h"
760 if { (eval echo configure:761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
761 ac_cv_prog_cc_works=yes
762 # If we can't run a trivial program, we are probably using a cross compiler.
763 if (./conftest; exit) 2>/dev/null; then
764 ac_cv_prog_cc_cross=no
766 ac_cv_prog_cc_cross=yes
769 echo "configure: failed program was:" >&5
770 cat conftest.$ac_ext >&5
771 ac_cv_prog_cc_works=no
775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
776 ac_cpp='$CPP $CPPFLAGS'
777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
779 cross_compiling=$ac_cv_prog_cc_cross
781 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
782 if test $ac_cv_prog_cc_works = no; then
783 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
786 echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
787 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
788 cross_compiling=$ac_cv_prog_cc_cross
790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
791 echo "configure:792: checking whether we are using GNU C" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftest.c <<EOF
800 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
807 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
809 if test $ac_cv_prog_gcc = yes; then
815 ac_test_CFLAGS="${CFLAGS+set}"
816 ac_save_CFLAGS="$CFLAGS"
818 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${CC-cc} accepts -g" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 echo 'void f(){}' > conftest.c
824 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
833 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
834 if test "$ac_test_CFLAGS" = set; then
835 CFLAGS="$ac_save_CFLAGS"
836 elif test $ac_cv_prog_cc_g = yes; then
837 if test "$GCC" = yes; then
843 if test "$GCC" = yes; then
851 if test -z "$CPP"; then
852 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
853 echo "configure:854: checking how to run the C preprocessor" >&5
854 # On Suns, sometimes $CPP names a directory.
855 if test -n "$CPP" && test -d "$CPP"; then
858 if test -z "$CPP"; then
859 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 # This must be in double quotes, not single quotes, because CPP may get
863 # substituted into the Makefile and "${CC-cc}" will confuse make.
865 # On the NeXT, cc -E runs the code through the compiler's parser,
866 # not just through cpp.
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
874 { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
876 if test -z "$ac_err"; then
880 echo "configure: failed program was:" >&5
881 cat conftest.$ac_ext >&5
883 CPP="${CC-cc} -E -traditional-cpp"
884 cat > conftest.$ac_ext <<EOF
885 #line 886 "configure"
886 #include "confdefs.h"
890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
891 { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
893 if test -z "$ac_err"; then
897 echo "configure: failed program was:" >&5
898 cat conftest.$ac_ext >&5
900 CPP="${CC-cc} -nologo -E"
901 cat > conftest.$ac_ext <<EOF
902 #line 903 "configure"
903 #include "confdefs.h"
907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
908 { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
910 if test -z "$ac_err"; then
914 echo "configure: failed program was:" >&5
915 cat conftest.$ac_ext >&5
924 ac_cv_prog_CPP="$CPP"
926 CPP="$ac_cv_prog_CPP"
928 ac_cv_prog_CPP="$CPP"
930 echo "$ac_t""$CPP" 1>&6
934 # Find a good install program. We prefer a C program (faster),
935 # so one script is as good as another. But avoid the broken or
936 # incompatible versions:
937 # SysV /etc/install, /usr/sbin/install
938 # SunOS /usr/etc/install
941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
944 # ./install, which can be erroneously created by make from ./install.sh.
945 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
946 echo "configure:947: checking for a BSD compatible install" >&5
947 if test -z "$INSTALL"; then
948 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
949 echo $ac_n "(cached) $ac_c" 1>&6
951 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
952 for ac_dir in $PATH; do
953 # Account for people who put trailing slashes in PATH elements.
955 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
957 # OSF1 and SCO ODT 3.0 have their own names for install.
958 # Don't use installbsd from OSF since it installs stuff as root
960 for ac_prog in ginstall scoinst install; do
961 if test -f $ac_dir/$ac_prog; then
962 if test $ac_prog = install &&
963 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
964 # AIX install. It has an incompatible calling convention.
967 ac_cv_path_install="$ac_dir/$ac_prog -c"
978 if test "${ac_cv_path_install+set}" = set; then
979 INSTALL="$ac_cv_path_install"
981 # As a last resort, use the slow shell script. We don't cache a
982 # path for INSTALL within a source directory, because that will
983 # break other packages using the cache if that directory is
984 # removed, or if the path is relative.
985 INSTALL="$ac_install_sh"
988 echo "$ac_t""$INSTALL" 1>&6
990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
991 # It thinks the first close brace ends the variable substitution.
992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
999 echo $ac_n "checking for working const""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working const" >&5
1001 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 cat > conftest.$ac_ext <<EOF
1005 #line 1006 "configure"
1006 #include "confdefs.h"
1010 /* Ultrix mips cc rejects this. */
1011 typedef int charset[2]; const charset x = {0,0};
1012 /* SunOS 4.1.1 cc rejects this. */
1013 char const *const *ccp;
1015 /* NEC SVR4.0.2 mips cc rejects this. */
1016 struct point {int x, y;};
1017 static struct point const zero = {0,0};
1018 /* AIX XL C 1.02.0.0 rejects this.
1019 It does not let you subtract one const X* pointer from another in an arm
1020 of an if-expression whose if-part is not a constant expression */
1021 const char *g = "string";
1022 ccp = &g + (g ? g-g : 0);
1023 /* HPUX 7.0 cc rejects these. */
1026 ccp = (char const *const *) p;
1027 { /* SCO 3.2v4 cc rejects this. */
1029 char const *s = 0 ? (char *) 0 : (char const *) 0;
1033 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1035 const int *foo = &x[0];
1038 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1039 typedef const int *iptr;
1043 { /* AIX XL C 1.02.0.0 rejects this saying
1044 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1045 struct s { int j; const int *ap[3]; };
1046 struct s *b; b->j = 5;
1048 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1054 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1066 echo "$ac_t""$ac_cv_c_const" 1>&6
1067 if test $ac_cv_c_const = no; then
1068 cat >> confdefs.h <<\EOF
1074 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1075 echo "configure:1076: checking whether byte ordering is bigendian" >&5
1076 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 ac_cv_c_bigendian=unknown
1080 # See if sys/param.h defines the BYTE_ORDER macro.
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1084 #include <sys/types.h>
1085 #include <sys/param.h>
1088 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1093 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1095 # It does; now see whether it defined to BIG_ENDIAN or not.
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1099 #include <sys/types.h>
1100 #include <sys/param.h>
1103 #if BYTE_ORDER != BIG_ENDIAN
1108 if { (eval echo configure:1109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1110 ac_cv_c_bigendian=yes
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1115 ac_cv_c_bigendian=no
1119 echo "configure: failed program was:" >&5
1120 cat conftest.$ac_ext >&5
1123 if test $ac_cv_c_bigendian = unknown; then
1124 if test "$cross_compiling" = yes; then
1125 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1127 cat > conftest.$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1131 /* Are we little or big endian? From Harbison&Steele. */
1135 char c[sizeof (long)];
1138 exit (u.c[sizeof (long) - 1] == 1);
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1143 ac_cv_c_bigendian=no
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1148 ac_cv_c_bigendian=yes
1156 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1157 if test $ac_cv_c_bigendian = yes; then
1158 cat >> confdefs.h <<\EOF
1159 #define WORDS_BIGENDIAN 1
1165 for ac_func in gettimeofday select strerror strtod strtol
1167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_func" >&5
1169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1175 /* System header to define __stub macros and hopefully few prototypes,
1176 which can conflict with char $ac_func(); below. */
1178 /* Override any gcc2 internal prototype to avoid an error. */
1179 /* We use char because int might match the return type of a gcc2
1180 builtin and then its argument prototype would still apply. */
1185 /* The GNU C library defines this for functions which it implements
1186 to always fail with ENOSYS. Some functions are actually named
1187 something starting with __ and the normal name is an alias. */
1188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1196 if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198 eval "ac_cv_func_$ac_func=yes"
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1203 eval "ac_cv_func_$ac_func=no"
1208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1209 echo "$ac_t""yes" 1>&6
1210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1211 cat >> confdefs.h <<EOF
1212 #define $ac_tr_func 1
1216 echo "$ac_t""no" 1>&6
1220 for ac_func in setenv putenv
1222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_func" >&5
1224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1230 /* System header to define __stub macros and hopefully few prototypes,
1231 which can conflict with char $ac_func(); below. */
1233 /* Override any gcc2 internal prototype to avoid an error. */
1234 /* We use char because int might match the return type of a gcc2
1235 builtin and then its argument prototype would still apply. */
1240 /* The GNU C library defines this for functions which it implements
1241 to always fail with ENOSYS. Some functions are actually named
1242 something starting with __ and the normal name is an alias. */
1243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1251 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1253 eval "ac_cv_func_$ac_func=yes"
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1258 eval "ac_cv_func_$ac_func=no"
1263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1264 echo "$ac_t""yes" 1>&6
1265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1266 cat >> confdefs.h <<EOF
1267 #define $ac_tr_func 1
1271 echo "$ac_t""no" 1>&6
1275 echo $ac_n "checking for connect""... $ac_c" 1>&6
1276 echo "configure:1277: checking for connect" >&5
1277 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1283 /* System header to define __stub macros and hopefully few prototypes,
1284 which can conflict with char connect(); below. */
1286 /* Override any gcc2 internal prototype to avoid an error. */
1287 /* We use char because int might match the return type of a gcc2
1288 builtin and then its argument prototype would still apply. */
1293 /* The GNU C library defines this for functions which it implements
1294 to always fail with ENOSYS. Some functions are actually named
1295 something starting with __ and the normal name is an alias. */
1296 #if defined (__stub_connect) || defined (__stub___connect)
1304 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1306 eval "ac_cv_func_connect=yes"
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1311 eval "ac_cv_func_connect=no"
1316 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1320 echo "$ac_t""no" 1>&6
1321 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1322 echo "configure:1323: checking for connect in -lsocket" >&5
1323 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 ac_save_LIBS="$LIBS"
1328 LIBS="-lsocket $LIBS"
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1332 /* Override any gcc2 internal prototype to avoid an error. */
1333 /* We use char because int might match the return type of a gcc2
1334 builtin and then its argument prototype would still apply. */
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1343 eval "ac_cv_lib_$ac_lib_var=yes"
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 eval "ac_cv_lib_$ac_lib_var=no"
1351 LIBS="$ac_save_LIBS"
1354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1356 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1358 cat >> confdefs.h <<EOF
1359 #define $ac_tr_lib 1
1362 LIBS="-lsocket $LIBS"
1365 echo "$ac_t""no" 1>&6
1370 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1371 echo "configure:1372: checking for gethostbyname" >&5
1372 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378 /* System header to define __stub macros and hopefully few prototypes,
1379 which can conflict with char gethostbyname(); below. */
1381 /* Override any gcc2 internal prototype to avoid an error. */
1382 /* We use char because int might match the return type of a gcc2
1383 builtin and then its argument prototype would still apply. */
1384 char gethostbyname();
1388 /* The GNU C library defines this for functions which it implements
1389 to always fail with ENOSYS. Some functions are actually named
1390 something starting with __ and the normal name is an alias. */
1391 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1399 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1401 eval "ac_cv_func_gethostbyname=yes"
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1406 eval "ac_cv_func_gethostbyname=no"
1411 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1416 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1417 echo "configure:1418: checking for gethostbyname in -lnsl" >&5
1418 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 ac_save_LIBS="$LIBS"
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 /* Override any gcc2 internal prototype to avoid an error. */
1428 /* We use char because int might match the return type of a gcc2
1429 builtin and then its argument prototype would still apply. */
1430 char gethostbyname();
1436 if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 eval "ac_cv_lib_$ac_lib_var=yes"
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1443 eval "ac_cv_lib_$ac_lib_var=no"
1446 LIBS="$ac_save_LIBS"
1449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1450 echo "$ac_t""yes" 1>&6
1451 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1453 cat >> confdefs.h <<EOF
1454 #define $ac_tr_lib 1
1460 echo "$ac_t""no" 1>&6
1465 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1466 echo "configure:1467: checking for nanosleep" >&5
1467 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* System header to define __stub macros and hopefully few prototypes,
1474 which can conflict with char nanosleep(); below. */
1476 /* Override any gcc2 internal prototype to avoid an error. */
1477 /* We use char because int might match the return type of a gcc2
1478 builtin and then its argument prototype would still apply. */
1483 /* The GNU C library defines this for functions which it implements
1484 to always fail with ENOSYS. Some functions are actually named
1485 something starting with __ and the normal name is an alias. */
1486 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1494 if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1496 eval "ac_cv_func_nanosleep=yes"
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1501 eval "ac_cv_func_nanosleep=no"
1506 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1510 echo "$ac_t""no" 1>&6
1511 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1512 echo "configure:1513: checking for nanosleep in -lrt" >&5
1513 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 ac_save_LIBS="$LIBS"
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 /* Override any gcc2 internal prototype to avoid an error. */
1523 /* We use char because int might match the return type of a gcc2
1524 builtin and then its argument prototype would still apply. */
1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1533 eval "ac_cv_lib_$ac_lib_var=yes"
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 eval "ac_cv_lib_$ac_lib_var=no"
1541 LIBS="$ac_save_LIBS"
1544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1545 echo "$ac_t""yes" 1>&6
1546 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1547 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1548 cat >> confdefs.h <<EOF
1549 #define $ac_tr_lib 1
1555 echo "$ac_t""no" 1>&6
1556 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1557 echo "configure:1558: checking for nanosleep in -lposix4" >&5
1558 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 ac_save_LIBS="$LIBS"
1563 LIBS="-lposix4 $LIBS"
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 /* Override any gcc2 internal prototype to avoid an error. */
1568 /* We use char because int might match the return type of a gcc2
1569 builtin and then its argument prototype would still apply. */
1576 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1578 eval "ac_cv_lib_$ac_lib_var=yes"
1580 echo "configure: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1583 eval "ac_cv_lib_$ac_lib_var=no"
1586 LIBS="$ac_save_LIBS"
1589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1590 echo "$ac_t""yes" 1>&6
1591 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1593 cat >> confdefs.h <<EOF
1594 #define $ac_tr_lib 1
1597 LIBS="-lposix4 $LIBS"
1600 echo "$ac_t""no" 1>&6
1607 for ac_func in usleep
1609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_func" >&5
1611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 /* System header to define __stub macros and hopefully few prototypes,
1618 which can conflict with char $ac_func(); below. */
1620 /* Override any gcc2 internal prototype to avoid an error. */
1621 /* We use char because int might match the return type of a gcc2
1622 builtin and then its argument prototype would still apply. */
1627 /* The GNU C library defines this for functions which it implements
1628 to always fail with ENOSYS. Some functions are actually named
1629 something starting with __ and the normal name is an alias. */
1630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1640 eval "ac_cv_func_$ac_func=yes"
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1645 eval "ac_cv_func_$ac_func=no"
1650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1651 echo "$ac_t""yes" 1>&6
1652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1653 cat >> confdefs.h <<EOF
1654 #define $ac_tr_func 1
1658 echo "$ac_t""no" 1>&6
1662 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1663 echo "configure:1664: checking for inet_aton" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char inet_aton(); below. */
1673 /* Override any gcc2 internal prototype to avoid an error. */
1674 /* We use char because int might match the return type of a gcc2
1675 builtin and then its argument prototype would still apply. */
1680 /* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 eval "ac_cv_func_inet_aton=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 eval "ac_cv_func_inet_aton=no"
1703 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1707 echo "$ac_t""no" 1>&6
1708 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1709 echo "configure:1710: checking for inet_aton in -lresolv" >&5
1710 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 ac_save_LIBS="$LIBS"
1715 LIBS="-lresolv $LIBS"
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 /* Override any gcc2 internal prototype to avoid an error. */
1720 /* We use char because int might match the return type of a gcc2
1721 builtin and then its argument prototype would still apply. */
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730 eval "ac_cv_lib_$ac_lib_var=yes"
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 eval "ac_cv_lib_$ac_lib_var=no"
1738 LIBS="$ac_save_LIBS"
1741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1745 cat >> confdefs.h <<EOF
1746 #define $ac_tr_lib 1
1749 LIBS="-lresolv $LIBS"
1752 echo "$ac_t""no" 1>&6
1757 for ac_hdr in unistd.h
1759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1761 echo "configure:1762: checking for $ac_hdr" >&5
1762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1771 { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1773 if test -z "$ac_err"; then
1775 eval "ac_cv_header_$ac_safe=yes"
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 eval "ac_cv_header_$ac_safe=no"
1785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1786 echo "$ac_t""yes" 1>&6
1787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1788 cat >> confdefs.h <<EOF
1789 #define $ac_tr_hdr 1
1793 echo "$ac_t""no" 1>&6
1797 for ac_func in getpagesize
1799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_func" >&5
1801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* System header to define __stub macros and hopefully few prototypes,
1808 which can conflict with char $ac_func(); below. */
1810 /* Override any gcc2 internal prototype to avoid an error. */
1811 /* We use char because int might match the return type of a gcc2
1812 builtin and then its argument prototype would still apply. */
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1828 if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1830 eval "ac_cv_func_$ac_func=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 eval "ac_cv_func_$ac_func=no"
1840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1841 echo "$ac_t""yes" 1>&6
1842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1843 cat >> confdefs.h <<EOF
1844 #define $ac_tr_func 1
1848 echo "$ac_t""no" 1>&6
1852 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1853 echo "configure:1854: checking for working mmap" >&5
1854 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 if test "$cross_compiling" = yes; then
1858 ac_cv_func_mmap_fixed_mapped=no
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1864 /* Thanks to Mike Haertel and Jim Avera for this test.
1865 Here is a matrix of mmap possibilities:
1866 mmap private not fixed
1867 mmap private fixed at somewhere currently unmapped
1868 mmap private fixed at somewhere already mapped
1869 mmap shared not fixed
1870 mmap shared fixed at somewhere currently unmapped
1871 mmap shared fixed at somewhere already mapped
1872 For private mappings, we should verify that changes cannot be read()
1873 back from the file, nor mmap's back from the file at a different
1874 address. (There have been systems where private was not correctly
1875 implemented like the infamous i386 svr4.0, and systems where the
1876 VM page cache was not coherent with the filesystem buffer cache
1877 like early versions of FreeBSD and possibly contemporary NetBSD.)
1878 For shared mappings, we should conversely verify that changes get
1879 propogated back to all the places they're supposed to be.
1881 Grep wants private fixed already mapped.
1882 The main things grep needs to know about mmap are:
1883 * does it exist and is it safe to write into the mmap'd area
1884 * how to use it (BSD variants) */
1885 #include <sys/types.h>
1887 #include <sys/mman.h>
1889 #include <sys/stat.h>
1891 #ifdef HAVE_UNISTD_H
1892 # include <unistd.h>
1895 /* This mess was copied from the GNU getpagesize.h. */
1896 #ifndef HAVE_GETPAGESIZE
1898 /* Assume that all systems that can run configure have sys/param.h. */
1899 # ifndef HAVE_SYS_PARAM_H
1900 # define HAVE_SYS_PARAM_H 1
1903 # ifdef _SC_PAGESIZE
1904 # define getpagesize() sysconf(_SC_PAGESIZE)
1905 # else /* no _SC_PAGESIZE */
1906 # ifdef HAVE_SYS_PARAM_H
1907 # include <sys/param.h>
1908 # ifdef EXEC_PAGESIZE
1909 # define getpagesize() EXEC_PAGESIZE
1910 # else /* no EXEC_PAGESIZE */
1912 # define getpagesize() NBPG * CLSIZE
1915 # endif /* no CLSIZE */
1916 # else /* no NBPG */
1918 # define getpagesize() NBPC
1919 # else /* no NBPC */
1921 # define getpagesize() PAGESIZE
1922 # endif /* PAGESIZE */
1923 # endif /* no NBPC */
1924 # endif /* no NBPG */
1925 # endif /* no EXEC_PAGESIZE */
1926 # else /* no HAVE_SYS_PARAM_H */
1927 # define getpagesize() 8192 /* punt totally */
1928 # endif /* no HAVE_SYS_PARAM_H */
1929 # endif /* no _SC_PAGESIZE */
1931 #endif /* no HAVE_GETPAGESIZE */
1934 extern "C" { void *malloc(unsigned); }
1942 char *data, *data2, *data3;
1946 pagesize = getpagesize();
1949 * First, make a file with some known garbage in it.
1951 data = (char*)malloc(pagesize);
1954 for (i = 0; i < pagesize; ++i)
1955 *(data + i) = rand();
1957 fd = creat("conftestmmap", 0600);
1960 if (write(fd, data, pagesize) != pagesize)
1965 * Next, try to mmap the file at a fixed address which
1966 * already has something else allocated at it. If we can,
1967 * also make sure that we see the same garbage.
1969 fd = open("conftestmmap", O_RDWR);
1972 data2 = (char*)malloc(2 * pagesize);
1975 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1976 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1977 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1979 for (i = 0; i < pagesize; ++i)
1980 if (*(data + i) != *(data2 + i))
1984 * Finally, make sure that changes to the mapped area
1985 * do not percolate back to the file as seen by read().
1986 * (This is a bug on some variants of i386 svr4.0.)
1988 for (i = 0; i < pagesize; ++i)
1989 *(data2 + i) = *(data2 + i) + 1;
1990 data3 = (char*)malloc(pagesize);
1993 if (read(fd, data3, pagesize) != pagesize)
1995 for (i = 0; i < pagesize; ++i)
1996 if (*(data + i) != *(data3 + i))
1999 unlink("conftestmmap");
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2006 ac_cv_func_mmap_fixed_mapped=yes
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 ac_cv_func_mmap_fixed_mapped=no
2018 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2019 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2020 cat >> confdefs.h <<\EOF
2026 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2027 echo "configure:2028: checking for vprintf" >&5
2028 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char vprintf(); below. */
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2044 /* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2055 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2057 eval "ac_cv_func_vprintf=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 eval "ac_cv_func_vprintf=no"
2067 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 cat >> confdefs.h <<\EOF
2070 #define HAVE_VPRINTF 1
2074 echo "$ac_t""no" 1>&6
2077 if test "$ac_cv_func_vprintf" != yes; then
2078 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2079 echo "configure:2080: checking for _doprnt" >&5
2080 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* System header to define __stub macros and hopefully few prototypes,
2087 which can conflict with char _doprnt(); below. */
2089 /* Override any gcc2 internal prototype to avoid an error. */
2090 /* We use char because int might match the return type of a gcc2
2091 builtin and then its argument prototype would still apply. */
2096 /* The GNU C library defines this for functions which it implements
2097 to always fail with ENOSYS. Some functions are actually named
2098 something starting with __ and the normal name is an alias. */
2099 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109 eval "ac_cv_func__doprnt=yes"
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 eval "ac_cv_func__doprnt=no"
2119 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2121 cat >> confdefs.h <<\EOF
2122 #define HAVE_DOPRNT 1
2126 echo "$ac_t""no" 1>&6
2131 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2132 echo "configure:2133: checking return type of signal handlers" >&5
2133 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2139 #include <sys/types.h>
2145 extern "C" void (*signal (int, void (*)(int)))(int);
2147 void (*signal ()) ();
2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2156 ac_cv_type_signal=void
2158 echo "configure: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2161 ac_cv_type_signal=int
2166 echo "$ac_t""$ac_cv_type_signal" 1>&6
2167 cat >> confdefs.h <<EOF
2168 #define RETSIGTYPE $ac_cv_type_signal
2172 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2173 echo "configure:2174: checking for dlopen in -ldl" >&5
2174 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 ac_save_LIBS="$LIBS"
2180 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 /* Override any gcc2 internal prototype to avoid an error. */
2184 /* We use char because int might match the return type of a gcc2
2185 builtin and then its argument prototype would still apply. */
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2194 eval "ac_cv_lib_$ac_lib_var=yes"
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2199 eval "ac_cv_lib_$ac_lib_var=no"
2202 LIBS="$ac_save_LIBS"
2205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2208 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2209 cat >> confdefs.h <<EOF
2210 #define $ac_tr_lib 1
2216 echo "$ac_t""no" 1>&6
2219 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2220 echo "configure:2221: checking for optarg in -lgnugetopt" >&5
2221 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 ac_save_LIBS="$LIBS"
2226 LIBS="-lgnugetopt $LIBS"
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 /* Override any gcc2 internal prototype to avoid an error. */
2231 /* We use char because int might match the return type of a gcc2
2232 builtin and then its argument prototype would still apply. */
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2241 eval "ac_cv_lib_$ac_lib_var=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 eval "ac_cv_lib_$ac_lib_var=no"
2249 LIBS="$ac_save_LIBS"
2252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2256 cat >> confdefs.h <<EOF
2257 #define $ac_tr_lib 1
2260 LIBS="-lgnugetopt $LIBS"
2263 echo "$ac_t""no" 1>&6
2266 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2267 echo "configure:2268: checking for _ in -lbe" >&5
2268 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 ac_save_LIBS="$LIBS"
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 /* Override any gcc2 internal prototype to avoid an error. */
2278 /* We use char because int might match the return type of a gcc2
2279 builtin and then its argument prototype would still apply. */
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2288 eval "ac_cv_lib_$ac_lib_var=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 eval "ac_cv_lib_$ac_lib_var=no"
2296 LIBS="$ac_save_LIBS"
2299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2303 cat >> confdefs.h <<EOF
2304 #define $ac_tr_lib 1
2310 echo "$ac_t""no" 1>&6
2313 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2314 echo "configure:2315: checking for _ in -lgame" >&5
2315 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 ac_save_LIBS="$LIBS"
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* Override any gcc2 internal prototype to avoid an error. */
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 eval "ac_cv_lib_$ac_lib_var=yes"
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 eval "ac_cv_lib_$ac_lib_var=no"
2343 LIBS="$ac_save_LIBS"
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2350 cat >> confdefs.h <<EOF
2351 #define $ac_tr_lib 1
2357 echo "$ac_t""no" 1>&6
2360 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2361 echo "configure:2362: checking for _ in -lroot" >&5
2362 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 ac_save_LIBS="$LIBS"
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* Override any gcc2 internal prototype to avoid an error. */
2372 /* We use char because int might match the return type of a gcc2
2373 builtin and then its argument prototype would still apply. */
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2382 eval "ac_cv_lib_$ac_lib_var=yes"
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2387 eval "ac_cv_lib_$ac_lib_var=no"
2390 LIBS="$ac_save_LIBS"
2393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2397 cat >> confdefs.h <<EOF
2398 #define $ac_tr_lib 1
2404 echo "$ac_t""no" 1>&6
2407 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2408 echo "configure:2409: checking for powl in -lm" >&5
2409 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 ac_save_LIBS="$LIBS"
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2418 /* Override any gcc2 internal prototype to avoid an error. */
2419 /* We use char because int might match the return type of a gcc2
2420 builtin and then its argument prototype would still apply. */
2427 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2429 eval "ac_cv_lib_$ac_lib_var=yes"
2431 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2434 eval "ac_cv_lib_$ac_lib_var=no"
2437 LIBS="$ac_save_LIBS"
2440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2441 echo "$ac_t""yes" 1>&6
2442 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2444 cat >> confdefs.h <<EOF
2445 #define $ac_tr_lib 1
2451 echo "$ac_t""no" 1>&6
2454 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2455 echo "configure:2456: checking for pthread_create in -lpthread" >&5
2456 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 ac_save_LIBS="$LIBS"
2461 LIBS="-lpthread $LIBS"
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* Override any gcc2 internal prototype to avoid an error. */
2466 /* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2468 char pthread_create();
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2476 eval "ac_cv_lib_$ac_lib_var=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 eval "ac_cv_lib_$ac_lib_var=no"
2484 LIBS="$ac_save_LIBS"
2487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_lib 1
2495 LIBS="-lpthread $LIBS"
2498 echo "$ac_t""no" 1>&6
2501 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2502 echo "configure:2503: checking for thread_create in -lthreads" >&5
2503 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 ac_save_LIBS="$LIBS"
2508 LIBS="-lthreads $LIBS"
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 /* Override any gcc2 internal prototype to avoid an error. */
2513 /* We use char because int might match the return type of a gcc2
2514 builtin and then its argument prototype would still apply. */
2515 char thread_create();
2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2523 eval "ac_cv_lib_$ac_lib_var=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 eval "ac_cv_lib_$ac_lib_var=no"
2531 LIBS="$ac_save_LIBS"
2534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2536 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2538 cat >> confdefs.h <<EOF
2539 #define $ac_tr_lib 1
2542 LIBS="-lthreads $LIBS"
2545 echo "$ac_t""no" 1>&6
2549 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2550 echo "configure:2551: checking for getopt_long" >&5
2551 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558 which can conflict with char getopt_long(); below. */
2560 /* Override any gcc2 internal prototype to avoid an error. */
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2567 /* The GNU C library defines this for functions which it implements
2568 to always fail with ENOSYS. Some functions are actually named
2569 something starting with __ and the normal name is an alias. */
2570 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2580 eval "ac_cv_func_getopt_long=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 eval "ac_cv_func_getopt_long=no"
2590 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2594 echo "$ac_t""no" 1>&6
2595 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2600 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2604 echo "configure:2605: checking for $ac_hdr" >&5
2605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2614 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2616 if test -z "$ac_err"; then
2618 eval "ac_cv_header_$ac_safe=yes"
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 eval "ac_cv_header_$ac_safe=no"
2628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2629 echo "$ac_t""yes" 1>&6
2630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2631 cat >> confdefs.h <<EOF
2632 #define $ac_tr_hdr 1
2636 echo "$ac_t""no" 1>&6
2640 for ac_hdr in sys/soundcard.h machine/soundcard.h
2642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_hdr" >&5
2645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2654 { (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2656 if test -z "$ac_err"; then
2658 eval "ac_cv_header_$ac_safe=yes"
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 eval "ac_cv_header_$ac_safe=no"
2668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2669 echo "$ac_t""yes" 1>&6
2670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2671 cat >> confdefs.h <<EOF
2672 #define $ac_tr_hdr 1
2676 echo "$ac_t""no" 1>&6
2680 for ac_hdr in dlfcn.h image.h
2682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2684 echo "configure:2685: checking for $ac_hdr" >&5
2685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 cat > conftest.$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2694 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2696 if test -z "$ac_err"; then
2698 eval "ac_cv_header_$ac_safe=yes"
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2704 eval "ac_cv_header_$ac_safe=no"
2708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2711 cat >> confdefs.h <<EOF
2712 #define $ac_tr_hdr 1
2716 echo "$ac_t""no" 1>&6
2720 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2724 echo "configure:2725: checking for $ac_hdr" >&5
2725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2738 eval "ac_cv_header_$ac_safe=yes"
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2744 eval "ac_cv_header_$ac_safe=no"
2748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2749 echo "$ac_t""yes" 1>&6
2750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2751 cat >> confdefs.h <<EOF
2752 #define $ac_tr_hdr 1
2756 echo "$ac_t""no" 1>&6
2761 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_hdr" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 eval "ac_cv_header_$ac_safe=yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 eval "ac_cv_header_$ac_safe=no"
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2792 cat >> confdefs.h <<EOF
2793 #define $ac_tr_hdr 1
2797 echo "$ac_t""no" 1>&6
2802 echo $ac_n "checking for working const""... $ac_c" 1>&6
2803 echo "configure:2804: checking for working const" >&5
2804 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2813 /* Ultrix mips cc rejects this. */
2814 typedef int charset[2]; const charset x = {0,0};
2815 /* SunOS 4.1.1 cc rejects this. */
2816 char const *const *ccp;
2818 /* NEC SVR4.0.2 mips cc rejects this. */
2819 struct point {int x, y;};
2820 static struct point const zero = {0,0};
2821 /* AIX XL C 1.02.0.0 rejects this.
2822 It does not let you subtract one const X* pointer from another in an arm
2823 of an if-expression whose if-part is not a constant expression */
2824 const char *g = "string";
2825 ccp = &g + (g ? g-g : 0);
2826 /* HPUX 7.0 cc rejects these. */
2829 ccp = (char const *const *) p;
2830 { /* SCO 3.2v4 cc rejects this. */
2832 char const *s = 0 ? (char *) 0 : (char const *) 0;
2836 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2838 const int *foo = &x[0];
2841 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2842 typedef const int *iptr;
2846 { /* AIX XL C 1.02.0.0 rejects this saying
2847 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2848 struct s { int j; const int *ap[3]; };
2849 struct s *b; b->j = 5;
2851 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2857 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2869 echo "$ac_t""$ac_cv_c_const" 1>&6
2870 if test $ac_cv_c_const = no; then
2871 cat >> confdefs.h <<\EOF
2877 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2878 echo "configure:2879: checking for ANSI C header files" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2891 { (eval echo configure:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2893 if test -z "$ac_err"; then
2895 ac_cv_header_stdc=yes
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2901 ac_cv_header_stdc=no
2905 if test $ac_cv_header_stdc = yes; then
2906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913 egrep "memchr" >/dev/null 2>&1; then
2917 ac_cv_header_stdc=no
2923 if test $ac_cv_header_stdc = yes; then
2924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2925 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2931 egrep "free" >/dev/null 2>&1; then
2935 ac_cv_header_stdc=no
2941 if test $ac_cv_header_stdc = yes; then
2942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2943 if test "$cross_compiling" = yes; then
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2950 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2951 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2953 int main () { int i; for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2965 ac_cv_header_stdc=no
2973 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2974 if test $ac_cv_header_stdc = yes; then
2975 cat >> confdefs.h <<\EOF
2976 #define STDC_HEADERS 1
2981 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2982 echo "configure:2983: checking for size_t" >&5
2983 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2998 ac_cv_type_size_t=yes
3001 ac_cv_type_size_t=no
3006 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3007 if test $ac_cv_type_size_t = no; then
3008 cat >> confdefs.h <<\EOF
3009 #define size_t unsigned
3014 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3015 echo "configure:3016: checking whether time.h and sys/time.h may both be included" >&5
3016 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022 #include <sys/types.h>
3023 #include <sys/time.h>
3029 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3031 ac_cv_header_time=yes
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3036 ac_cv_header_time=no
3041 echo "$ac_t""$ac_cv_header_time" 1>&6
3042 if test $ac_cv_header_time = yes; then
3043 cat >> confdefs.h <<\EOF
3044 #define TIME_WITH_SYS_TIME 1
3050 PLUGINS=${PLUGINS}"yuv ";
3053 # Check whether --enable-ppro or --disable-ppro was given.
3054 if test "${enable_ppro+set}" = set; then
3055 enableval="$enable_ppro"
3056 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3059 # Check whether --enable-mmx or --disable-mmx was given.
3060 if test "${enable_mmx+set}" = set; then
3061 enableval="$enable_mmx"
3062 if test x`echo $ARCH | cut -b3-4` = x86 ; then if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi; fi
3069 if test x$host_os = xbeos; then
3070 PLUGINS=${PLUGINS}"dummy beos "
3074 # Check whether --enable-dummy or --disable-dummy was given.
3075 if test "${enable_dummy+set}" = set; then
3076 enableval="$enable_dummy"
3080 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3081 # Check whether --enable-dsp or --disable-dsp was given.
3082 if test "${enable_dsp+set}" = set; then
3083 enableval="$enable_dsp"
3087 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3088 # Check whether --enable-esd or --disable-esd was given.
3089 if test "${enable_esd+set}" = set; then
3090 enableval="$enable_esd"
3091 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3094 # Check whether --enable-fb or --disable-fb was given.
3095 if test "${enable_fb+set}" = set; then
3096 enableval="$enable_fb"
3097 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3100 # Check whether --enable-ggi or --disable-ggi was given.
3101 if test "${enable_ggi+set}" = set; then
3102 enableval="$enable_ggi"
3103 if test x$enable_ggi = xyes; then PLUGINS=${PLUGINS}"ggi "; fi
3106 # Check whether --enable-sdl or --disable-sdl was given.
3107 if test "${enable_sdl+set}" = set; then
3108 enableval="$enable_sdl"
3109 if test x$enable_sdl = xyes; then PLUGINS=${PLUGINS}"sdl "; fi
3112 # Check whether --enable-glide or --disable-glide was given.
3113 if test "${enable_glide+set}" = set; then
3114 enableval="$enable_glide"
3115 if test x$enable_glide = xyes; then PLUGINS=${PLUGINS}"glide "; fi
3118 # Check whether --enable-gnome or --disable-gnome was given.
3119 if test "${enable_gnome+set}" = set; then
3120 enableval="$enable_gnome"
3121 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3124 # Check whether --enable-x11 or --disable-x11 was given.
3125 if test "${enable_x11+set}" = set; then
3126 enableval="$enable_x11"
3130 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3140 cat > confcache <<\EOF
3141 # This file is a shell script that caches the results of configure
3142 # tests run on this system so they can be shared between configure
3143 # scripts and configure runs. It is not useful on other systems.
3144 # If it contains results you don't want to keep, you may remove or edit it.
3146 # By default, configure uses ./config.cache as the cache file,
3147 # creating it if it does not exist already. You can give configure
3148 # the --cache-file=FILE option to use a different cache file; that is
3149 # what configure does when it calls configure scripts in
3150 # subdirectories, so they share the cache.
3151 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3152 # config.status only pays attention to the cache file if you give it the
3153 # --recheck option to rerun configure.
3156 # The following way of writing the cache mishandles newlines in values,
3157 # but we know of no workaround that is simple, portable, and efficient.
3158 # So, don't put newlines in cache variables' values.
3159 # Ultrix sh set writes to stderr and can't be redirected directly,
3160 # and sets the high bit in the cache file unless we assign to the vars.
3162 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3164 # `set' does not quote correctly, so add quotes (double-quote substitution
3165 # turns \\\\ into \\, and sed turns \\ into \).
3167 -e "s/'/'\\\\''/g" \
3168 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3171 # `set' quotes correctly as required by POSIX, so do not add quotes.
3172 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3175 if cmp -s $cache_file confcache; then
3178 if test -w $cache_file; then
3179 echo "updating cache $cache_file"
3180 cat confcache > $cache_file
3182 echo "not updating unwritable cache $cache_file"
3187 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3189 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3190 # Let make expand exec_prefix.
3191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3193 # Any assignment to VPATH causes Sun make to only execute
3194 # the first set of double-colon rules, so remove it if not needed.
3195 # If there is a colon in the path, we need to keep it.
3196 if test "x$srcdir" = x.; then
3197 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3200 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3202 DEFS=-DHAVE_CONFIG_H
3204 # Without the "./", some shells look in PATH for config.status.
3205 : ${CONFIG_STATUS=./config.status}
3207 echo creating $CONFIG_STATUS
3208 rm -f $CONFIG_STATUS
3209 cat > $CONFIG_STATUS <<EOF
3211 # Generated automatically by configure.
3212 # Run this file to recreate the current configuration.
3213 # This directory was configured as follows,
3214 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3216 # $0 $ac_configure_args
3218 # Compiler output produced by configure, useful for debugging
3219 # configure, is in ./config.log if it exists.
3221 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3224 case "\$ac_option" in
3225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3226 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3227 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3228 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3229 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3231 -help | --help | --hel | --he | --h)
3232 echo "\$ac_cs_usage"; exit 0 ;;
3233 *) echo "\$ac_cs_usage"; exit 1 ;;
3237 ac_given_srcdir=$srcdir
3238 ac_given_INSTALL="$INSTALL"
3240 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3242 cat >> $CONFIG_STATUS <<EOF
3244 # Protect against being on the right side of a sed subst in config.status.
3245 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3246 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3250 s%@CFLAGS@%$CFLAGS%g
3251 s%@CPPFLAGS@%$CPPFLAGS%g
3252 s%@CXXFLAGS@%$CXXFLAGS%g
3253 s%@FFLAGS@%$FFLAGS%g
3255 s%@LDFLAGS@%$LDFLAGS%g
3257 s%@exec_prefix@%$exec_prefix%g
3258 s%@prefix@%$prefix%g
3259 s%@program_transform_name@%$program_transform_name%g
3260 s%@bindir@%$bindir%g
3261 s%@sbindir@%$sbindir%g
3262 s%@libexecdir@%$libexecdir%g
3263 s%@datadir@%$datadir%g
3264 s%@sysconfdir@%$sysconfdir%g
3265 s%@sharedstatedir@%$sharedstatedir%g
3266 s%@localstatedir@%$localstatedir%g
3267 s%@libdir@%$libdir%g
3268 s%@includedir@%$includedir%g
3269 s%@oldincludedir@%$oldincludedir%g
3270 s%@infodir@%$infodir%g
3271 s%@mandir@%$mandir%g
3273 s%@host_alias@%$host_alias%g
3274 s%@host_cpu@%$host_cpu%g
3275 s%@host_vendor@%$host_vendor%g
3276 s%@host_os@%$host_os%g
3277 s%@VLC_VERSION@%$VLC_VERSION%g
3278 s%@VLC_CODENAME@%$VLC_CODENAME%g
3279 s%@SET_MAKE@%$SET_MAKE%g
3282 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3283 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3284 s%@INSTALL_DATA@%$INSTALL_DATA%g
3285 s%@LIBOBJS@%$LIBOBJS%g
3288 s%@PLUGINS@%$PLUGINS%g
3289 s%@ALIASES@%$ALIASES%g
3294 cat >> $CONFIG_STATUS <<\EOF
3296 # Split the substitutions into bite-sized pieces for seds with
3297 # small command number limits, like on Digital OSF/1 and HP-UX.
3298 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3299 ac_file=1 # Number of current file.
3300 ac_beg=1 # First line for current file.
3301 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3304 while $ac_more_lines; do
3305 if test $ac_beg -gt 1; then
3306 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3308 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3310 if test ! -s conftest.s$ac_file; then
3312 rm -f conftest.s$ac_file
3314 if test -z "$ac_sed_cmds"; then
3315 ac_sed_cmds="sed -f conftest.s$ac_file"
3317 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3319 ac_file=`expr $ac_file + 1`
3321 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3324 if test -z "$ac_sed_cmds"; then
3329 cat >> $CONFIG_STATUS <<EOF
3331 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3333 cat >> $CONFIG_STATUS <<\EOF
3334 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3337 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3338 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3339 *) ac_file_in="${ac_file}.in" ;;
3342 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3344 # Remove last slash and all that follows it. Not all systems have dirname.
3345 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3346 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3347 # The file is in a subdirectory.
3348 test ! -d "$ac_dir" && mkdir "$ac_dir"
3349 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3350 # A "../" for each directory in $ac_dir_suffix.
3351 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3353 ac_dir_suffix= ac_dots=
3356 case "$ac_given_srcdir" in
3358 if test -z "$ac_dots"; then top_srcdir=.
3359 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3360 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3362 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3363 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3366 case "$ac_given_INSTALL" in
3367 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3368 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3371 echo creating "$ac_file"
3373 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3375 *Makefile*) ac_comsub="1i\\
3376 # $configure_input" ;;
3380 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3382 s%@configure_input@%$configure_input%g
3383 s%@srcdir@%$srcdir%g
3384 s%@top_srcdir@%$top_srcdir%g
3385 s%@INSTALL@%$INSTALL%g
3386 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3390 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3391 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3393 # ac_d sets the value in "#define NAME VALUE" lines.
3394 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3395 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3398 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3399 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3400 ac_uB='\([ ]\)%\1#\2define\3'
3403 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3404 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3405 ac_eB='$%\1#\2define\3'
3409 if test "${CONFIG_HEADERS+set}" != set; then
3411 cat >> $CONFIG_STATUS <<EOF
3412 CONFIG_HEADERS="include/defs.h"
3414 cat >> $CONFIG_STATUS <<\EOF
3416 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3417 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3419 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3420 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3421 *) ac_file_in="${ac_file}.in" ;;
3424 echo creating $ac_file
3426 rm -f conftest.frag conftest.in conftest.out
3427 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3428 cat $ac_file_inputs > conftest.in
3432 # Transform confdefs.h into a sed script conftest.vals that substitutes
3433 # the proper values into config.h.in to produce config.h. And first:
3434 # Protect against being on the right side of a sed subst in config.status.
3435 # Protect against being in an unquoted here document in config.status.
3437 cat > conftest.hdr <<\EOF
3440 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3444 sed -n -f conftest.hdr confdefs.h > conftest.vals
3447 # This sed command replaces #undef with comments. This is necessary, for
3448 # example, in the case of _POSIX_SOURCE, which is predefined and required
3449 # on some systems where configure will not decide to define it.
3450 cat >> conftest.vals <<\EOF
3451 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3454 # Break up conftest.vals because some shells have a limit on
3455 # the size of here documents, and old seds have small limits too.
3460 ac_lines=`grep -c . conftest.vals`
3461 # grep -c gives empty output for an empty file on some AIX systems.
3462 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3463 # Write a limited-size here document to conftest.frag.
3464 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3465 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3467 sed -f conftest.frag conftest.in > conftest.out
3469 mv conftest.out conftest.in
3471 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3473 mv conftest.tail conftest.vals
3477 cat >> $CONFIG_STATUS <<\EOF
3478 rm -f conftest.frag conftest.h
3479 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3480 cat conftest.in >> conftest.h
3482 if cmp -s $ac_file conftest.h 2>/dev/null; then
3483 echo "$ac_file is unchanged"
3486 # Remove last slash and all that follows it. Not all systems have dirname.
3487 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3488 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3489 # The file is in a subdirectory.
3490 test ! -d "$ac_dir" && mkdir "$ac_dir"
3493 mv conftest.h $ac_file
3498 cat >> $CONFIG_STATUS <<EOF
3501 cat >> $CONFIG_STATUS <<\EOF
3505 chmod +x $CONFIG_STATUS
3506 rm -fr confdefs* $ac_clean_files
3507 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3513 vlc version : ${VLC_VERSION}
3515 architecture : ${ARCH}
3516 plugins : ${PLUGINS}
3517 vlc aliases : ${ALIASES}