3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-debug Enable debug mode (default disabled)"
21 --enable-stats Enable printing of statistics (default disabled)"
23 --disable-optimizations Disable compiler optimizations (default enabled)"
25 --disable-dummy dummy audio and video support (default enabled)"
27 --disable-dsp Linux /dev/dsp support (default enabled)"
29 --enable-esd Esound library support (default disabled)"
31 --enable-fb Linux framebuffer support (default disabled)"
33 --with-ggi[=name] GGI support (default disabled)"
35 --with-sdl[=name] SDL support (default disabled)"
37 --with-glide[=name] Glide (3dfx) support (default disabled)"
39 --enable-null Null plugin (default disabled)"
41 --enable-gnome Gnome support (default disabled)"
43 --disable-x11 X11 support (default enabled)"
45 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file=./config.cache
60 program_transform_name=s,x,x,
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host | --host | --hos | --ho)
223 -host=* | --host=* | --hos=* | --ho=*)
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
312 -program-transform-name=* | --program-transform-name=* \
313 | --program-transform-nam=* | --program-transform-na=* \
314 | --program-transform-n=* | --program-transform-=* \
315 | --program-transform=* | --program-transfor=* \
316 | --program-transfo=* | --program-transf=* \
317 | --program-trans=* | --program-tran=* \
318 | --progr-tra=* | --program-tr=* | --program-t=*)
319 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
344 -site=* | --site=* | --sit=*)
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=src/interface/main.c
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
559 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
560 if test -f $ac_dir/install-sh; then
562 ac_install_sh="$ac_aux_dir/install-sh -c"
564 elif test -f $ac_dir/install.sh; then
566 ac_install_sh="$ac_aux_dir/install.sh -c"
570 if test -z "$ac_aux_dir"; then
571 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
573 ac_config_guess=$ac_aux_dir/config.guess
574 ac_config_sub=$ac_aux_dir/config.sub
575 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
578 # Make sure we can run config.sub.
579 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
587 case "$host_alias" in
591 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
592 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
594 *) host_alias=$nonopt ;;
598 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
599 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
611 echo "configure:612: checking whether ${MAKE-make} sets \${MAKE}" >&5
612 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
613 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 cat > conftestmake <<\EOF
618 @echo 'ac_maketemp="${MAKE}"'
620 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
621 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
622 if test -n "$ac_maketemp"; then
623 eval ac_cv_prog_make_${ac_make}_set=yes
625 eval ac_cv_prog_make_${ac_make}_set=no
629 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
630 echo "$ac_t""yes" 1>&6
633 echo "$ac_t""no" 1>&6
634 SET_MAKE="MAKE=${MAKE-make}"
637 if test -z "$CC"; then
638 # Extract the first word of "gcc", so it can be a program name with args.
639 set dummy gcc; ac_word=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 if test -n "$CC"; then
646 ac_cv_prog_CC="$CC" # Let the user override the test.
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
650 for ac_dir in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir=.
652 if test -f $ac_dir/$ac_word; then
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
668 # Extract the first word of "cc", so it can be a program name with args.
669 set dummy cc; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
684 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
693 if test $ac_prog_rejected = yes; then
694 # We found a bogon in the path, so make sure we never use it.
695 set dummy $ac_cv_prog_CC
697 if test $# -gt 0; then
698 # We chose a different compiler from the bogus one.
699 # However, it has the same basename, so the bogon will be chosen
700 # first if we set CC to just the basename; use the full file name.
702 set dummy "$ac_dir/$ac_word" "$@"
710 if test -n "$CC"; then
711 echo "$ac_t""$CC" 1>&6
713 echo "$ac_t""no" 1>&6
716 if test -z "$CC"; then
719 # Extract the first word of "cl", so it can be a program name with args.
720 set dummy cl; ac_word=$2
721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
722 echo "configure:723: checking for $ac_word" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 if test -n "$CC"; then
727 ac_cv_prog_CC="$CC" # Let the user override the test.
729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
731 for ac_dir in $ac_dummy; do
732 test -z "$ac_dir" && ac_dir=.
733 if test -f $ac_dir/$ac_word; then
742 if test -n "$CC"; then
743 echo "$ac_t""$CC" 1>&6
745 echo "$ac_t""no" 1>&6
750 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
754 echo "configure:755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
758 ac_cpp='$CPP $CPPFLAGS'
759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
761 cross_compiling=$ac_cv_prog_cc_cross
763 cat > conftest.$ac_ext << EOF
765 #line 766 "configure"
766 #include "confdefs.h"
770 if { (eval echo configure:771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
771 ac_cv_prog_cc_works=yes
772 # If we can't run a trivial program, we are probably using a cross compiler.
773 if (./conftest; exit) 2>/dev/null; then
774 ac_cv_prog_cc_cross=no
776 ac_cv_prog_cc_cross=yes
779 echo "configure: failed program was:" >&5
780 cat conftest.$ac_ext >&5
781 ac_cv_prog_cc_works=no
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
792 if test $ac_cv_prog_cc_works = no; then
793 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
795 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
796 echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
797 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
798 cross_compiling=$ac_cv_prog_cc_cross
800 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
801 echo "configure:802: checking whether we are using GNU C" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 cat > conftest.c <<EOF
810 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
817 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
819 if test $ac_cv_prog_gcc = yes; then
825 ac_test_CFLAGS="${CFLAGS+set}"
826 ac_save_CFLAGS="$CFLAGS"
828 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
829 echo "configure:830: checking whether ${CC-cc} accepts -g" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 echo 'void f(){}' > conftest.c
834 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
843 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
844 if test "$ac_test_CFLAGS" = set; then
845 CFLAGS="$ac_save_CFLAGS"
846 elif test $ac_cv_prog_cc_g = yes; then
847 if test "$GCC" = yes; then
853 if test "$GCC" = yes; then
861 if test -z "$CPP"; then
862 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
863 echo "configure:864: checking how to run the C preprocessor" >&5
864 # On Suns, sometimes $CPP names a directory.
865 if test -n "$CPP" && test -d "$CPP"; then
868 if test -z "$CPP"; then
869 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 # This must be in double quotes, not single quotes, because CPP may get
873 # substituted into the Makefile and "${CC-cc}" will confuse make.
875 # On the NeXT, cc -E runs the code through the compiler's parser,
876 # not just through cpp.
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
893 CPP="${CC-cc} -E -traditional-cpp"
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
901 { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903 if test -z "$ac_err"; then
907 echo "configure: failed program was:" >&5
908 cat conftest.$ac_ext >&5
910 CPP="${CC-cc} -nologo -E"
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
934 ac_cv_prog_CPP="$CPP"
936 CPP="$ac_cv_prog_CPP"
938 ac_cv_prog_CPP="$CPP"
940 echo "$ac_t""$CPP" 1>&6
944 # Find a good install program. We prefer a C program (faster),
945 # so one script is as good as another. But avoid the broken or
946 # incompatible versions:
947 # SysV /etc/install, /usr/sbin/install
948 # SunOS /usr/etc/install
951 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
952 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
953 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
954 # ./install, which can be erroneously created by make from ./install.sh.
955 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
956 echo "configure:957: checking for a BSD compatible install" >&5
957 if test -z "$INSTALL"; then
958 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
962 for ac_dir in $PATH; do
963 # Account for people who put trailing slashes in PATH elements.
965 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
967 # OSF1 and SCO ODT 3.0 have their own names for install.
968 # Don't use installbsd from OSF since it installs stuff as root
970 for ac_prog in ginstall scoinst install; do
971 if test -f $ac_dir/$ac_prog; then
972 if test $ac_prog = install &&
973 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
974 # AIX install. It has an incompatible calling convention.
977 ac_cv_path_install="$ac_dir/$ac_prog -c"
988 if test "${ac_cv_path_install+set}" = set; then
989 INSTALL="$ac_cv_path_install"
991 # As a last resort, use the slow shell script. We don't cache a
992 # path for INSTALL within a source directory, because that will
993 # break other packages using the cache if that directory is
994 # removed, or if the path is relative.
995 INSTALL="$ac_install_sh"
998 echo "$ac_t""$INSTALL" 1>&6
1000 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1001 # It thinks the first close brace ends the variable substitution.
1002 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1004 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1006 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1009 echo $ac_n "checking for working const""... $ac_c" 1>&6
1010 echo "configure:1011: checking for working const" >&5
1011 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 cat > conftest.$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1020 /* Ultrix mips cc rejects this. */
1021 typedef int charset[2]; const charset x = {0,0};
1022 /* SunOS 4.1.1 cc rejects this. */
1023 char const *const *ccp;
1025 /* NEC SVR4.0.2 mips cc rejects this. */
1026 struct point {int x, y;};
1027 static struct point const zero = {0,0};
1028 /* AIX XL C 1.02.0.0 rejects this.
1029 It does not let you subtract one const X* pointer from another in an arm
1030 of an if-expression whose if-part is not a constant expression */
1031 const char *g = "string";
1032 ccp = &g + (g ? g-g : 0);
1033 /* HPUX 7.0 cc rejects these. */
1036 ccp = (char const *const *) p;
1037 { /* SCO 3.2v4 cc rejects this. */
1039 char const *s = 0 ? (char *) 0 : (char const *) 0;
1043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1045 const int *foo = &x[0];
1048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1049 typedef const int *iptr;
1053 { /* AIX XL C 1.02.0.0 rejects this saying
1054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1055 struct s { int j; const int *ap[3]; };
1056 struct s *b; b->j = 5;
1058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1064 if { (eval echo configure:1065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1076 echo "$ac_t""$ac_cv_c_const" 1>&6
1077 if test $ac_cv_c_const = no; then
1078 cat >> confdefs.h <<\EOF
1084 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether byte ordering is bigendian" >&5
1086 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 ac_cv_c_bigendian=unknown
1090 # See if sys/param.h defines the BYTE_ORDER macro.
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1094 #include <sys/types.h>
1095 #include <sys/param.h>
1098 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1103 if { (eval echo configure:1104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1105 # It does; now see whether it defined to BIG_ENDIAN or not.
1106 cat > conftest.$ac_ext <<EOF
1107 #line 1108 "configure"
1108 #include "confdefs.h"
1109 #include <sys/types.h>
1110 #include <sys/param.h>
1113 #if BYTE_ORDER != BIG_ENDIAN
1118 if { (eval echo configure:1119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1120 ac_cv_c_bigendian=yes
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1125 ac_cv_c_bigendian=no
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1133 if test $ac_cv_c_bigendian = unknown; then
1134 if test "$cross_compiling" = yes; then
1135 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1141 /* Are we little or big endian? From Harbison&Steele. */
1145 char c[sizeof (long)];
1148 exit (u.c[sizeof (long) - 1] == 1);
1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1153 ac_cv_c_bigendian=no
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 ac_cv_c_bigendian=yes
1166 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1167 if test $ac_cv_c_bigendian = yes; then
1168 cat >> confdefs.h <<\EOF
1169 #define WORDS_BIGENDIAN 1
1175 for ac_func in gettimeofday select strerror strtod strtol
1177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_func" >&5
1179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1185 /* System header to define __stub macros and hopefully few prototypes,
1186 which can conflict with char $ac_func(); below. */
1188 /* Override any gcc2 internal prototype to avoid an error. */
1189 /* We use char because int might match the return type of a gcc2
1190 builtin and then its argument prototype would still apply. */
1195 /* The GNU C library defines this for functions which it implements
1196 to always fail with ENOSYS. Some functions are actually named
1197 something starting with __ and the normal name is an alias. */
1198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1208 eval "ac_cv_func_$ac_func=yes"
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1213 eval "ac_cv_func_$ac_func=no"
1218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1219 echo "$ac_t""yes" 1>&6
1220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1221 cat >> confdefs.h <<EOF
1222 #define $ac_tr_func 1
1226 echo "$ac_t""no" 1>&6
1230 for ac_func in setenv putenv
1232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1233 echo "configure:1234: checking for $ac_func" >&5
1234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 /* System header to define __stub macros and hopefully few prototypes,
1241 which can conflict with char $ac_func(); below. */
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1250 /* The GNU C library defines this for functions which it implements
1251 to always fail with ENOSYS. Some functions are actually named
1252 something starting with __ and the normal name is an alias. */
1253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1261 if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1263 eval "ac_cv_func_$ac_func=yes"
1265 echo "configure: failed program was:" >&5
1266 cat conftest.$ac_ext >&5
1268 eval "ac_cv_func_$ac_func=no"
1273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1276 cat >> confdefs.h <<EOF
1277 #define $ac_tr_func 1
1281 echo "$ac_t""no" 1>&6
1285 echo $ac_n "checking for connect""... $ac_c" 1>&6
1286 echo "configure:1287: checking for connect" >&5
1287 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* System header to define __stub macros and hopefully few prototypes,
1294 which can conflict with char connect(); below. */
1296 /* Override any gcc2 internal prototype to avoid an error. */
1297 /* We use char because int might match the return type of a gcc2
1298 builtin and then its argument prototype would still apply. */
1303 /* The GNU C library defines this for functions which it implements
1304 to always fail with ENOSYS. Some functions are actually named
1305 something starting with __ and the normal name is an alias. */
1306 #if defined (__stub_connect) || defined (__stub___connect)
1314 if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1316 eval "ac_cv_func_connect=yes"
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1321 eval "ac_cv_func_connect=no"
1326 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1331 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1332 echo "configure:1333: checking for connect in -lsocket" >&5
1333 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 ac_save_LIBS="$LIBS"
1338 LIBS="-lsocket $LIBS"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 /* Override any gcc2 internal prototype to avoid an error. */
1343 /* We use char because int might match the return type of a gcc2
1344 builtin and then its argument prototype would still apply. */
1351 if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1353 eval "ac_cv_lib_$ac_lib_var=yes"
1355 echo "configure: failed program was:" >&5
1356 cat conftest.$ac_ext >&5
1358 eval "ac_cv_lib_$ac_lib_var=no"
1361 LIBS="$ac_save_LIBS"
1364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1365 echo "$ac_t""yes" 1>&6
1366 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1367 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1368 cat >> confdefs.h <<EOF
1369 #define $ac_tr_lib 1
1372 LIBS="-lsocket $LIBS"
1375 echo "$ac_t""no" 1>&6
1380 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1381 echo "configure:1382: checking for gethostbyname" >&5
1382 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 cat > conftest.$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1388 /* System header to define __stub macros and hopefully few prototypes,
1389 which can conflict with char gethostbyname(); below. */
1391 /* Override any gcc2 internal prototype to avoid an error. */
1392 /* We use char because int might match the return type of a gcc2
1393 builtin and then its argument prototype would still apply. */
1394 char gethostbyname();
1398 /* The GNU C library defines this for functions which it implements
1399 to always fail with ENOSYS. Some functions are actually named
1400 something starting with __ and the normal name is an alias. */
1401 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 eval "ac_cv_func_gethostbyname=yes"
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 eval "ac_cv_func_gethostbyname=no"
1421 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1422 echo "$ac_t""yes" 1>&6
1425 echo "$ac_t""no" 1>&6
1426 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1427 echo "configure:1428: checking for gethostbyname in -lnsl" >&5
1428 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 ac_save_LIBS="$LIBS"
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1437 /* Override any gcc2 internal prototype to avoid an error. */
1438 /* We use char because int might match the return type of a gcc2
1439 builtin and then its argument prototype would still apply. */
1440 char gethostbyname();
1446 if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1448 eval "ac_cv_lib_$ac_lib_var=yes"
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1453 eval "ac_cv_lib_$ac_lib_var=no"
1456 LIBS="$ac_save_LIBS"
1459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1460 echo "$ac_t""yes" 1>&6
1461 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1463 cat >> confdefs.h <<EOF
1464 #define $ac_tr_lib 1
1470 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1476 echo "configure:1477: checking for nanosleep" >&5
1477 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 /* System header to define __stub macros and hopefully few prototypes,
1484 which can conflict with char nanosleep(); below. */
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1493 /* The GNU C library defines this for functions which it implements
1494 to always fail with ENOSYS. Some functions are actually named
1495 something starting with __ and the normal name is an alias. */
1496 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1506 eval "ac_cv_func_nanosleep=yes"
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1511 eval "ac_cv_func_nanosleep=no"
1516 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1517 echo "$ac_t""yes" 1>&6
1520 echo "$ac_t""no" 1>&6
1521 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1522 echo "configure:1523: checking for nanosleep in -lrt" >&5
1523 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 ac_save_LIBS="$LIBS"
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 /* Override any gcc2 internal prototype to avoid an error. */
1533 /* We use char because int might match the return type of a gcc2
1534 builtin and then its argument prototype would still apply. */
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 eval "ac_cv_lib_$ac_lib_var=yes"
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 eval "ac_cv_lib_$ac_lib_var=no"
1551 LIBS="$ac_save_LIBS"
1554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1555 echo "$ac_t""yes" 1>&6
1556 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1557 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1558 cat >> confdefs.h <<EOF
1559 #define $ac_tr_lib 1
1565 echo "$ac_t""no" 1>&6
1566 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1567 echo "configure:1568: checking for nanosleep in -lposix4" >&5
1568 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 ac_save_LIBS="$LIBS"
1573 LIBS="-lposix4 $LIBS"
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1577 /* Override any gcc2 internal prototype to avoid an error. */
1578 /* We use char because int might match the return type of a gcc2
1579 builtin and then its argument prototype would still apply. */
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1588 eval "ac_cv_lib_$ac_lib_var=yes"
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1593 eval "ac_cv_lib_$ac_lib_var=no"
1596 LIBS="$ac_save_LIBS"
1599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1602 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1603 cat >> confdefs.h <<EOF
1604 #define $ac_tr_lib 1
1607 LIBS="-lposix4 $LIBS"
1610 echo "$ac_t""no" 1>&6
1617 for ac_func in usleep
1619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_func" >&5
1621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* System header to define __stub macros and hopefully few prototypes,
1628 which can conflict with char $ac_func(); below. */
1630 /* Override any gcc2 internal prototype to avoid an error. */
1631 /* We use char because int might match the return type of a gcc2
1632 builtin and then its argument prototype would still apply. */
1637 /* The GNU C library defines this for functions which it implements
1638 to always fail with ENOSYS. Some functions are actually named
1639 something starting with __ and the normal name is an alias. */
1640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1650 eval "ac_cv_func_$ac_func=yes"
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 eval "ac_cv_func_$ac_func=no"
1660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1663 cat >> confdefs.h <<EOF
1664 #define $ac_tr_func 1
1668 echo "$ac_t""no" 1>&6
1672 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1673 echo "configure:1674: checking for inet_aton" >&5
1674 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 /* System header to define __stub macros and hopefully few prototypes,
1681 which can conflict with char inet_aton(); below. */
1683 /* Override any gcc2 internal prototype to avoid an error. */
1684 /* We use char because int might match the return type of a gcc2
1685 builtin and then its argument prototype would still apply. */
1690 /* The GNU C library defines this for functions which it implements
1691 to always fail with ENOSYS. Some functions are actually named
1692 something starting with __ and the normal name is an alias. */
1693 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1703 eval "ac_cv_func_inet_aton=yes"
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 eval "ac_cv_func_inet_aton=no"
1713 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1717 echo "$ac_t""no" 1>&6
1718 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1719 echo "configure:1720: checking for inet_aton in -lresolv" >&5
1720 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 ac_save_LIBS="$LIBS"
1725 LIBS="-lresolv $LIBS"
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1729 /* Override any gcc2 internal prototype to avoid an error. */
1730 /* We use char because int might match the return type of a gcc2
1731 builtin and then its argument prototype would still apply. */
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 eval "ac_cv_lib_$ac_lib_var=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 eval "ac_cv_lib_$ac_lib_var=no"
1748 LIBS="$ac_save_LIBS"
1751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1753 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1755 cat >> confdefs.h <<EOF
1756 #define $ac_tr_lib 1
1759 LIBS="-lresolv $LIBS"
1762 echo "$ac_t""no" 1>&6
1767 for ac_hdr in unistd.h
1769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1771 echo "configure:1772: checking for $ac_hdr" >&5
1772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1781 { (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1783 if test -z "$ac_err"; then
1785 eval "ac_cv_header_$ac_safe=yes"
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 eval "ac_cv_header_$ac_safe=no"
1795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1796 echo "$ac_t""yes" 1>&6
1797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1798 cat >> confdefs.h <<EOF
1799 #define $ac_tr_hdr 1
1803 echo "$ac_t""no" 1>&6
1807 for ac_func in getpagesize
1809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_func" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 eval "ac_cv_func_$ac_func=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_func_$ac_func=no"
1850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1853 cat >> confdefs.h <<EOF
1854 #define $ac_tr_func 1
1858 echo "$ac_t""no" 1>&6
1862 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1863 echo "configure:1864: checking for working mmap" >&5
1864 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 if test "$cross_compiling" = yes; then
1868 ac_cv_func_mmap_fixed_mapped=no
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1874 /* Thanks to Mike Haertel and Jim Avera for this test.
1875 Here is a matrix of mmap possibilities:
1876 mmap private not fixed
1877 mmap private fixed at somewhere currently unmapped
1878 mmap private fixed at somewhere already mapped
1879 mmap shared not fixed
1880 mmap shared fixed at somewhere currently unmapped
1881 mmap shared fixed at somewhere already mapped
1882 For private mappings, we should verify that changes cannot be read()
1883 back from the file, nor mmap's back from the file at a different
1884 address. (There have been systems where private was not correctly
1885 implemented like the infamous i386 svr4.0, and systems where the
1886 VM page cache was not coherent with the filesystem buffer cache
1887 like early versions of FreeBSD and possibly contemporary NetBSD.)
1888 For shared mappings, we should conversely verify that changes get
1889 propogated back to all the places they're supposed to be.
1891 Grep wants private fixed already mapped.
1892 The main things grep needs to know about mmap are:
1893 * does it exist and is it safe to write into the mmap'd area
1894 * how to use it (BSD variants) */
1895 #include <sys/types.h>
1897 #include <sys/mman.h>
1899 #include <sys/stat.h>
1901 #ifdef HAVE_UNISTD_H
1902 # include <unistd.h>
1905 /* This mess was copied from the GNU getpagesize.h. */
1906 #ifndef HAVE_GETPAGESIZE
1908 /* Assume that all systems that can run configure have sys/param.h. */
1909 # ifndef HAVE_SYS_PARAM_H
1910 # define HAVE_SYS_PARAM_H 1
1913 # ifdef _SC_PAGESIZE
1914 # define getpagesize() sysconf(_SC_PAGESIZE)
1915 # else /* no _SC_PAGESIZE */
1916 # ifdef HAVE_SYS_PARAM_H
1917 # include <sys/param.h>
1918 # ifdef EXEC_PAGESIZE
1919 # define getpagesize() EXEC_PAGESIZE
1920 # else /* no EXEC_PAGESIZE */
1922 # define getpagesize() NBPG * CLSIZE
1925 # endif /* no CLSIZE */
1926 # else /* no NBPG */
1928 # define getpagesize() NBPC
1929 # else /* no NBPC */
1931 # define getpagesize() PAGESIZE
1932 # endif /* PAGESIZE */
1933 # endif /* no NBPC */
1934 # endif /* no NBPG */
1935 # endif /* no EXEC_PAGESIZE */
1936 # else /* no HAVE_SYS_PARAM_H */
1937 # define getpagesize() 8192 /* punt totally */
1938 # endif /* no HAVE_SYS_PARAM_H */
1939 # endif /* no _SC_PAGESIZE */
1941 #endif /* no HAVE_GETPAGESIZE */
1944 extern "C" { void *malloc(unsigned); }
1952 char *data, *data2, *data3;
1956 pagesize = getpagesize();
1959 * First, make a file with some known garbage in it.
1961 data = (char*)malloc(pagesize);
1964 for (i = 0; i < pagesize; ++i)
1965 *(data + i) = rand();
1967 fd = creat("conftestmmap", 0600);
1970 if (write(fd, data, pagesize) != pagesize)
1975 * Next, try to mmap the file at a fixed address which
1976 * already has something else allocated at it. If we can,
1977 * also make sure that we see the same garbage.
1979 fd = open("conftestmmap", O_RDWR);
1982 data2 = (char*)malloc(2 * pagesize);
1985 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1986 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1989 for (i = 0; i < pagesize; ++i)
1990 if (*(data + i) != *(data2 + i))
1994 * Finally, make sure that changes to the mapped area
1995 * do not percolate back to the file as seen by read().
1996 * (This is a bug on some variants of i386 svr4.0.)
1998 for (i = 0; i < pagesize; ++i)
1999 *(data2 + i) = *(data2 + i) + 1;
2000 data3 = (char*)malloc(pagesize);
2003 if (read(fd, data3, pagesize) != pagesize)
2005 for (i = 0; i < pagesize; ++i)
2006 if (*(data + i) != *(data3 + i))
2009 unlink("conftestmmap");
2014 if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2016 ac_cv_func_mmap_fixed_mapped=yes
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 ac_cv_func_mmap_fixed_mapped=no
2028 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2029 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2030 cat >> confdefs.h <<\EOF
2036 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2037 echo "configure:2038: checking for vprintf" >&5
2038 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 /* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char vprintf(); below. */
2047 /* Override any gcc2 internal prototype to avoid an error. */
2048 /* We use char because int might match the return type of a gcc2
2049 builtin and then its argument prototype would still apply. */
2054 /* The GNU C library defines this for functions which it implements
2055 to always fail with ENOSYS. Some functions are actually named
2056 something starting with __ and the normal name is an alias. */
2057 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2067 eval "ac_cv_func_vprintf=yes"
2069 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2072 eval "ac_cv_func_vprintf=no"
2077 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2079 cat >> confdefs.h <<\EOF
2080 #define HAVE_VPRINTF 1
2084 echo "$ac_t""no" 1>&6
2087 if test "$ac_cv_func_vprintf" != yes; then
2088 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2089 echo "configure:2090: checking for _doprnt" >&5
2090 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char _doprnt(); below. */
2099 /* Override any gcc2 internal prototype to avoid an error. */
2100 /* We use char because int might match the return type of a gcc2
2101 builtin and then its argument prototype would still apply. */
2106 /* The GNU C library defines this for functions which it implements
2107 to always fail with ENOSYS. Some functions are actually named
2108 something starting with __ and the normal name is an alias. */
2109 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2119 eval "ac_cv_func__doprnt=yes"
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2124 eval "ac_cv_func__doprnt=no"
2129 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2130 echo "$ac_t""yes" 1>&6
2131 cat >> confdefs.h <<\EOF
2132 #define HAVE_DOPRNT 1
2136 echo "$ac_t""no" 1>&6
2141 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2142 echo "configure:2143: checking return type of signal handlers" >&5
2143 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <sys/types.h>
2155 extern "C" void (*signal (int, void (*)(int)))(int);
2157 void (*signal ()) ();
2164 if { (eval echo configure:2165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2166 ac_cv_type_signal=void
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2171 ac_cv_type_signal=int
2176 echo "$ac_t""$ac_cv_type_signal" 1>&6
2177 cat >> confdefs.h <<EOF
2178 #define RETSIGTYPE $ac_cv_type_signal
2182 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2183 echo "configure:2184: checking for dlopen in -ldl" >&5
2184 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 ac_save_LIBS="$LIBS"
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 /* Override any gcc2 internal prototype to avoid an error. */
2194 /* We use char because int might match the return type of a gcc2
2195 builtin and then its argument prototype would still apply. */
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_lib_$ac_lib_var=no"
2212 LIBS="$ac_save_LIBS"
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2219 cat >> confdefs.h <<EOF
2220 #define $ac_tr_lib 1
2226 echo "$ac_t""no" 1>&6
2229 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2230 echo "configure:2231: checking for optarg in -lgnugetopt" >&5
2231 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 ac_save_LIBS="$LIBS"
2236 LIBS="-lgnugetopt $LIBS"
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* Override any gcc2 internal prototype to avoid an error. */
2241 /* We use char because int might match the return type of a gcc2
2242 builtin and then its argument prototype would still apply. */
2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251 eval "ac_cv_lib_$ac_lib_var=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 eval "ac_cv_lib_$ac_lib_var=no"
2259 LIBS="$ac_save_LIBS"
2262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2263 echo "$ac_t""yes" 1>&6
2264 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2266 cat >> confdefs.h <<EOF
2267 #define $ac_tr_lib 1
2270 LIBS="-lgnugetopt $LIBS"
2273 echo "$ac_t""no" 1>&6
2276 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2277 echo "configure:2278: checking for _ in -lbe" >&5
2278 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 ac_save_LIBS="$LIBS"
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 eval "ac_cv_lib_$ac_lib_var=yes"
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 eval "ac_cv_lib_$ac_lib_var=no"
2306 LIBS="$ac_save_LIBS"
2309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2313 cat >> confdefs.h <<EOF
2314 #define $ac_tr_lib 1
2320 echo "$ac_t""no" 1>&6
2323 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2324 echo "configure:2325: checking for _ in -lgame" >&5
2325 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 ac_save_LIBS="$LIBS"
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 /* Override any gcc2 internal prototype to avoid an error. */
2335 /* We use char because int might match the return type of a gcc2
2336 builtin and then its argument prototype would still apply. */
2343 if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2345 eval "ac_cv_lib_$ac_lib_var=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 eval "ac_cv_lib_$ac_lib_var=no"
2353 LIBS="$ac_save_LIBS"
2356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2357 echo "$ac_t""yes" 1>&6
2358 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2360 cat >> confdefs.h <<EOF
2361 #define $ac_tr_lib 1
2367 echo "$ac_t""no" 1>&6
2370 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2371 echo "configure:2372: checking for _ in -lroot" >&5
2372 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 ac_save_LIBS="$LIBS"
2378 cat > conftest.$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2390 if { (eval echo configure:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2392 eval "ac_cv_lib_$ac_lib_var=yes"
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2397 eval "ac_cv_lib_$ac_lib_var=no"
2400 LIBS="$ac_save_LIBS"
2403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2406 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2407 cat >> confdefs.h <<EOF
2408 #define $ac_tr_lib 1
2414 echo "$ac_t""no" 1>&6
2417 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2418 echo "configure:2419: checking for powl in -lm" >&5
2419 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 ac_save_LIBS="$LIBS"
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2437 if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2439 eval "ac_cv_lib_$ac_lib_var=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_lib_$ac_lib_var=no"
2447 LIBS="$ac_save_LIBS"
2450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2454 cat >> confdefs.h <<EOF
2455 #define $ac_tr_lib 1
2461 echo "$ac_t""no" 1>&6
2464 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2465 echo "configure:2466: checking for pthread_create in -lpthread" >&5
2466 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 ac_save_LIBS="$LIBS"
2471 LIBS="-lpthread $LIBS"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2478 char pthread_create();
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 eval "ac_cv_lib_$ac_lib_var=yes"
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 eval "ac_cv_lib_$ac_lib_var=no"
2494 LIBS="$ac_save_LIBS"
2497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_lib 1
2505 LIBS="-lpthread $LIBS"
2508 echo "$ac_t""no" 1>&6
2511 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2512 echo "configure:2513: checking for thread_create in -lthreads" >&5
2513 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 ac_save_LIBS="$LIBS"
2518 LIBS="-lthreads $LIBS"
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2525 char thread_create();
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2533 eval "ac_cv_lib_$ac_lib_var=yes"
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2538 eval "ac_cv_lib_$ac_lib_var=no"
2541 LIBS="$ac_save_LIBS"
2544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2547 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2548 cat >> confdefs.h <<EOF
2549 #define $ac_tr_lib 1
2552 LIBS="-lthreads $LIBS"
2555 echo "$ac_t""no" 1>&6
2559 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2560 echo "configure:2561: checking for getopt_long" >&5
2561 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 /* System header to define __stub macros and hopefully few prototypes,
2568 which can conflict with char getopt_long(); below. */
2570 /* Override any gcc2 internal prototype to avoid an error. */
2571 /* We use char because int might match the return type of a gcc2
2572 builtin and then its argument prototype would still apply. */
2577 /* The GNU C library defines this for functions which it implements
2578 to always fail with ENOSYS. Some functions are actually named
2579 something starting with __ and the normal name is an alias. */
2580 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2588 if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2590 eval "ac_cv_func_getopt_long=yes"
2592 echo "configure: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2595 eval "ac_cv_func_getopt_long=no"
2600 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2604 echo "$ac_t""no" 1>&6
2605 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2610 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2611 for ac_hdr in stddef.h
2613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_hdr" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2629 eval "ac_cv_header_$ac_safe=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2635 eval "ac_cv_header_$ac_safe=no"
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642 cat >> confdefs.h <<EOF
2643 #define $ac_tr_hdr 1
2647 echo "$ac_t""no" 1>&6
2651 for ac_hdr in getopt.h
2653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2669 eval "ac_cv_header_$ac_safe=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2675 eval "ac_cv_header_$ac_safe=no"
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h <<EOF
2683 #define $ac_tr_hdr 1
2687 echo "$ac_t""no" 1>&6
2691 for ac_hdr in sys/sockio.h
2693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2709 eval "ac_cv_header_$ac_safe=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 eval "ac_cv_header_$ac_safe=no"
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h <<EOF
2723 #define $ac_tr_hdr 1
2727 echo "$ac_t""no" 1>&6
2731 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_hdr" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2749 eval "ac_cv_header_$ac_safe=yes"
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2755 eval "ac_cv_header_$ac_safe=no"
2759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2762 cat >> confdefs.h <<EOF
2763 #define $ac_tr_hdr 1
2767 echo "$ac_t""no" 1>&6
2771 for ac_hdr in sys/soundcard.h machine/soundcard.h
2773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_hdr" >&5
2776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2789 eval "ac_cv_header_$ac_safe=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2795 eval "ac_cv_header_$ac_safe=no"
2799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2800 echo "$ac_t""yes" 1>&6
2801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2802 cat >> confdefs.h <<EOF
2803 #define $ac_tr_hdr 1
2807 echo "$ac_t""no" 1>&6
2811 for ac_hdr in dlfcn.h image.h
2813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_hdr" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 eval "ac_cv_header_$ac_safe=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2835 eval "ac_cv_header_$ac_safe=no"
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2842 cat >> confdefs.h <<EOF
2843 #define $ac_tr_hdr 1
2847 echo "$ac_t""no" 1>&6
2851 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_hdr" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2869 eval "ac_cv_header_$ac_safe=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2882 cat >> confdefs.h <<EOF
2883 #define $ac_tr_hdr 1
2887 echo "$ac_t""no" 1>&6
2891 for ac_hdr in machine/param.h
2893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_hdr" >&5
2896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2905 { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2907 if test -z "$ac_err"; then
2909 eval "ac_cv_header_$ac_safe=yes"
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2915 eval "ac_cv_header_$ac_safe=no"
2919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2922 cat >> confdefs.h <<EOF
2923 #define $ac_tr_hdr 1
2927 echo "$ac_t""no" 1>&6
2932 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_hdr" >&5
2937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2946 { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2948 if test -z "$ac_err"; then
2950 eval "ac_cv_header_$ac_safe=yes"
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 eval "ac_cv_header_$ac_safe=no"
2960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2963 cat >> confdefs.h <<EOF
2964 #define $ac_tr_hdr 1
2968 echo "$ac_t""no" 1>&6
2974 CFLAGS="${CFLAGS} -Wall -Werror"
2975 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2976 echo "configure:2977: checking for ntohl in sys/param.h" >&5
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 #include <sys/param.h>
2981 void foo() { int meuh; ntohl(meuh); }
2986 if { (eval echo configure:2987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2988 cat >> confdefs.h <<\EOF
2989 #define NTOHL_IN_SYS_PARAM_H 1
2992 echo "$ac_t""yes" 1>&6
2994 echo "configure: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2997 echo "$ac_t""no" 1>&6
3002 echo $ac_n "checking for working const""... $ac_c" 1>&6
3003 echo "configure:3004: checking for working const" >&5
3004 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3013 /* Ultrix mips cc rejects this. */
3014 typedef int charset[2]; const charset x = {0,0};
3015 /* SunOS 4.1.1 cc rejects this. */
3016 char const *const *ccp;
3018 /* NEC SVR4.0.2 mips cc rejects this. */
3019 struct point {int x, y;};
3020 static struct point const zero = {0,0};
3021 /* AIX XL C 1.02.0.0 rejects this.
3022 It does not let you subtract one const X* pointer from another in an arm
3023 of an if-expression whose if-part is not a constant expression */
3024 const char *g = "string";
3025 ccp = &g + (g ? g-g : 0);
3026 /* HPUX 7.0 cc rejects these. */
3029 ccp = (char const *const *) p;
3030 { /* SCO 3.2v4 cc rejects this. */
3032 char const *s = 0 ? (char *) 0 : (char const *) 0;
3036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3038 const int *foo = &x[0];
3041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3042 typedef const int *iptr;
3046 { /* AIX XL C 1.02.0.0 rejects this saying
3047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3048 struct s { int j; const int *ap[3]; };
3049 struct s *b; b->j = 5;
3051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3057 if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3061 echo "configure: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3069 echo "$ac_t""$ac_cv_c_const" 1>&6
3070 if test $ac_cv_c_const = no; then
3071 cat >> confdefs.h <<\EOF
3077 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3078 echo "configure:3079: checking for ANSI C header files" >&5
3079 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3091 { (eval echo configure:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3093 if test -z "$ac_err"; then
3095 ac_cv_header_stdc=yes
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 ac_cv_header_stdc=no
3105 if test $ac_cv_header_stdc = yes; then
3106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3113 egrep "memchr" >/dev/null 2>&1; then
3117 ac_cv_header_stdc=no
3123 if test $ac_cv_header_stdc = yes; then
3124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3131 egrep "free" >/dev/null 2>&1; then
3135 ac_cv_header_stdc=no
3141 if test $ac_cv_header_stdc = yes; then
3142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3143 if test "$cross_compiling" = yes; then
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3150 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3151 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3153 int main () { int i; for (i = 0; i < 256; i++)
3154 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3165 ac_cv_header_stdc=no
3173 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3174 if test $ac_cv_header_stdc = yes; then
3175 cat >> confdefs.h <<\EOF
3176 #define STDC_HEADERS 1
3181 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3182 echo "configure:3183: checking for size_t" >&5
3183 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 #include <sys/types.h>
3195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3196 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3198 ac_cv_type_size_t=yes
3201 ac_cv_type_size_t=no
3206 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3207 if test $ac_cv_type_size_t = no; then
3208 cat >> confdefs.h <<\EOF
3209 #define size_t unsigned
3214 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3215 echo "configure:3216: checking whether time.h and sys/time.h may both be included" >&5
3216 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <sys/types.h>
3223 #include <sys/time.h>
3229 if { (eval echo configure:3230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 ac_cv_header_time=yes
3233 echo "configure: failed program was:" >&5
3234 cat conftest.$ac_ext >&5
3236 ac_cv_header_time=no
3241 echo "$ac_t""$ac_cv_header_time" 1>&6
3242 if test $ac_cv_header_time = yes; then
3243 cat >> confdefs.h <<\EOF
3244 #define TIME_WITH_SYS_TIME 1
3250 PLUGINS=${PLUGINS}"yuv ";
3253 # Check whether --enable-ppro or --disable-ppro was given.
3254 if test "${enable_ppro+set}" = set; then
3255 enableval="$enable_ppro"
3256 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3258 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3261 # Check whether --enable-mmx or --disable-mmx was given.
3262 if test "${enable_mmx+set}" = set; then
3263 enableval="$enable_mmx"
3264 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi
3266 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi
3269 # Check whether --enable-debug or --disable-debug was given.
3270 if test "${enable_debug+set}" = set; then
3271 enableval="$enable_debug"
3272 if test x$enableval = xyes; then DEBUG=1; fi
3275 # Check whether --enable-stats or --disable-stats was given.
3276 if test "${enable_stats+set}" = set; then
3277 enableval="$enable_stats"
3278 if test x$enableval = xyes; then STATS=1; fi
3281 # Check whether --enable-optimizations or --disable-optimizations was given.
3282 if test "${enable_optimizations+set}" = set; then
3283 enableval="$enable_optimizations"
3284 if test x$enableval = xno; then OPTIMS=0; fi
3293 if test x$host_os = xbeos; then
3294 PLUGINS=${PLUGINS}"dummy beos "
3298 # Check whether --enable-dummy or --disable-dummy was given.
3299 if test "${enable_dummy+set}" = set; then
3300 enableval="$enable_dummy"
3304 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3305 # Check whether --enable-dsp or --disable-dsp was given.
3306 if test "${enable_dsp+set}" = set; then
3307 enableval="$enable_dsp"
3311 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3312 # Check whether --enable-esd or --disable-esd was given.
3313 if test "${enable_esd+set}" = set; then
3314 enableval="$enable_esd"
3315 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3318 # Check whether --enable-fb or --disable-fb was given.
3319 if test "${enable_fb+set}" = set; then
3320 enableval="$enable_fb"
3321 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3324 # Check whether --with-ggi or --without-ggi was given.
3325 if test "${with_ggi+set}" = set; then
3327 PLUGINS=${PLUGINS}"ggi ";
3328 if test "x$withval" != "xyes";
3330 LIB_GGI="-l"$withval
3336 # Check whether --with-sdl or --without-sdl was given.
3337 if test "${with_sdl+set}" = set; then
3339 PLUGINS=${PLUGINS}"sdl ";
3340 if test "x$withval" != "xyes";
3342 LIB_SDL="-l"$withval
3348 # Check whether --with-glide or --without-glide was given.
3349 if test "${with_glide+set}" = set; then
3350 withval="$with_glide"
3351 PLUGINS=${PLUGINS}"glide ";
3352 if test "x$withval" != "xyes";
3354 LIB_GLIDE="-l"$withval
3356 LIB_GLIDE="-lglide2x"
3360 # Check whether --enable-null or --disable-null was given.
3361 if test "${enable_null+set}" = set; then
3362 enableval="$enable_null"
3363 if test x$enable_null = xyes; then PLUGINS=${PLUGINS}"null "; fi
3366 # Check whether --enable-gnome or --disable-gnome was given.
3367 if test "${enable_gnome+set}" = set; then
3368 enableval="$enable_gnome"
3369 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3372 # Check whether --enable-x11 or --disable-x11 was given.
3373 if test "${enable_x11+set}" = set; then
3374 enableval="$enable_x11"
3378 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3379 # Check whether --enable-alsa or --disable-alsa was given.
3380 if test "${enable_alsa+set}" = set; then
3381 enableval="$enable_alsa"
3382 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3383 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3384 echo "configure:3385: checking for sys/asoundlib.h" >&5
3385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <sys/asoundlib.h>
3393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3394 { (eval echo configure:3395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3396 if test -z "$ac_err"; then
3398 eval "ac_cv_header_$ac_safe=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_header_$ac_safe=no"
3408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3409 echo "$ac_t""yes" 1>&6
3410 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3411 echo "configure:3412: checking for main in -lasound" >&5
3412 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 ac_save_LIBS="$LIBS"
3417 LIBS="-lasound $LIBS"
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3426 if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3428 eval "ac_cv_lib_$ac_lib_var=yes"
3430 echo "configure: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3433 eval "ac_cv_lib_$ac_lib_var=no"
3436 LIBS="$ac_save_LIBS"
3439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3443 echo "$ac_t""no" 1>&6
3448 echo "$ac_t""no" 1>&6
3451 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3469 cat > confcache <<\EOF
3470 # This file is a shell script that caches the results of configure
3471 # tests run on this system so they can be shared between configure
3472 # scripts and configure runs. It is not useful on other systems.
3473 # If it contains results you don't want to keep, you may remove or edit it.
3475 # By default, configure uses ./config.cache as the cache file,
3476 # creating it if it does not exist already. You can give configure
3477 # the --cache-file=FILE option to use a different cache file; that is
3478 # what configure does when it calls configure scripts in
3479 # subdirectories, so they share the cache.
3480 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3481 # config.status only pays attention to the cache file if you give it the
3482 # --recheck option to rerun configure.
3485 # The following way of writing the cache mishandles newlines in values,
3486 # but we know of no workaround that is simple, portable, and efficient.
3487 # So, don't put newlines in cache variables' values.
3488 # Ultrix sh set writes to stderr and can't be redirected directly,
3489 # and sets the high bit in the cache file unless we assign to the vars.
3491 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3493 # `set' does not quote correctly, so add quotes (double-quote substitution
3494 # turns \\\\ into \\, and sed turns \\ into \).
3496 -e "s/'/'\\\\''/g" \
3497 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3500 # `set' quotes correctly as required by POSIX, so do not add quotes.
3501 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3504 if cmp -s $cache_file confcache; then
3507 if test -w $cache_file; then
3508 echo "updating cache $cache_file"
3509 cat confcache > $cache_file
3511 echo "not updating unwritable cache $cache_file"
3516 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3519 # Let make expand exec_prefix.
3520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3522 # Any assignment to VPATH causes Sun make to only execute
3523 # the first set of double-colon rules, so remove it if not needed.
3524 # If there is a colon in the path, we need to keep it.
3525 if test "x$srcdir" = x.; then
3526 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3529 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3531 DEFS=-DHAVE_CONFIG_H
3533 # Without the "./", some shells look in PATH for config.status.
3534 : ${CONFIG_STATUS=./config.status}
3536 echo creating $CONFIG_STATUS
3537 rm -f $CONFIG_STATUS
3538 cat > $CONFIG_STATUS <<EOF
3540 # Generated automatically by configure.
3541 # Run this file to recreate the current configuration.
3542 # This directory was configured as follows,
3543 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3545 # $0 $ac_configure_args
3547 # Compiler output produced by configure, useful for debugging
3548 # configure, is in ./config.log if it exists.
3550 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3553 case "\$ac_option" in
3554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3555 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3556 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3557 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3558 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3560 -help | --help | --hel | --he | --h)
3561 echo "\$ac_cs_usage"; exit 0 ;;
3562 *) echo "\$ac_cs_usage"; exit 1 ;;
3566 ac_given_srcdir=$srcdir
3567 ac_given_INSTALL="$INSTALL"
3569 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3571 cat >> $CONFIG_STATUS <<EOF
3573 # Protect against being on the right side of a sed subst in config.status.
3574 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3579 s%@CFLAGS@%$CFLAGS%g
3580 s%@CPPFLAGS@%$CPPFLAGS%g
3581 s%@CXXFLAGS@%$CXXFLAGS%g
3582 s%@FFLAGS@%$FFLAGS%g
3584 s%@LDFLAGS@%$LDFLAGS%g
3586 s%@exec_prefix@%$exec_prefix%g
3587 s%@prefix@%$prefix%g
3588 s%@program_transform_name@%$program_transform_name%g
3589 s%@bindir@%$bindir%g
3590 s%@sbindir@%$sbindir%g
3591 s%@libexecdir@%$libexecdir%g
3592 s%@datadir@%$datadir%g
3593 s%@sysconfdir@%$sysconfdir%g
3594 s%@sharedstatedir@%$sharedstatedir%g
3595 s%@localstatedir@%$localstatedir%g
3596 s%@libdir@%$libdir%g
3597 s%@includedir@%$includedir%g
3598 s%@oldincludedir@%$oldincludedir%g
3599 s%@infodir@%$infodir%g
3600 s%@mandir@%$mandir%g
3602 s%@host_alias@%$host_alias%g
3603 s%@host_cpu@%$host_cpu%g
3604 s%@host_vendor@%$host_vendor%g
3605 s%@host_os@%$host_os%g
3606 s%@VLC_VERSION@%$VLC_VERSION%g
3607 s%@VLC_CODENAME@%$VLC_CODENAME%g
3608 s%@SET_MAKE@%$SET_MAKE%g
3611 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3612 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3613 s%@INSTALL_DATA@%$INSTALL_DATA%g
3614 s%@LIBOBJS@%$LIBOBJS%g
3617 s%@PLUGINS@%$PLUGINS%g
3618 s%@ALIASES@%$ALIASES%g
3621 s%@OPTIMS@%$OPTIMS%g
3622 s%@LIB_SDL@%$LIB_SDL%g
3623 s%@LIB_GLIDE@%$LIB_GLIDE%g
3624 s%@LIB_GGI@%$LIB_GGI%g
3629 cat >> $CONFIG_STATUS <<\EOF
3631 # Split the substitutions into bite-sized pieces for seds with
3632 # small command number limits, like on Digital OSF/1 and HP-UX.
3633 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3634 ac_file=1 # Number of current file.
3635 ac_beg=1 # First line for current file.
3636 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3639 while $ac_more_lines; do
3640 if test $ac_beg -gt 1; then
3641 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3643 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3645 if test ! -s conftest.s$ac_file; then
3647 rm -f conftest.s$ac_file
3649 if test -z "$ac_sed_cmds"; then
3650 ac_sed_cmds="sed -f conftest.s$ac_file"
3652 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3654 ac_file=`expr $ac_file + 1`
3656 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3659 if test -z "$ac_sed_cmds"; then
3664 cat >> $CONFIG_STATUS <<EOF
3666 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3668 cat >> $CONFIG_STATUS <<\EOF
3669 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3670 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3672 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3673 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3674 *) ac_file_in="${ac_file}.in" ;;
3677 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3679 # Remove last slash and all that follows it. Not all systems have dirname.
3680 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3681 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3682 # The file is in a subdirectory.
3683 test ! -d "$ac_dir" && mkdir "$ac_dir"
3684 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3685 # A "../" for each directory in $ac_dir_suffix.
3686 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3688 ac_dir_suffix= ac_dots=
3691 case "$ac_given_srcdir" in
3693 if test -z "$ac_dots"; then top_srcdir=.
3694 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3695 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3697 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3698 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3701 case "$ac_given_INSTALL" in
3702 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3703 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3706 echo creating "$ac_file"
3708 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3710 *Makefile*) ac_comsub="1i\\
3711 # $configure_input" ;;
3715 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3717 s%@configure_input@%$configure_input%g
3718 s%@srcdir@%$srcdir%g
3719 s%@top_srcdir@%$top_srcdir%g
3720 s%@INSTALL@%$INSTALL%g
3721 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3725 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3726 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3728 # ac_d sets the value in "#define NAME VALUE" lines.
3729 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3730 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3733 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3734 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3735 ac_uB='\([ ]\)%\1#\2define\3'
3738 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3739 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3740 ac_eB='$%\1#\2define\3'
3744 if test "${CONFIG_HEADERS+set}" != set; then
3746 cat >> $CONFIG_STATUS <<EOF
3747 CONFIG_HEADERS="include/defs.h"
3749 cat >> $CONFIG_STATUS <<\EOF
3751 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3754 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3755 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3756 *) ac_file_in="${ac_file}.in" ;;
3759 echo creating $ac_file
3761 rm -f conftest.frag conftest.in conftest.out
3762 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3763 cat $ac_file_inputs > conftest.in
3767 # Transform confdefs.h into a sed script conftest.vals that substitutes
3768 # the proper values into config.h.in to produce config.h. And first:
3769 # Protect against being on the right side of a sed subst in config.status.
3770 # Protect against being in an unquoted here document in config.status.
3772 cat > conftest.hdr <<\EOF
3775 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3779 sed -n -f conftest.hdr confdefs.h > conftest.vals
3782 # This sed command replaces #undef with comments. This is necessary, for
3783 # example, in the case of _POSIX_SOURCE, which is predefined and required
3784 # on some systems where configure will not decide to define it.
3785 cat >> conftest.vals <<\EOF
3786 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3789 # Break up conftest.vals because some shells have a limit on
3790 # the size of here documents, and old seds have small limits too.
3795 ac_lines=`grep -c . conftest.vals`
3796 # grep -c gives empty output for an empty file on some AIX systems.
3797 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3798 # Write a limited-size here document to conftest.frag.
3799 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3800 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3802 sed -f conftest.frag conftest.in > conftest.out
3804 mv conftest.out conftest.in
3806 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3808 mv conftest.tail conftest.vals
3812 cat >> $CONFIG_STATUS <<\EOF
3813 rm -f conftest.frag conftest.h
3814 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3815 cat conftest.in >> conftest.h
3817 if cmp -s $ac_file conftest.h 2>/dev/null; then
3818 echo "$ac_file is unchanged"
3821 # Remove last slash and all that follows it. Not all systems have dirname.
3822 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3823 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3824 # The file is in a subdirectory.
3825 test ! -d "$ac_dir" && mkdir "$ac_dir"
3828 mv conftest.h $ac_file
3833 cat >> $CONFIG_STATUS <<EOF
3836 cat >> $CONFIG_STATUS <<\EOF
3840 chmod +x $CONFIG_STATUS
3841 rm -fr confdefs* $ac_clean_files
3842 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3848 vlc version : ${VLC_VERSION}
3850 architecture : ${ARCH}
3851 debug mode : ${DEBUG}
3852 statistics : ${STATS}
3853 optimizations : ${OPTIMS}
3854 plugins : ${PLUGINS}
3855 vlc aliases : ${ALIASES}