3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-debug Enable debug mode (default is no)"
17 --enable-stats Enable printing of statistics (default is yes)"
19 --disable-optimizations Disable compiler optimizations (default enabled)"
21 --enable-ppro Enable PentiumPro optimizations (default is no)"
23 --enable-mmx Enable MMX optimizations (default is no)"
25 --enable-dummy dummy audio and video support (default enabled)"
27 --enable-dsp Linux /dev/dsp support (default enabled)"
29 --enable-esd Esound library support (default disabled)"
31 --enable-fb Linux framebuffer support (default disabled)"
33 --enable-ggi GGI support (default disabled)"
35 --enable-sdl SDL support (default disabled)"
37 --enable-glide Glide (3dfx) support (default disabled)"
39 --enable-gnome Gnome support (default disabled)"
41 --enable-x11 X11 support (default enabled)"
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file=./config.cache
56 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host | --host | --hos | --ho)
219 -host=* | --host=* | --hos=* | --ho=*)
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
234 -libdir | --libdir | --libdi | --libd)
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 sbindir="$ac_optarg" ;;
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 sharedstatedir="$ac_optarg" ;;
338 -site | --site | --sit)
340 -site=* | --site=* | --sit=*)
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=src/interface/main.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
555 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
556 if test -f $ac_dir/install-sh; then
558 ac_install_sh="$ac_aux_dir/install-sh -c"
560 elif test -f $ac_dir/install.sh; then
562 ac_install_sh="$ac_aux_dir/install.sh -c"
566 if test -z "$ac_aux_dir"; then
567 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
569 ac_config_guess=$ac_aux_dir/config.guess
570 ac_config_sub=$ac_aux_dir/config.sub
571 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
574 # Make sure we can run config.sub.
575 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
576 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
579 echo $ac_n "checking host system type""... $ac_c" 1>&6
580 echo "configure:575: checking host system type" >&5
583 case "$host_alias" in
587 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
588 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
590 *) host_alias=$nonopt ;;
594 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
595 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
596 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
597 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
598 echo "$ac_t""$host" 1>&6
606 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
607 echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5
608 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
609 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 cat > conftestmake <<\EOF
614 @echo 'ac_maketemp="${MAKE}"'
616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
617 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
618 if test -n "$ac_maketemp"; then
619 eval ac_cv_prog_make_${ac_make}_set=yes
621 eval ac_cv_prog_make_${ac_make}_set=no
625 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
626 echo "$ac_t""yes" 1>&6
629 echo "$ac_t""no" 1>&6
630 SET_MAKE="MAKE=${MAKE-make}"
633 if test -z "$CC"; then
634 # Extract the first word of "gcc", so it can be a program name with args.
635 set dummy gcc; ac_word=$2
636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
637 echo "configure:632: checking for $ac_word" >&5
638 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
641 if test -n "$CC"; then
642 ac_cv_prog_CC="$CC" # Let the user override the test.
644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
646 for ac_dir in $ac_dummy; do
647 test -z "$ac_dir" && ac_dir=.
648 if test -f $ac_dir/$ac_word; then
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
663 if test -z "$CC"; then
664 # Extract the first word of "cc", so it can be a program name with args.
665 set dummy cc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:662: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
680 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
689 if test $ac_prog_rejected = yes; then
690 # We found a bogon in the path, so make sure we never use it.
691 set dummy $ac_cv_prog_CC
693 if test $# -gt 0; then
694 # We chose a different compiler from the bogus one.
695 # However, it has the same basename, so the bogon will be chosen
696 # first if we set CC to just the basename; use the full file name.
698 set dummy "$ac_dir/$ac_word" "$@"
706 if test -n "$CC"; then
707 echo "$ac_t""$CC" 1>&6
709 echo "$ac_t""no" 1>&6
712 if test -z "$CC"; then
715 # Extract the first word of "cl", so it can be a program name with args.
716 set dummy cl; ac_word=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:713: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
722 if test -n "$CC"; then
723 ac_cv_prog_CC="$CC" # Let the user override the test.
725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
727 for ac_dir in $ac_dummy; do
728 test -z "$ac_dir" && ac_dir=.
729 if test -f $ac_dir/$ac_word; then
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
741 echo "$ac_t""no" 1>&6
746 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
750 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
754 ac_cpp='$CPP $CPPFLAGS'
755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
757 cross_compiling=$ac_cv_prog_cc_cross
759 cat > conftest.$ac_ext << EOF
761 #line 756 "configure"
762 #include "confdefs.h"
766 if { (eval echo configure:761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
767 ac_cv_prog_cc_works=yes
768 # If we can't run a trivial program, we are probably using a cross compiler.
769 if (./conftest; exit) 2>/dev/null; then
770 ac_cv_prog_cc_cross=no
772 ac_cv_prog_cc_cross=yes
775 echo "configure: failed program was:" >&5
776 cat conftest.$ac_ext >&5
777 ac_cv_prog_cc_works=no
781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782 ac_cpp='$CPP $CPPFLAGS'
783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
788 if test $ac_cv_prog_cc_works = no; then
789 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
792 echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
793 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
794 cross_compiling=$ac_cv_prog_cc_cross
796 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
797 echo "configure:792: checking whether we are using GNU C" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 cat > conftest.c <<EOF
806 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
813 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
815 if test $ac_cv_prog_gcc = yes; then
821 ac_test_CFLAGS="${CFLAGS+set}"
822 ac_save_CFLAGS="$CFLAGS"
824 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
825 echo "configure:820: checking whether ${CC-cc} accepts -g" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 echo 'void f(){}' > conftest.c
830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
839 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
840 if test "$ac_test_CFLAGS" = set; then
841 CFLAGS="$ac_save_CFLAGS"
842 elif test $ac_cv_prog_cc_g = yes; then
843 if test "$GCC" = yes; then
849 if test "$GCC" = yes; then
857 if test -z "$CPP"; then
858 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
859 echo "configure:854: checking how to run the C preprocessor" >&5
860 # On Suns, sometimes $CPP names a directory.
861 if test -n "$CPP" && test -d "$CPP"; then
864 if test -z "$CPP"; then
865 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 # This must be in double quotes, not single quotes, because CPP may get
869 # substituted into the Makefile and "${CC-cc}" will confuse make.
871 # On the NeXT, cc -E runs the code through the compiler's parser,
872 # not just through cpp.
873 cat > conftest.$ac_ext <<EOF
874 #line 869 "configure"
875 #include "confdefs.h"
879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
880 { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
882 if test -z "$ac_err"; then
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
889 CPP="${CC-cc} -E -traditional-cpp"
890 cat > conftest.$ac_ext <<EOF
891 #line 886 "configure"
892 #include "confdefs.h"
896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
897 { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
899 if test -z "$ac_err"; then
903 echo "configure: failed program was:" >&5
904 cat conftest.$ac_ext >&5
906 CPP="${CC-cc} -nologo -E"
907 cat > conftest.$ac_ext <<EOF
908 #line 903 "configure"
909 #include "confdefs.h"
913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914 { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916 if test -z "$ac_err"; then
920 echo "configure: failed program was:" >&5
921 cat conftest.$ac_ext >&5
930 ac_cv_prog_CPP="$CPP"
932 CPP="$ac_cv_prog_CPP"
934 ac_cv_prog_CPP="$CPP"
936 echo "$ac_t""$CPP" 1>&6
940 # Find a good install program. We prefer a C program (faster),
941 # so one script is as good as another. But avoid the broken or
942 # incompatible versions:
943 # SysV /etc/install, /usr/sbin/install
944 # SunOS /usr/etc/install
947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
950 # ./install, which can be erroneously created by make from ./install.sh.
951 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
952 echo "configure:947: checking for a BSD compatible install" >&5
953 if test -z "$INSTALL"; then
954 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
958 for ac_dir in $PATH; do
959 # Account for people who put trailing slashes in PATH elements.
961 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
963 # OSF1 and SCO ODT 3.0 have their own names for install.
964 # Don't use installbsd from OSF since it installs stuff as root
966 for ac_prog in ginstall scoinst install; do
967 if test -f $ac_dir/$ac_prog; then
968 if test $ac_prog = install &&
969 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
970 # AIX install. It has an incompatible calling convention.
973 ac_cv_path_install="$ac_dir/$ac_prog -c"
984 if test "${ac_cv_path_install+set}" = set; then
985 INSTALL="$ac_cv_path_install"
987 # As a last resort, use the slow shell script. We don't cache a
988 # path for INSTALL within a source directory, because that will
989 # break other packages using the cache if that directory is
990 # removed, or if the path is relative.
991 INSTALL="$ac_install_sh"
994 echo "$ac_t""$INSTALL" 1>&6
996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
997 # It thinks the first close brace ends the variable substitution.
998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1005 echo $ac_n "checking for working const""... $ac_c" 1>&6
1006 echo "configure:1001: checking for working const" >&5
1007 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 cat > conftest.$ac_ext <<EOF
1011 #line 1006 "configure"
1012 #include "confdefs.h"
1016 /* Ultrix mips cc rejects this. */
1017 typedef int charset[2]; const charset x = {0,0};
1018 /* SunOS 4.1.1 cc rejects this. */
1019 char const *const *ccp;
1021 /* NEC SVR4.0.2 mips cc rejects this. */
1022 struct point {int x, y;};
1023 static struct point const zero = {0,0};
1024 /* AIX XL C 1.02.0.0 rejects this.
1025 It does not let you subtract one const X* pointer from another in an arm
1026 of an if-expression whose if-part is not a constant expression */
1027 const char *g = "string";
1028 ccp = &g + (g ? g-g : 0);
1029 /* HPUX 7.0 cc rejects these. */
1032 ccp = (char const *const *) p;
1033 { /* SCO 3.2v4 cc rejects this. */
1035 char const *s = 0 ? (char *) 0 : (char const *) 0;
1039 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1041 const int *foo = &x[0];
1044 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1045 typedef const int *iptr;
1049 { /* AIX XL C 1.02.0.0 rejects this saying
1050 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1051 struct s { int j; const int *ap[3]; };
1052 struct s *b; b->j = 5;
1054 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1060 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1072 echo "$ac_t""$ac_cv_c_const" 1>&6
1073 if test $ac_cv_c_const = no; then
1074 cat >> confdefs.h <<\EOF
1080 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1081 echo "configure:1076: checking whether byte ordering is bigendian" >&5
1082 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 ac_cv_c_bigendian=unknown
1086 # See if sys/param.h defines the BYTE_ORDER macro.
1087 cat > conftest.$ac_ext <<EOF
1088 #line 1083 "configure"
1089 #include "confdefs.h"
1090 #include <sys/types.h>
1091 #include <sys/param.h>
1094 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1099 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1101 # It does; now see whether it defined to BIG_ENDIAN or not.
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1098 "configure"
1104 #include "confdefs.h"
1105 #include <sys/types.h>
1106 #include <sys/param.h>
1109 #if BYTE_ORDER != BIG_ENDIAN
1114 if { (eval echo configure:1109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1116 ac_cv_c_bigendian=yes
1118 echo "configure: failed program was:" >&5
1119 cat conftest.$ac_ext >&5
1121 ac_cv_c_bigendian=no
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1129 if test $ac_cv_c_bigendian = unknown; then
1130 if test "$cross_compiling" = yes; then
1131 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1133 cat > conftest.$ac_ext <<EOF
1134 #line 1129 "configure"
1135 #include "confdefs.h"
1137 /* Are we little or big endian? From Harbison&Steele. */
1141 char c[sizeof (long)];
1144 exit (u.c[sizeof (long) - 1] == 1);
1147 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1149 ac_cv_c_bigendian=no
1151 echo "configure: failed program was:" >&5
1152 cat conftest.$ac_ext >&5
1154 ac_cv_c_bigendian=yes
1162 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1163 if test $ac_cv_c_bigendian = yes; then
1164 cat >> confdefs.h <<\EOF
1165 #define WORDS_BIGENDIAN 1
1171 for ac_func in gettimeofday select strerror strtod strtol
1173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1174 echo "configure:1169: checking for $ac_func" >&5
1175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1174 "configure"
1180 #include "confdefs.h"
1181 /* System header to define __stub macros and hopefully few prototypes,
1182 which can conflict with char $ac_func(); below. */
1184 /* Override any gcc2 internal prototype to avoid an error. */
1185 /* We use char because int might match the return type of a gcc2
1186 builtin and then its argument prototype would still apply. */
1191 /* The GNU C library defines this for functions which it implements
1192 to always fail with ENOSYS. Some functions are actually named
1193 something starting with __ and the normal name is an alias. */
1194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1202 if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1204 eval "ac_cv_func_$ac_func=yes"
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1209 eval "ac_cv_func_$ac_func=no"
1214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1215 echo "$ac_t""yes" 1>&6
1216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1217 cat >> confdefs.h <<EOF
1218 #define $ac_tr_func 1
1222 echo "$ac_t""no" 1>&6
1226 for ac_func in setenv putenv
1228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1229 echo "configure:1224: checking for $ac_func" >&5
1230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1229 "configure"
1235 #include "confdefs.h"
1236 /* System header to define __stub macros and hopefully few prototypes,
1237 which can conflict with char $ac_func(); below. */
1239 /* Override any gcc2 internal prototype to avoid an error. */
1240 /* We use char because int might match the return type of a gcc2
1241 builtin and then its argument prototype would still apply. */
1246 /* The GNU C library defines this for functions which it implements
1247 to always fail with ENOSYS. Some functions are actually named
1248 something starting with __ and the normal name is an alias. */
1249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1257 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1259 eval "ac_cv_func_$ac_func=yes"
1261 echo "configure: failed program was:" >&5
1262 cat conftest.$ac_ext >&5
1264 eval "ac_cv_func_$ac_func=no"
1269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1270 echo "$ac_t""yes" 1>&6
1271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1272 cat >> confdefs.h <<EOF
1273 #define $ac_tr_func 1
1277 echo "$ac_t""no" 1>&6
1281 echo $ac_n "checking for connect""... $ac_c" 1>&6
1282 echo "configure:1277: checking for connect" >&5
1283 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1282 "configure"
1288 #include "confdefs.h"
1289 /* System header to define __stub macros and hopefully few prototypes,
1290 which can conflict with char connect(); below. */
1292 /* Override any gcc2 internal prototype to avoid an error. */
1293 /* We use char because int might match the return type of a gcc2
1294 builtin and then its argument prototype would still apply. */
1299 /* The GNU C library defines this for functions which it implements
1300 to always fail with ENOSYS. Some functions are actually named
1301 something starting with __ and the normal name is an alias. */
1302 #if defined (__stub_connect) || defined (__stub___connect)
1310 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1312 eval "ac_cv_func_connect=yes"
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1317 eval "ac_cv_func_connect=no"
1322 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1326 echo "$ac_t""no" 1>&6
1327 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1328 echo "configure:1323: checking for connect in -lsocket" >&5
1329 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 ac_save_LIBS="$LIBS"
1334 LIBS="-lsocket $LIBS"
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1331 "configure"
1337 #include "confdefs.h"
1338 /* Override any gcc2 internal prototype to avoid an error. */
1339 /* We use char because int might match the return type of a gcc2
1340 builtin and then its argument prototype would still apply. */
1347 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 eval "ac_cv_lib_$ac_lib_var=yes"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1354 eval "ac_cv_lib_$ac_lib_var=no"
1357 LIBS="$ac_save_LIBS"
1360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1362 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1364 cat >> confdefs.h <<EOF
1365 #define $ac_tr_lib 1
1368 LIBS="-lsocket $LIBS"
1371 echo "$ac_t""no" 1>&6
1376 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1377 echo "configure:1372: checking for gethostbyname" >&5
1378 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1377 "configure"
1383 #include "confdefs.h"
1384 /* System header to define __stub macros and hopefully few prototypes,
1385 which can conflict with char gethostbyname(); below. */
1387 /* Override any gcc2 internal prototype to avoid an error. */
1388 /* We use char because int might match the return type of a gcc2
1389 builtin and then its argument prototype would still apply. */
1390 char gethostbyname();
1394 /* The GNU C library defines this for functions which it implements
1395 to always fail with ENOSYS. Some functions are actually named
1396 something starting with __ and the normal name is an alias. */
1397 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1405 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1407 eval "ac_cv_func_gethostbyname=yes"
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1412 eval "ac_cv_func_gethostbyname=no"
1417 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1418 echo "$ac_t""yes" 1>&6
1421 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1423 echo "configure:1418: checking for gethostbyname in -lnsl" >&5
1424 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 ac_save_LIBS="$LIBS"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1426 "configure"
1432 #include "confdefs.h"
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1436 char gethostbyname();
1442 if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1444 eval "ac_cv_lib_$ac_lib_var=yes"
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 eval "ac_cv_lib_$ac_lib_var=no"
1452 LIBS="$ac_save_LIBS"
1455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1457 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1459 cat >> confdefs.h <<EOF
1460 #define $ac_tr_lib 1
1466 echo "$ac_t""no" 1>&6
1471 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1472 echo "configure:1467: checking for nanosleep" >&5
1473 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1472 "configure"
1478 #include "confdefs.h"
1479 /* System header to define __stub macros and hopefully few prototypes,
1480 which can conflict with char nanosleep(); below. */
1482 /* Override any gcc2 internal prototype to avoid an error. */
1483 /* We use char because int might match the return type of a gcc2
1484 builtin and then its argument prototype would still apply. */
1489 /* The GNU C library defines this for functions which it implements
1490 to always fail with ENOSYS. Some functions are actually named
1491 something starting with __ and the normal name is an alias. */
1492 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1500 if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1502 eval "ac_cv_func_nanosleep=yes"
1504 echo "configure: failed program was:" >&5
1505 cat conftest.$ac_ext >&5
1507 eval "ac_cv_func_nanosleep=no"
1512 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1516 echo "$ac_t""no" 1>&6
1517 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1518 echo "configure:1513: checking for nanosleep in -lrt" >&5
1519 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 ac_save_LIBS="$LIBS"
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1521 "configure"
1527 #include "confdefs.h"
1528 /* Override any gcc2 internal prototype to avoid an error. */
1529 /* We use char because int might match the return type of a gcc2
1530 builtin and then its argument prototype would still apply. */
1537 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1539 eval "ac_cv_lib_$ac_lib_var=yes"
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1544 eval "ac_cv_lib_$ac_lib_var=no"
1547 LIBS="$ac_save_LIBS"
1550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1551 echo "$ac_t""yes" 1>&6
1552 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1554 cat >> confdefs.h <<EOF
1555 #define $ac_tr_lib 1
1561 echo "$ac_t""no" 1>&6
1562 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1563 echo "configure:1558: checking for nanosleep in -lposix4" >&5
1564 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 ac_save_LIBS="$LIBS"
1569 LIBS="-lposix4 $LIBS"
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1566 "configure"
1572 #include "confdefs.h"
1573 /* Override any gcc2 internal prototype to avoid an error. */
1574 /* We use char because int might match the return type of a gcc2
1575 builtin and then its argument prototype would still apply. */
1582 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1584 eval "ac_cv_lib_$ac_lib_var=yes"
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1589 eval "ac_cv_lib_$ac_lib_var=no"
1592 LIBS="$ac_save_LIBS"
1595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1596 echo "$ac_t""yes" 1>&6
1597 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1599 cat >> confdefs.h <<EOF
1600 #define $ac_tr_lib 1
1603 LIBS="-lposix4 $LIBS"
1606 echo "$ac_t""no" 1>&6
1613 for ac_func in usleep
1615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1616 echo "configure:1611: checking for $ac_func" >&5
1617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1616 "configure"
1622 #include "confdefs.h"
1623 /* System header to define __stub macros and hopefully few prototypes,
1624 which can conflict with char $ac_func(); below. */
1626 /* Override any gcc2 internal prototype to avoid an error. */
1627 /* We use char because int might match the return type of a gcc2
1628 builtin and then its argument prototype would still apply. */
1633 /* The GNU C library defines this for functions which it implements
1634 to always fail with ENOSYS. Some functions are actually named
1635 something starting with __ and the normal name is an alias. */
1636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1644 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1646 eval "ac_cv_func_$ac_func=yes"
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1651 eval "ac_cv_func_$ac_func=no"
1656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1657 echo "$ac_t""yes" 1>&6
1658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1659 cat >> confdefs.h <<EOF
1660 #define $ac_tr_func 1
1664 echo "$ac_t""no" 1>&6
1668 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1669 echo "configure:1664: checking for inet_aton" >&5
1670 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1669 "configure"
1675 #include "confdefs.h"
1676 /* System header to define __stub macros and hopefully few prototypes,
1677 which can conflict with char inet_aton(); below. */
1679 /* Override any gcc2 internal prototype to avoid an error. */
1680 /* We use char because int might match the return type of a gcc2
1681 builtin and then its argument prototype would still apply. */
1686 /* The GNU C library defines this for functions which it implements
1687 to always fail with ENOSYS. Some functions are actually named
1688 something starting with __ and the normal name is an alias. */
1689 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1697 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1699 eval "ac_cv_func_inet_aton=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1704 eval "ac_cv_func_inet_aton=no"
1709 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1713 echo "$ac_t""no" 1>&6
1714 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1715 echo "configure:1710: checking for inet_aton in -lresolv" >&5
1716 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 ac_save_LIBS="$LIBS"
1721 LIBS="-lresolv $LIBS"
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1718 "configure"
1724 #include "confdefs.h"
1725 /* Override any gcc2 internal prototype to avoid an error. */
1726 /* We use char because int might match the return type of a gcc2
1727 builtin and then its argument prototype would still apply. */
1734 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 eval "ac_cv_lib_$ac_lib_var=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 eval "ac_cv_lib_$ac_lib_var=no"
1744 LIBS="$ac_save_LIBS"
1747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1751 cat >> confdefs.h <<EOF
1752 #define $ac_tr_lib 1
1755 LIBS="-lresolv $LIBS"
1758 echo "$ac_t""no" 1>&6
1763 for ac_hdr in unistd.h
1765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1767 echo "configure:1762: checking for $ac_hdr" >&5
1768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1767 "configure"
1773 #include "confdefs.h"
1776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1777 { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1779 if test -z "$ac_err"; then
1781 eval "ac_cv_header_$ac_safe=yes"
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1787 eval "ac_cv_header_$ac_safe=no"
1791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1794 cat >> confdefs.h <<EOF
1795 #define $ac_tr_hdr 1
1799 echo "$ac_t""no" 1>&6
1803 for ac_func in getpagesize
1805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1806 echo "configure:1801: checking for $ac_func" >&5
1807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1806 "configure"
1812 #include "confdefs.h"
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $ac_func(); below. */
1816 /* Override any gcc2 internal prototype to avoid an error. */
1817 /* We use char because int might match the return type of a gcc2
1818 builtin and then its argument prototype would still apply. */
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1834 if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1836 eval "ac_cv_func_$ac_func=yes"
1838 echo "configure: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1841 eval "ac_cv_func_$ac_func=no"
1846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1847 echo "$ac_t""yes" 1>&6
1848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1849 cat >> confdefs.h <<EOF
1850 #define $ac_tr_func 1
1854 echo "$ac_t""no" 1>&6
1858 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1859 echo "configure:1854: checking for working mmap" >&5
1860 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 if test "$cross_compiling" = yes; then
1864 ac_cv_func_mmap_fixed_mapped=no
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1862 "configure"
1868 #include "confdefs.h"
1870 /* Thanks to Mike Haertel and Jim Avera for this test.
1871 Here is a matrix of mmap possibilities:
1872 mmap private not fixed
1873 mmap private fixed at somewhere currently unmapped
1874 mmap private fixed at somewhere already mapped
1875 mmap shared not fixed
1876 mmap shared fixed at somewhere currently unmapped
1877 mmap shared fixed at somewhere already mapped
1878 For private mappings, we should verify that changes cannot be read()
1879 back from the file, nor mmap's back from the file at a different
1880 address. (There have been systems where private was not correctly
1881 implemented like the infamous i386 svr4.0, and systems where the
1882 VM page cache was not coherent with the filesystem buffer cache
1883 like early versions of FreeBSD and possibly contemporary NetBSD.)
1884 For shared mappings, we should conversely verify that changes get
1885 propogated back to all the places they're supposed to be.
1887 Grep wants private fixed already mapped.
1888 The main things grep needs to know about mmap are:
1889 * does it exist and is it safe to write into the mmap'd area
1890 * how to use it (BSD variants) */
1891 #include <sys/types.h>
1893 #include <sys/mman.h>
1895 #include <sys/stat.h>
1897 #ifdef HAVE_UNISTD_H
1898 # include <unistd.h>
1901 /* This mess was copied from the GNU getpagesize.h. */
1902 #ifndef HAVE_GETPAGESIZE
1904 /* Assume that all systems that can run configure have sys/param.h. */
1905 # ifndef HAVE_SYS_PARAM_H
1906 # define HAVE_SYS_PARAM_H 1
1909 # ifdef _SC_PAGESIZE
1910 # define getpagesize() sysconf(_SC_PAGESIZE)
1911 # else /* no _SC_PAGESIZE */
1912 # ifdef HAVE_SYS_PARAM_H
1913 # include <sys/param.h>
1914 # ifdef EXEC_PAGESIZE
1915 # define getpagesize() EXEC_PAGESIZE
1916 # else /* no EXEC_PAGESIZE */
1918 # define getpagesize() NBPG * CLSIZE
1921 # endif /* no CLSIZE */
1922 # else /* no NBPG */
1924 # define getpagesize() NBPC
1925 # else /* no NBPC */
1927 # define getpagesize() PAGESIZE
1928 # endif /* PAGESIZE */
1929 # endif /* no NBPC */
1930 # endif /* no NBPG */
1931 # endif /* no EXEC_PAGESIZE */
1932 # else /* no HAVE_SYS_PARAM_H */
1933 # define getpagesize() 8192 /* punt totally */
1934 # endif /* no HAVE_SYS_PARAM_H */
1935 # endif /* no _SC_PAGESIZE */
1937 #endif /* no HAVE_GETPAGESIZE */
1940 extern "C" { void *malloc(unsigned); }
1948 char *data, *data2, *data3;
1952 pagesize = getpagesize();
1955 * First, make a file with some known garbage in it.
1957 data = (char*)malloc(pagesize);
1960 for (i = 0; i < pagesize; ++i)
1961 *(data + i) = rand();
1963 fd = creat("conftestmmap", 0600);
1966 if (write(fd, data, pagesize) != pagesize)
1971 * Next, try to mmap the file at a fixed address which
1972 * already has something else allocated at it. If we can,
1973 * also make sure that we see the same garbage.
1975 fd = open("conftestmmap", O_RDWR);
1978 data2 = (char*)malloc(2 * pagesize);
1981 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1982 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1983 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1985 for (i = 0; i < pagesize; ++i)
1986 if (*(data + i) != *(data2 + i))
1990 * Finally, make sure that changes to the mapped area
1991 * do not percolate back to the file as seen by read().
1992 * (This is a bug on some variants of i386 svr4.0.)
1994 for (i = 0; i < pagesize; ++i)
1995 *(data2 + i) = *(data2 + i) + 1;
1996 data3 = (char*)malloc(pagesize);
1999 if (read(fd, data3, pagesize) != pagesize)
2001 for (i = 0; i < pagesize; ++i)
2002 if (*(data + i) != *(data3 + i))
2005 unlink("conftestmmap");
2010 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2012 ac_cv_func_mmap_fixed_mapped=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 ac_cv_func_mmap_fixed_mapped=no
2024 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2025 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2026 cat >> confdefs.h <<\EOF
2032 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2033 echo "configure:2028: checking for vprintf" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2033 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char vprintf(); below. */
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2061 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2063 eval "ac_cv_func_vprintf=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2068 eval "ac_cv_func_vprintf=no"
2073 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 cat >> confdefs.h <<\EOF
2076 #define HAVE_VPRINTF 1
2080 echo "$ac_t""no" 1>&6
2083 if test "$ac_cv_func_vprintf" != yes; then
2084 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2085 echo "configure:2080: checking for _doprnt" >&5
2086 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2085 "configure"
2091 #include "confdefs.h"
2092 /* System header to define __stub macros and hopefully few prototypes,
2093 which can conflict with char _doprnt(); below. */
2095 /* Override any gcc2 internal prototype to avoid an error. */
2096 /* We use char because int might match the return type of a gcc2
2097 builtin and then its argument prototype would still apply. */
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2113 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2115 eval "ac_cv_func__doprnt=yes"
2117 echo "configure: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2120 eval "ac_cv_func__doprnt=no"
2125 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2126 echo "$ac_t""yes" 1>&6
2127 cat >> confdefs.h <<\EOF
2128 #define HAVE_DOPRNT 1
2132 echo "$ac_t""no" 1>&6
2137 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2138 echo "configure:2133: checking return type of signal handlers" >&5
2139 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2138 "configure"
2144 #include "confdefs.h"
2145 #include <sys/types.h>
2151 extern "C" void (*signal (int, void (*)(int)))(int);
2153 void (*signal ()) ();
2160 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2162 ac_cv_type_signal=void
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 ac_cv_type_signal=int
2172 echo "$ac_t""$ac_cv_type_signal" 1>&6
2173 cat >> confdefs.h <<EOF
2174 #define RETSIGTYPE $ac_cv_type_signal
2178 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2179 echo "configure:2174: checking for dlopen in -ldl" >&5
2180 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 ac_save_LIBS="$LIBS"
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2182 "configure"
2188 #include "confdefs.h"
2189 /* Override any gcc2 internal prototype to avoid an error. */
2190 /* We use char because int might match the return type of a gcc2
2191 builtin and then its argument prototype would still apply. */
2198 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200 eval "ac_cv_lib_$ac_lib_var=yes"
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 eval "ac_cv_lib_$ac_lib_var=no"
2208 LIBS="$ac_save_LIBS"
2211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2215 cat >> confdefs.h <<EOF
2216 #define $ac_tr_lib 1
2222 echo "$ac_t""no" 1>&6
2225 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2226 echo "configure:2221: checking for optarg in -lgnugetopt" >&5
2227 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 ac_save_LIBS="$LIBS"
2232 LIBS="-lgnugetopt $LIBS"
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2229 "configure"
2235 #include "confdefs.h"
2236 /* Override any gcc2 internal prototype to avoid an error. */
2237 /* We use char because int might match the return type of a gcc2
2238 builtin and then its argument prototype would still apply. */
2245 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 eval "ac_cv_lib_$ac_lib_var=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 eval "ac_cv_lib_$ac_lib_var=no"
2255 LIBS="$ac_save_LIBS"
2258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2262 cat >> confdefs.h <<EOF
2263 #define $ac_tr_lib 1
2266 LIBS="-lgnugetopt $LIBS"
2269 echo "$ac_t""no" 1>&6
2272 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2273 echo "configure:2268: checking for _ in -lbe" >&5
2274 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 ac_save_LIBS="$LIBS"
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2276 "configure"
2282 #include "confdefs.h"
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2292 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2299 eval "ac_cv_lib_$ac_lib_var=no"
2302 LIBS="$ac_save_LIBS"
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2309 cat >> confdefs.h <<EOF
2310 #define $ac_tr_lib 1
2316 echo "$ac_t""no" 1>&6
2319 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2320 echo "configure:2315: checking for _ in -lgame" >&5
2321 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 ac_save_LIBS="$LIBS"
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2323 "configure"
2329 #include "confdefs.h"
2330 /* Override any gcc2 internal prototype to avoid an error. */
2331 /* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2339 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2341 eval "ac_cv_lib_$ac_lib_var=yes"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2346 eval "ac_cv_lib_$ac_lib_var=no"
2349 LIBS="$ac_save_LIBS"
2352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2356 cat >> confdefs.h <<EOF
2357 #define $ac_tr_lib 1
2363 echo "$ac_t""no" 1>&6
2366 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2367 echo "configure:2362: checking for _ in -lroot" >&5
2368 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 ac_save_LIBS="$LIBS"
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2370 "configure"
2376 #include "confdefs.h"
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2386 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2388 eval "ac_cv_lib_$ac_lib_var=yes"
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2393 eval "ac_cv_lib_$ac_lib_var=no"
2396 LIBS="$ac_save_LIBS"
2399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2400 echo "$ac_t""yes" 1>&6
2401 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2403 cat >> confdefs.h <<EOF
2404 #define $ac_tr_lib 1
2410 echo "$ac_t""no" 1>&6
2413 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2414 echo "configure:2409: checking for powl in -lm" >&5
2415 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 ac_save_LIBS="$LIBS"
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2417 "configure"
2423 #include "confdefs.h"
2424 /* Override any gcc2 internal prototype to avoid an error. */
2425 /* We use char because int might match the return type of a gcc2
2426 builtin and then its argument prototype would still apply. */
2433 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435 eval "ac_cv_lib_$ac_lib_var=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_lib_$ac_lib_var=no"
2443 LIBS="$ac_save_LIBS"
2446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2450 cat >> confdefs.h <<EOF
2451 #define $ac_tr_lib 1
2457 echo "$ac_t""no" 1>&6
2460 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2461 echo "configure:2456: checking for pthread_create in -lpthread" >&5
2462 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 ac_save_LIBS="$LIBS"
2467 LIBS="-lpthread $LIBS"
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2464 "configure"
2470 #include "confdefs.h"
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2474 char pthread_create();
2480 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2482 eval "ac_cv_lib_$ac_lib_var=yes"
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 eval "ac_cv_lib_$ac_lib_var=no"
2490 LIBS="$ac_save_LIBS"
2493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2497 cat >> confdefs.h <<EOF
2498 #define $ac_tr_lib 1
2501 LIBS="-lpthread $LIBS"
2504 echo "$ac_t""no" 1>&6
2507 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2508 echo "configure:2503: checking for thread_create in -lthreads" >&5
2509 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 ac_save_LIBS="$LIBS"
2514 LIBS="-lthreads $LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2511 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2521 char thread_create();
2527 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 eval "ac_cv_lib_$ac_lib_var=yes"
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 eval "ac_cv_lib_$ac_lib_var=no"
2537 LIBS="$ac_save_LIBS"
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2544 cat >> confdefs.h <<EOF
2545 #define $ac_tr_lib 1
2548 LIBS="-lthreads $LIBS"
2551 echo "$ac_t""no" 1>&6
2555 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2556 echo "configure:2551: checking for getopt_long" >&5
2557 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2556 "configure"
2562 #include "confdefs.h"
2563 /* System header to define __stub macros and hopefully few prototypes,
2564 which can conflict with char getopt_long(); below. */
2566 /* Override any gcc2 internal prototype to avoid an error. */
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2573 /* The GNU C library defines this for functions which it implements
2574 to always fail with ENOSYS. Some functions are actually named
2575 something starting with __ and the normal name is an alias. */
2576 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2584 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2586 eval "ac_cv_func_getopt_long=yes"
2588 echo "configure: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2591 eval "ac_cv_func_getopt_long=no"
2596 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2600 echo "$ac_t""no" 1>&6
2601 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2606 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2610 echo "configure:2605: checking for $ac_hdr" >&5
2611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2610 "configure"
2616 #include "confdefs.h"
2619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2620 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2622 if test -z "$ac_err"; then
2624 eval "ac_cv_header_$ac_safe=yes"
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 eval "ac_cv_header_$ac_safe=no"
2634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2637 cat >> confdefs.h <<EOF
2638 #define $ac_tr_hdr 1
2642 echo "$ac_t""no" 1>&6
2646 for ac_hdr in sys/soundcard.h machine/soundcard.h
2648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2650 echo "configure:2645: checking for $ac_hdr" >&5
2651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2650 "configure"
2656 #include "confdefs.h"
2659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2660 { (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2662 if test -z "$ac_err"; then
2664 eval "ac_cv_header_$ac_safe=yes"
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 eval "ac_cv_header_$ac_safe=no"
2674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2677 cat >> confdefs.h <<EOF
2678 #define $ac_tr_hdr 1
2682 echo "$ac_t""no" 1>&6
2686 for ac_hdr in dlfcn.h image.h
2688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2690 echo "configure:2685: checking for $ac_hdr" >&5
2691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2690 "configure"
2696 #include "confdefs.h"
2699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2700 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2702 if test -z "$ac_err"; then
2704 eval "ac_cv_header_$ac_safe=yes"
2707 echo "configure: failed program was:" >&5
2708 cat conftest.$ac_ext >&5
2710 eval "ac_cv_header_$ac_safe=no"
2714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2715 echo "$ac_t""yes" 1>&6
2716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2717 cat >> confdefs.h <<EOF
2718 #define $ac_tr_hdr 1
2722 echo "$ac_t""no" 1>&6
2726 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2730 echo "configure:2725: checking for $ac_hdr" >&5
2731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2730 "configure"
2736 #include "confdefs.h"
2739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2740 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2742 if test -z "$ac_err"; then
2744 eval "ac_cv_header_$ac_safe=yes"
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2750 eval "ac_cv_header_$ac_safe=no"
2754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2755 echo "$ac_t""yes" 1>&6
2756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2757 cat >> confdefs.h <<EOF
2758 #define $ac_tr_hdr 1
2762 echo "$ac_t""no" 1>&6
2767 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2766: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2771 "configure"
2777 #include "confdefs.h"
2780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2785 eval "ac_cv_header_$ac_safe=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2791 eval "ac_cv_header_$ac_safe=no"
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_hdr 1
2803 echo "$ac_t""no" 1>&6
2808 echo $ac_n "checking for working const""... $ac_c" 1>&6
2809 echo "configure:2804: checking for working const" >&5
2810 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2809 "configure"
2815 #include "confdefs.h"
2819 /* Ultrix mips cc rejects this. */
2820 typedef int charset[2]; const charset x = {0,0};
2821 /* SunOS 4.1.1 cc rejects this. */
2822 char const *const *ccp;
2824 /* NEC SVR4.0.2 mips cc rejects this. */
2825 struct point {int x, y;};
2826 static struct point const zero = {0,0};
2827 /* AIX XL C 1.02.0.0 rejects this.
2828 It does not let you subtract one const X* pointer from another in an arm
2829 of an if-expression whose if-part is not a constant expression */
2830 const char *g = "string";
2831 ccp = &g + (g ? g-g : 0);
2832 /* HPUX 7.0 cc rejects these. */
2835 ccp = (char const *const *) p;
2836 { /* SCO 3.2v4 cc rejects this. */
2838 char const *s = 0 ? (char *) 0 : (char const *) 0;
2842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2844 const int *foo = &x[0];
2847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2848 typedef const int *iptr;
2852 { /* AIX XL C 1.02.0.0 rejects this saying
2853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2854 struct s { int j; const int *ap[3]; };
2855 struct s *b; b->j = 5;
2857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2863 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2875 echo "$ac_t""$ac_cv_c_const" 1>&6
2876 if test $ac_cv_c_const = no; then
2877 cat >> confdefs.h <<\EOF
2883 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2884 echo "configure:2879: checking for ANSI C header files" >&5
2885 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2884 "configure"
2890 #include "confdefs.h"
2896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897 { (eval echo configure:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899 if test -z "$ac_err"; then
2901 ac_cv_header_stdc=yes
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 ac_cv_header_stdc=no
2911 if test $ac_cv_header_stdc = yes; then
2912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2909 "configure"
2915 #include "confdefs.h"
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 egrep "memchr" >/dev/null 2>&1; then
2923 ac_cv_header_stdc=no
2929 if test $ac_cv_header_stdc = yes; then
2930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2927 "configure"
2933 #include "confdefs.h"
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "free" >/dev/null 2>&1; then
2941 ac_cv_header_stdc=no
2947 if test $ac_cv_header_stdc = yes; then
2948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2949 if test "$cross_compiling" = yes; then
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2948 "configure"
2954 #include "confdefs.h"
2956 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2957 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2959 int main () { int i; for (i = 0; i < 256; i++)
2960 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2964 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 ac_cv_header_stdc=no
2979 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2980 if test $ac_cv_header_stdc = yes; then
2981 cat >> confdefs.h <<\EOF
2982 #define STDC_HEADERS 1
2987 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2988 echo "configure:2983: checking for size_t" >&5
2989 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2988 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3004 ac_cv_type_size_t=yes
3007 ac_cv_type_size_t=no
3012 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3013 if test $ac_cv_type_size_t = no; then
3014 cat >> confdefs.h <<\EOF
3015 #define size_t unsigned
3020 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3021 echo "configure:3016: checking whether time.h and sys/time.h may both be included" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3021 "configure"
3027 #include "confdefs.h"
3028 #include <sys/types.h>
3029 #include <sys/time.h>
3035 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3037 ac_cv_header_time=yes
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3042 ac_cv_header_time=no
3047 echo "$ac_t""$ac_cv_header_time" 1>&6
3048 if test $ac_cv_header_time = yes; then
3049 cat >> confdefs.h <<\EOF
3050 #define TIME_WITH_SYS_TIME 1
3056 PLUGINS=${PLUGINS}"yuv ";
3059 # Check whether --enable-ppro or --disable-ppro was given.
3060 if test "${enable_ppro+set}" = set; then
3061 enableval="$enable_ppro"
3062 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3065 # Check whether --enable-mmx or --disable-mmx was given.
3066 if test "${enable_mmx+set}" = set; then
3067 enableval="$enable_mmx"
3068 if test x`echo $ARCH | cut -b3-4` = x86 ; then if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi; fi
3071 # Check whether --enable-debug or --disable-debug was given.
3072 if test "${enable_debug+set}" = set; then
3073 enableval="$enable_debug"
3074 if test x$enableval = xyes; then DEBUG=1; fi
3077 # Check whether --enable-stats or --disable-stats was given.
3078 if test "${enable_stats+set}" = set; then
3079 enableval="$enable_stats"
3081 if test x$enable_stats != xno; then STATS=1; fi
3083 # Check whether --enable-optims or --disable-optims was given.
3084 if test "${enable_optims+set}" = set; then
3085 enableval="$enable_optims"
3087 if test x$enable_optims != xno; then OPTIMS=1; fi
3093 if test x$host_os = xbeos; then
3094 PLUGINS=${PLUGINS}"dummy beos "
3098 # Check whether --enable-dummy or --disable-dummy was given.
3099 if test "${enable_dummy+set}" = set; then
3100 enableval="$enable_dummy"
3104 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3105 # Check whether --enable-dsp or --disable-dsp was given.
3106 if test "${enable_dsp+set}" = set; then
3107 enableval="$enable_dsp"
3111 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3112 # Check whether --enable-esd or --disable-esd was given.
3113 if test "${enable_esd+set}" = set; then
3114 enableval="$enable_esd"
3115 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3118 # Check whether --enable-fb or --disable-fb was given.
3119 if test "${enable_fb+set}" = set; then
3120 enableval="$enable_fb"
3121 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3124 # Check whether --enable-ggi or --disable-ggi was given.
3125 if test "${enable_ggi+set}" = set; then
3126 enableval="$enable_ggi"
3127 if test x$enable_ggi = xyes; then PLUGINS=${PLUGINS}"ggi "; fi
3130 # Check whether --enable-sdl or --disable-sdl was given.
3131 if test "${enable_sdl+set}" = set; then
3132 enableval="$enable_sdl"
3133 if test x$enable_sdl = xyes; then PLUGINS=${PLUGINS}"sdl "; fi
3136 # Check whether --enable-glide or --disable-glide was given.
3137 if test "${enable_glide+set}" = set; then
3138 enableval="$enable_glide"
3139 if test x$enable_glide = xyes; then PLUGINS=${PLUGINS}"glide "; fi
3142 # Check whether --enable-gnome or --disable-gnome was given.
3143 if test "${enable_gnome+set}" = set; then
3144 enableval="$enable_gnome"
3145 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3148 # Check whether --enable-x11 or --disable-x11 was given.
3149 if test "${enable_x11+set}" = set; then
3150 enableval="$enable_x11"
3154 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3164 cat > confcache <<\EOF
3165 # This file is a shell script that caches the results of configure
3166 # tests run on this system so they can be shared between configure
3167 # scripts and configure runs. It is not useful on other systems.
3168 # If it contains results you don't want to keep, you may remove or edit it.
3170 # By default, configure uses ./config.cache as the cache file,
3171 # creating it if it does not exist already. You can give configure
3172 # the --cache-file=FILE option to use a different cache file; that is
3173 # what configure does when it calls configure scripts in
3174 # subdirectories, so they share the cache.
3175 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3176 # config.status only pays attention to the cache file if you give it the
3177 # --recheck option to rerun configure.
3180 # The following way of writing the cache mishandles newlines in values,
3181 # but we know of no workaround that is simple, portable, and efficient.
3182 # So, don't put newlines in cache variables' values.
3183 # Ultrix sh set writes to stderr and can't be redirected directly,
3184 # and sets the high bit in the cache file unless we assign to the vars.
3186 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3188 # `set' does not quote correctly, so add quotes (double-quote substitution
3189 # turns \\\\ into \\, and sed turns \\ into \).
3191 -e "s/'/'\\\\''/g" \
3192 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3195 # `set' quotes correctly as required by POSIX, so do not add quotes.
3196 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3199 if cmp -s $cache_file confcache; then
3202 if test -w $cache_file; then
3203 echo "updating cache $cache_file"
3204 cat confcache > $cache_file
3206 echo "not updating unwritable cache $cache_file"
3211 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3213 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3214 # Let make expand exec_prefix.
3215 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3217 # Any assignment to VPATH causes Sun make to only execute
3218 # the first set of double-colon rules, so remove it if not needed.
3219 # If there is a colon in the path, we need to keep it.
3220 if test "x$srcdir" = x.; then
3221 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3224 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3226 DEFS=-DHAVE_CONFIG_H
3228 # Without the "./", some shells look in PATH for config.status.
3229 : ${CONFIG_STATUS=./config.status}
3231 echo creating $CONFIG_STATUS
3232 rm -f $CONFIG_STATUS
3233 cat > $CONFIG_STATUS <<EOF
3235 # Generated automatically by configure.
3236 # Run this file to recreate the current configuration.
3237 # This directory was configured as follows,
3238 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3240 # $0 $ac_configure_args
3242 # Compiler output produced by configure, useful for debugging
3243 # configure, is in ./config.log if it exists.
3245 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3248 case "\$ac_option" in
3249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3250 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3251 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3252 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3253 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3255 -help | --help | --hel | --he | --h)
3256 echo "\$ac_cs_usage"; exit 0 ;;
3257 *) echo "\$ac_cs_usage"; exit 1 ;;
3261 ac_given_srcdir=$srcdir
3262 ac_given_INSTALL="$INSTALL"
3264 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3266 cat >> $CONFIG_STATUS <<EOF
3268 # Protect against being on the right side of a sed subst in config.status.
3269 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3270 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3274 s%@CFLAGS@%$CFLAGS%g
3275 s%@CPPFLAGS@%$CPPFLAGS%g
3276 s%@CXXFLAGS@%$CXXFLAGS%g
3277 s%@FFLAGS@%$FFLAGS%g
3279 s%@LDFLAGS@%$LDFLAGS%g
3281 s%@exec_prefix@%$exec_prefix%g
3282 s%@prefix@%$prefix%g
3283 s%@program_transform_name@%$program_transform_name%g
3284 s%@bindir@%$bindir%g
3285 s%@sbindir@%$sbindir%g
3286 s%@libexecdir@%$libexecdir%g
3287 s%@datadir@%$datadir%g
3288 s%@sysconfdir@%$sysconfdir%g
3289 s%@sharedstatedir@%$sharedstatedir%g
3290 s%@localstatedir@%$localstatedir%g
3291 s%@libdir@%$libdir%g
3292 s%@includedir@%$includedir%g
3293 s%@oldincludedir@%$oldincludedir%g
3294 s%@infodir@%$infodir%g
3295 s%@mandir@%$mandir%g
3297 s%@host_alias@%$host_alias%g
3298 s%@host_cpu@%$host_cpu%g
3299 s%@host_vendor@%$host_vendor%g
3300 s%@host_os@%$host_os%g
3301 s%@VLC_VERSION@%$VLC_VERSION%g
3302 s%@VLC_CODENAME@%$VLC_CODENAME%g
3303 s%@SET_MAKE@%$SET_MAKE%g
3306 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3307 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3308 s%@INSTALL_DATA@%$INSTALL_DATA%g
3309 s%@LIBOBJS@%$LIBOBJS%g
3312 s%@PLUGINS@%$PLUGINS%g
3313 s%@ALIASES@%$ALIASES%g
3316 s%@OPTIMS@%$OPTIMS%g
3321 cat >> $CONFIG_STATUS <<\EOF
3323 # Split the substitutions into bite-sized pieces for seds with
3324 # small command number limits, like on Digital OSF/1 and HP-UX.
3325 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3326 ac_file=1 # Number of current file.
3327 ac_beg=1 # First line for current file.
3328 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3331 while $ac_more_lines; do
3332 if test $ac_beg -gt 1; then
3333 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3335 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3337 if test ! -s conftest.s$ac_file; then
3339 rm -f conftest.s$ac_file
3341 if test -z "$ac_sed_cmds"; then
3342 ac_sed_cmds="sed -f conftest.s$ac_file"
3344 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3346 ac_file=`expr $ac_file + 1`
3348 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3351 if test -z "$ac_sed_cmds"; then
3356 cat >> $CONFIG_STATUS <<EOF
3358 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3360 cat >> $CONFIG_STATUS <<\EOF
3361 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3362 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3364 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3365 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3366 *) ac_file_in="${ac_file}.in" ;;
3369 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3371 # Remove last slash and all that follows it. Not all systems have dirname.
3372 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3373 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3374 # The file is in a subdirectory.
3375 test ! -d "$ac_dir" && mkdir "$ac_dir"
3376 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3377 # A "../" for each directory in $ac_dir_suffix.
3378 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3380 ac_dir_suffix= ac_dots=
3383 case "$ac_given_srcdir" in
3385 if test -z "$ac_dots"; then top_srcdir=.
3386 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3387 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3389 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3390 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3393 case "$ac_given_INSTALL" in
3394 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3395 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3398 echo creating "$ac_file"
3400 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3402 *Makefile*) ac_comsub="1i\\
3403 # $configure_input" ;;
3407 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3409 s%@configure_input@%$configure_input%g
3410 s%@srcdir@%$srcdir%g
3411 s%@top_srcdir@%$top_srcdir%g
3412 s%@INSTALL@%$INSTALL%g
3413 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3420 # ac_d sets the value in "#define NAME VALUE" lines.
3421 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3422 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3425 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3426 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3427 ac_uB='\([ ]\)%\1#\2define\3'
3430 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3431 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3432 ac_eB='$%\1#\2define\3'
3436 if test "${CONFIG_HEADERS+set}" != set; then
3438 cat >> $CONFIG_STATUS <<EOF
3439 CONFIG_HEADERS="include/defs.h"
3441 cat >> $CONFIG_STATUS <<\EOF
3443 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3446 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3447 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3448 *) ac_file_in="${ac_file}.in" ;;
3451 echo creating $ac_file
3453 rm -f conftest.frag conftest.in conftest.out
3454 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3455 cat $ac_file_inputs > conftest.in
3459 # Transform confdefs.h into a sed script conftest.vals that substitutes
3460 # the proper values into config.h.in to produce config.h. And first:
3461 # Protect against being on the right side of a sed subst in config.status.
3462 # Protect against being in an unquoted here document in config.status.
3464 cat > conftest.hdr <<\EOF
3467 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3471 sed -n -f conftest.hdr confdefs.h > conftest.vals
3474 # This sed command replaces #undef with comments. This is necessary, for
3475 # example, in the case of _POSIX_SOURCE, which is predefined and required
3476 # on some systems where configure will not decide to define it.
3477 cat >> conftest.vals <<\EOF
3478 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3481 # Break up conftest.vals because some shells have a limit on
3482 # the size of here documents, and old seds have small limits too.
3487 ac_lines=`grep -c . conftest.vals`
3488 # grep -c gives empty output for an empty file on some AIX systems.
3489 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3490 # Write a limited-size here document to conftest.frag.
3491 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3492 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3494 sed -f conftest.frag conftest.in > conftest.out
3496 mv conftest.out conftest.in
3498 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3500 mv conftest.tail conftest.vals
3504 cat >> $CONFIG_STATUS <<\EOF
3505 rm -f conftest.frag conftest.h
3506 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3507 cat conftest.in >> conftest.h
3509 if cmp -s $ac_file conftest.h 2>/dev/null; then
3510 echo "$ac_file is unchanged"
3513 # Remove last slash and all that follows it. Not all systems have dirname.
3514 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3515 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3516 # The file is in a subdirectory.
3517 test ! -d "$ac_dir" && mkdir "$ac_dir"
3520 mv conftest.h $ac_file
3525 cat >> $CONFIG_STATUS <<EOF
3528 cat >> $CONFIG_STATUS <<\EOF
3532 chmod +x $CONFIG_STATUS
3533 rm -fr confdefs* $ac_clean_files
3534 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3540 vlc version : ${VLC_VERSION}
3542 architecture : ${ARCH}
3543 debug mode : ${DEBUG}
3544 statistics : ${STATS}
3545 optimizations : ${OPTIMS}
3546 plugins : ${PLUGINS}
3547 vlc aliases : ${ALIASES}