3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
16 --disable-debug compile out all debugging messages"
18 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
20 --disable-trace compile out TRACE messages"
22 --without-curses do not use curses"
24 --without-reentrant-x compile for use with non-reentrant X libraries"
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=controls/edit.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='\c' ac_t=
539 for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
542 ac_install_sh="$ac_aux_dir/install-sh -c"
544 elif test -f $ac_dir/install.sh; then
546 ac_install_sh="$ac_aux_dir/install.sh -c"
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
553 ac_config_guess=$ac_aux_dir/config.guess
554 ac_config_sub=$ac_aux_dir/config.sub
555 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 LIBEXT=so # library type .so or .a
560 TRACE_MSGS=yes # the TRACE() macro
561 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if test "${enable_opengl+set}" = set; then
574 enableval="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
604 cat >> confdefs.h <<\EOF
605 #define NO_DEBUG_MSGS 1
610 if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
612 cat >> confdefs.h <<\EOF
613 #define NO_TRACE_MSGS 1
619 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
620 echo "configure:621: checking whether ${MAKE-make} sets \${MAKE}" >&5
621 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
622 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 cat > conftestmake <<\EOF
627 @echo 'ac_maketemp="${MAKE}"'
629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
630 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
631 if test -n "$ac_maketemp"; then
632 eval ac_cv_prog_make_${ac_make}_set=yes
634 eval ac_cv_prog_make_${ac_make}_set=no
638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
639 echo "$ac_t""yes" 1>&6
642 echo "$ac_t""no" 1>&6
643 SET_MAKE="MAKE=${MAKE-make}"
646 # Extract the first word of "gcc", so it can be a program name with args.
647 set dummy gcc; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
669 if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
672 echo "$ac_t""no" 1>&6
675 if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677 set dummy cc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
710 set dummy "$ac_dir/$ac_word" "$@"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
721 echo "$ac_t""no" 1>&6
724 if test -z "$CC"; then
727 # Extract the first word of "cl", so it can be a program name with args.
728 set dummy cl; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 cat > conftest.$ac_ext << EOF
773 #line 774 "configure"
774 #include "confdefs.h"
778 if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 ac_cv_prog_cc_works=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
784 ac_cv_prog_cc_cross=yes
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 ac_cv_prog_cc_works=no
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.c <<EOF
818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
833 ac_test_CFLAGS="${CFLAGS+set}"
834 ac_save_CFLAGS="$CFLAGS"
836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 echo 'void f(){}' > conftest.c
842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852 if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854 elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
861 if test "$GCC" = yes; then
868 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
869 echo "configure:870: checking how to run the C preprocessor" >&5
870 # On Suns, sometimes $CPP names a directory.
871 if test -n "$CPP" && test -d "$CPP"; then
874 if test -z "$CPP"; then
875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
899 CPP="${CC-cc} -E -traditional-cpp"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
916 CPP="${CC-cc} -nologo -E"
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
940 ac_cv_prog_CPP="$CPP"
942 CPP="$ac_cv_prog_CPP"
944 ac_cv_prog_CPP="$CPP"
946 echo "$ac_t""$CPP" 1>&6
948 # If we find X, set shell vars x_includes and x_libraries to the
949 # paths, otherwise set no_x=yes.
950 # Uses ac_ vars as temps to allow command line to override cache and checks.
951 # --without-x overrides everything else, but does not touch the cache.
952 echo $ac_n "checking for X""... $ac_c" 1>&6
953 echo "configure:954: checking for X" >&5
955 # Check whether --with-x or --without-x was given.
956 if test "${with_x+set}" = set; then
961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
962 if test "x$with_x" = xno; then
963 # The user explicitly disabled X.
966 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
967 # Both variables are already set.
970 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 # One or both of the vars are not set, and there is no cached value.
974 ac_x_includes=NO ac_x_libraries=NO
976 if mkdir conftestdir; then
978 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
979 cat > Imakefile <<'EOF'
981 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
983 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
985 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
987 for ac_extension in a so sl; do
988 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
989 test -f $ac_im_libdir/libX11.$ac_extension; then
990 ac_im_usrlibdir=$ac_im_libdir; break
993 # Screen out bogus values from the imake configuration. They are
994 # bogus both because they are the default anyway, and because
995 # using them would break gcc on systems where it needs fixed includes.
996 case "$ac_im_incroot" in
998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1000 case "$ac_im_usrlibdir" in
1002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1009 if test "$ac_x_includes" = NO; then
1010 # Guess where to find include files, by looking for this one X11 .h file.
1011 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1013 # First, try using that file with no special directory specified.
1014 cat > conftest.$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1017 #include <$x_direct_test_include>
1019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1020 { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1022 if test -z "$ac_err"; then
1024 # We can compile using X headers with no special include directory.
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1031 # Look for the header file in a standard set of common directories.
1032 # Check X11 before X11Rn because it is often a symlink to the current release.
1035 /usr/X11R6/include \
1036 /usr/X11R5/include \
1037 /usr/X11R4/include \
1040 /usr/include/X11R6 \
1041 /usr/include/X11R5 \
1042 /usr/include/X11R4 \
1044 /usr/local/X11/include \
1045 /usr/local/X11R6/include \
1046 /usr/local/X11R5/include \
1047 /usr/local/X11R4/include \
1049 /usr/local/include/X11 \
1050 /usr/local/include/X11R6 \
1051 /usr/local/include/X11R5 \
1052 /usr/local/include/X11R4 \
1056 /usr/XFree86/include/X11 \
1059 /usr/local/include \
1060 /usr/unsupported/include \
1061 /usr/athena/include \
1062 /usr/local/x11r5/include \
1063 /usr/lpp/Xamples/include \
1065 /usr/openwin/include \
1066 /usr/openwin/share/include \
1069 if test -r "$ac_dir/$x_direct_test_include"; then
1070 ac_x_includes=$ac_dir
1076 fi # $ac_x_includes = NO
1078 if test "$ac_x_libraries" = NO; then
1079 # Check for the libraries.
1081 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1082 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1084 # See if we find them without any special options.
1085 # Don't add to $LIBS permanently.
1086 ac_save_LIBS="$LIBS"
1087 LIBS="-l$x_direct_test_library $LIBS"
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1093 ${x_direct_test_function}()
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1098 LIBS="$ac_save_LIBS"
1099 # We can link X programs with no special library path.
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1105 LIBS="$ac_save_LIBS"
1106 # First see if replacing the include by lib works.
1107 # Check X11 before X11Rn because it is often a symlink to the current release.
1108 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1119 /usr/local/X11/lib \
1120 /usr/local/X11R6/lib \
1121 /usr/local/X11R5/lib \
1122 /usr/local/X11R4/lib \
1124 /usr/local/lib/X11 \
1125 /usr/local/lib/X11R6 \
1126 /usr/local/lib/X11R5 \
1127 /usr/local/lib/X11R4 \
1131 /usr/XFree86/lib/X11 \
1135 /usr/unsupported/lib \
1137 /usr/local/x11r5/lib \
1138 /usr/lpp/Xamples/lib \
1142 /usr/openwin/share/lib \
1145 for ac_extension in a so sl; do
1146 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1147 ac_x_libraries=$ac_dir
1154 fi # $ac_x_libraries = NO
1156 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1157 # Didn't find X anywhere. Cache the known absence of X.
1158 ac_cv_have_x="have_x=no"
1160 # Record where we found X for the cache.
1161 ac_cv_have_x="have_x=yes \
1162 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1166 eval "$ac_cv_have_x"
1169 if test "$have_x" != yes; then
1170 echo "$ac_t""$have_x" 1>&6
1173 # If each of the values was on the command line, it overrides each guess.
1174 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1175 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1176 # Update the cache value to reflect the command line values.
1177 ac_cv_have_x="have_x=yes \
1178 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1179 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1182 if test "$no_x" = yes; then
1183 # Not all programs may use this symbol, but it does not hurt to define it.
1184 cat >> confdefs.h <<\EOF
1185 #define X_DISPLAY_MISSING 1
1188 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1190 if test -n "$x_includes"; then
1191 X_CFLAGS="$X_CFLAGS -I$x_includes"
1194 # It would also be nice to do this for all -L options, not just this one.
1195 if test -n "$x_libraries"; then
1196 X_LIBS="$X_LIBS -L$x_libraries"
1197 # For Solaris; some versions of Sun CC require a space after -R and
1198 # others require no space. Words are not sufficient . . . .
1199 case "`(uname -sr) 2>/dev/null`" in
1201 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether -R must be followed by a space" >&5
1203 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1212 if { (eval echo configure:1213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1216 echo "configure: failed program was:" >&5
1217 cat conftest.$ac_ext >&5
1222 if test $ac_R_nospace = yes; then
1223 echo "$ac_t""no" 1>&6
1224 X_LIBS="$X_LIBS -R$x_libraries"
1226 LIBS="$ac_xsave_LIBS -R $x_libraries"
1227 cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1235 if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1245 if test $ac_R_space = yes; then
1246 echo "$ac_t""yes" 1>&6
1247 X_LIBS="$X_LIBS -R $x_libraries"
1249 echo "$ac_t""neither works" 1>&6
1252 LIBS="$ac_xsave_LIBS"
1256 # Check for system-dependent libraries X programs must link with.
1257 # Do this before checking for the system-independent R6 libraries
1258 # (-lICE), since we may need -lsocket or whatever for X linking.
1260 if test "$ISC" = yes; then
1261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1263 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1264 # libraries were built with DECnet support. And karl@cs.umb.edu says
1265 # the Alpha needs dnet_stub (dnet does not exist).
1266 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1267 echo "configure:1268: checking for dnet_ntoa in -ldnet" >&5
1268 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 ac_save_LIBS="$LIBS"
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 /* Override any gcc2 internal prototype to avoid an error. */
1278 /* We use char because int might match the return type of a gcc2
1279 builtin and then its argument prototype would still apply. */
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1288 eval "ac_cv_lib_$ac_lib_var=yes"
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1293 eval "ac_cv_lib_$ac_lib_var=no"
1296 LIBS="$ac_save_LIBS"
1299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1303 echo "$ac_t""no" 1>&6
1306 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1307 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1308 echo "configure:1309: checking for dnet_ntoa in -ldnet_stub" >&5
1309 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 ac_save_LIBS="$LIBS"
1314 LIBS="-ldnet_stub $LIBS"
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 /* Override any gcc2 internal prototype to avoid an error. */
1319 /* We use char because int might match the return type of a gcc2
1320 builtin and then its argument prototype would still apply. */
1327 if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1329 eval "ac_cv_lib_$ac_lib_var=yes"
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 eval "ac_cv_lib_$ac_lib_var=no"
1337 LIBS="$ac_save_LIBS"
1340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1342 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1344 echo "$ac_t""no" 1>&6
1349 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1350 # to get the SysV transport functions.
1351 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1353 # The nsl library prevents programs from opening the X display
1354 # on Irix 5.2, according to dickey@clark.net.
1355 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1356 echo "configure:1357: checking for gethostbyname" >&5
1357 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* System header to define __stub macros and hopefully few prototypes,
1364 which can conflict with char gethostbyname(); below. */
1366 /* Override any gcc2 internal prototype to avoid an error. */
1367 /* We use char because int might match the return type of a gcc2
1368 builtin and then its argument prototype would still apply. */
1369 char gethostbyname();
1373 /* The GNU C library defines this for functions which it implements
1374 to always fail with ENOSYS. Some functions are actually named
1375 something starting with __ and the normal name is an alias. */
1376 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386 eval "ac_cv_func_gethostbyname=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 eval "ac_cv_func_gethostbyname=no"
1396 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1400 echo "$ac_t""no" 1>&6
1403 if test $ac_cv_func_gethostbyname = no; then
1404 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1405 echo "configure:1406: checking for gethostbyname in -lnsl" >&5
1406 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 ac_save_LIBS="$LIBS"
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 /* Override any gcc2 internal prototype to avoid an error. */
1416 /* We use char because int might match the return type of a gcc2
1417 builtin and then its argument prototype would still apply. */
1418 char gethostbyname();
1424 if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1426 eval "ac_cv_lib_$ac_lib_var=yes"
1428 echo "configure: failed program was:" >&5
1429 cat conftest.$ac_ext >&5
1431 eval "ac_cv_lib_$ac_lib_var=no"
1434 LIBS="$ac_save_LIBS"
1437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1438 echo "$ac_t""yes" 1>&6
1439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1441 echo "$ac_t""no" 1>&6
1446 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1447 # socket/setsockopt and other routines are undefined under SCO ODT
1448 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1449 # on later versions), says simon@lia.di.epfl.ch: it contains
1450 # gethostby* variants that don't use the nameserver (or something).
1451 # -lsocket must be given before -lnsl if both are needed.
1452 # We assume that if connect needs -lnsl, so does gethostbyname.
1453 echo $ac_n "checking for connect""... $ac_c" 1>&6
1454 echo "configure:1455: checking for connect" >&5
1455 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 /* System header to define __stub macros and hopefully few prototypes,
1462 which can conflict with char connect(); below. */
1464 /* Override any gcc2 internal prototype to avoid an error. */
1465 /* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1471 /* The GNU C library defines this for functions which it implements
1472 to always fail with ENOSYS. Some functions are actually named
1473 something starting with __ and the normal name is an alias. */
1474 #if defined (__stub_connect) || defined (__stub___connect)
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484 eval "ac_cv_func_connect=yes"
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1489 eval "ac_cv_func_connect=no"
1494 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1495 echo "$ac_t""yes" 1>&6
1498 echo "$ac_t""no" 1>&6
1501 if test $ac_cv_func_connect = no; then
1502 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1503 echo "configure:1504: checking for connect in -lsocket" >&5
1504 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 ac_save_LIBS="$LIBS"
1509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1510 cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 /* Override any gcc2 internal prototype to avoid an error. */
1514 /* We use char because int might match the return type of a gcc2
1515 builtin and then its argument prototype would still apply. */
1522 if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524 eval "ac_cv_lib_$ac_lib_var=yes"
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1529 eval "ac_cv_lib_$ac_lib_var=no"
1532 LIBS="$ac_save_LIBS"
1535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1536 echo "$ac_t""yes" 1>&6
1537 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1539 echo "$ac_t""no" 1>&6
1544 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1545 echo $ac_n "checking for remove""... $ac_c" 1>&6
1546 echo "configure:1547: checking for remove" >&5
1547 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553 /* System header to define __stub macros and hopefully few prototypes,
1554 which can conflict with char remove(); below. */
1556 /* Override any gcc2 internal prototype to avoid an error. */
1557 /* We use char because int might match the return type of a gcc2
1558 builtin and then its argument prototype would still apply. */
1563 /* The GNU C library defines this for functions which it implements
1564 to always fail with ENOSYS. Some functions are actually named
1565 something starting with __ and the normal name is an alias. */
1566 #if defined (__stub_remove) || defined (__stub___remove)
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 eval "ac_cv_func_remove=yes"
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 eval "ac_cv_func_remove=no"
1586 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1590 echo "$ac_t""no" 1>&6
1593 if test $ac_cv_func_remove = no; then
1594 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1595 echo "configure:1596: checking for remove in -lposix" >&5
1596 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 ac_save_LIBS="$LIBS"
1601 LIBS="-lposix $LIBS"
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 /* Override any gcc2 internal prototype to avoid an error. */
1606 /* We use char because int might match the return type of a gcc2
1607 builtin and then its argument prototype would still apply. */
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1616 eval "ac_cv_lib_$ac_lib_var=yes"
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 eval "ac_cv_lib_$ac_lib_var=no"
1624 LIBS="$ac_save_LIBS"
1627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1628 echo "$ac_t""yes" 1>&6
1629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1631 echo "$ac_t""no" 1>&6
1636 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1637 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1638 echo "configure:1639: checking for shmat" >&5
1639 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* System header to define __stub macros and hopefully few prototypes,
1646 which can conflict with char shmat(); below. */
1648 /* Override any gcc2 internal prototype to avoid an error. */
1649 /* We use char because int might match the return type of a gcc2
1650 builtin and then its argument prototype would still apply. */
1655 /* The GNU C library defines this for functions which it implements
1656 to always fail with ENOSYS. Some functions are actually named
1657 something starting with __ and the normal name is an alias. */
1658 #if defined (__stub_shmat) || defined (__stub___shmat)
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1668 eval "ac_cv_func_shmat=yes"
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1673 eval "ac_cv_func_shmat=no"
1678 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1682 echo "$ac_t""no" 1>&6
1685 if test $ac_cv_func_shmat = no; then
1686 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1687 echo "configure:1688: checking for shmat in -lipc" >&5
1688 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 ac_save_LIBS="$LIBS"
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1713 eval "ac_cv_lib_$ac_lib_var=no"
1716 LIBS="$ac_save_LIBS"
1719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1723 echo "$ac_t""no" 1>&6
1729 # Check for libraries that X11R6 Xt/Xaw programs need.
1730 ac_save_LDFLAGS="$LDFLAGS"
1731 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1732 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1733 # check for ICE first), but we must link in the order -lSM -lICE or
1734 # we get undefined symbols. So assume we have SM if we have ICE.
1735 # These have to be linked with before -lX11, unlike the other
1736 # libraries we check for below, so use a different variable.
1737 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1738 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1739 echo "configure:1740: checking for IceConnectionNumber in -lICE" >&5
1740 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 ac_save_LIBS="$LIBS"
1745 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* Override any gcc2 internal prototype to avoid an error. */
1750 /* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1752 char IceConnectionNumber();
1755 IceConnectionNumber()
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1760 eval "ac_cv_lib_$ac_lib_var=yes"
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 eval "ac_cv_lib_$ac_lib_var=no"
1768 LIBS="$ac_save_LIBS"
1771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1775 echo "$ac_t""no" 1>&6
1778 LDFLAGS="$ac_save_LDFLAGS"
1782 for ac_prog in 'bison -y' byacc
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test -n "$YACC"; then
1792 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1796 for ac_dir in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_YACC="$ac_prog"
1806 YACC="$ac_cv_prog_YACC"
1807 if test -n "$YACC"; then
1808 echo "$ac_t""$YACC" 1>&6
1810 echo "$ac_t""no" 1>&6
1813 test -n "$YACC" && break
1815 test -n "$YACC" || YACC="yacc"
1817 # Extract the first word of "flex", so it can be a program name with args.
1818 set dummy flex; ac_word=$2
1819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_word" >&5
1821 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 if test -n "$LEX"; then
1825 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1832 ac_cv_prog_LEX="flex"
1837 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1840 LEX="$ac_cv_prog_LEX"
1841 if test -n "$LEX"; then
1842 echo "$ac_t""$LEX" 1>&6
1844 echo "$ac_t""no" 1>&6
1847 if test -z "$LEXLIB"
1853 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1854 echo "configure:1855: checking for yywrap in -l$ac_lib" >&5
1855 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 ac_save_LIBS="$LIBS"
1860 LIBS="-l$ac_lib $LIBS"
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1875 eval "ac_cv_lib_$ac_lib_var=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1880 eval "ac_cv_lib_$ac_lib_var=no"
1883 LIBS="$ac_save_LIBS"
1886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1890 echo "$ac_t""no" 1>&6
1895 for ac_prog in $LEX flex lex
1897 # Extract the first word of "$ac_prog", so it can be a program name with args.
1898 set dummy $ac_prog; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 if test -n "$XLEX"; then
1905 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1909 for ac_dir in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir=.
1911 if test -f $ac_dir/$ac_word; then
1912 ac_cv_prog_XLEX="$ac_prog"
1919 XLEX="$ac_cv_prog_XLEX"
1920 if test -n "$XLEX"; then
1921 echo "$ac_t""$XLEX" 1>&6
1923 echo "$ac_t""no" 1>&6
1926 test -n "$XLEX" && break
1928 test -n "$XLEX" || XLEX="none"
1930 if test "$XLEX" = "none"
1932 echo "*** Error: No suitable lex found. ***"
1933 echo " Please install the 'flex' package."
1936 # Extract the first word of "ranlib", so it can be a program name with args.
1937 set dummy ranlib; ac_word=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$RANLIB"; then
1944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_RANLIB="ranlib"
1956 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1959 RANLIB="$ac_cv_prog_RANLIB"
1960 if test -n "$RANLIB"; then
1961 echo "$ac_t""$RANLIB" 1>&6
1963 echo "$ac_t""no" 1>&6
1966 # Find a good install program. We prefer a C program (faster),
1967 # so one script is as good as another. But avoid the broken or
1968 # incompatible versions:
1969 # SysV /etc/install, /usr/sbin/install
1970 # SunOS /usr/etc/install
1971 # IRIX /sbin/install
1973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1978 echo "configure:1979: checking for a BSD compatible install" >&5
1979 if test -z "$INSTALL"; then
1980 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1984 for ac_dir in $PATH; do
1985 # Account for people who put trailing slashes in PATH elements.
1987 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1989 # OSF1 and SCO ODT 3.0 have their own names for install.
1990 # Don't use installbsd from OSF since it installs stuff as root
1992 for ac_prog in ginstall scoinst install; do
1993 if test -f $ac_dir/$ac_prog; then
1994 if test $ac_prog = install &&
1995 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1996 # AIX install. It has an incompatible calling convention.
1999 ac_cv_path_install="$ac_dir/$ac_prog -c"
2010 if test "${ac_cv_path_install+set}" = set; then
2011 INSTALL="$ac_cv_path_install"
2013 # As a last resort, use the slow shell script. We don't cache a
2014 # path for INSTALL within a source directory, because that will
2015 # break other packages using the cache if that directory is
2016 # removed, or if the path is relative.
2017 INSTALL="$ac_install_sh"
2020 echo "$ac_t""$INSTALL" 1>&6
2022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023 # It thinks the first close brace ends the variable substitution.
2024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2030 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2031 echo "configure:2032: checking whether ln -s works" >&5
2032 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2036 if ln -s X conftestdata 2>/dev/null
2039 ac_cv_prog_LN_S="ln -s"
2044 LN_S="$ac_cv_prog_LN_S"
2045 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2046 echo "$ac_t""yes" 1>&6
2048 echo "$ac_t""no" 1>&6
2051 # Extract the first word of "c2man", so it can be a program name with args.
2052 set dummy c2man; ac_word=$2
2053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2054 echo "configure:2055: checking for $ac_word" >&5
2055 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 if test -n "$C2MAN"; then
2059 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2063 for ac_dir in $ac_dummy; do
2064 test -z "$ac_dir" && ac_dir=.
2065 if test -f $ac_dir/$ac_word; then
2066 ac_cv_prog_C2MAN="c2man"
2071 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2074 C2MAN="$ac_cv_prog_C2MAN"
2075 if test -n "$C2MAN"; then
2076 echo "$ac_t""$C2MAN" 1>&6
2078 echo "$ac_t""no" 1>&6
2081 # Extract the first word of "ldconfig", so it can be a program name with args.
2082 set dummy ldconfig; ac_word=$2
2083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_word" >&5
2085 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2090 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2093 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 ac_dummy="/sbin:/usr/sbin:$PATH"
2098 for ac_dir in $ac_dummy; do
2099 test -z "$ac_dir" && ac_dir=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2106 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2110 LDCONFIG="$ac_cv_path_LDCONFIG"
2111 if test -n "$LDCONFIG"; then
2112 echo "$ac_t""$LDCONFIG" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2118 echo "configure:2119: checking for Cygwin environment" >&5
2119 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2129 #define __CYGWIN__ __CYGWIN32__
2134 if { (eval echo configure:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2147 echo "$ac_t""$ac_cv_cygwin" 1>&6
2149 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2150 # Extract the first word of "dllwrap", so it can be a program name with args.
2151 set dummy dllwrap; ac_word=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5
2154 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 if test -n "$DLLWRAP"; then
2158 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2162 for ac_dir in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/$ac_word; then
2165 ac_cv_prog_DLLWRAP="dllwrap"
2170 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2173 DLLWRAP="$ac_cv_prog_DLLWRAP"
2174 if test -n "$DLLWRAP"; then
2175 echo "$ac_t""$DLLWRAP" 1>&6
2177 echo "$ac_t""no" 1>&6
2181 for ac_prog in lclint lint
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_word" >&5
2187 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 if test -n "$LINT"; then
2191 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2195 for ac_dir in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_prog_LINT="$ac_prog"
2205 LINT="$ac_cv_prog_LINT"
2206 if test -n "$LINT"; then
2207 echo "$ac_t""$LINT" 1>&6
2209 echo "$ac_t""no" 1>&6
2212 test -n "$LINT" && break
2215 if test "$LINT" = "lint"
2217 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2222 if test "$CYGWIN" = "yes"
2224 LDCOMBINE="ld -r --enable-stdcall-fixup"
2231 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2232 echo "configure:2233: checking for sqrt in -lm" >&5
2233 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 ac_save_LIBS="$LIBS"
2239 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2258 eval "ac_cv_lib_$ac_lib_var=no"
2261 LIBS="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 cat >> confdefs.h <<EOF
2269 #define $ac_tr_lib 1
2275 echo "$ac_t""no" 1>&6
2278 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2279 echo "configure:2280: checking for i386_set_ldt in -li386" >&5
2280 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 ac_save_LIBS="$LIBS"
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2292 char i386_set_ldt();
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 eval "ac_cv_lib_$ac_lib_var=no"
2308 LIBS="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2315 cat >> confdefs.h <<EOF
2316 #define $ac_tr_lib 1
2322 echo "$ac_t""no" 1>&6
2325 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2326 echo "configure:2327: checking for _oss_ioctl in -lossaudio" >&5
2327 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 ac_save_LIBS="$LIBS"
2332 LIBS="-lossaudio $LIBS"
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 /* Override any gcc2 internal prototype to avoid an error. */
2337 /* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2347 eval "ac_cv_lib_$ac_lib_var=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2352 eval "ac_cv_lib_$ac_lib_var=no"
2355 LIBS="$ac_save_LIBS"
2358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2362 cat >> confdefs.h <<EOF
2363 #define $ac_tr_lib 1
2366 LIBS="-lossaudio $LIBS"
2369 echo "$ac_t""no" 1>&6
2372 for ac_func in iswalnum
2374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_func" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2392 /* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2405 eval "ac_cv_func_$ac_func=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2410 eval "ac_cv_func_$ac_func=no"
2415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2418 cat >> confdefs.h <<EOF
2419 #define $ac_tr_func 1
2423 echo "$ac_t""no" 1>&6
2424 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2425 echo "configure:2426: checking for iswalnum in -lw" >&5
2426 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 ac_save_LIBS="$LIBS"
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 eval "ac_cv_lib_$ac_lib_var=yes"
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2451 eval "ac_cv_lib_$ac_lib_var=no"
2454 LIBS="$ac_save_LIBS"
2457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2461 cat >> confdefs.h <<EOF
2462 #define $ac_tr_lib 1
2468 echo "$ac_t""no" 1>&6
2474 for ac_func in gethostbyname
2476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_func" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $ac_func(); below. */
2487 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 eval "ac_cv_func_$ac_func=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 eval "ac_cv_func_$ac_func=no"
2517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2520 cat >> confdefs.h <<EOF
2521 #define $ac_tr_func 1
2525 echo "$ac_t""no" 1>&6
2526 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2527 echo "configure:2528: checking for gethostbyname in -lnsl" >&5
2528 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 ac_save_LIBS="$LIBS"
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* Override any gcc2 internal prototype to avoid an error. */
2538 /* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540 char gethostbyname();
2546 if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2548 eval "ac_cv_lib_$ac_lib_var=yes"
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2553 eval "ac_cv_lib_$ac_lib_var=no"
2556 LIBS="$ac_save_LIBS"
2559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2563 cat >> confdefs.h <<EOF
2564 #define $ac_tr_lib 1
2570 echo "$ac_t""no" 1>&6
2576 for ac_func in connect
2578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_func" >&5
2580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $ac_func(); below. */
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2609 eval "ac_cv_func_$ac_func=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_func_$ac_func=no"
2619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2622 cat >> confdefs.h <<EOF
2623 #define $ac_tr_func 1
2627 echo "$ac_t""no" 1>&6
2628 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2629 echo "configure:2630: checking for connect in -lsocket" >&5
2630 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 ac_save_LIBS="$LIBS"
2635 LIBS="-lsocket $LIBS"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2648 if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2650 eval "ac_cv_lib_$ac_lib_var=yes"
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2655 eval "ac_cv_lib_$ac_lib_var=no"
2658 LIBS="$ac_save_LIBS"
2661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2663 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2665 cat >> confdefs.h <<EOF
2666 #define $ac_tr_lib 1
2669 LIBS="-lsocket $LIBS"
2672 echo "$ac_t""no" 1>&6
2678 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2679 echo "configure:2680: checking for _xpg4_setrunelocale in -lxpg4" >&5
2680 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 ac_save_LIBS="$LIBS"
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* Override any gcc2 internal prototype to avoid an error. */
2690 /* We use char because int might match the return type of a gcc2
2691 builtin and then its argument prototype would still apply. */
2692 char _xpg4_setrunelocale();
2695 _xpg4_setrunelocale()
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2700 eval "ac_cv_lib_$ac_lib_var=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 eval "ac_cv_lib_$ac_lib_var=no"
2708 LIBS="$ac_save_LIBS"
2711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2715 cat >> confdefs.h <<EOF
2716 #define $ac_tr_lib 1
2722 echo "$ac_t""no" 1>&6
2725 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2726 echo "configure:2727: checking for mmap in -lmmap" >&5
2727 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 ac_save_LIBS="$LIBS"
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2747 eval "ac_cv_lib_$ac_lib_var=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 eval "ac_cv_lib_$ac_lib_var=no"
2755 LIBS="$ac_save_LIBS"
2758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2762 cat >> confdefs.h <<EOF
2763 #define $ac_tr_lib 1
2769 echo "$ac_t""no" 1>&6
2772 for ac_func in openpty
2774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_func" >&5
2776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
2782 /* System header to define __stub macros and hopefully few prototypes,
2783 which can conflict with char $ac_func(); below. */
2785 /* Override any gcc2 internal prototype to avoid an error. */
2786 /* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2792 /* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2803 if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2805 eval "ac_cv_func_$ac_func=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2810 eval "ac_cv_func_$ac_func=no"
2815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_func 1
2823 echo "$ac_t""no" 1>&6
2824 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2825 echo "configure:2826: checking for openpty in -lutil" >&5
2826 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_save_LIBS="$LIBS"
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* Override any gcc2 internal prototype to avoid an error. */
2836 /* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2846 eval "ac_cv_lib_$ac_lib_var=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 eval "ac_cv_lib_$ac_lib_var=no"
2854 LIBS="$ac_save_LIBS"
2857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 cat >> confdefs.h <<\EOF
2860 #define HAVE_OPENPTY 1
2866 echo "$ac_t""no" 1>&6
2873 for ac_hdr in dlfcn.h
2875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_hdr" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2891 eval "ac_cv_header_$ac_safe=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_header_$ac_safe=no"
2901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h <<EOF
2905 #define $ac_tr_hdr 1
2907 for ac_func in dlopen
2909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_func" >&5
2911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 /* System header to define __stub macros and hopefully few prototypes,
2918 which can conflict with char $ac_func(); below. */
2920 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2927 /* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2938 if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2940 eval "ac_cv_func_$ac_func=yes"
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2945 eval "ac_cv_func_$ac_func=no"
2950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2953 cat >> confdefs.h <<EOF
2954 #define $ac_tr_func 1
2958 echo "$ac_t""no" 1>&6
2959 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2960 echo "configure:2961: checking for dlopen in -ldl" >&5
2961 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 ac_save_LIBS="$LIBS"
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* Override any gcc2 internal prototype to avoid an error. */
2971 /* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 eval "ac_cv_lib_$ac_lib_var=yes"
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2986 eval "ac_cv_lib_$ac_lib_var=no"
2989 LIBS="$ac_save_LIBS"
2992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 cat >> confdefs.h <<\EOF
2995 #define HAVE_DLOPEN 1
3000 echo "$ac_t""no" 1>&6
3009 echo "$ac_t""no" 1>&6
3018 for ac_hdr in jpeglib.h
3020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_hdr" >&5
3023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3032 { (eval echo configure:3033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3034 if test -z "$ac_err"; then
3036 eval "ac_cv_header_$ac_safe=yes"
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3042 eval "ac_cv_header_$ac_safe=no"
3046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3049 cat >> confdefs.h <<EOF
3050 #define $ac_tr_hdr 1
3052 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3053 echo "configure:3054: checking for jpeg_start_decompress in -ljpeg" >&5
3054 ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 ac_save_LIBS="$LIBS"
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char jpeg_start_decompress();
3069 jpeg_start_decompress()
3072 if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3079 eval "ac_cv_lib_$ac_lib_var=no"
3082 LIBS="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 cat >> confdefs.h <<\EOF
3088 #define HAVE_LIBJPEG 1
3094 echo "$ac_t""no" 1>&6
3099 echo "$ac_t""no" 1>&6
3118 if test "$have_x" = "yes"
3121 ac_save_CPPFLAGS="$CPPFLAGS"
3122 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3124 for ac_hdr in X11/xpm.h
3126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3128 echo "configure:3129: checking for $ac_hdr" >&5
3129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3138 { (eval echo configure:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3140 if test -z "$ac_err"; then
3142 eval "ac_cv_header_$ac_safe=yes"
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 eval "ac_cv_header_$ac_safe=no"
3152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3155 cat >> confdefs.h <<EOF
3156 #define $ac_tr_hdr 1
3158 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3159 echo "configure:3160: checking for XpmCreatePixmapFromData in -lXpm" >&5
3160 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 ac_save_LIBS="$LIBS"
3165 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3173 char XpmCreatePixmapFromData();
3176 XpmCreatePixmapFromData()
3179 if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3181 eval "ac_cv_lib_$ac_lib_var=yes"
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3186 eval "ac_cv_lib_$ac_lib_var=no"
3189 LIBS="$ac_save_LIBS"
3192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3193 echo "$ac_t""yes" 1>&6
3194 cat >> confdefs.h <<\EOF
3195 #define HAVE_LIBXXPM 1
3198 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3200 echo "$ac_t""no" 1>&6
3205 echo "$ac_t""no" 1>&6
3206 echo "Redhat : xpm xpm-devel"
3207 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3209 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3211 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3212 echo "the directory /contrib/libraries."
3221 for ac_hdr in X11/Xlib.h
3223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_hdr" >&5
3226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3235 { (eval echo configure:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3237 if test -z "$ac_err"; then
3239 eval "ac_cv_header_$ac_safe=yes"
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3245 eval "ac_cv_header_$ac_safe=no"
3249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3252 cat >> confdefs.h <<EOF
3253 #define $ac_tr_hdr 1
3256 for ac_hdr in X11/XKBlib.h
3258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3260 echo "configure:3261: checking for $ac_hdr" >&5
3261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3270 { (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3272 if test -z "$ac_err"; then
3274 eval "ac_cv_header_$ac_safe=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_header_$ac_safe=no"
3284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3285 echo "$ac_t""yes" 1>&6
3286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3287 cat >> confdefs.h <<EOF
3288 #define $ac_tr_hdr 1
3290 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3291 echo "configure:3292: checking for XkbQueryExtension in -lX11" >&5
3292 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 ac_save_LIBS="$LIBS"
3297 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 /* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3304 char XkbQueryExtension();
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 eval "ac_cv_lib_$ac_lib_var=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 eval "ac_cv_lib_$ac_lib_var=no"
3320 LIBS="$ac_save_LIBS"
3323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 cat >> confdefs.h <<\EOF
3330 echo "$ac_t""no" 1>&6
3335 echo "$ac_t""no" 1>&6
3336 echo "configure: warning: XKB extension not found!!" 1>&2
3342 for ac_hdr in X11/extensions/XShm.h
3344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3346 echo "configure:3347: checking for $ac_hdr" >&5
3347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3356 { (eval echo configure:3357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3358 if test -z "$ac_err"; then
3360 eval "ac_cv_header_$ac_safe=yes"
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 eval "ac_cv_header_$ac_safe=no"
3370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3373 cat >> confdefs.h <<EOF
3374 #define $ac_tr_hdr 1
3376 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3377 echo "configure:3378: checking for XShmQueryExtension in -lXext" >&5
3378 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 ac_save_LIBS="$LIBS"
3383 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 /* Override any gcc2 internal prototype to avoid an error. */
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3390 char XShmQueryExtension();
3393 XShmQueryExtension()
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3398 eval "ac_cv_lib_$ac_lib_var=yes"
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 eval "ac_cv_lib_$ac_lib_var=no"
3406 LIBS="$ac_save_LIBS"
3409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 cat >> confdefs.h <<\EOF
3412 #define HAVE_LIBXXSHM 1
3416 echo "$ac_t""no" 1>&6
3421 echo "$ac_t""no" 1>&6
3422 echo "configure: warning: Xshm extension not found!!" 1>&2
3428 for ac_hdr in X11/extensions/shape.h
3430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_hdr" >&5
3433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3442 { (eval echo configure:3443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3444 if test -z "$ac_err"; then
3446 eval "ac_cv_header_$ac_safe=yes"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3452 eval "ac_cv_header_$ac_safe=no"
3456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3459 cat >> confdefs.h <<EOF
3460 #define $ac_tr_hdr 1
3462 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3463 echo "configure:3464: checking for XShapeQueryExtension in -lXext" >&5
3464 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 ac_save_LIBS="$LIBS"
3469 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3476 char XShapeQueryExtension();
3479 XShapeQueryExtension()
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 eval "ac_cv_lib_$ac_lib_var=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3489 eval "ac_cv_lib_$ac_lib_var=no"
3492 LIBS="$ac_save_LIBS"
3495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 cat >> confdefs.h <<\EOF
3498 #define HAVE_LIBXSHAPE 1
3502 echo "$ac_t""no" 1>&6
3507 echo "$ac_t""no" 1>&6
3508 echo "configure: warning: XShape extension not found!!" 1>&2
3514 for ac_hdr in X11/extensions/xf86dga.h
3516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3518 echo "configure:3519: checking for $ac_hdr" >&5
3519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3528 { (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3530 if test -z "$ac_err"; then
3532 eval "ac_cv_header_$ac_safe=yes"
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3538 eval "ac_cv_header_$ac_safe=no"
3542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3545 cat >> confdefs.h <<EOF
3546 #define $ac_tr_hdr 1
3548 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3549 echo "configure:3550: checking for XDGAQueryExtension in -lXxf86dga" >&5
3550 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 ac_save_LIBS="$LIBS"
3555 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3563 char XDGAQueryExtension();
3566 XDGAQueryExtension()
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 cat >> confdefs.h <<\EOF
3585 #define HAVE_LIBXXF86DGA2 1
3588 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3591 echo "$ac_t""no" 1>&6
3592 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3593 echo "configure:3594: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3594 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 ac_save_LIBS="$LIBS"
3599 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3607 char XF86DGAQueryExtension();
3610 XF86DGAQueryExtension()
3613 if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3615 eval "ac_cv_lib_$ac_lib_var=yes"
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 eval "ac_cv_lib_$ac_lib_var=no"
3623 LIBS="$ac_save_LIBS"
3626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 cat >> confdefs.h <<\EOF
3629 #define HAVE_LIBXXF86DGA 1
3632 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3635 echo "$ac_t""no" 1>&6
3643 echo "$ac_t""no" 1>&6
3644 echo "configure: warning: DGA extension not found!!" 1>&2
3650 for ac_hdr in X11/extensions/xf86vmode.h
3652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3654 echo "configure:3655: checking for $ac_hdr" >&5
3655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3664 { (eval echo configure:3665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3666 if test -z "$ac_err"; then
3668 eval "ac_cv_header_$ac_safe=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_header_$ac_safe=no"
3678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3679 echo "$ac_t""yes" 1>&6
3680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3681 cat >> confdefs.h <<EOF
3682 #define $ac_tr_hdr 1
3684 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3685 echo "configure:3686: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3686 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 ac_save_LIBS="$LIBS"
3691 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char XF86VidModeQueryExtension();
3702 XF86VidModeQueryExtension()
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3707 eval "ac_cv_lib_$ac_lib_var=yes"
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3712 eval "ac_cv_lib_$ac_lib_var=no"
3715 LIBS="$ac_save_LIBS"
3718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 cat >> confdefs.h <<\EOF
3721 #define HAVE_LIBXXF86VM 1
3724 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3727 echo "$ac_t""no" 1>&6
3732 echo "$ac_t""no" 1>&6
3733 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3739 for ac_hdr in X11/extensions/Xvlib.h
3741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_hdr" >&5
3744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3753 { (eval echo configure:3754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3755 if test -z "$ac_err"; then
3757 eval "ac_cv_header_$ac_safe=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "ac_cv_header_$ac_safe=no"
3767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3770 cat >> confdefs.h <<EOF
3771 #define $ac_tr_hdr 1
3773 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3774 echo "configure:3775: checking for XvShmCreateImage in -lXv" >&5
3775 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 ac_save_LIBS="$LIBS"
3780 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3788 char XvShmCreateImage();
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 eval "ac_cv_lib_$ac_lib_var=yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3801 eval "ac_cv_lib_$ac_lib_var=no"
3804 LIBS="$ac_save_LIBS"
3807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 cat >> confdefs.h <<\EOF
3810 #define HAVE_XVIDEO 1
3813 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3816 echo "$ac_t""no" 1>&6
3821 echo "$ac_t""no" 1>&6
3822 echo "configure: warning: XVideo extension not found !!" 1>&2
3831 echo "$ac_t""no" 1>&6
3835 if test $OPENGL = "yes" -o $OPENGL = "normal"
3837 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3841 echo "configure:3842: checking for $ac_hdr" >&5
3842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3851 { (eval echo configure:3852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3853 if test -z "$ac_err"; then
3855 eval "ac_cv_header_$ac_safe=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 eval "ac_cv_header_$ac_safe=no"
3865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3868 cat >> confdefs.h <<EOF
3869 #define $ac_tr_hdr 1
3873 echo "$ac_t""no" 1>&6
3877 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3879 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3880 echo "configure:3881: checking "for up-to-date OpenGL version"" >&5
3881 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3889 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3892 if { (eval echo configure:3893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3894 wine_cv_opengl_version_OK="yes"
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3899 wine_cv_opengl_version_OK="no"
3906 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3908 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3909 echo "configure:3910: checking "for thread-safe OpenGL version"" >&5
3910 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3920 pthread_getspecific();
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3925 wine_cv_opengl_version_threadsafe="yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3930 wine_cv_opengl_version_threadsafe="no"
3937 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3939 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3941 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3942 echo "configure:3943: checking for glXCreateContext in -lGL" >&5
3943 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 ac_save_LIBS="$LIBS"
3948 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3955 char glXCreateContext();
3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3963 eval "ac_cv_lib_$ac_lib_var=yes"
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3968 eval "ac_cv_lib_$ac_lib_var=no"
3971 LIBS="$ac_save_LIBS"
3974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3976 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3979 echo "$ac_t""no" 1>&6
3983 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3986 OPENGLFILES='$(OPENGLFILES)'
3987 cat >> confdefs.h <<\EOF
3988 #define HAVE_OPENGL 1
3992 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3993 echo "configure:3994: checking for glXGetProcAddressARB in -lGL" >&5
3994 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 ac_save_LIBS="$LIBS"
3999 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* Override any gcc2 internal prototype to avoid an error. */
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006 char glXGetProcAddressARB();
4009 glXGetProcAddressARB()
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014 eval "ac_cv_lib_$ac_lib_var=yes"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4019 eval "ac_cv_lib_$ac_lib_var=no"
4022 LIBS="$ac_save_LIBS"
4025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4026 echo "$ac_t""yes" 1>&6
4027 cat >> confdefs.h <<\EOF
4028 #define HAVE_GLX_GETPROCADDRESS 1
4032 echo "$ac_t""no" 1>&6
4036 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4038 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
4039 echo "configure:4040: checking "for OpenGL extension functions prototypes"" >&5
4040 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4047 #ifdef HAVE_GL_GLEXT_H
4048 # include <GL/glext.h>
4052 PFNGLCOLORTABLEEXTPROC test_proc;
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 wine_cv_extension_prototypes="yes"
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4062 wine_cv_extension_prototypes="no"
4069 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4070 if test $wine_cv_extension_prototypes = "yes"
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_GLEXT_PROTOTYPES 1
4078 OPENGL32_DLL=opengl32
4082 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4083 echo "configure:4084: checking for gluLookAt in -lGLU" >&5
4084 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 ac_save_LIBS="$LIBS"
4089 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* Override any gcc2 internal prototype to avoid an error. */
4095 /* We use char because int might match the return type of a gcc2
4096 builtin and then its argument prototype would still apply. */
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105 eval "ac_cv_lib_$ac_lib_var=yes"
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 eval "ac_cv_lib_$ac_lib_var=no"
4113 LIBS="$ac_save_LIBS"
4116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4119 GLU32FILES='$(GLU32FILES)'
4123 echo "$ac_t""no" 1>&6
4130 CPPFLAGS="$ac_save_CPPFLAGS"
4139 if test "$CURSES" = "yes"
4141 for ac_hdr in ncurses.h
4143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4145 echo "configure:4146: checking for $ac_hdr" >&5
4146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4155 { (eval echo configure:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4157 if test -z "$ac_err"; then
4159 eval "ac_cv_header_$ac_safe=yes"
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4165 eval "ac_cv_header_$ac_safe=no"
4169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4172 cat >> confdefs.h <<EOF
4173 #define $ac_tr_hdr 1
4175 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4176 echo "configure:4177: checking for waddch in -lncurses" >&5
4177 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 ac_save_LIBS="$LIBS"
4182 LIBS="-lncurses $LIBS"
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4197 eval "ac_cv_lib_$ac_lib_var=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 eval "ac_cv_lib_$ac_lib_var=no"
4205 LIBS="$ac_save_LIBS"
4208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
4211 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4212 cat >> confdefs.h <<EOF
4213 #define $ac_tr_lib 1
4216 LIBS="-lncurses $LIBS"
4219 echo "$ac_t""no" 1>&6
4223 echo "$ac_t""no" 1>&6
4224 for ac_hdr in curses.h
4226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4228 echo "configure:4229: checking for $ac_hdr" >&5
4229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4238 { (eval echo configure:4239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4240 if test -z "$ac_err"; then
4242 eval "ac_cv_header_$ac_safe=yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 eval "ac_cv_header_$ac_safe=no"
4252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4255 cat >> confdefs.h <<EOF
4256 #define $ac_tr_hdr 1
4258 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4259 echo "configure:4260: checking for waddch in -lcurses" >&5
4260 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 ac_save_LIBS="$LIBS"
4265 LIBS="-lcurses $LIBS"
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4278 if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4280 eval "ac_cv_lib_$ac_lib_var=yes"
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4285 eval "ac_cv_lib_$ac_lib_var=no"
4288 LIBS="$ac_save_LIBS"
4291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4293 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
4294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4295 cat >> confdefs.h <<EOF
4296 #define $ac_tr_lib 1
4299 LIBS="-lcurses $LIBS"
4302 echo "$ac_t""no" 1>&6
4306 echo "$ac_t""no" 1>&6
4313 for ac_func in getbkgd resizeterm
4315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4316 echo "configure:4317: checking for $ac_func" >&5
4317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 /* System header to define __stub macros and hopefully few prototypes,
4324 which can conflict with char $ac_func(); below. */
4326 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4333 /* The GNU C library defines this for functions which it implements
4334 to always fail with ENOSYS. Some functions are actually named
4335 something starting with __ and the normal name is an alias. */
4336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346 eval "ac_cv_func_$ac_func=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4351 eval "ac_cv_func_$ac_func=no"
4356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4359 cat >> confdefs.h <<EOF
4360 #define $ac_tr_func 1
4364 echo "$ac_t""no" 1>&6
4371 wine_cv_warn_cups_h=no
4372 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4373 echo "configure:4374: checking for cupsGetPPD in -lcups" >&5
4374 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 ac_save_LIBS="$LIBS"
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 /* Override any gcc2 internal prototype to avoid an error. */
4384 /* We use char because int might match the return type of a gcc2
4385 builtin and then its argument prototype would still apply. */
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394 eval "ac_cv_lib_$ac_lib_var=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 eval "ac_cv_lib_$ac_lib_var=no"
4402 LIBS="$ac_save_LIBS"
4405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4406 echo "$ac_t""yes" 1>&6
4407 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4408 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4409 echo "configure:4410: checking for cups/cups.h" >&5
4410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <cups/cups.h>
4418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4419 { (eval echo configure:4420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4421 if test -z "$ac_err"; then
4423 eval "ac_cv_header_$ac_safe=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 eval "ac_cv_header_$ac_safe=no"
4433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 cat >> confdefs.h <<\EOF
4441 echo "$ac_t""no" 1>&6
4442 wine_cv_warn_cups_h=yes
4447 echo "$ac_t""no" 1>&6
4452 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4453 echo "configure:4454: checking for FT_Init_FreeType in -lfreetype" >&5
4454 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 ac_save_LIBS="$LIBS"
4459 LIBS="-lfreetype $LIBS"
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466 char FT_Init_FreeType();
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4474 eval "ac_cv_lib_$ac_lib_var=yes"
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4479 eval "ac_cv_lib_$ac_lib_var=no"
4482 LIBS="$ac_save_LIBS"
4485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4489 echo "$ac_t""no" 1>&6
4493 if test "$ft_lib" = "no"
4497 wine_cv_msg_freetype=no
4499 # Extract the first word of "freetype-config", so it can be a program name with args.
4500 set dummy freetype-config; ac_word=$2
4501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4502 echo "configure:4503: checking for $ac_word" >&5
4503 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 if test -n "$ft_devel"; then
4507 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4511 for ac_dir in $ac_dummy; do
4512 test -z "$ac_dir" && ac_dir=.
4513 if test -f $ac_dir/$ac_word; then
4514 ac_cv_prog_ft_devel="freetype-config"
4519 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4522 ft_devel="$ac_cv_prog_ft_devel"
4523 if test -n "$ft_devel"; then
4524 echo "$ac_t""$ft_devel" 1>&6
4526 echo "$ac_t""no" 1>&6
4529 if test "$ft_devel" = "no"
4531 # Extract the first word of "freetype2-config", so it can be a program name with args.
4532 set dummy freetype2-config; ac_word=$2
4533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_word" >&5
4535 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 if test -n "$ft_devel2"; then
4539 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4543 for ac_dir in $ac_dummy; do
4544 test -z "$ac_dir" && ac_dir=.
4545 if test -f $ac_dir/$ac_word; then
4546 ac_cv_prog_ft_devel2="freetype2-config"
4551 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4554 ft_devel2="$ac_cv_prog_ft_devel2"
4555 if test -n "$ft_devel2"; then
4556 echo "$ac_t""$ft_devel2" 1>&6
4558 echo "$ac_t""no" 1>&6
4561 if test "$ft_devel2" = "freetype2-config"
4566 if test "$ft_devel" = "no"
4570 wine_cv_msg_freetype=yes
4572 cat >> confdefs.h <<\EOF
4573 #define HAVE_FREETYPE 1
4576 FREETYPELIBS=`$ft_devel --libs`
4577 FREETYPEINCL=`$ft_devel --cflags`
4578 ac_save_CPPFLAGS="$CPPFLAGS"
4579 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4580 for ac_hdr in freetype/freetype.h \
4581 freetype/ftglyph.h \
4582 freetype/tttables.h \
4583 freetype/ftnames.h \
4584 freetype/ftsnames.h \
4585 freetype/ttnameid.h \
4588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4590 echo "configure:4591: checking for $ac_hdr" >&5
4591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4600 { (eval echo configure:4601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4602 if test -z "$ac_err"; then
4604 eval "ac_cv_header_$ac_safe=yes"
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4610 eval "ac_cv_header_$ac_safe=no"
4614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4615 echo "$ac_t""yes" 1>&6
4616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4617 cat >> confdefs.h <<EOF
4618 #define $ac_tr_hdr 1
4622 echo "$ac_t""no" 1>&6
4626 CPPFLAGS="$ac_save_CPPFLAGS"
4627 wine_cv_msg_freetype=no
4633 echo $ac_n "checking "for parport header/ppdev.h"""... $ac_c" 1>&6
4634 echo "configure:4635: checking "for parport header/ppdev.h"" >&5
4635 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 #include <linux/ppdev.h>
4646 if { (eval echo configure:4647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4659 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4660 if test "$ac_cv_c_ppdev" = "yes"
4662 cat >> confdefs.h <<\EOF
4663 #define HAVE_PPDEV 1
4668 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4669 echo "configure:4670: checking "for GNU style IPX support"" >&5
4670 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 #include <sys/socket.h>
4677 #include <netipx/ipx.h>
4679 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4682 if { (eval echo configure:4683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4684 ac_cv_c_ipx_gnu="yes"
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4689 ac_cv_c_ipx_gnu="no"
4695 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4696 if test "$ac_cv_c_ipx_gnu" = "yes"
4698 cat >> confdefs.h <<\EOF
4699 #define HAVE_IPX_GNU 1
4704 if test "$ac_cv_c_ipx_gnu" = "no"
4706 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4707 echo "configure:4708: checking "for linux style IPX support"" >&5
4708 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714 #include <sys/socket.h>
4715 #include <asm/types.h>
4716 #include <linux/ipx.h>
4718 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4721 if { (eval echo configure:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4723 ac_cv_c_ipx_linux="yes"
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4728 ac_cv_c_ipx_linux="no"
4734 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4735 if test "$ac_cv_c_ipx_linux" = "yes"
4737 cat >> confdefs.h <<\EOF
4738 #define HAVE_IPX_LINUX 1
4744 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_hdr" >&5
4749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4758 { (eval echo configure:4759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4760 if test -z "$ac_err"; then
4762 eval "ac_cv_header_$ac_safe=yes"
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4768 eval "ac_cv_header_$ac_safe=no"
4772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4775 cat >> confdefs.h <<EOF
4776 #define $ac_tr_hdr 1
4780 echo "$ac_t""no" 1>&6
4785 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4786 echo "configure:4787: checking "for Open Sound System"" >&5
4787 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4794 #if defined(HAVE_SYS_SOUNDCARD_H)
4795 #include <sys/soundcard.h>
4796 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4797 #include <machine/soundcard.h>
4798 #elif defined(HAVE_SOUNDCARD_H)
4799 #include <soundcard.h>
4805 /* check for one of the Open Sound System specific SNDCTL_ defines */
4806 #if !defined(SNDCTL_DSP_STEREO)
4807 #error No open sound system
4812 if { (eval echo configure:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4814 ac_cv_c_opensoundsystem="yes"
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 ac_cv_c_opensoundsystem="no"
4824 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4826 if test "$ac_cv_c_opensoundsystem" = "yes"
4828 cat >> confdefs.h <<\EOF
4834 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4835 echo "configure:4836: checking "for Open Sound System/MIDI interface"" >&5
4836 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4843 #if defined(HAVE_SYS_SOUNDCARD_H)
4844 #include <sys/soundcard.h>
4845 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4846 #include <machine/soundcard.h>
4847 #elif defined(HAVE_SOUNDCARD_H)
4848 #include <soundcard.h>
4854 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4855 #if !defined(SNDCTL_SEQ_SYNC)
4856 #error No open sound system MIDI interface
4861 if { (eval echo configure:4862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4863 ac_cv_c_opensoundsystem_midi="yes"
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4868 ac_cv_c_opensoundsystem_midi="no"
4873 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4875 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4877 cat >> confdefs.h <<\EOF
4878 #define HAVE_OSS_MIDI 1
4883 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4886 echo $ac_n "checking "whether mmap64 works defined as mmap"""... $ac_c" 1>&6
4887 echo "configure:4888: checking "whether mmap64 works defined as mmap"" >&5
4888 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 if test "$cross_compiling" = yes; then
4892 ac_cv_mmap64_works="no"
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4898 #define _FILE_OFFSET_BITS 64
4902 #include <sys/mman.h>
4905 int main(int argc,char **argv) {
4906 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4907 if (fd == -1) exit(1);
4909 unlink("conftest.map");
4913 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4919 fprintf(stderr,"success!\n");
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4927 ac_cv_mmap64_works="yes"
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4932 ac_cv_mmap64_works="no"
4939 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
4941 if test "$ac_cv_mmap64_works" = "yes"
4943 cat >> confdefs.h <<\EOF
4944 #define _FILE_OFFSET_BITS 64
4950 if test "x${GCC}" = "xyes"
4952 CFLAGS="$CFLAGS -Wall"
4953 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4954 echo "configure:4955: checking "for gcc strength-reduce bug"" >&5
4955 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4958 if test "$cross_compiling" = yes; then
4959 ac_cv_c_gcc_strength_bug="yes"
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4965 int L[4] = {0,1,2,3};
4967 static int Array[3];
4970 for(i=0; i<B; i++) Array[i] = i - 3;
4971 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4974 exit( Array[1] != -2 || L[2] != 3);
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4979 ac_cv_c_gcc_strength_bug="no"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 ac_cv_c_gcc_strength_bug="yes"
4991 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4992 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4994 CFLAGS="$CFLAGS -fno-strength-reduce"
4997 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
4998 echo "configure:4999: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
4999 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 saved_cflags=$CFLAGS
5003 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5012 if { (eval echo configure:5013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5014 ac_cv_c_gcc_stack_boundary="yes"
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5019 ac_cv_c_gcc_stack_boundary="no"
5022 CFLAGS=$saved_cflags
5026 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5027 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5029 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5034 echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
5035 echo "configure:5036: checking "whether .type must sit inside a .def directive"" >&5
5036 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5040 LIBS="conftest_asm.s $LIBS"
5041 cat > conftest_asm.s <<EOF
5043 .def _ac_test; .scl 2; .type 32; .endef
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 ac_cv_c_type_in_def="yes"
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 ac_cv_c_type_in_def="no"
5068 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5069 if test "$ac_cv_c_type_in_def" = "yes"
5071 cat >> confdefs.h <<\EOF
5072 #define NEED_TYPE_IN_DEF 1
5078 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
5079 echo "configure:5080: checking "whether external symbols need an underscore prefix"" >&5
5080 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5081 echo $ac_n "(cached) $ac_c" 1>&6
5084 LIBS="conftest_asm.s $LIBS"
5085 cat > conftest_asm.s <<EOF
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5095 if (ac_test) return 1
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 ac_cv_c_extern_prefix="yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 ac_cv_c_extern_prefix="no"
5111 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5112 if test "$ac_cv_c_extern_prefix" = "yes"
5114 cat >> confdefs.h <<\EOF
5115 #define NEED_UNDERSCORE_PREFIX 1
5121 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
5122 echo "configure:5123: checking "whether assembler accepts .string"" >&5
5123 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5127 LIBS="conftest_asm.s $LIBS"
5128 cat > conftest_asm.s <<EOF
5131 cat > conftest.$ac_ext <<EOF
5132 #line 5133 "configure"
5133 #include "confdefs.h"
5139 if { (eval echo configure:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5141 ac_cv_c_asm_string="yes"
5143 echo "configure: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5146 ac_cv_c_asm_string="no"
5152 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5153 if test "$ac_cv_c_asm_string" = "yes"
5155 cat >> confdefs.h <<\EOF
5156 #define HAVE_ASM_STRING 1
5164 if test "$LIBEXT" = "so"
5166 echo $ac_n "checking "whether we can build a GNU style ELF dll"""... $ac_c" 1>&6
5167 echo "configure:5168: checking "whether we can build a GNU style ELF dll"" >&5
5168 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 saved_cflags=$CFLAGS
5172 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5173 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183 ac_cv_c_dll_gnuelf="yes"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 ac_cv_c_dll_gnuelf="no"
5191 CFLAGS=$saved_cflags
5195 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5196 if test "$ac_cv_c_dll_gnuelf" = "yes"
5198 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5199 LDDLLFLAGS="-Wl,-Bsymbolic"
5201 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5202 echo "configure:5203: checking whether we can build a UnixWare (Solaris) dll" >&5
5203 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 saved_cflags=$CFLAGS
5207 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5216 if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5218 ac_cv_c_dll_unixware="yes"
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5223 ac_cv_c_dll_unixware="no"
5226 CFLAGS=$saved_cflags
5230 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5231 if test "$ac_cv_c_dll_unixware" = "yes"
5233 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5234 LDDLLFLAGS="-Wl,-B,symbolic"
5237 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5240 if test "$DLLWRAP" = "dllwrap"; then
5241 if test "$CYGWIN" = "yes"; then
5242 echo "*** use dllwrap for building shared library."
5249 if test "$LIBEXT" = "a"; then
5250 echo "*** It is currently not possible to build WINE without shared"
5251 echo "*** library (.so) support to allow transparent switch between .so"
5252 echo "*** and .dll files."
5253 echo "*** If you are using Linux, you will need a newer binutils."
5260 if test "$LIBEXT" = "so"; then
5262 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5263 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5264 elif test "$LIBEXT" = "dll"; then
5265 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5266 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5267 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5269 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
5270 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
5271 echo "configure:5272: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
5272 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 saved_cflags=$CFLAGS
5276 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 ac_cv_c_whole_archive="yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 ac_cv_c_whole_archive="no"
5295 CFLAGS=$saved_cflags
5299 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
5300 if test "$ac_cv_c_whole_archive" = "yes"
5302 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
5304 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
5305 echo "configure:5306: checking whether the linker supports -z {all,default}extract (Linux)" >&5
5306 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 saved_cflags=$CFLAGS
5310 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5319 if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5321 ac_cv_c_allextract="yes"
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 ac_cv_c_allextract="no"
5329 CFLAGS=$saved_cflags
5333 echo "$ac_t""$ac_cv_c_allextract" 1>&6
5334 if test "$ac_cv_c_allextract" = "yes"
5336 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
5351 wine_cv_libc_reentrant=no
5353 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5354 echo "configure:5355: checking for reentrant libc: __errno_location" >&5
5355 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5358 if test "$cross_compiling" = yes; then
5359 wine_cv_libc_r___errno_location=yes
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5366 int *__errno_location(){return &myerrno;}
5367 main(){connect(0,buf,255); exit(!myerrno);}
5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5371 wine_cv_libc_r___errno_location=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 wine_cv_libc_r___errno_location=no
5384 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5385 if test "$wine_cv_libc_r___errno_location" = "yes"
5387 wine_cv_libc_reentrant=__errno_location
5391 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5392 echo "configure:5393: checking for reentrant libc: __error" >&5
5393 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 if test "$cross_compiling" = yes; then
5397 wine_cv_libc_r___error=yes
5399 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5404 int *__error(){return &myerrno;}
5405 main(){connect(0,buf,255); exit(!myerrno);}
5407 if { (eval echo configure:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5409 wine_cv_libc_r___error=yes
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5414 wine_cv_libc_r___error=no
5422 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5423 if test "$wine_cv_libc_r___error" = "yes"
5425 wine_cv_libc_reentrant=__error
5429 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5430 echo "configure:5431: checking for reentrant libc: ___errno" >&5
5431 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 if test "$cross_compiling" = yes; then
5435 wine_cv_libc_r____errno=yes
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5442 int *___errno(){return &myerrno;}
5443 main(){connect(0,buf,255); exit(!myerrno);}
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5447 wine_cv_libc_r____errno=yes
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 wine_cv_libc_r____errno=no
5460 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5461 if test "$wine_cv_libc_r____errno" = "yes"
5463 wine_cv_libc_reentrant=___errno
5467 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5468 echo "configure:5469: checking for reentrant libc: __thr_errno" >&5
5469 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5472 if test "$cross_compiling" = yes; then
5473 wine_cv_libc_r___thr_errno=yes
5475 cat > conftest.$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5480 int *__thr_errno(){return &myerrno;}
5481 main(){connect(0,buf,255); exit(!myerrno);}
5483 if { (eval echo configure:5484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5485 wine_cv_libc_r___thr_errno=yes
5487 echo "configure: failed program was:" >&5
5488 cat conftest.$ac_ext >&5
5490 wine_cv_libc_r___thr_errno=no
5498 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5499 if test "$wine_cv_libc_r___thr_errno" = "yes"
5501 wine_cv_libc_reentrant=__thr_errno
5505 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5506 echo "configure:5507: checking for reentrant libc: __errno" >&5
5507 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5510 if test "$cross_compiling" = yes; then
5511 wine_cv_libc_r___errno=yes
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5518 int *__errno(){return &myerrno;}
5519 main(){connect(0,buf,255); exit(!myerrno);}
5521 if { (eval echo configure:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5523 wine_cv_libc_r___errno=yes
5525 echo "configure: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5528 wine_cv_libc_r___errno=no
5536 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5537 if test "$wine_cv_libc_r___errno" = "yes"
5539 wine_cv_libc_reentrant=__errno
5543 if test "$wine_cv_libc_reentrant" != "no"
5545 cat >> confdefs.h <<EOF
5546 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5552 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5554 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
5555 echo "configure:5556: checking "for reentrant X libraries"" >&5
5556 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 if test "x$with_reentrant_x" = "xno"
5561 wine_cv_x_reentrant=no
5564 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5565 if test -r $dir/libX11.so; then
5566 libX11_check="-D $dir/libX11.so"
5569 if test -r $dir/libX11.a; then
5570 libX11_check="$dir/libX11.a"
5574 if test "$libX11_check" != "none"; then
5575 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5577 wine_cv_x_reentrant=yes
5579 wine_cv_x_reentrant=no
5582 wine_cv_x_reentrant=unknown
5587 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5589 wine_cv_x_reentrant=no
5591 if test "$wine_cv_x_reentrant" = "no"
5593 cat >> confdefs.h <<\EOF
5594 #define NO_REENTRANT_X11 1
5601 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5602 # for constant arguments. Useless!
5603 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5604 echo "configure:5605: checking for working alloca.h" >&5
5605 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5613 char *p = alloca(2 * sizeof(int));
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5618 ac_cv_header_alloca_h=yes
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5623 ac_cv_header_alloca_h=no
5628 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5629 if test $ac_cv_header_alloca_h = yes; then
5630 cat >> confdefs.h <<\EOF
5631 #define HAVE_ALLOCA_H 1
5636 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5637 echo "configure:5638: checking for alloca" >&5
5638 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5646 # define alloca __builtin_alloca
5649 # include <malloc.h>
5650 # define alloca _alloca
5653 # include <alloca.h>
5658 # ifndef alloca /* predefined by HP cc +Olibcalls */
5667 char *p = (char *) alloca(1);
5670 if { (eval echo configure:5671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5672 ac_cv_func_alloca_works=yes
5674 echo "configure: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5677 ac_cv_func_alloca_works=no
5682 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5683 if test $ac_cv_func_alloca_works = yes; then
5684 cat >> confdefs.h <<\EOF
5685 #define HAVE_ALLOCA 1
5690 if test $ac_cv_func_alloca_works = no; then
5691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5692 # that cause trouble. Some versions do not even contain alloca or
5693 # contain a buggy version. If you still want to use their alloca,
5694 # use ar to extract alloca.o from them instead of compiling alloca.c.
5695 ALLOCA=alloca.${ac_objext}
5696 cat >> confdefs.h <<\EOF
5701 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5702 echo "configure:5703: checking whether alloca needs Cray hooks" >&5
5703 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 #if defined(CRAY) && ! defined(CRAY2)
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 egrep "webecray" >/dev/null 2>&1; then
5728 echo "$ac_t""$ac_cv_os_cray" 1>&6
5729 if test $ac_cv_os_cray = yes; then
5730 for ac_func in _getb67 GETB67 getb67; do
5731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_func" >&5
5733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func(); below. */
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5749 /* The GNU C library defines this for functions which it implements
5750 to always fail with ENOSYS. Some functions are actually named
5751 something starting with __ and the normal name is an alias. */
5752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 eval "ac_cv_func_$ac_func=yes"
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 eval "ac_cv_func_$ac_func=no"
5772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5773 echo "$ac_t""yes" 1>&6
5774 cat >> confdefs.h <<EOF
5775 #define CRAY_STACKSEG_END $ac_func
5780 echo "$ac_t""no" 1>&6
5786 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5787 echo "configure:5788: checking stack direction for C alloca" >&5
5788 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5791 if test "$cross_compiling" = yes; then
5792 ac_cv_c_stack_direction=0
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 find_stack_direction ()
5799 static char *addr = 0;
5804 return find_stack_direction ();
5807 return (&dummy > addr) ? 1 : -1;
5811 exit (find_stack_direction() < 0);
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5816 ac_cv_c_stack_direction=1
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5821 ac_cv_c_stack_direction=-1
5828 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5829 cat >> confdefs.h <<EOF
5830 #define STACK_DIRECTION $ac_cv_c_stack_direction
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5904 eval "ac_cv_func_$ac_func=yes"
5906 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5909 eval "ac_cv_func_$ac_func=no"
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h <<EOF
5918 #define $ac_tr_func 1
5922 echo "$ac_t""no" 1>&6
5944 netinet/in_systm.h \
5983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_hdr" >&5
5986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5995 { (eval echo configure:5996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5997 if test -z "$ac_err"; then
5999 eval "ac_cv_header_$ac_safe=yes"
6002 echo "configure: failed program was:" >&5
6003 cat conftest.$ac_ext >&5
6005 eval "ac_cv_header_$ac_safe=no"
6009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6012 cat >> confdefs.h <<EOF
6013 #define $ac_tr_hdr 1
6017 echo "$ac_t""no" 1>&6
6021 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6022 echo "configure:6023: checking whether stat file-mode macros are broken" >&5
6023 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6029 #include <sys/types.h>
6030 #include <sys/stat.h>
6032 #if defined(S_ISBLK) && defined(S_IFDIR)
6033 # if S_ISBLK (S_IFDIR)
6038 #if defined(S_ISBLK) && defined(S_IFCHR)
6039 # if S_ISBLK (S_IFCHR)
6044 #if defined(S_ISLNK) && defined(S_IFREG)
6045 # if S_ISLNK (S_IFREG)
6050 #if defined(S_ISSOCK) && defined(S_IFREG)
6051 # if S_ISSOCK (S_IFREG)
6057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6058 egrep "You lose" >/dev/null 2>&1; then
6060 ac_cv_header_stat_broken=yes
6063 ac_cv_header_stat_broken=no
6069 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6070 if test $ac_cv_header_stat_broken = yes; then
6071 cat >> confdefs.h <<\EOF
6072 #define STAT_MACROS_BROKEN 1
6079 echo $ac_n "checking for working const""... $ac_c" 1>&6
6080 echo "configure:6081: checking for working const" >&5
6081 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6090 /* Ultrix mips cc rejects this. */
6091 typedef int charset[2]; const charset x;
6092 /* SunOS 4.1.1 cc rejects this. */
6093 char const *const *ccp;
6095 /* NEC SVR4.0.2 mips cc rejects this. */
6096 struct point {int x, y;};
6097 static struct point const zero = {0,0};
6098 /* AIX XL C 1.02.0.0 rejects this.
6099 It does not let you subtract one const X* pointer from another in an arm
6100 of an if-expression whose if-part is not a constant expression */
6101 const char *g = "string";
6102 ccp = &g + (g ? g-g : 0);
6103 /* HPUX 7.0 cc rejects these. */
6106 ccp = (char const *const *) p;
6107 { /* SCO 3.2v4 cc rejects this. */
6109 char const *s = 0 ? (char *) 0 : (char const *) 0;
6113 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6115 const int *foo = &x[0];
6118 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6119 typedef const int *iptr;
6123 { /* AIX XL C 1.02.0.0 rejects this saying
6124 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6125 struct s { int j; const int *ap[3]; };
6126 struct s *b; b->j = 5;
6128 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6134 if { (eval echo configure:6135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6146 echo "$ac_t""$ac_cv_c_const" 1>&6
6147 if test $ac_cv_c_const = no; then
6148 cat >> confdefs.h <<\EOF
6154 echo $ac_n "checking for inline""... $ac_c" 1>&6
6155 echo "configure:6156: checking for inline" >&5
6156 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6160 for ac_kw in inline __inline__ __inline; do
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6169 if { (eval echo configure:6170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6171 ac_cv_c_inline=$ac_kw; break
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6181 echo "$ac_t""$ac_cv_c_inline" 1>&6
6182 case "$ac_cv_c_inline" in
6184 no) cat >> confdefs.h <<\EOF
6188 *) cat >> confdefs.h <<EOF
6189 #define inline $ac_cv_c_inline
6194 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6195 echo "configure:6196: checking for ANSI C header files" >&5
6196 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6208 { (eval echo configure:6209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6210 if test -z "$ac_err"; then
6212 ac_cv_header_stdc=yes
6215 echo "configure: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6218 ac_cv_header_stdc=no
6222 if test $ac_cv_header_stdc = yes; then
6223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230 egrep "memchr" >/dev/null 2>&1; then
6234 ac_cv_header_stdc=no
6240 if test $ac_cv_header_stdc = yes; then
6241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6242 cat > conftest.$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 egrep "free" >/dev/null 2>&1; then
6252 ac_cv_header_stdc=no
6258 if test $ac_cv_header_stdc = yes; then
6259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6260 if test "$cross_compiling" = yes; then
6263 cat > conftest.$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6267 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6268 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6270 int main () { int i; for (i = 0; i < 256; i++)
6271 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6279 echo "configure: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6282 ac_cv_header_stdc=no
6290 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6291 if test $ac_cv_header_stdc = yes; then
6292 cat >> confdefs.h <<\EOF
6293 #define STDC_HEADERS 1
6298 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6299 echo "configure:6300: checking for size_t" >&5
6300 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 #include <sys/types.h>
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6315 ac_cv_type_size_t=yes
6318 ac_cv_type_size_t=no
6323 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6324 if test $ac_cv_type_size_t = no; then
6325 cat >> confdefs.h <<\EOF
6326 #define size_t unsigned
6331 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6332 echo "configure:6333: checking size of long long" >&5
6333 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6336 if test "$cross_compiling" = yes; then
6337 ac_cv_sizeof_long_long=0
6339 cat > conftest.$ac_ext <<EOF
6340 #line 6341 "configure"
6341 #include "confdefs.h"
6343 #include <sys/types.h>
6346 FILE *f=fopen("conftestval", "w");
6348 fprintf(f, "%d\n", sizeof(long long));
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6354 ac_cv_sizeof_long_long=`cat conftestval`
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6359 ac_cv_sizeof_long_long=0
6365 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6366 cat >> confdefs.h <<EOF
6367 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6372 echo $ac_n "checking "whether linux/input.h is for real"""... $ac_c" 1>&6
6373 echo "configure:6374: checking "whether linux/input.h is for real"" >&5
6374 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6381 #include <linux/input.h>
6385 int foo = EVIOCGBIT(EV_ABS,42);
6386 int bar = BTN_PINKIE;
6391 if { (eval echo configure:6392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6393 wine_cv_linux_input_h=yes
6395 echo "configure: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 wine_cv_linux_input_h=no
6404 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6405 if test "$wine_cv_linux_input_h" = "yes"
6407 cat >> confdefs.h <<\EOF
6408 #define HAVE_CORRECT_LINUXINPUT_H 1
6414 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
6415 echo "configure:6416: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
6416 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6429 struct hostent *result;
6436 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6437 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6441 if { (eval echo configure:6442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6443 wine_cv_linux_gethostbyname_r_6=yes
6445 echo "configure: failed program was:" >&5
6446 cat conftest.$ac_ext >&5
6448 wine_cv_linux_gethostbyname_r_6=no
6455 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6456 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6458 cat >> confdefs.h <<\EOF
6459 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6464 if test "$ac_cv_header_linux_joystick_h" = "yes"
6466 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
6467 echo "configure:6468: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
6468 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6471 cat > conftest.$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6475 #include <sys/ioctl.h>
6476 #include <linux/joystick.h>
6478 struct js_event blub;
6479 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6480 #error "no 2.2 header"
6487 if { (eval echo configure:6488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6489 wine_cv_linux_joystick_22_api=yes
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 wine_cv_linux_joystick_22_api=no
6500 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6501 if test "$wine_cv_linux_joystick_22_api" = "yes"
6503 cat >> confdefs.h <<\EOF
6504 #define HAVE_LINUX_22_JOYSTICK_API 1
6511 if test "$ac_cv_header_sys_vfs_h" = "yes"
6513 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
6514 echo "configure:6515: checking "whether sys/vfs.h defines statfs"" >&5
6515 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6522 #include <sys/types.h>
6523 #ifdef HAVE_SYS_PARAM_H
6524 # include <sys/param.h>
6526 #include <sys/vfs.h>
6532 memset(&stfs,0,sizeof(stfs));
6536 if { (eval echo configure:6537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6538 wine_cv_sys_vfs_has_statfs=yes
6540 echo "configure: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 wine_cv_sys_vfs_has_statfs=no
6550 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6551 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6553 cat >> confdefs.h <<\EOF
6554 #define STATFS_DEFINED_BY_SYS_VFS 1
6560 if test "$ac_cv_header_sys_statfs_h" = "yes"
6562 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
6563 echo "configure:6564: checking "whether sys/statfs.h defines statfs"" >&5
6564 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6571 #include <sys/types.h>
6572 #ifdef HAVE_SYS_PARAM_H
6573 # include <sys/param.h>
6575 #include <sys/statfs.h>
6583 if { (eval echo configure:6584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6585 wine_cv_sys_statfs_has_statfs=yes
6587 echo "configure: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6590 wine_cv_sys_statfs_has_statfs=no
6597 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6598 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6600 cat >> confdefs.h <<\EOF
6601 #define STATFS_DEFINED_BY_SYS_STATFS 1
6607 if test "$ac_cv_header_sys_mount_h" = "yes"
6609 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
6610 echo "configure:6611: checking "whether sys/mount.h defines statfs"" >&5
6611 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6618 #include <sys/types.h>
6619 #ifdef HAVE_SYS_PARAM_H
6620 # include <sys/param.h>
6622 #include <sys/mount.h>
6630 if { (eval echo configure:6631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6632 wine_cv_sys_mount_has_statfs=yes
6634 echo "configure: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6637 wine_cv_sys_mount_has_statfs=no
6644 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6645 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6647 cat >> confdefs.h <<\EOF
6648 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6655 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
6656 echo "configure:6657: checking "for statfs.f_bfree"" >&5
6657 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6660 if test "x$statfs_bfree" = "xno"
6662 wine_cv_statfs_bfree=no
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6668 #include <sys/types.h>
6669 #ifdef HAVE_SYS_PARAM_H
6670 # include <sys/param.h>
6672 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6673 # include <sys/mount.h>
6675 # ifdef STATFS_DEFINED_BY_SYS_VFS
6676 # include <sys/vfs.h>
6678 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6679 # include <sys/statfs.h>
6692 if { (eval echo configure:6693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6694 wine_cv_statfs_bfree=yes
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6699 wine_cv_statfs_bfree=no
6706 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6707 if test "$wine_cv_statfs_bfree" = "yes"
6709 cat >> confdefs.h <<\EOF
6710 #define STATFS_HAS_BFREE 1
6715 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
6716 echo "configure:6717: checking "for statfs.f_bavail"" >&5
6717 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 if test "x$statfs_bavail" = "xno"
6722 wine_cv_statfs_bavail=no
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6728 #include <sys/types.h>
6729 #ifdef HAVE_SYS_PARAM_H
6730 # include <sys/param.h>
6732 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6733 # include <sys/mount.h>
6735 # ifdef STATFS_DEFINED_BY_SYS_VFS
6736 # include <sys/vfs.h>
6738 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6739 # include <sys/statfs.h>
6752 if { (eval echo configure:6753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6754 wine_cv_statfs_bavail=yes
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 wine_cv_statfs_bavail=no
6766 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6767 if test "$wine_cv_statfs_bavail" = "yes"
6769 cat >> confdefs.h <<\EOF
6770 #define STATFS_HAS_BAVAIL 1
6776 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
6777 echo "configure:6778: checking "for msg_accrights in struct msghdr"" >&5
6778 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6784 #include <sys/types.h>
6785 #include <sys/socket.h>
6787 struct msghdr hdr; hdr.msg_accrights=0
6790 if { (eval echo configure:6791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6792 ac_cv_c_msg_accrights="yes"
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6797 ac_cv_c_msg_accrights="no"
6802 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6803 if test "$ac_cv_c_msg_accrights" = "yes"
6805 cat >> confdefs.h <<\EOF
6806 #define HAVE_MSGHDR_ACCRIGHTS 1
6812 echo $ac_n "checking "for sa_len in struct sockaddr"""... $ac_c" 1>&6
6813 echo "configure:6814: checking "for sa_len in struct sockaddr"" >&5
6814 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 #include <sys/types.h>
6821 #include <sys/socket.h>
6824 static struct sockaddr addr; addr.sa_len = 1
6827 if { (eval echo configure:6828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6829 ac_cv_c_sockaddr_sa_len="yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 ac_cv_c_sockaddr_sa_len="no"
6839 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6840 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6842 cat >> confdefs.h <<\EOF
6843 #define HAVE_SOCKADDR_SA_LEN 1
6849 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6850 echo "configure:6851: checking "for sun_len in struct sockaddr_un"" >&5
6851 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 #include <sys/types.h>
6858 #include <sys/socket.h>
6861 static struct sockaddr_un addr; addr.sun_len = 1
6864 if { (eval echo configure:6865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6866 ac_cv_c_sockaddr_sun_len="yes"
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6871 ac_cv_c_sockaddr_sun_len="no"
6876 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6877 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6879 cat >> confdefs.h <<\EOF
6880 #define HAVE_SOCKADDR_SUN_LEN 1
6886 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6887 echo "configure:6888: checking "whether we need to define __i386__"" >&5
6888 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6894 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 egrep "yes" >/dev/null 2>&1; then
6901 ac_cv_cpp_def_i386="yes"
6904 ac_cv_cpp_def_i386="no"
6910 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6911 if test "$ac_cv_cpp_def_i386" = "yes"
6913 CFLAGS="$CFLAGS -D__i386__"
6914 LINTFLAGS="$LINTFLAGS -D__i386__"
6918 if test "$GCC" = "yes"
6920 GCC_NO_BUILTIN="-fno-builtin"
6927 MAKE_RULES=Make.rules
6930 MAKE_DLL_RULES=dlls/Makedll.rules
6933 MAKE_PROG_RULES=programs/Makeprog.rules
6937 cat > confcache <<\EOF
6938 # This file is a shell script that caches the results of configure
6939 # tests run on this system so they can be shared between configure
6940 # scripts and configure runs. It is not useful on other systems.
6941 # If it contains results you don't want to keep, you may remove or edit it.
6943 # By default, configure uses ./config.cache as the cache file,
6944 # creating it if it does not exist already. You can give configure
6945 # the --cache-file=FILE option to use a different cache file; that is
6946 # what configure does when it calls configure scripts in
6947 # subdirectories, so they share the cache.
6948 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6949 # config.status only pays attention to the cache file if you give it the
6950 # --recheck option to rerun configure.
6953 # The following way of writing the cache mishandles newlines in values,
6954 # but we know of no workaround that is simple, portable, and efficient.
6955 # So, don't put newlines in cache variables' values.
6956 # Ultrix sh set writes to stderr and can't be redirected directly,
6957 # and sets the high bit in the cache file unless we assign to the vars.
6959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6961 # `set' does not quote correctly, so add quotes (double-quote substitution
6962 # turns \\\\ into \\, and sed turns \\ into \).
6964 -e "s/'/'\\\\''/g" \
6965 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6968 # `set' quotes correctly as required by POSIX, so do not add quotes.
6969 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6972 if cmp -s $cache_file confcache; then
6975 if test -w $cache_file; then
6976 echo "updating cache $cache_file"
6977 cat confcache > $cache_file
6979 echo "not updating unwritable cache $cache_file"
6984 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6987 # Let make expand exec_prefix.
6988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6990 # Any assignment to VPATH causes Sun make to only execute
6991 # the first set of double-colon rules, so remove it if not needed.
6992 # If there is a colon in the path, we need to keep it.
6993 if test "x$srcdir" = x.; then
6994 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6997 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6999 DEFS=-DHAVE_CONFIG_H
7001 # Without the "./", some shells look in PATH for config.status.
7002 : ${CONFIG_STATUS=./config.status}
7004 echo creating $CONFIG_STATUS
7005 rm -f $CONFIG_STATUS
7006 cat > $CONFIG_STATUS <<EOF
7008 # Generated automatically by configure.
7009 # Run this file to recreate the current configuration.
7010 # This directory was configured as follows,
7011 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7013 # $0 $ac_configure_args
7015 # Compiler output produced by configure, useful for debugging
7016 # configure, is in ./config.log if it exists.
7018 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7021 case "\$ac_option" in
7022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7023 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7024 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7025 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7026 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7028 -help | --help | --hel | --he | --h)
7029 echo "\$ac_cs_usage"; exit 0 ;;
7030 *) echo "\$ac_cs_usage"; exit 1 ;;
7034 ac_given_srcdir=$srcdir
7035 ac_given_INSTALL="$INSTALL"
7037 trap 'rm -fr `echo "
7040 programs/Makeprog.rules
7046 dlls/advapi32/Makefile
7047 dlls/avifil32/Makefile
7048 dlls/comctl32/Makefile
7049 dlls/commdlg/Makefile
7050 dlls/crtdll/Makefile
7051 dlls/dciman32/Makefile
7053 dlls/dinput/Makefile
7055 dlls/dplayx/Makefile
7056 dlls/dsound/Makefile
7060 dlls/imagehlp/Makefile
7062 dlls/kernel/Makefile
7063 dlls/lzexpand/Makefile
7066 dlls/msnet32/Makefile
7067 dlls/msvcrt/Makefile
7068 dlls/msvideo/Makefile
7070 dlls/odbc32/Makefile
7072 dlls/oleaut32/Makefile
7073 dlls/olecli/Makefile
7074 dlls/oledlg/Makefile
7075 dlls/olepro32/Makefile
7076 dlls/olesvr/Makefile
7077 dlls/opengl32/Makefile
7079 dlls/quartz/Makefile
7080 dlls/rasapi32/Makefile
7081 dlls/richedit/Makefile
7082 dlls/rpcrt4/Makefile
7083 dlls/serialui/Makefile
7084 dlls/setupapi/Makefile
7085 dlls/shdocvw/Makefile
7086 dlls/shell32/Makefile
7087 dlls/shfolder/Makefile
7088 dlls/shlwapi/Makefile
7089 dlls/tapi32/Makefile
7090 dlls/ttydrv/Makefile
7091 dlls/urlmon/Makefile
7093 dlls/version/Makefile
7094 dlls/win32s/Makefile
7095 dlls/winaspi/Makefile
7096 dlls/winedos/Makefile
7097 dlls/wineps/Makefile
7098 dlls/wininet/Makefile
7100 dlls/winmm/joystick/Makefile
7101 dlls/winmm/mcianim/Makefile
7102 dlls/winmm/mciavi/Makefile
7103 dlls/winmm/mcicda/Makefile
7104 dlls/winmm/mciseq/Makefile
7105 dlls/winmm/mciwave/Makefile
7106 dlls/winmm/midimap/Makefile
7107 dlls/winmm/wavemap/Makefile
7108 dlls/winmm/wineoss/Makefile
7109 dlls/winnls/Makefile
7110 dlls/winsock/Makefile
7111 dlls/winspool/Makefile
7112 dlls/wintrust/Makefile
7114 dlls/wsock32/Makefile
7115 dlls/x11drv/Makefile
7116 documentation/Makefile
7117 documentation/wine.conf.man
7118 documentation/wine.man
7121 graphics/enhmetafiledrv/Makefile
7122 graphics/metafiledrv/Makefile
7123 graphics/win16drv/Makefile
7124 graphics/x11drv/Makefile
7139 programs/avitools/Makefile
7140 programs/clock/Makefile
7141 programs/cmdlgtst/Makefile
7142 programs/control/Makefile
7143 programs/notepad/Makefile
7144 programs/osversioncheck/Makefile
7145 programs/progman/Makefile
7146 programs/regapi/Makefile
7147 programs/regtest/Makefile
7148 programs/uninstaller/Makefile
7149 programs/view/Makefile
7150 programs/wcmd/Makefile
7151 programs/winemine/Makefile
7152 programs/winetest/Makefile
7153 programs/winhelp/Makefile
7154 programs/winver/Makefile
7159 tools/winapi/Makefile
7160 tools/winebuild/Makefile
7161 tools/winedump/Makefile
7169 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7171 cat >> $CONFIG_STATUS <<EOF
7173 # Protect against being on the right side of a sed subst in config.status.
7174 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7175 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7179 s%@CFLAGS@%$CFLAGS%g
7180 s%@CPPFLAGS@%$CPPFLAGS%g
7181 s%@CXXFLAGS@%$CXXFLAGS%g
7182 s%@FFLAGS@%$FFLAGS%g
7184 s%@LDFLAGS@%$LDFLAGS%g
7186 s%@exec_prefix@%$exec_prefix%g
7187 s%@prefix@%$prefix%g
7188 s%@program_transform_name@%$program_transform_name%g
7189 s%@bindir@%$bindir%g
7190 s%@sbindir@%$sbindir%g
7191 s%@libexecdir@%$libexecdir%g
7192 s%@datadir@%$datadir%g
7193 s%@sysconfdir@%$sysconfdir%g
7194 s%@sharedstatedir@%$sharedstatedir%g
7195 s%@localstatedir@%$localstatedir%g
7196 s%@libdir@%$libdir%g
7197 s%@includedir@%$includedir%g
7198 s%@oldincludedir@%$oldincludedir%g
7199 s%@infodir@%$infodir%g
7200 s%@mandir@%$mandir%g
7201 s%@OPTIONS@%$OPTIONS%g
7202 s%@SET_MAKE@%$SET_MAKE%g
7205 s%@X_CFLAGS@%$X_CFLAGS%g
7206 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7207 s%@X_LIBS@%$X_LIBS%g
7208 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7211 s%@LEXLIB@%$LEXLIB%g
7213 s%@RANLIB@%$RANLIB%g
7214 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7215 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7216 s%@INSTALL_DATA@%$INSTALL_DATA%g
7219 s%@LDCONFIG@%$LDCONFIG%g
7220 s%@DLLWRAP@%$DLLWRAP%g
7222 s%@LINTFLAGS@%$LINTFLAGS%g
7223 s%@LDCOMBINE@%$LDCOMBINE%g
7224 s%@JPEGLIB@%$JPEGLIB%g
7226 s%@X_DLLS@%$X_DLLS%g
7227 s%@XFILES@%$XFILES%g
7228 s%@OPENGLFILES@%$OPENGLFILES%g
7229 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
7230 s%@GLU32FILES@%$GLU32FILES%g
7231 s%@GLU32_DLL@%$GLU32_DLL%g
7232 s%@CUPSLIBS@%$CUPSLIBS%g
7233 s%@ft_devel@%$ft_devel%g
7234 s%@ft_devel2@%$ft_devel2%g
7235 s%@FREETYPELIBS@%$FREETYPELIBS%g
7236 s%@FREETYPEINCL@%$FREETYPEINCL%g
7237 s%@DLL_LINK@%$DLL_LINK%g
7238 s%@DLLFLAGS@%$DLLFLAGS%g
7239 s%@LDSHARED@%$LDSHARED%g
7240 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7241 s%@LIBEXT@%$LIBEXT%g
7242 s%@LDPATH@%$LDPATH%g
7243 s%@ALLOCA@%$ALLOCA%g
7244 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7245 /@MAKE_RULES@/r $MAKE_RULES
7247 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7248 s%@MAKE_DLL_RULES@%%g
7249 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7250 s%@MAKE_PROG_RULES@%%g
7255 cat >> $CONFIG_STATUS <<\EOF
7257 # Split the substitutions into bite-sized pieces for seds with
7258 # small command number limits, like on Digital OSF/1 and HP-UX.
7259 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7260 ac_file=1 # Number of current file.
7261 ac_beg=1 # First line for current file.
7262 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7265 while $ac_more_lines; do
7266 if test $ac_beg -gt 1; then
7267 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7269 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7271 if test ! -s conftest.s$ac_file; then
7273 rm -f conftest.s$ac_file
7275 if test -z "$ac_sed_cmds"; then
7276 ac_sed_cmds="sed -f conftest.s$ac_file"
7278 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7280 ac_file=`expr $ac_file + 1`
7282 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7285 if test -z "$ac_sed_cmds"; then
7290 cat >> $CONFIG_STATUS <<EOF
7292 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7294 programs/Makeprog.rules
7300 dlls/advapi32/Makefile
7301 dlls/avifil32/Makefile
7302 dlls/comctl32/Makefile
7303 dlls/commdlg/Makefile
7304 dlls/crtdll/Makefile
7305 dlls/dciman32/Makefile
7307 dlls/dinput/Makefile
7309 dlls/dplayx/Makefile
7310 dlls/dsound/Makefile
7314 dlls/imagehlp/Makefile
7316 dlls/kernel/Makefile
7317 dlls/lzexpand/Makefile
7320 dlls/msnet32/Makefile
7321 dlls/msvcrt/Makefile
7322 dlls/msvideo/Makefile
7324 dlls/odbc32/Makefile
7326 dlls/oleaut32/Makefile
7327 dlls/olecli/Makefile
7328 dlls/oledlg/Makefile
7329 dlls/olepro32/Makefile
7330 dlls/olesvr/Makefile
7331 dlls/opengl32/Makefile
7333 dlls/quartz/Makefile
7334 dlls/rasapi32/Makefile
7335 dlls/richedit/Makefile
7336 dlls/rpcrt4/Makefile
7337 dlls/serialui/Makefile
7338 dlls/setupapi/Makefile
7339 dlls/shdocvw/Makefile
7340 dlls/shell32/Makefile
7341 dlls/shfolder/Makefile
7342 dlls/shlwapi/Makefile
7343 dlls/tapi32/Makefile
7344 dlls/ttydrv/Makefile
7345 dlls/urlmon/Makefile
7347 dlls/version/Makefile
7348 dlls/win32s/Makefile
7349 dlls/winaspi/Makefile
7350 dlls/winedos/Makefile
7351 dlls/wineps/Makefile
7352 dlls/wininet/Makefile
7354 dlls/winmm/joystick/Makefile
7355 dlls/winmm/mcianim/Makefile
7356 dlls/winmm/mciavi/Makefile
7357 dlls/winmm/mcicda/Makefile
7358 dlls/winmm/mciseq/Makefile
7359 dlls/winmm/mciwave/Makefile
7360 dlls/winmm/midimap/Makefile
7361 dlls/winmm/wavemap/Makefile
7362 dlls/winmm/wineoss/Makefile
7363 dlls/winnls/Makefile
7364 dlls/winsock/Makefile
7365 dlls/winspool/Makefile
7366 dlls/wintrust/Makefile
7368 dlls/wsock32/Makefile
7369 dlls/x11drv/Makefile
7370 documentation/Makefile
7371 documentation/wine.conf.man
7372 documentation/wine.man
7375 graphics/enhmetafiledrv/Makefile
7376 graphics/metafiledrv/Makefile
7377 graphics/win16drv/Makefile
7378 graphics/x11drv/Makefile
7393 programs/avitools/Makefile
7394 programs/clock/Makefile
7395 programs/cmdlgtst/Makefile
7396 programs/control/Makefile
7397 programs/notepad/Makefile
7398 programs/osversioncheck/Makefile
7399 programs/progman/Makefile
7400 programs/regapi/Makefile
7401 programs/regtest/Makefile
7402 programs/uninstaller/Makefile
7403 programs/view/Makefile
7404 programs/wcmd/Makefile
7405 programs/winemine/Makefile
7406 programs/winetest/Makefile
7407 programs/winhelp/Makefile
7408 programs/winver/Makefile
7413 tools/winapi/Makefile
7414 tools/winebuild/Makefile
7415 tools/winedump/Makefile
7423 windows/x11drv/Makefile "}
7425 cat >> $CONFIG_STATUS <<\EOF
7426 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7429 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7430 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7431 *) ac_file_in="${ac_file}.in" ;;
7434 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7436 # Remove last slash and all that follows it. Not all systems have dirname.
7437 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7438 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7439 # The file is in a subdirectory.
7440 test ! -d "$ac_dir" && mkdir "$ac_dir"
7441 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7442 # A "../" for each directory in $ac_dir_suffix.
7443 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7445 ac_dir_suffix= ac_dots=
7448 case "$ac_given_srcdir" in
7450 if test -z "$ac_dots"; then top_srcdir=.
7451 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7452 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7454 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7455 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7458 case "$ac_given_INSTALL" in
7459 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7460 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7463 echo creating "$ac_file"
7465 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7467 *Makefile*) ac_comsub="1i\\
7468 # $configure_input" ;;
7472 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7474 s%@configure_input@%$configure_input%g
7475 s%@srcdir@%$srcdir%g
7476 s%@top_srcdir@%$top_srcdir%g
7477 s%@INSTALL@%$INSTALL%g
7478 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7482 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7483 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7485 # ac_d sets the value in "#define NAME VALUE" lines.
7486 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7487 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7490 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7491 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7492 ac_uB='\([ ]\)%\1#\2define\3'
7495 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7496 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7497 ac_eB='$%\1#\2define\3'
7501 if test "${CONFIG_HEADERS+set}" != set; then
7503 cat >> $CONFIG_STATUS <<EOF
7504 CONFIG_HEADERS="include/config.h"
7506 cat >> $CONFIG_STATUS <<\EOF
7508 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7511 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7512 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7513 *) ac_file_in="${ac_file}.in" ;;
7516 echo creating $ac_file
7518 rm -f conftest.frag conftest.in conftest.out
7519 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7520 cat $ac_file_inputs > conftest.in
7524 # Transform confdefs.h into a sed script conftest.vals that substitutes
7525 # the proper values into config.h.in to produce config.h. And first:
7526 # Protect against being on the right side of a sed subst in config.status.
7527 # Protect against being in an unquoted here document in config.status.
7529 cat > conftest.hdr <<\EOF
7532 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7536 sed -n -f conftest.hdr confdefs.h > conftest.vals
7539 # This sed command replaces #undef with comments. This is necessary, for
7540 # example, in the case of _POSIX_SOURCE, which is predefined and required
7541 # on some systems where configure will not decide to define it.
7542 cat >> conftest.vals <<\EOF
7543 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7546 # Break up conftest.vals because some shells have a limit on
7547 # the size of here documents, and old seds have small limits too.
7552 ac_lines=`grep -c . conftest.vals`
7553 # grep -c gives empty output for an empty file on some AIX systems.
7554 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7555 # Write a limited-size here document to conftest.frag.
7556 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7557 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7559 sed -f conftest.frag conftest.in > conftest.out
7561 mv conftest.out conftest.in
7563 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7565 mv conftest.tail conftest.vals
7569 cat >> $CONFIG_STATUS <<\EOF
7570 rm -f conftest.frag conftest.h
7571 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7572 cat conftest.in >> conftest.h
7574 if cmp -s $ac_file conftest.h 2>/dev/null; then
7575 echo "$ac_file is unchanged"
7578 # Remove last slash and all that follows it. Not all systems have dirname.
7579 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7580 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7581 # The file is in a subdirectory.
7582 test ! -d "$ac_dir" && mkdir "$ac_dir"
7585 mv conftest.h $ac_file
7590 cat >> $CONFIG_STATUS <<EOF
7594 cat >> $CONFIG_STATUS <<\EOF
7597 dlls/ddraw/d3ddevice \
7598 dlls/ddraw/dclipper \
7600 dlls/ddraw/direct3d \
7601 dlls/ddraw/dpalette \
7602 dlls/ddraw/dsurface \
7603 dlls/dinput/joystick \
7604 dlls/dinput/keyboard \
7606 dlls/kernel/messages \
7608 dlls/user/resources \
7611 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7615 chmod +x $CONFIG_STATUS
7616 rm -fr confdefs* $ac_clean_files
7617 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7620 if test "$have_x" = "no"
7623 echo "*** Warning: X development files not found. Wine will be built without"
7624 echo "*** X support, which currently does not work, and would probably not be"
7625 echo "*** what you want anyway. You will need to install devel packages of"
7626 echo "*** Xlib/Xfree86 and Xpm at the very least."
7627 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7630 echo "*** Warning: Xpm development files not found. Wine will be built without"
7631 echo "*** Xpm support, which currently does not work. You will need to install"
7632 echo "*** devel packages of Xpm."
7635 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7638 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7639 echo "*** terminal resize support. Consider upgrading ncurses."
7642 if test "$wine_cv_libc_reentrant" = "no"
7645 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7646 echo "*** thread support. Consider upgrading libc to a more recent"
7647 echo "*** reentrant version of libc."
7650 if test "$wine_cv_opengl_version_OK" = "no"
7653 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7654 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7657 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7660 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7661 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7662 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7663 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7666 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7669 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7670 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7671 echo "*** support before reporting bugs."
7674 if test "$wine_cv_warn_cups_h" = "yes"
7677 echo "*** Note: You have cups runtime libraries, but no development"
7678 echo "*** libraries. Install the cups-devel package or whichever package"
7679 echo "*** contains cups.h to enable CUPS support in WINE."
7682 if test "$wine_cv_msg_freetype" = "yes"
7685 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7686 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7687 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7688 echo "*** enable Wine to use TrueType fonts."
7692 echo "Configure finished. Do 'make depend && make' to compile Wine."