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 OPTIONS
="$OPTIONS -DNO_DEBUG_MSGS"
607 if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
609 OPTIONS
="$OPTIONS -DNO_TRACE_MSGS"
613 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
614 echo "configure:615: checking whether ${MAKE-make} sets \${MAKE}" >&5
615 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
616 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
619 cat > conftestmake
<<\EOF
621 @
echo 'ac_maketemp="${MAKE}"'
623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
624 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
625 if test -n "$ac_maketemp"; then
626 eval ac_cv_prog_make_
${ac_make}_set
=yes
628 eval ac_cv_prog_make_
${ac_make}_set
=no
632 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
633 echo "$ac_t""yes" 1>&6
636 echo "$ac_t""no" 1>&6
637 SET_MAKE
="MAKE=${MAKE-make}"
640 # Extract the first word of "gcc", so it can be a program name with args.
641 set dummy gcc
; ac_word
=$2
642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643 echo "configure:644: checking for $ac_word" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
647 if test -n "$CC"; then
648 ac_cv_prog_CC
="$CC" # Let the user override the test.
650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
652 for ac_dir
in $ac_dummy; do
653 test -z "$ac_dir" && ac_dir
=.
654 if test -f $ac_dir/$ac_word; then
663 if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
666 echo "$ac_t""no" 1>&6
669 if test -z "$CC"; then
670 # Extract the first word of "cc", so it can be a program name with args.
671 set dummy cc
; ac_word
=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$CC"; then
678 ac_cv_prog_CC
="$CC" # Let the user override the test.
680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
683 for ac_dir
in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir
=.
685 if test -f $ac_dir/$ac_word; then
686 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
695 if test $ac_prog_rejected = yes; then
696 # We found a bogon in the path, so make sure we never use it.
697 set dummy
$ac_cv_prog_CC
699 if test $# -gt 0; then
700 # We chose a different compiler from the bogus one.
701 # However, it has the same basename, so the bogon will be chosen
702 # first if we set CC to just the basename; use the full file name.
704 set dummy
"$ac_dir/$ac_word" "$@"
712 if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
715 echo "$ac_t""no" 1>&6
718 if test -z "$CC"; then
721 # Extract the first word of "cl", so it can be a program name with args.
722 set dummy cl
; ac_word
=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 if test -n "$CC"; then
729 ac_cv_prog_CC
="$CC" # Let the user override the test.
731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
733 for ac_dir
in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir
=.
735 if test -f $ac_dir/$ac_word; then
744 if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
747 echo "$ac_t""no" 1>&6
752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp
='$CPP $CPPFLAGS'
761 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling
=$ac_cv_prog_cc_cross
765 cat > conftest.
$ac_ext << EOF
767 #line 768 "configure"
768 #include "confdefs.h"
772 if { (eval echo configure
:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
773 ac_cv_prog_cc_works
=yes
774 # If we can't run a trivial program, we are probably using a cross compiler.
775 if (.
/conftest
; exit) 2>/dev
/null
; then
776 ac_cv_prog_cc_cross
=no
778 ac_cv_prog_cc_cross
=yes
781 echo "configure: failed program was:" >&5
782 cat conftest.
$ac_ext >&5
783 ac_cv_prog_cc_works
=no
787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788 ac_cpp
='$CPP $CPPFLAGS'
789 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791 cross_compiling
=$ac_cv_prog_cc_cross
793 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794 if test $ac_cv_prog_cc_works = no
; then
795 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
797 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
798 echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
799 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800 cross_compiling
=$ac_cv_prog_cc_cross
802 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
803 echo "configure:804: checking whether we are using GNU C" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 cat > conftest.c
<<EOF
812 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
819 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
821 if test $ac_cv_prog_gcc = yes; then
827 ac_test_CFLAGS
="${CFLAGS+set}"
828 ac_save_CFLAGS
="$CFLAGS"
830 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
831 echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 echo 'void f(){}' > conftest.c
836 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
845 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
846 if test "$ac_test_CFLAGS" = set; then
847 CFLAGS
="$ac_save_CFLAGS"
848 elif test $ac_cv_prog_cc_g = yes; then
849 if test "$GCC" = yes; then
855 if test "$GCC" = yes; then
862 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
863 echo "configure:864: checking how to run the C preprocessor" >&5
864 # On Suns, sometimes $CPP names a directory.
865 if test -n "$CPP" && test -d "$CPP"; then
868 if test -z "$CPP"; then
869 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 # This must be in double quotes, not single quotes, because CPP may get
873 # substituted into the Makefile and "${CC-cc}" will confuse make.
875 # On the NeXT, cc -E runs the code through the compiler's parser,
876 # not just through cpp.
877 cat > conftest.
$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
883 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure
:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
890 echo "configure: failed program was:" >&5
891 cat conftest.
$ac_ext >&5
893 CPP
="${CC-cc} -E -traditional-cpp"
894 cat > conftest.
$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
900 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
901 { (eval echo configure
:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
902 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903 if test -z "$ac_err"; then
907 echo "configure: failed program was:" >&5
908 cat conftest.
$ac_ext >&5
910 CPP
="${CC-cc} -nologo -E"
911 cat > conftest.
$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
917 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure
:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
924 echo "configure: failed program was:" >&5
925 cat conftest.
$ac_ext >&5
934 ac_cv_prog_CPP
="$CPP"
936 CPP
="$ac_cv_prog_CPP"
938 ac_cv_prog_CPP
="$CPP"
940 echo "$ac_t""$CPP" 1>&6
942 # If we find X, set shell vars x_includes and x_libraries to the
943 # paths, otherwise set no_x=yes.
944 # Uses ac_ vars as temps to allow command line to override cache and checks.
945 # --without-x overrides everything else, but does not touch the cache.
946 echo $ac_n "checking for X""... $ac_c" 1>&6
947 echo "configure:948: checking for X" >&5
949 # Check whether --with-x or --without-x was given.
950 if test "${with_x+set}" = set; then
955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
956 if test "x$with_x" = xno
; then
957 # The user explicitly disabled X.
960 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
961 # Both variables are already set.
964 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 # One or both of the vars are not set, and there is no cached value.
968 ac_x_includes
=NO ac_x_libraries
=NO
970 if mkdir conftestdir
; then
972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
973 cat > Imakefile
<<'EOF'
975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
977 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
981 for ac_extension
in a so sl
; do
982 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
983 test -f $ac_im_libdir/libX11.
$ac_extension; then
984 ac_im_usrlibdir
=$ac_im_libdir; break
987 # Screen out bogus values from the imake configuration. They are
988 # bogus both because they are the default anyway, and because
989 # using them would break gcc on systems where it needs fixed includes.
990 case "$ac_im_incroot" in
992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
994 case "$ac_im_usrlibdir" in
996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1003 if test "$ac_x_includes" = NO
; then
1004 # Guess where to find include files, by looking for this one X11 .h file.
1005 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1007 # First, try using that file with no special directory specified.
1008 cat > conftest.
$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1011 #include <$x_direct_test_include>
1013 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014 { (eval echo configure
:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1016 if test -z "$ac_err"; then
1018 # We can compile using X headers with no special include directory.
1022 echo "configure: failed program was:" >&5
1023 cat conftest.
$ac_ext >&5
1025 # Look for the header file in a standard set of common directories.
1026 # Check X11 before X11Rn because it is often a symlink to the current release.
1029 /usr
/X11R
6/include \
1030 /usr
/X11R
5/include \
1031 /usr
/X11R
4/include \
1034 /usr
/include
/X11R6 \
1035 /usr
/include
/X11R5 \
1036 /usr
/include
/X11R4 \
1038 /usr
/local
/X11
/include \
1039 /usr
/local
/X11R
6/include \
1040 /usr
/local
/X11R
5/include \
1041 /usr
/local
/X11R
4/include \
1043 /usr
/local
/include
/X11 \
1044 /usr
/local
/include
/X11R6 \
1045 /usr
/local
/include
/X11R5 \
1046 /usr
/local
/include
/X11R4 \
1050 /usr
/XFree86
/include
/X11 \
1053 /usr
/local
/include \
1054 /usr
/unsupported
/include \
1055 /usr
/athena
/include \
1056 /usr
/local
/x11r
5/include \
1057 /usr
/lpp
/Xamples
/include \
1059 /usr
/openwin
/include \
1060 /usr
/openwin
/share
/include \
1063 if test -r "$ac_dir/$x_direct_test_include"; then
1064 ac_x_includes
=$ac_dir
1070 fi # $ac_x_includes = NO
1072 if test "$ac_x_libraries" = NO
; then
1073 # Check for the libraries.
1075 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1076 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1078 # See if we find them without any special options.
1079 # Don't add to $LIBS permanently.
1080 ac_save_LIBS
="$LIBS"
1081 LIBS
="-l$x_direct_test_library $LIBS"
1082 cat > conftest.
$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1087 ${x_direct_test_function}()
1090 if { (eval echo configure
:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1092 LIBS
="$ac_save_LIBS"
1093 # We can link X programs with no special library path.
1096 echo "configure: failed program was:" >&5
1097 cat conftest.
$ac_ext >&5
1099 LIBS
="$ac_save_LIBS"
1100 # First see if replacing the include by lib works.
1101 # Check X11 before X11Rn because it is often a symlink to the current release.
1102 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1113 /usr
/local
/X11
/lib \
1114 /usr
/local
/X11R
6/lib \
1115 /usr
/local
/X11R
5/lib \
1116 /usr
/local
/X11R
4/lib \
1118 /usr
/local
/lib
/X11 \
1119 /usr
/local
/lib
/X11R6 \
1120 /usr
/local
/lib
/X11R5 \
1121 /usr
/local
/lib
/X11R4 \
1125 /usr
/XFree86
/lib
/X11 \
1129 /usr
/unsupported
/lib \
1131 /usr
/local
/x11r
5/lib \
1132 /usr
/lpp
/Xamples
/lib \
1136 /usr
/openwin
/share
/lib \
1139 for ac_extension
in a so sl
; do
1140 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1141 ac_x_libraries
=$ac_dir
1148 fi # $ac_x_libraries = NO
1150 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1151 # Didn't find X anywhere. Cache the known absence of X.
1152 ac_cv_have_x
="have_x=no"
1154 # Record where we found X for the cache.
1155 ac_cv_have_x
="have_x=yes \
1156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1160 eval "$ac_cv_have_x"
1163 if test "$have_x" != yes; then
1164 echo "$ac_t""$have_x" 1>&6
1167 # If each of the values was on the command line, it overrides each guess.
1168 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1169 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1170 # Update the cache value to reflect the command line values.
1171 ac_cv_have_x
="have_x=yes \
1172 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1173 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1176 if test "$no_x" = yes; then
1177 # Not all programs may use this symbol, but it does not hurt to define it.
1178 cat >> confdefs.h
<<\EOF
1179 #define X_DISPLAY_MISSING 1
1182 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1184 if test -n "$x_includes"; then
1185 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1188 # It would also be nice to do this for all -L options, not just this one.
1189 if test -n "$x_libraries"; then
1190 X_LIBS
="$X_LIBS -L$x_libraries"
1191 # For Solaris; some versions of Sun CC require a space after -R and
1192 # others require no space. Words are not sufficient . . . .
1193 case "`(uname -sr) 2>/dev/null`" in
1195 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether -R must be followed by a space" >&5
1197 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1198 cat > conftest.
$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1206 if { (eval echo configure
:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1216 if test $ac_R_nospace = yes; then
1217 echo "$ac_t""no" 1>&6
1218 X_LIBS
="$X_LIBS -R$x_libraries"
1220 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1229 if { (eval echo configure
:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1233 echo "configure: failed program was:" >&5
1234 cat conftest.
$ac_ext >&5
1239 if test $ac_R_space = yes; then
1240 echo "$ac_t""yes" 1>&6
1241 X_LIBS
="$X_LIBS -R $x_libraries"
1243 echo "$ac_t""neither works" 1>&6
1246 LIBS
="$ac_xsave_LIBS"
1250 # Check for system-dependent libraries X programs must link with.
1251 # Do this before checking for the system-independent R6 libraries
1252 # (-lICE), since we may need -lsocket or whatever for X linking.
1254 if test "$ISC" = yes; then
1255 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1257 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1258 # libraries were built with DECnet support. And karl@cs.umb.edu says
1259 # the Alpha needs dnet_stub (dnet does not exist).
1260 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1261 echo "configure:1262: checking for dnet_ntoa in -ldnet" >&5
1262 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 ac_save_LIBS
="$LIBS"
1268 cat > conftest.
$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 /* Override any gcc2 internal prototype to avoid an error. */
1272 /* We use char because int might match the return type of a gcc2
1273 builtin and then its argument prototype would still apply. */
1280 if { (eval echo configure
:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1282 eval "ac_cv_lib_$ac_lib_var=yes"
1284 echo "configure: failed program was:" >&5
1285 cat conftest.
$ac_ext >&5
1287 eval "ac_cv_lib_$ac_lib_var=no"
1290 LIBS
="$ac_save_LIBS"
1293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1294 echo "$ac_t""yes" 1>&6
1295 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1297 echo "$ac_t""no" 1>&6
1300 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1301 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1302 echo "configure:1303: checking for dnet_ntoa in -ldnet_stub" >&5
1303 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 ac_save_LIBS
="$LIBS"
1308 LIBS
="-ldnet_stub $LIBS"
1309 cat > conftest.
$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1321 if { (eval echo configure
:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1323 eval "ac_cv_lib_$ac_lib_var=yes"
1325 echo "configure: failed program was:" >&5
1326 cat conftest.
$ac_ext >&5
1328 eval "ac_cv_lib_$ac_lib_var=no"
1331 LIBS
="$ac_save_LIBS"
1334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1336 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1338 echo "$ac_t""no" 1>&6
1343 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1344 # to get the SysV transport functions.
1345 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1347 # The nsl library prevents programs from opening the X display
1348 # on Irix 5.2, according to dickey@clark.net.
1349 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1350 echo "configure:1351: checking for gethostbyname" >&5
1351 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.
$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char gethostbyname(); below. */
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1363 char gethostbyname();
1367 /* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1378 if { (eval echo configure
:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1380 eval "ac_cv_func_gethostbyname=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.
$ac_ext >&5
1385 eval "ac_cv_func_gethostbyname=no"
1390 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1394 echo "$ac_t""no" 1>&6
1397 if test $ac_cv_func_gethostbyname = no
; then
1398 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1399 echo "configure:1400: checking for gethostbyname in -lnsl" >&5
1400 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 ac_save_LIBS
="$LIBS"
1406 cat > conftest.
$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 /* Override any gcc2 internal prototype to avoid an error. */
1410 /* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
1412 char gethostbyname();
1418 if { (eval echo configure
:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1422 echo "configure: failed program was:" >&5
1423 cat conftest.
$ac_ext >&5
1425 eval "ac_cv_lib_$ac_lib_var=no"
1428 LIBS
="$ac_save_LIBS"
1431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1435 echo "$ac_t""no" 1>&6
1440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1441 # socket/setsockopt and other routines are undefined under SCO ODT
1442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1443 # on later versions), says simon@lia.di.epfl.ch: it contains
1444 # gethostby* variants that don't use the nameserver (or something).
1445 # -lsocket must be given before -lnsl if both are needed.
1446 # We assume that if connect needs -lnsl, so does gethostbyname.
1447 echo $ac_n "checking for connect""... $ac_c" 1>&6
1448 echo "configure:1449: checking for connect" >&5
1449 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.
$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* System header to define __stub macros and hopefully few prototypes,
1456 which can conflict with char connect(); below. */
1458 /* Override any gcc2 internal prototype to avoid an error. */
1459 /* We use char because int might match the return type of a gcc2
1460 builtin and then its argument prototype would still apply. */
1465 /* The GNU C library defines this for functions which it implements
1466 to always fail with ENOSYS. Some functions are actually named
1467 something starting with __ and the normal name is an alias. */
1468 #if defined (__stub_connect) || defined (__stub___connect)
1476 if { (eval echo configure
:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1478 eval "ac_cv_func_connect=yes"
1480 echo "configure: failed program was:" >&5
1481 cat conftest.
$ac_ext >&5
1483 eval "ac_cv_func_connect=no"
1488 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1492 echo "$ac_t""no" 1>&6
1495 if test $ac_cv_func_connect = no
; then
1496 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1497 echo "configure:1498: checking for connect in -lsocket" >&5
1498 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 ac_save_LIBS
="$LIBS"
1503 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1504 cat > conftest.
$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 /* Override any gcc2 internal prototype to avoid an error. */
1508 /* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
1516 if { (eval echo configure
:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1518 eval "ac_cv_lib_$ac_lib_var=yes"
1520 echo "configure: failed program was:" >&5
1521 cat conftest.
$ac_ext >&5
1523 eval "ac_cv_lib_$ac_lib_var=no"
1526 LIBS
="$ac_save_LIBS"
1529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1530 echo "$ac_t""yes" 1>&6
1531 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1533 echo "$ac_t""no" 1>&6
1538 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1539 echo $ac_n "checking for remove""... $ac_c" 1>&6
1540 echo "configure:1541: checking for remove" >&5
1541 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.
$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 /* System header to define __stub macros and hopefully few prototypes,
1548 which can conflict with char remove(); below. */
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1557 /* The GNU C library defines this for functions which it implements
1558 to always fail with ENOSYS. Some functions are actually named
1559 something starting with __ and the normal name is an alias. */
1560 #if defined (__stub_remove) || defined (__stub___remove)
1568 if { (eval echo configure
:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1570 eval "ac_cv_func_remove=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1575 eval "ac_cv_func_remove=no"
1580 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 if test $ac_cv_func_remove = no
; then
1588 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1589 echo "configure:1590: checking for remove in -lposix" >&5
1590 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 ac_save_LIBS
="$LIBS"
1595 LIBS
="-lposix $LIBS"
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 /* Override any gcc2 internal prototype to avoid an error. */
1600 /* We use char because int might match the return type of a gcc2
1601 builtin and then its argument prototype would still apply. */
1608 if { (eval echo configure
:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1612 echo "configure: failed program was:" >&5
1613 cat conftest.
$ac_ext >&5
1615 eval "ac_cv_lib_$ac_lib_var=no"
1618 LIBS
="$ac_save_LIBS"
1621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1622 echo "$ac_t""yes" 1>&6
1623 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1625 echo "$ac_t""no" 1>&6
1630 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1631 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1632 echo "configure:1633: checking for shmat" >&5
1633 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 cat > conftest.
$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 /* System header to define __stub macros and hopefully few prototypes,
1640 which can conflict with char shmat(); below. */
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1649 /* The GNU C library defines this for functions which it implements
1650 to always fail with ENOSYS. Some functions are actually named
1651 something starting with __ and the normal name is an alias. */
1652 #if defined (__stub_shmat) || defined (__stub___shmat)
1660 if { (eval echo configure
:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1662 eval "ac_cv_func_shmat=yes"
1664 echo "configure: failed program was:" >&5
1665 cat conftest.
$ac_ext >&5
1667 eval "ac_cv_func_shmat=no"
1672 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1676 echo "$ac_t""no" 1>&6
1679 if test $ac_cv_func_shmat = no
; then
1680 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1681 echo "configure:1682: checking for shmat in -lipc" >&5
1682 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 ac_save_LIBS
="$LIBS"
1688 cat > conftest.
$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 /* Override any gcc2 internal prototype to avoid an error. */
1692 /* We use char because int might match the return type of a gcc2
1693 builtin and then its argument prototype would still apply. */
1700 if { (eval echo configure
:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1702 eval "ac_cv_lib_$ac_lib_var=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.
$ac_ext >&5
1707 eval "ac_cv_lib_$ac_lib_var=no"
1710 LIBS
="$ac_save_LIBS"
1713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1717 echo "$ac_t""no" 1>&6
1723 # Check for libraries that X11R6 Xt/Xaw programs need.
1724 ac_save_LDFLAGS
="$LDFLAGS"
1725 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1727 # check for ICE first), but we must link in the order -lSM -lICE or
1728 # we get undefined symbols. So assume we have SM if we have ICE.
1729 # These have to be linked with before -lX11, unlike the other
1730 # libraries we check for below, so use a different variable.
1731 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1732 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1733 echo "configure:1734: checking for IceConnectionNumber in -lICE" >&5
1734 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 ac_save_LIBS
="$LIBS"
1739 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1740 cat > conftest.
$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1746 char IceConnectionNumber();
1749 IceConnectionNumber()
1752 if { (eval echo configure
:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.
$ac_ext >&5
1759 eval "ac_cv_lib_$ac_lib_var=no"
1762 LIBS
="$ac_save_LIBS"
1765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1769 echo "$ac_t""no" 1>&6
1772 LDFLAGS
="$ac_save_LDFLAGS"
1776 for ac_prog
in 'bison -y' byacc
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779 set dummy
$ac_prog; ac_word
=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test -n "$YACC"; then
1786 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1788 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1790 for ac_dir
in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir
=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_YACC
="$ac_prog"
1800 YACC
="$ac_cv_prog_YACC"
1801 if test -n "$YACC"; then
1802 echo "$ac_t""$YACC" 1>&6
1804 echo "$ac_t""no" 1>&6
1807 test -n "$YACC" && break
1809 test -n "$YACC" || YACC
="yacc"
1811 # Extract the first word of "flex", so it can be a program name with args.
1812 set dummy flex
; ac_word
=$2
1813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_word" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 if test -n "$LEX"; then
1819 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1821 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1823 for ac_dir
in $ac_dummy; do
1824 test -z "$ac_dir" && ac_dir
=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_LEX
="flex"
1831 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1834 LEX
="$ac_cv_prog_LEX"
1835 if test -n "$LEX"; then
1836 echo "$ac_t""$LEX" 1>&6
1838 echo "$ac_t""no" 1>&6
1841 if test -z "$LEXLIB"
1847 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1848 echo "configure:1849: checking for yywrap in -l$ac_lib" >&5
1849 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 ac_save_LIBS
="$LIBS"
1854 LIBS
="-l$ac_lib $LIBS"
1855 cat > conftest.
$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1867 if { (eval echo configure
:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1869 eval "ac_cv_lib_$ac_lib_var=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.
$ac_ext >&5
1874 eval "ac_cv_lib_$ac_lib_var=no"
1877 LIBS
="$ac_save_LIBS"
1880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1881 echo "$ac_t""yes" 1>&6
1884 echo "$ac_t""no" 1>&6
1889 for ac_prog
in $LEX flex
lex
1891 # Extract the first word of "$ac_prog", so it can be a program name with args.
1892 set dummy
$ac_prog; ac_word
=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 if test -n "$XLEX"; then
1899 ac_cv_prog_XLEX
="$XLEX" # Let the user override the test.
1901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1903 for ac_dir
in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir
=.
1905 if test -f $ac_dir/$ac_word; then
1906 ac_cv_prog_XLEX
="$ac_prog"
1913 XLEX
="$ac_cv_prog_XLEX"
1914 if test -n "$XLEX"; then
1915 echo "$ac_t""$XLEX" 1>&6
1917 echo "$ac_t""no" 1>&6
1920 test -n "$XLEX" && break
1922 test -n "$XLEX" || XLEX
="none"
1924 if test "$XLEX" = "none"
1926 echo "*** Error: No suitable lex found. ***"
1927 echo " Please install the 'flex' package."
1930 # Extract the first word of "ranlib", so it can be a program name with args.
1931 set dummy ranlib
; ac_word
=$2
1932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1933 echo "configure:1934: checking for $ac_word" >&5
1934 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 if test -n "$RANLIB"; then
1938 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1942 for ac_dir
in $ac_dummy; do
1943 test -z "$ac_dir" && ac_dir
=.
1944 if test -f $ac_dir/$ac_word; then
1945 ac_cv_prog_RANLIB
="ranlib"
1950 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1953 RANLIB
="$ac_cv_prog_RANLIB"
1954 if test -n "$RANLIB"; then
1955 echo "$ac_t""$RANLIB" 1>&6
1957 echo "$ac_t""no" 1>&6
1960 # Find a good install program. We prefer a C program (faster),
1961 # so one script is as good as another. But avoid the broken or
1962 # incompatible versions:
1963 # SysV /etc/install, /usr/sbin/install
1964 # SunOS /usr/etc/install
1965 # IRIX /sbin/install
1967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1970 # ./install, which can be erroneously created by make from ./install.sh.
1971 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1972 echo "configure:1973: checking for a BSD compatible install" >&5
1973 if test -z "$INSTALL"; then
1974 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1978 for ac_dir
in $PATH; do
1979 # Account for people who put trailing slashes in PATH elements.
1981 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1983 # OSF1 and SCO ODT 3.0 have their own names for install.
1984 # Don't use installbsd from OSF since it installs stuff as root
1986 for ac_prog
in ginstall scoinst
install; do
1987 if test -f $ac_dir/$ac_prog; then
1988 if test $ac_prog = install &&
1989 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1990 # AIX install. It has an incompatible calling convention.
1993 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2004 if test "${ac_cv_path_install+set}" = set; then
2005 INSTALL
="$ac_cv_path_install"
2007 # As a last resort, use the slow shell script. We don't cache a
2008 # path for INSTALL within a source directory, because that will
2009 # break other packages using the cache if that directory is
2010 # removed, or if the path is relative.
2011 INSTALL
="$ac_install_sh"
2014 echo "$ac_t""$INSTALL" 1>&6
2016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2017 # It thinks the first close brace ends the variable substitution.
2018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2022 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2024 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2025 echo "configure:2026: checking whether ln -s works" >&5
2026 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2030 if ln -s X conftestdata
2>/dev
/null
2033 ac_cv_prog_LN_S
="ln -s"
2038 LN_S
="$ac_cv_prog_LN_S"
2039 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2040 echo "$ac_t""yes" 1>&6
2042 echo "$ac_t""no" 1>&6
2045 # Extract the first word of "c2man", so it can be a program name with args.
2046 set dummy c2man
; ac_word
=$2
2047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_word" >&5
2049 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 if test -n "$C2MAN"; then
2053 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2057 for ac_dir
in $ac_dummy; do
2058 test -z "$ac_dir" && ac_dir
=.
2059 if test -f $ac_dir/$ac_word; then
2060 ac_cv_prog_C2MAN
="c2man"
2065 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="\$(TOPSRCDIR)/tools/c2man.pl"
2068 C2MAN
="$ac_cv_prog_C2MAN"
2069 if test -n "$C2MAN"; then
2070 echo "$ac_t""$C2MAN" 1>&6
2072 echo "$ac_t""no" 1>&6
2075 # Extract the first word of "ldconfig", so it can be a program name with args.
2076 set dummy ldconfig
; ac_word
=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2079 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2084 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2087 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2091 ac_dummy
="/sbin:/usr/sbin:$PATH"
2092 for ac_dir
in $ac_dummy; do
2093 test -z "$ac_dir" && ac_dir
=.
2094 if test -f $ac_dir/$ac_word; then
2095 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2100 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="true"
2104 LDCONFIG
="$ac_cv_path_LDCONFIG"
2105 if test -n "$LDCONFIG"; then
2106 echo "$ac_t""$LDCONFIG" 1>&6
2108 echo "$ac_t""no" 1>&6
2111 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2112 echo "configure:2113: checking for Cygwin environment" >&5
2113 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 cat > conftest.
$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2123 #define __CYGWIN__ __CYGWIN32__
2128 if { (eval echo configure
:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132 echo "configure: failed program was:" >&5
2133 cat conftest.
$ac_ext >&5
2141 echo "$ac_t""$ac_cv_cygwin" 1>&6
2143 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
2144 # Extract the first word of "dllwrap", so it can be a program name with args.
2145 set dummy dllwrap
; ac_word
=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 if test -n "$DLLWRAP"; then
2152 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
2154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2156 for ac_dir
in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir
=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_DLLWRAP
="dllwrap"
2164 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP
="false"
2167 DLLWRAP
="$ac_cv_prog_DLLWRAP"
2168 if test -n "$DLLWRAP"; then
2169 echo "$ac_t""$DLLWRAP" 1>&6
2171 echo "$ac_t""no" 1>&6
2175 for ac_prog
in lclint lint
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy
$ac_prog; ac_word
=$2
2179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_word" >&5
2181 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 if test -n "$LINT"; then
2185 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2189 for ac_dir
in $ac_dummy; do
2190 test -z "$ac_dir" && ac_dir
=.
2191 if test -f $ac_dir/$ac_word; then
2192 ac_cv_prog_LINT
="$ac_prog"
2199 LINT
="$ac_cv_prog_LINT"
2200 if test -n "$LINT"; then
2201 echo "$ac_t""$LINT" 1>&6
2203 echo "$ac_t""no" 1>&6
2206 test -n "$LINT" && break
2209 if test "$LINT" = "lint"
2211 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2216 if test "$CYGWIN" = "yes"
2218 LDCOMBINE
="ld -r --enable-stdcall-fixup"
2225 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2226 echo "configure:2227: checking for sqrt in -lm" >&5
2227 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 ac_save_LIBS
="$LIBS"
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 /* Override any gcc2 internal prototype to avoid an error. */
2237 /* We use char because int might match the return type of a gcc2
2238 builtin and then its argument prototype would still apply. */
2245 if { (eval echo configure
:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2247 eval "ac_cv_lib_$ac_lib_var=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.
$ac_ext >&5
2252 eval "ac_cv_lib_$ac_lib_var=no"
2255 LIBS
="$ac_save_LIBS"
2258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2262 cat >> confdefs.h
<<EOF
2263 #define $ac_tr_lib 1
2269 echo "$ac_t""no" 1>&6
2272 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2273 echo "configure:2274: checking for i386_set_ldt in -li386" >&5
2274 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 ac_save_LIBS
="$LIBS"
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286 char i386_set_ldt();
2292 if { (eval echo configure
:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2296 echo "configure: failed program was:" >&5
2297 cat conftest.
$ac_ext >&5
2299 eval "ac_cv_lib_$ac_lib_var=no"
2302 LIBS
="$ac_save_LIBS"
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2309 cat >> confdefs.h
<<EOF
2310 #define $ac_tr_lib 1
2316 echo "$ac_t""no" 1>&6
2319 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2320 echo "configure:2321: checking for _oss_ioctl in -lossaudio" >&5
2321 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 ac_save_LIBS
="$LIBS"
2326 LIBS
="-lossaudio $LIBS"
2327 cat > conftest.
$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* Override any gcc2 internal prototype to avoid an error. */
2331 /* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2339 if { (eval echo configure
:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2341 eval "ac_cv_lib_$ac_lib_var=yes"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.
$ac_ext >&5
2346 eval "ac_cv_lib_$ac_lib_var=no"
2349 LIBS
="$ac_save_LIBS"
2352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2356 cat >> confdefs.h
<<EOF
2357 #define $ac_tr_lib 1
2360 LIBS
="-lossaudio $LIBS"
2363 echo "$ac_t""no" 1>&6
2366 for ac_func
in iswalnum
2368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_func" >&5
2370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 cat > conftest.
$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 /* System header to define __stub macros and hopefully few prototypes,
2377 which can conflict with char $ac_func(); below. */
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2386 /* The GNU C library defines this for functions which it implements
2387 to always fail with ENOSYS. Some functions are actually named
2388 something starting with __ and the normal name is an alias. */
2389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2397 if { (eval echo configure
:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2399 eval "ac_cv_func_$ac_func=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2404 eval "ac_cv_func_$ac_func=no"
2409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2412 cat >> confdefs.h
<<EOF
2413 #define $ac_tr_func 1
2417 echo "$ac_t""no" 1>&6
2418 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2419 echo "configure:2420: checking for iswalnum in -lw" >&5
2420 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 ac_save_LIBS
="$LIBS"
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 /* Override any gcc2 internal prototype to avoid an error. */
2430 /* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2438 if { (eval echo configure
:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2440 eval "ac_cv_lib_$ac_lib_var=yes"
2442 echo "configure: failed program was:" >&5
2443 cat conftest.
$ac_ext >&5
2445 eval "ac_cv_lib_$ac_lib_var=no"
2448 LIBS
="$ac_save_LIBS"
2451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2455 cat >> confdefs.h
<<EOF
2456 #define $ac_tr_lib 1
2462 echo "$ac_t""no" 1>&6
2468 for ac_func
in gethostbyname
2470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2471 echo "configure:2472: checking for $ac_func" >&5
2472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 /* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $ac_func(); below. */
2481 /* Override any gcc2 internal prototype to avoid an error. */
2482 /* We use char because int might match the return type of a gcc2
2483 builtin and then its argument prototype would still apply. */
2488 /* The GNU C library defines this for functions which it implements
2489 to always fail with ENOSYS. Some functions are actually named
2490 something starting with __ and the normal name is an alias. */
2491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2499 if { (eval echo configure
:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2501 eval "ac_cv_func_$ac_func=yes"
2503 echo "configure: failed program was:" >&5
2504 cat conftest.
$ac_ext >&5
2506 eval "ac_cv_func_$ac_func=no"
2511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2512 echo "$ac_t""yes" 1>&6
2513 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2514 cat >> confdefs.h
<<EOF
2515 #define $ac_tr_func 1
2519 echo "$ac_t""no" 1>&6
2520 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2521 echo "configure:2522: checking for gethostbyname in -lnsl" >&5
2522 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 ac_save_LIBS
="$LIBS"
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 /* Override any gcc2 internal prototype to avoid an error. */
2532 /* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534 char gethostbyname();
2540 if { (eval echo configure
:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2542 eval "ac_cv_lib_$ac_lib_var=yes"
2544 echo "configure: failed program was:" >&5
2545 cat conftest.
$ac_ext >&5
2547 eval "ac_cv_lib_$ac_lib_var=no"
2550 LIBS
="$ac_save_LIBS"
2553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2557 cat >> confdefs.h
<<EOF
2558 #define $ac_tr_lib 1
2564 echo "$ac_t""no" 1>&6
2570 for ac_func
in connect
2572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_func" >&5
2574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.
$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 /* System header to define __stub macros and hopefully few prototypes,
2581 which can conflict with char $ac_func(); below. */
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2590 /* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2601 if { (eval echo configure
:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2603 eval "ac_cv_func_$ac_func=yes"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2608 eval "ac_cv_func_$ac_func=no"
2613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2616 cat >> confdefs.h
<<EOF
2617 #define $ac_tr_func 1
2621 echo "$ac_t""no" 1>&6
2622 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2623 echo "configure:2624: checking for connect in -lsocket" >&5
2624 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 ac_save_LIBS
="$LIBS"
2629 LIBS
="-lsocket $LIBS"
2630 cat > conftest.
$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 /* Override any gcc2 internal prototype to avoid an error. */
2634 /* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2642 if { (eval echo configure
:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2644 eval "ac_cv_lib_$ac_lib_var=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.
$ac_ext >&5
2649 eval "ac_cv_lib_$ac_lib_var=no"
2652 LIBS
="$ac_save_LIBS"
2655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2659 cat >> confdefs.h
<<EOF
2660 #define $ac_tr_lib 1
2663 LIBS
="-lsocket $LIBS"
2666 echo "$ac_t""no" 1>&6
2672 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2673 echo "configure:2674: checking for _xpg4_setrunelocale in -lxpg4" >&5
2674 ac_lib_var
=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 ac_save_LIBS
="$LIBS"
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 /* Override any gcc2 internal prototype to avoid an error. */
2684 /* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
2686 char _xpg4_setrunelocale();
2689 _xpg4_setrunelocale()
2692 if { (eval echo configure
:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2694 eval "ac_cv_lib_$ac_lib_var=yes"
2696 echo "configure: failed program was:" >&5
2697 cat conftest.
$ac_ext >&5
2699 eval "ac_cv_lib_$ac_lib_var=no"
2702 LIBS
="$ac_save_LIBS"
2705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2709 cat >> confdefs.h
<<EOF
2710 #define $ac_tr_lib 1
2716 echo "$ac_t""no" 1>&6
2719 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2720 echo "configure:2721: checking for mmap in -lmmap" >&5
2721 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 ac_save_LIBS
="$LIBS"
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 /* Override any gcc2 internal prototype to avoid an error. */
2731 /* We use char because int might match the return type of a gcc2
2732 builtin and then its argument prototype would still apply. */
2739 if { (eval echo configure
:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2741 eval "ac_cv_lib_$ac_lib_var=yes"
2743 echo "configure: failed program was:" >&5
2744 cat conftest.
$ac_ext >&5
2746 eval "ac_cv_lib_$ac_lib_var=no"
2749 LIBS
="$ac_save_LIBS"
2752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2754 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2756 cat >> confdefs.h
<<EOF
2757 #define $ac_tr_lib 1
2763 echo "$ac_t""no" 1>&6
2769 for ac_func
in openpty
2771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2772 echo "configure:2773: checking for $ac_func" >&5
2773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.
$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 /* System header to define __stub macros and hopefully few prototypes,
2780 which can conflict with char $ac_func(); below. */
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2789 /* The GNU C library defines this for functions which it implements
2790 to always fail with ENOSYS. Some functions are actually named
2791 something starting with __ and the normal name is an alias. */
2792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2800 if { (eval echo configure
:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2802 eval "ac_cv_func_$ac_func=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.
$ac_ext >&5
2807 eval "ac_cv_func_$ac_func=no"
2812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2815 cat >> confdefs.h
<<EOF
2816 #define $ac_tr_func 1
2820 echo "$ac_t""no" 1>&6
2821 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2822 echo "configure:2823: checking for openpty in -lutil" >&5
2823 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 ac_save_LIBS
="$LIBS"
2829 cat > conftest.
$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 /* Override any gcc2 internal prototype to avoid an error. */
2833 /* We use char because int might match the return type of a gcc2
2834 builtin and then its argument prototype would still apply. */
2841 if { (eval echo configure
:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2843 eval "ac_cv_lib_$ac_lib_var=yes"
2845 echo "configure: failed program was:" >&5
2846 cat conftest.
$ac_ext >&5
2848 eval "ac_cv_lib_$ac_lib_var=no"
2851 LIBS
="$ac_save_LIBS"
2854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 cat >> confdefs.h
<<\EOF
2857 #define HAVE_OPENPTY 1
2863 echo "$ac_t""no" 1>&6
2872 for ac_hdr
in dlfcn.h
2874 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_hdr" >&5
2877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 cat > conftest.
$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2885 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2886 { (eval echo configure
:2887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2887 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2888 if test -z "$ac_err"; then
2890 eval "ac_cv_header_$ac_safe=yes"
2893 echo "configure: failed program was:" >&5
2894 cat conftest.
$ac_ext >&5
2896 eval "ac_cv_header_$ac_safe=no"
2900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2902 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2903 cat >> confdefs.h
<<EOF
2904 #define $ac_tr_hdr 1
2906 for ac_func
in dlopen
2908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_func" >&5
2910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 cat > conftest.
$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 /* System header to define __stub macros and hopefully few prototypes,
2917 which can conflict with char $ac_func(); below. */
2919 /* Override any gcc2 internal prototype to avoid an error. */
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2926 /* The GNU C library defines this for functions which it implements
2927 to always fail with ENOSYS. Some functions are actually named
2928 something starting with __ and the normal name is an alias. */
2929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2937 if { (eval echo configure
:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2939 eval "ac_cv_func_$ac_func=yes"
2941 echo "configure: failed program was:" >&5
2942 cat conftest.
$ac_ext >&5
2944 eval "ac_cv_func_$ac_func=no"
2949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2950 echo "$ac_t""yes" 1>&6
2951 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2952 cat >> confdefs.h
<<EOF
2953 #define $ac_tr_func 1
2957 echo "$ac_t""no" 1>&6
2958 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2959 echo "configure:2960: checking for dlopen in -ldl" >&5
2960 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 ac_save_LIBS
="$LIBS"
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 /* Override any gcc2 internal prototype to avoid an error. */
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2978 if { (eval echo configure
:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2980 eval "ac_cv_lib_$ac_lib_var=yes"
2982 echo "configure: failed program was:" >&5
2983 cat conftest.
$ac_ext >&5
2985 eval "ac_cv_lib_$ac_lib_var=no"
2988 LIBS
="$ac_save_LIBS"
2991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 cat >> confdefs.h
<<\EOF
2994 #define HAVE_DLOPEN 1
2999 echo "$ac_t""no" 1>&6
3008 echo "$ac_t""no" 1>&6
3017 for ac_hdr
in jpeglib.h
3019 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_hdr" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3030 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3031 { (eval echo configure
:3032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3032 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3033 if test -z "$ac_err"; then
3035 eval "ac_cv_header_$ac_safe=yes"
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3041 eval "ac_cv_header_$ac_safe=no"
3045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3048 cat >> confdefs.h
<<EOF
3049 #define $ac_tr_hdr 1
3051 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3052 echo "configure:3053: checking for jpeg_start_decompress in -ljpeg" >&5
3053 ac_lib_var
=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 ac_save_LIBS
="$LIBS"
3059 cat > conftest.
$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* Override any gcc2 internal prototype to avoid an error. */
3063 /* We use char because int might match the return type of a gcc2
3064 builtin and then its argument prototype would still apply. */
3065 char jpeg_start_decompress();
3068 jpeg_start_decompress()
3071 if { (eval echo configure
:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3073 eval "ac_cv_lib_$ac_lib_var=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.
$ac_ext >&5
3078 eval "ac_cv_lib_$ac_lib_var=no"
3081 LIBS
="$ac_save_LIBS"
3084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 cat >> confdefs.h
<<\EOF
3087 #define HAVE_LIBJPEG 1
3093 echo "$ac_t""no" 1>&6
3098 echo "$ac_t""no" 1>&6
3111 if test "$have_x" = "yes"
3114 ac_save_CPPFLAGS
="$CPPFLAGS"
3115 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3117 for ac_hdr
in X11
/xpm.h
3119 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_hdr" >&5
3122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.
$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3130 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3131 { (eval echo configure
:3132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3132 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3133 if test -z "$ac_err"; then
3135 eval "ac_cv_header_$ac_safe=yes"
3138 echo "configure: failed program was:" >&5
3139 cat conftest.
$ac_ext >&5
3141 eval "ac_cv_header_$ac_safe=no"
3145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3146 echo "$ac_t""yes" 1>&6
3147 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3148 cat >> confdefs.h
<<EOF
3149 #define $ac_tr_hdr 1
3151 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3152 echo "configure:3153: checking for XpmCreatePixmapFromData in -lXpm" >&5
3153 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 ac_save_LIBS
="$LIBS"
3158 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3160 cat > conftest.
$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163 /* Override any gcc2 internal prototype to avoid an error. */
3164 /* We use char because int might match the return type of a gcc2
3165 builtin and then its argument prototype would still apply. */
3166 char XpmCreatePixmapFromData();
3169 XpmCreatePixmapFromData()
3172 if { (eval echo configure
:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3174 eval "ac_cv_lib_$ac_lib_var=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.
$ac_ext >&5
3179 eval "ac_cv_lib_$ac_lib_var=no"
3182 LIBS
="$ac_save_LIBS"
3185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3186 echo "$ac_t""yes" 1>&6
3187 cat >> confdefs.h
<<\EOF
3188 #define HAVE_LIBXXPM 1
3191 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
3193 echo "$ac_t""no" 1>&6
3198 echo "$ac_t""no" 1>&6
3199 echo "Couldn't find the xpm development header X11/xpm.h"
3200 echo "Install the following packages:"
3201 echo "Red Hat < 7.1 : xpm xpm-devel"
3202 echo "Red Hat >= 7.1 : XFree86-devel"
3203 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3205 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3206 echo "Solaris 8 : SFWxpm"
3208 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3209 echo "the directory /contrib/libraries."
3218 for ac_hdr
in X11
/Xlib.h
3220 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_hdr" >&5
3223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3231 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3232 { (eval echo configure
:3233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3233 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3234 if test -z "$ac_err"; then
3236 eval "ac_cv_header_$ac_safe=yes"
3239 echo "configure: failed program was:" >&5
3240 cat conftest.
$ac_ext >&5
3242 eval "ac_cv_header_$ac_safe=no"
3246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3249 cat >> confdefs.h
<<EOF
3250 #define $ac_tr_hdr 1
3253 for ac_hdr
in X11
/XKBlib.h
3255 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_hdr" >&5
3258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3267 { (eval echo configure
:3268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3269 if test -z "$ac_err"; then
3271 eval "ac_cv_header_$ac_safe=yes"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3277 eval "ac_cv_header_$ac_safe=no"
3281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3284 cat >> confdefs.h
<<EOF
3285 #define $ac_tr_hdr 1
3287 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3288 echo "configure:3289: checking for XkbQueryExtension in -lX11" >&5
3289 ac_lib_var
=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_save_LIBS
="$LIBS"
3294 LIBS
="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3301 char XkbQueryExtension();
3307 if { (eval echo configure
:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3309 eval "ac_cv_lib_$ac_lib_var=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.
$ac_ext >&5
3314 eval "ac_cv_lib_$ac_lib_var=no"
3317 LIBS
="$ac_save_LIBS"
3320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 cat >> confdefs.h
<<\EOF
3327 echo "$ac_t""no" 1>&6
3332 echo "$ac_t""no" 1>&6
3333 echo "configure: warning: XKB extension not found!!" 1>&2
3339 for ac_hdr
in X11
/extensions
/XShm.h
3341 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_hdr" >&5
3344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.
$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3352 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3353 { (eval echo configure
:3354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3354 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3355 if test -z "$ac_err"; then
3357 eval "ac_cv_header_$ac_safe=yes"
3360 echo "configure: failed program was:" >&5
3361 cat conftest.
$ac_ext >&5
3363 eval "ac_cv_header_$ac_safe=no"
3367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3370 cat >> confdefs.h
<<EOF
3371 #define $ac_tr_hdr 1
3373 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3374 echo "configure:3375: checking for XShmQueryExtension in -lXext" >&5
3375 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 ac_save_LIBS
="$LIBS"
3380 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3381 cat > conftest.
$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char XShmQueryExtension();
3390 XShmQueryExtension()
3393 if { (eval echo configure
:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3395 eval "ac_cv_lib_$ac_lib_var=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 eval "ac_cv_lib_$ac_lib_var=no"
3403 LIBS
="$ac_save_LIBS"
3406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3408 cat >> confdefs.h
<<\EOF
3409 #define HAVE_LIBXXSHM 1
3413 echo "$ac_t""no" 1>&6
3418 echo "$ac_t""no" 1>&6
3419 echo "configure: warning: Xshm extension not found!!" 1>&2
3425 for ac_hdr
in X11
/extensions
/shape.h
3427 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_hdr" >&5
3430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure
:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3441 if test -z "$ac_err"; then
3443 eval "ac_cv_header_$ac_safe=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.
$ac_ext >&5
3449 eval "ac_cv_header_$ac_safe=no"
3453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3456 cat >> confdefs.h
<<EOF
3457 #define $ac_tr_hdr 1
3459 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3460 echo "configure:3461: checking for XShapeQueryExtension in -lXext" >&5
3461 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 ac_save_LIBS
="$LIBS"
3466 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 /* We use char because int might match the return type of a gcc2
3472 builtin and then its argument prototype would still apply. */
3473 char XShapeQueryExtension();
3476 XShapeQueryExtension()
3479 if { (eval echo configure
:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3481 eval "ac_cv_lib_$ac_lib_var=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3486 eval "ac_cv_lib_$ac_lib_var=no"
3489 LIBS
="$ac_save_LIBS"
3492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 cat >> confdefs.h
<<\EOF
3495 #define HAVE_LIBXSHAPE 1
3499 echo "$ac_t""no" 1>&6
3504 echo "$ac_t""no" 1>&6
3505 echo "configure: warning: XShape extension not found!!" 1>&2
3511 for ac_hdr
in X11
/extensions
/xf86dga.h
3513 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3515 echo "configure:3516: checking for $ac_hdr" >&5
3516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 cat > conftest.
$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3525 { (eval echo configure
:3526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3527 if test -z "$ac_err"; then
3529 eval "ac_cv_header_$ac_safe=yes"
3532 echo "configure: failed program was:" >&5
3533 cat conftest.
$ac_ext >&5
3535 eval "ac_cv_header_$ac_safe=no"
3539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3540 echo "$ac_t""yes" 1>&6
3541 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3542 cat >> confdefs.h
<<EOF
3543 #define $ac_tr_hdr 1
3545 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3546 echo "configure:3547: checking for XDGAQueryExtension in -lXxf86dga" >&5
3547 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 ac_save_LIBS
="$LIBS"
3552 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3554 cat > conftest.
$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 /* Override any gcc2 internal prototype to avoid an error. */
3558 /* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3560 char XDGAQueryExtension();
3563 XDGAQueryExtension()
3566 if { (eval echo configure
:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3568 eval "ac_cv_lib_$ac_lib_var=yes"
3570 echo "configure: failed program was:" >&5
3571 cat conftest.
$ac_ext >&5
3573 eval "ac_cv_lib_$ac_lib_var=no"
3576 LIBS
="$ac_save_LIBS"
3579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 cat >> confdefs.h
<<\EOF
3582 #define HAVE_LIBXXF86DGA2 1
3585 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3588 echo "$ac_t""no" 1>&6
3589 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3590 echo "configure:3591: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3591 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 ac_save_LIBS
="$LIBS"
3596 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3604 char XF86DGAQueryExtension();
3607 XF86DGAQueryExtension()
3610 if { (eval echo configure
:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3612 eval "ac_cv_lib_$ac_lib_var=yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3617 eval "ac_cv_lib_$ac_lib_var=no"
3620 LIBS
="$ac_save_LIBS"
3623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3625 cat >> confdefs.h
<<\EOF
3626 #define HAVE_LIBXXF86DGA 1
3629 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3632 echo "$ac_t""no" 1>&6
3640 echo "$ac_t""no" 1>&6
3641 echo "configure: warning: DGA extension not found!!" 1>&2
3647 for ac_hdr
in X11
/extensions
/xf86vmode.h
3649 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3651 echo "configure:3652: checking for $ac_hdr" >&5
3652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3660 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3661 { (eval echo configure
:3662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3662 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3663 if test -z "$ac_err"; then
3665 eval "ac_cv_header_$ac_safe=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 eval "ac_cv_header_$ac_safe=no"
3675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3678 cat >> confdefs.h
<<EOF
3679 #define $ac_tr_hdr 1
3681 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3682 echo "configure:3683: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3683 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 ac_save_LIBS
="$LIBS"
3688 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3690 cat > conftest.
$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3696 char XF86VidModeQueryExtension();
3699 XF86VidModeQueryExtension()
3702 if { (eval echo configure
:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3704 eval "ac_cv_lib_$ac_lib_var=yes"
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 eval "ac_cv_lib_$ac_lib_var=no"
3712 LIBS
="$ac_save_LIBS"
3715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 cat >> confdefs.h
<<\EOF
3718 #define HAVE_LIBXXF86VM 1
3721 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3724 echo "$ac_t""no" 1>&6
3729 echo "$ac_t""no" 1>&6
3730 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3736 for ac_hdr
in X11
/extensions
/Xvlib.h
3738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_hdr" >&5
3741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 cat > conftest.
$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3750 { (eval echo configure
:3751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3752 if test -z "$ac_err"; then
3754 eval "ac_cv_header_$ac_safe=yes"
3757 echo "configure: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3760 eval "ac_cv_header_$ac_safe=no"
3764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3767 cat >> confdefs.h
<<EOF
3768 #define $ac_tr_hdr 1
3770 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3771 echo "configure:3772: checking for XvShmCreateImage in -lXv" >&5
3772 ac_lib_var
=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 ac_save_LIBS
="$LIBS"
3777 LIBS
="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3779 cat > conftest.
$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char XvShmCreateImage();
3791 if { (eval echo configure
:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3793 eval "ac_cv_lib_$ac_lib_var=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3798 eval "ac_cv_lib_$ac_lib_var=no"
3801 LIBS
="$ac_save_LIBS"
3804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 cat >> confdefs.h
<<\EOF
3807 #define HAVE_XVIDEO 1
3810 X_PRE_LIBS
="$X_PRE_LIBS -lXv"
3813 echo "$ac_t""no" 1>&6
3818 echo "$ac_t""no" 1>&6
3819 echo "configure: warning: XVideo extension not found !!" 1>&2
3825 for ac_hdr
in X11
/extensions
/Xrender.h
3827 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_hdr" >&5
3830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.
$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3839 { (eval echo configure
:3840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3841 if test -z "$ac_err"; then
3843 eval "ac_cv_header_$ac_safe=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.
$ac_ext >&5
3849 eval "ac_cv_header_$ac_safe=no"
3853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3856 cat >> confdefs.h
<<EOF
3857 #define $ac_tr_hdr 1
3859 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
3860 echo "configure:3861: checking for XRenderQueryExtension in -lXrender" >&5
3861 ac_lib_var
=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS
="$LIBS"
3866 LIBS
="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874 char XRenderQueryExtension();
3877 XRenderQueryExtension()
3880 if { (eval echo configure
:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.
$ac_ext >&5
3887 eval "ac_cv_lib_$ac_lib_var=no"
3890 LIBS
="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 cat >> confdefs.h
<<\EOF
3896 #define HAVE_LIBXRENDER 1
3899 X_PRE_LIBS
="$X_PRE_LIBS -lXrender"
3902 echo "$ac_t""no" 1>&6
3907 echo "$ac_t""no" 1>&6
3908 echo "configure: warning: XRender extension not found !!" 1>&2
3917 echo "$ac_t""no" 1>&6
3921 if test $OPENGL = "yes" -o $OPENGL = "normal"
3923 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/glext.h
3925 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3927 echo "configure:3928: checking for $ac_hdr" >&5
3928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3931 cat > conftest.
$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3937 { (eval echo configure
:3938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3938 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3939 if test -z "$ac_err"; then
3941 eval "ac_cv_header_$ac_safe=yes"
3944 echo "configure: failed program was:" >&5
3945 cat conftest.
$ac_ext >&5
3947 eval "ac_cv_header_$ac_safe=no"
3951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3954 cat >> confdefs.h
<<EOF
3955 #define $ac_tr_hdr 1
3959 echo "$ac_t""no" 1>&6
3963 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3965 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
3966 echo "configure:3967: checking for up-to-date OpenGL version" >&5
3967 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.
$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3975 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3978 if { (eval echo configure
:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3980 wine_cv_opengl_version_OK
="yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 wine_cv_opengl_version_OK
="no"
3992 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3994 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
3995 echo "configure:3996: checking for thread-safe OpenGL version" >&5
3996 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4006 pthread_getspecific();
4009 if { (eval echo configure
:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4011 wine_cv_opengl_version_threadsafe
="yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 wine_cv_opengl_version_threadsafe
="no"
4023 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
4025 if test "$wine_cv_opengl_version_OK" = "yes" -a \
( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \
)
4027 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
4028 echo "configure:4029: checking for glXCreateContext in -lGL" >&5
4029 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
4030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 ac_save_LIBS
="$LIBS"
4034 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4035 cat > conftest.
$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4041 char glXCreateContext();
4047 if { (eval echo configure
:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4049 eval "ac_cv_lib_$ac_lib_var=yes"
4051 echo "configure: failed program was:" >&5
4052 cat conftest.
$ac_ext >&5
4054 eval "ac_cv_lib_$ac_lib_var=no"
4057 LIBS
="$ac_save_LIBS"
4060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
4065 echo "$ac_t""no" 1>&6
4069 if test $ac_cv_lib_GL_glXCreateContext = "yes"
4072 OPENGLFILES
='$(OPENGLFILES)'
4073 cat >> confdefs.h
<<\EOF
4074 #define HAVE_OPENGL 1
4078 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
4079 echo "configure:4080: checking for glXGetProcAddressARB in -lGL" >&5
4080 ac_lib_var
=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 ac_save_LIBS
="$LIBS"
4085 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4086 cat > conftest.
$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4092 char glXGetProcAddressARB();
4095 glXGetProcAddressARB()
4098 if { (eval echo configure
:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4100 eval "ac_cv_lib_$ac_lib_var=yes"
4102 echo "configure: failed program was:" >&5
4103 cat conftest.
$ac_ext >&5
4105 eval "ac_cv_lib_$ac_lib_var=no"
4108 LIBS
="$ac_save_LIBS"
4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4112 echo "$ac_t""yes" 1>&6
4113 cat >> confdefs.h
<<\EOF
4114 #define HAVE_GLX_GETPROCADDRESS 1
4118 echo "$ac_t""no" 1>&6
4122 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4124 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
4125 echo "configure:4126: checking for OpenGL extension functions prototypes" >&5
4126 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 cat > conftest.
$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4133 #ifdef HAVE_GL_GLEXT_H
4134 # include <GL/glext.h>
4138 PFNGLCOLORTABLEEXTPROC test_proc;
4141 if { (eval echo configure
:4142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4143 wine_cv_extension_prototypes
="yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 wine_cv_extension_prototypes
="no"
4155 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4156 if test $wine_cv_extension_prototypes = "yes"
4158 cat >> confdefs.h
<<\EOF
4159 #define HAVE_GLEXT_PROTOTYPES 1
4166 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4167 echo "configure:4168: checking for gluLookAt in -lGLU" >&5
4168 ac_lib_var
=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 ac_save_LIBS
="$LIBS"
4173 LIBS
="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4175 cat > conftest.
$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4178 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4187 if { (eval echo configure
:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4189 eval "ac_cv_lib_$ac_lib_var=yes"
4191 echo "configure: failed program was:" >&5
4192 cat conftest.
$ac_ext >&5
4194 eval "ac_cv_lib_$ac_lib_var=no"
4197 LIBS
="$ac_save_LIBS"
4200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4201 echo "$ac_t""yes" 1>&6
4202 X_PRE_LIBS
="$X_PRE_LIBS -lGLU"
4203 GLU32FILES
='$(GLU32FILES)'
4206 echo "$ac_t""no" 1>&6
4213 CPPFLAGS
="$ac_save_CPPFLAGS"
4222 if test "$CURSES" = "yes"
4224 for ac_hdr
in ncurses.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 -lncurses""... $ac_c" 1>&6
4259 echo "configure:4260: checking for waddch in -lncurses" >&5
4260 ac_lib_var
=`echo ncurses'_'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
="-lncurses $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 cat >> confdefs.h
<<\EOF
4294 #define HAVE_LIBNCURSES 1
4297 CURSESLIBS
="-lncurses"
4299 echo "$ac_t""no" 1>&6
4300 for ac_hdr
in curses.h
4302 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4304 echo "configure:4305: checking for $ac_hdr" >&5
4305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.
$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4313 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4314 { (eval echo configure
:4315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4315 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4316 if test -z "$ac_err"; then
4318 eval "ac_cv_header_$ac_safe=yes"
4321 echo "configure: failed program was:" >&5
4322 cat conftest.
$ac_ext >&5
4324 eval "ac_cv_header_$ac_safe=no"
4328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4329 echo "$ac_t""yes" 1>&6
4330 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4331 cat >> confdefs.h
<<EOF
4332 #define $ac_tr_hdr 1
4334 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4335 echo "configure:4336: checking for waddch in -lcurses" >&5
4336 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 ac_save_LIBS
="$LIBS"
4341 LIBS
="-lcurses $LIBS"
4342 cat > conftest.
$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4345 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4354 if { (eval echo configure
:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4356 eval "ac_cv_lib_$ac_lib_var=yes"
4358 echo "configure: failed program was:" >&5
4359 cat conftest.
$ac_ext >&5
4361 eval "ac_cv_lib_$ac_lib_var=no"
4364 LIBS
="$ac_save_LIBS"
4367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4368 echo "$ac_t""yes" 1>&6
4369 cat >> confdefs.h
<<\EOF
4370 #define HAVE_LIBCURSES 1
4373 CURSESLIBS
="-lcurses"
4375 echo "$ac_t""no" 1>&6
4379 echo "$ac_t""no" 1>&6
4386 echo "$ac_t""no" 1>&6
4391 LIBS
="$CURSESLIBS $LIBS"
4392 for ac_func
in getbkgd resizeterm
4394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4395 echo "configure:4396: checking for $ac_func" >&5
4396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 cat > conftest.
$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4402 /* System header to define __stub macros and hopefully few prototypes,
4403 which can conflict with char $ac_func(); below. */
4405 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4412 /* The GNU C library defines this for functions which it implements
4413 to always fail with ENOSYS. Some functions are actually named
4414 something starting with __ and the normal name is an alias. */
4415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4423 if { (eval echo configure
:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4425 eval "ac_cv_func_$ac_func=yes"
4427 echo "configure: failed program was:" >&5
4428 cat conftest.
$ac_ext >&5
4430 eval "ac_cv_func_$ac_func=no"
4435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6
4437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4438 cat >> confdefs.h
<<EOF
4439 #define $ac_tr_func 1
4443 echo "$ac_t""no" 1>&6
4452 wine_cv_warn_cups_h
=no
4453 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4454 echo "configure:4455: checking for cupsGetPPD in -lcups" >&5
4455 ac_lib_var
=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 ac_save_LIBS
="$LIBS"
4461 cat > conftest.
$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4473 if { (eval echo configure
:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4475 eval "ac_cv_lib_$ac_lib_var=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.
$ac_ext >&5
4480 eval "ac_cv_lib_$ac_lib_var=no"
4483 LIBS
="$ac_save_LIBS"
4486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_safe
=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4489 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4490 echo "configure:4491: checking for cups/cups.h" >&5
4491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 cat > conftest.
$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 #include <cups/cups.h>
4499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4500 { (eval echo configure
:4501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4501 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4502 if test -z "$ac_err"; then
4504 eval "ac_cv_header_$ac_safe=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.
$ac_ext >&5
4510 eval "ac_cv_header_$ac_safe=no"
4514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4516 cat >> confdefs.h
<<\EOF
4522 echo "$ac_t""no" 1>&6
4523 wine_cv_warn_cups_h
=yes
4528 echo "$ac_t""no" 1>&6
4533 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4534 echo "configure:4535: checking for FT_Init_FreeType in -lfreetype" >&5
4535 ac_lib_var
=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4539 ac_save_LIBS
="$LIBS"
4540 LIBS
="-lfreetype $X_LIBS $LIBS"
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 /* Override any gcc2 internal prototype to avoid an error. */
4545 /* We use char because int might match the return type of a gcc2
4546 builtin and then its argument prototype would still apply. */
4547 char FT_Init_FreeType();
4553 if { (eval echo configure
:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4555 eval "ac_cv_lib_$ac_lib_var=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.
$ac_ext >&5
4560 eval "ac_cv_lib_$ac_lib_var=no"
4563 LIBS
="$ac_save_LIBS"
4566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4567 echo "$ac_t""yes" 1>&6
4570 echo "$ac_t""no" 1>&6
4574 if test "$ft_lib" = "no"
4578 wine_cv_msg_freetype
=no
4580 # Extract the first word of "freetype-config", so it can be a program name with args.
4581 set dummy freetype-config
; ac_word
=$2
4582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_word" >&5
4584 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 if test -n "$ft_devel"; then
4588 ac_cv_prog_ft_devel
="$ft_devel" # Let the user override the test.
4590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4592 for ac_dir
in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir
=.
4594 if test -f $ac_dir/$ac_word; then
4595 ac_cv_prog_ft_devel
="freetype-config"
4600 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel
="no"
4603 ft_devel
="$ac_cv_prog_ft_devel"
4604 if test -n "$ft_devel"; then
4605 echo "$ac_t""$ft_devel" 1>&6
4607 echo "$ac_t""no" 1>&6
4610 if test "$ft_devel" = "no"
4612 # Extract the first word of "freetype2-config", so it can be a program name with args.
4613 set dummy freetype2-config
; ac_word
=$2
4614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4615 echo "configure:4616: checking for $ac_word" >&5
4616 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 if test -n "$ft_devel2"; then
4620 ac_cv_prog_ft_devel2
="$ft_devel2" # Let the user override the test.
4622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4624 for ac_dir
in $ac_dummy; do
4625 test -z "$ac_dir" && ac_dir
=.
4626 if test -f $ac_dir/$ac_word; then
4627 ac_cv_prog_ft_devel2
="freetype2-config"
4632 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2
="no"
4635 ft_devel2
="$ac_cv_prog_ft_devel2"
4636 if test -n "$ft_devel2"; then
4637 echo "$ac_t""$ft_devel2" 1>&6
4639 echo "$ac_t""no" 1>&6
4642 if test "$ft_devel2" = "freetype2-config"
4647 if test "$ft_devel" = "no"
4651 wine_cv_msg_freetype
=yes
4653 cat >> confdefs.h
<<\EOF
4654 #define HAVE_FREETYPE 1
4657 FREETYPELIBS
=`$ft_devel --libs`
4658 FREETYPEINCL
=`$ft_devel --cflags`
4659 ac_save_CPPFLAGS
="$CPPFLAGS"
4660 CPPFLAGS
="$FREETYPEINCL $CPPFLAGS"
4661 for ac_hdr
in freetype
/freetype.h \
4662 freetype
/ftglyph.h \
4663 freetype
/tttables.h \
4664 freetype
/ftnames.h \
4665 freetype
/ftsnames.h \
4666 freetype
/ttnameid.h \
4667 freetype
/ftoutln.h \
4668 freetype
/internal
/sfnt.h
4670 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_hdr" >&5
4673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.
$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4681 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4682 { (eval echo configure
:4683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4683 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4684 if test -z "$ac_err"; then
4686 eval "ac_cv_header_$ac_safe=yes"
4689 echo "configure: failed program was:" >&5
4690 cat conftest.
$ac_ext >&5
4692 eval "ac_cv_header_$ac_safe=no"
4696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4699 cat >> confdefs.h
<<EOF
4700 #define $ac_tr_hdr 1
4704 echo "$ac_t""no" 1>&6
4708 CPPFLAGS
="$ac_save_CPPFLAGS"
4709 wine_cv_msg_freetype
=no
4715 echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
4716 echo "configure:4717: checking for parport header/ppdev.h" >&5
4717 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.
$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 #include <linux/ppdev.h>
4728 if { (eval echo configure
:4729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4732 echo "configure: failed program was:" >&5
4733 cat conftest.
$ac_ext >&5
4741 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4742 if test "$ac_cv_c_ppdev" = "yes"
4744 cat >> confdefs.h
<<\EOF
4745 #define HAVE_PPDEV 1
4750 echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
4751 echo "configure:4752: checking for GNU style IPX support" >&5
4752 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 #include <sys/socket.h>
4759 #include <netipx/ipx.h>
4761 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4764 if { (eval echo configure
:4765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4766 ac_cv_c_ipx_gnu
="yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.
$ac_ext >&5
4771 ac_cv_c_ipx_gnu
="no"
4777 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4778 if test "$ac_cv_c_ipx_gnu" = "yes"
4780 cat >> confdefs.h
<<\EOF
4781 #define HAVE_IPX_GNU 1
4786 if test "$ac_cv_c_ipx_gnu" = "no"
4788 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
4789 echo "configure:4790: checking for linux style IPX support" >&5
4790 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 cat > conftest.
$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 #include <sys/socket.h>
4797 #include <asm/types.h>
4798 #include <linux/ipx.h>
4800 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4803 if { (eval echo configure
:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4805 ac_cv_c_ipx_linux
="yes"
4807 echo "configure: failed program was:" >&5
4808 cat conftest.
$ac_ext >&5
4810 ac_cv_c_ipx_linux
="no"
4816 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4817 if test "$ac_cv_c_ipx_linux" = "yes"
4819 cat >> confdefs.h
<<\EOF
4820 #define HAVE_IPX_LINUX 1
4826 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4828 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4830 echo "configure:4831: checking for $ac_hdr" >&5
4831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 cat > conftest.
$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4839 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4840 { (eval echo configure
:4841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4841 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4842 if test -z "$ac_err"; then
4844 eval "ac_cv_header_$ac_safe=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.
$ac_ext >&5
4850 eval "ac_cv_header_$ac_safe=no"
4854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4856 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4857 cat >> confdefs.h
<<EOF
4858 #define $ac_tr_hdr 1
4862 echo "$ac_t""no" 1>&6
4867 echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
4868 echo "configure:4869: checking for Open Sound System" >&5
4869 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4876 #if defined(HAVE_SYS_SOUNDCARD_H)
4877 #include <sys/soundcard.h>
4878 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4879 #include <machine/soundcard.h>
4880 #elif defined(HAVE_SOUNDCARD_H)
4881 #include <soundcard.h>
4887 /* check for one of the Open Sound System specific SNDCTL_ defines */
4888 #if !defined(SNDCTL_DSP_STEREO)
4889 #error No open sound system
4894 if { (eval echo configure
:4895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4896 ac_cv_c_opensoundsystem
="yes"
4898 echo "configure: failed program was:" >&5
4899 cat conftest.
$ac_ext >&5
4901 ac_cv_c_opensoundsystem
="no"
4906 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4908 if test "$ac_cv_c_opensoundsystem" = "yes"
4910 cat >> confdefs.h
<<\EOF
4916 echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
4917 echo "configure:4918: checking for Open Sound System/MIDI interface" >&5
4918 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4921 cat > conftest.
$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4925 #if defined(HAVE_SYS_SOUNDCARD_H)
4926 #include <sys/soundcard.h>
4927 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4928 #include <machine/soundcard.h>
4929 #elif defined(HAVE_SOUNDCARD_H)
4930 #include <soundcard.h>
4936 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4937 #if !defined(SNDCTL_SEQ_SYNC)
4938 #error No open sound system MIDI interface
4943 if { (eval echo configure
:4944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4945 ac_cv_c_opensoundsystem_midi
="yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.
$ac_ext >&5
4950 ac_cv_c_opensoundsystem_midi
="no"
4955 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4957 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4959 cat >> confdefs.h
<<\EOF
4960 #define HAVE_OSS_MIDI 1
4965 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4968 echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
4969 echo "configure:4970: checking whether mmap64 works defined as mmap" >&5
4970 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4973 if test "$cross_compiling" = yes; then
4974 ac_cv_mmap64_works
="no"
4976 cat > conftest.
$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4980 #define _FILE_OFFSET_BITS 64
4984 #include <sys/mman.h>
4987 int main(int argc,char **argv) {
4988 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4989 if (fd == -1) exit(1);
4991 unlink("conftest.map");
4995 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
5001 fprintf(stderr,"success!\n");
5007 if { (eval echo configure
:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5009 ac_cv_mmap64_works
="yes"
5011 echo "configure: failed program was:" >&5
5012 cat conftest.
$ac_ext >&5
5014 ac_cv_mmap64_works
="no"
5021 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5023 if test "$ac_cv_mmap64_works" = "yes"
5025 cat >> confdefs.h
<<\EOF
5026 #define _FILE_OFFSET_BITS 64
5032 if test "x${GCC}" = "xyes"
5034 CFLAGS
="$CFLAGS -Wall"
5035 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
5036 echo "configure:5037: checking for gcc strength-reduce bug" >&5
5037 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 if test "$cross_compiling" = yes; then
5041 ac_cv_c_gcc_strength_bug
="yes"
5043 cat > conftest.
$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5047 int L[4] = {0,1,2,3};
5049 static int Array[3];
5052 for(i=0; i<B; i++) Array[i] = i - 3;
5053 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5056 exit( Array[1] != -2 || L[2] != 3);
5059 if { (eval echo configure
:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5061 ac_cv_c_gcc_strength_bug
="no"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.
$ac_ext >&5
5066 ac_cv_c_gcc_strength_bug
="yes"
5073 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5074 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5076 CFLAGS
="$CFLAGS -fno-strength-reduce"
5079 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
5080 echo "configure:5081: checking for gcc -mpreferred-stack-boundary=2 support" >&5
5081 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 saved_cflags
=$CFLAGS
5085 CFLAGS
="$CFLAGS -mpreferred-stack-boundary=2"
5086 cat > conftest.
$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5094 if { (eval echo configure
:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 ac_cv_c_gcc_stack_boundary
="yes"
5098 echo "configure: failed program was:" >&5
5099 cat conftest.
$ac_ext >&5
5101 ac_cv_c_gcc_stack_boundary
="no"
5104 CFLAGS
=$saved_cflags
5108 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5109 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5111 CFLAGS
="$CFLAGS -mpreferred-stack-boundary=2"
5116 echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
5117 echo "configure:5118: checking whether .type must sit inside a .def directive" >&5
5118 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5122 LIBS
="conftest_asm.s $LIBS"
5123 cat > conftest_asm.s
<<EOF
5125 .def _ac_test; .scl 2; .type 32; .endef
5129 cat > conftest.
$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5137 if { (eval echo configure
:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5139 ac_cv_c_type_in_def
="yes"
5141 echo "configure: failed program was:" >&5
5142 cat conftest.
$ac_ext >&5
5144 ac_cv_c_type_in_def
="no"
5150 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5151 if test "$ac_cv_c_type_in_def" = "yes"
5153 cat >> confdefs.h
<<\EOF
5154 #define NEED_TYPE_IN_DEF 1
5160 echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
5161 echo "configure:5162: checking whether external symbols need an underscore prefix" >&5
5162 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5166 LIBS
="conftest_asm.s $LIBS"
5167 cat > conftest_asm.s
<<EOF
5172 cat > conftest.
$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5177 if (ac_test) return 1
5180 if { (eval echo configure
:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5182 ac_cv_c_extern_prefix
="yes"
5184 echo "configure: failed program was:" >&5
5185 cat conftest.
$ac_ext >&5
5187 ac_cv_c_extern_prefix
="no"
5193 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5194 if test "$ac_cv_c_extern_prefix" = "yes"
5196 cat >> confdefs.h
<<\EOF
5197 #define NEED_UNDERSCORE_PREFIX 1
5203 echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
5204 echo "configure:5205: checking whether assembler accepts .string" >&5
5205 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5209 LIBS
="conftest_asm.s $LIBS"
5210 cat > conftest_asm.s
<<EOF
5213 cat > conftest.
$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5221 if { (eval echo configure
:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5223 ac_cv_c_asm_string
="yes"
5225 echo "configure: failed program was:" >&5
5226 cat conftest.
$ac_ext >&5
5228 ac_cv_c_asm_string
="no"
5234 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5235 if test "$ac_cv_c_asm_string" = "yes"
5237 cat >> confdefs.h
<<\EOF
5238 #define HAVE_ASM_STRING 1
5246 if test "$LIBEXT" = "so"
5248 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
5249 echo "configure:5250: checking whether we can build a GNU style ELF dll" >&5
5250 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5253 saved_cflags
=$CFLAGS
5254 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5255 cat > conftest.
$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5263 if { (eval echo configure
:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5265 ac_cv_c_dll_gnuelf
="yes"
5267 echo "configure: failed program was:" >&5
5268 cat conftest.
$ac_ext >&5
5270 ac_cv_c_dll_gnuelf
="no"
5273 CFLAGS
=$saved_cflags
5277 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5278 if test "$ac_cv_c_dll_gnuelf" = "yes"
5280 LDSHARED
="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5281 LDDLLFLAGS
="-Wl,-Bsymbolic"
5283 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5284 echo "configure:5285: checking whether we can build a UnixWare (Solaris) dll" >&5
5285 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5288 saved_cflags
=$CFLAGS
5289 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5290 cat > conftest.
$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5298 if { (eval echo configure
:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5300 ac_cv_c_dll_unixware
="yes"
5302 echo "configure: failed program was:" >&5
5303 cat conftest.
$ac_ext >&5
5305 ac_cv_c_dll_unixware
="no"
5308 CFLAGS
=$saved_cflags
5312 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5313 if test "$ac_cv_c_dll_unixware" = "yes"
5315 LDSHARED
="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5316 LDDLLFLAGS
="-Wl,-B,symbolic"
5319 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5322 if test "$DLLWRAP" = "dllwrap"; then
5323 if test "$CYGWIN" = "yes"; then
5324 echo "*** use dllwrap for building shared library."
5331 if test "$LIBEXT" = "a"; then
5332 echo "*** It is currently not possible to build WINE without shared"
5333 echo "*** library (.so) support to allow transparent switch between .so"
5334 echo "*** and .dll files."
5335 echo "*** If you are using Linux, you will need a newer binutils."
5342 if test "$LIBEXT" = "so"; then
5344 LDPATH
="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5345 elif test "$LIBEXT" = "dll"; then
5346 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5347 LDPATH
="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5359 wine_cv_libc_reentrant
=no
5361 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5362 echo "configure:5363: checking for reentrant libc: __errno_location" >&5
5363 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5366 if test "$cross_compiling" = yes; then
5367 wine_cv_libc_r___errno_location
=yes
5369 cat > conftest.
$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5374 int *__errno_location(){return &myerrno;}
5375 main(){connect(0,buf,255); exit(!myerrno);}
5377 if { (eval echo configure
:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5379 wine_cv_libc_r___errno_location
=yes
5381 echo "configure: failed program was:" >&5
5382 cat conftest.
$ac_ext >&5
5384 wine_cv_libc_r___errno_location
=no
5392 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5393 if test "$wine_cv_libc_r___errno_location" = "yes"
5395 wine_cv_libc_reentrant
=__errno_location
5399 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5400 echo "configure:5401: checking for reentrant libc: __error" >&5
5401 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 if test "$cross_compiling" = yes; then
5405 wine_cv_libc_r___error
=yes
5407 cat > conftest.
$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5412 int *__error(){return &myerrno;}
5413 main(){connect(0,buf,255); exit(!myerrno);}
5415 if { (eval echo configure
:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5417 wine_cv_libc_r___error
=yes
5419 echo "configure: failed program was:" >&5
5420 cat conftest.
$ac_ext >&5
5422 wine_cv_libc_r___error
=no
5430 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5431 if test "$wine_cv_libc_r___error" = "yes"
5433 wine_cv_libc_reentrant
=__error
5437 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5438 echo "configure:5439: checking for reentrant libc: ___errno" >&5
5439 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 if test "$cross_compiling" = yes; then
5443 wine_cv_libc_r____errno
=yes
5445 cat > conftest.
$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5450 int *___errno(){return &myerrno;}
5451 main(){connect(0,buf,255); exit(!myerrno);}
5453 if { (eval echo configure
:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5455 wine_cv_libc_r____errno
=yes
5457 echo "configure: failed program was:" >&5
5458 cat conftest.
$ac_ext >&5
5460 wine_cv_libc_r____errno
=no
5468 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5469 if test "$wine_cv_libc_r____errno" = "yes"
5471 wine_cv_libc_reentrant
=___errno
5475 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5476 echo "configure:5477: checking for reentrant libc: __thr_errno" >&5
5477 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 if test "$cross_compiling" = yes; then
5481 wine_cv_libc_r___thr_errno
=yes
5483 cat > conftest.
$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5488 int *__thr_errno(){return &myerrno;}
5489 main(){connect(0,buf,255); exit(!myerrno);}
5491 if { (eval echo configure
:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5493 wine_cv_libc_r___thr_errno
=yes
5495 echo "configure: failed program was:" >&5
5496 cat conftest.
$ac_ext >&5
5498 wine_cv_libc_r___thr_errno
=no
5506 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5507 if test "$wine_cv_libc_r___thr_errno" = "yes"
5509 wine_cv_libc_reentrant
=__thr_errno
5513 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5514 echo "configure:5515: checking for reentrant libc: __errno" >&5
5515 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5518 if test "$cross_compiling" = yes; then
5519 wine_cv_libc_r___errno
=yes
5521 cat > conftest.
$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5526 int *__errno(){return &myerrno;}
5527 main(){connect(0,buf,255); exit(!myerrno);}
5529 if { (eval echo configure
:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5531 wine_cv_libc_r___errno
=yes
5533 echo "configure: failed program was:" >&5
5534 cat conftest.
$ac_ext >&5
5536 wine_cv_libc_r___errno
=no
5544 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5545 if test "$wine_cv_libc_r___errno" = "yes"
5547 wine_cv_libc_reentrant
=__errno
5551 if test "$wine_cv_libc_reentrant" != "no"
5553 cat >> confdefs.h
<<EOF
5554 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5560 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5562 echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
5563 echo "configure:5564: checking for reentrant X libraries" >&5
5564 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5567 if test "x$with_reentrant_x" = "xno"
5569 wine_cv_x_reentrant
=no
5572 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
5573 if test -r $dir/libX11.so
; then
5574 libX11_check
="-D $dir/libX11.so"
5577 if test -r $dir/libX11.a
; then
5578 libX11_check
="$dir/libX11.a"
5582 if test "$libX11_check" != "none"; then
5583 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
5585 wine_cv_x_reentrant
=yes
5587 wine_cv_x_reentrant
=no
5590 wine_cv_x_reentrant
=unknown
5595 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5597 wine_cv_x_reentrant
=no
5599 if test "$wine_cv_x_reentrant" = "no"
5601 cat >> confdefs.h
<<\EOF
5602 #define NO_REENTRANT_X11 1
5609 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5610 # for constant arguments. Useless!
5611 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5612 echo "configure:5613: checking for working alloca.h" >&5
5613 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.
$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5621 char *p = alloca(2 * sizeof(int));
5624 if { (eval echo configure
:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5626 ac_cv_header_alloca_h
=yes
5628 echo "configure: failed program was:" >&5
5629 cat conftest.
$ac_ext >&5
5631 ac_cv_header_alloca_h
=no
5636 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5637 if test $ac_cv_header_alloca_h = yes; then
5638 cat >> confdefs.h
<<\EOF
5639 #define HAVE_ALLOCA_H 1
5644 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5645 echo "configure:5646: checking for alloca" >&5
5646 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 cat > conftest.
$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5654 # define alloca __builtin_alloca
5657 # include <malloc.h>
5658 # define alloca _alloca
5661 # include <alloca.h>
5666 # ifndef alloca /* predefined by HP cc +Olibcalls */
5675 char *p = (char *) alloca(1);
5678 if { (eval echo configure
:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5680 ac_cv_func_alloca_works
=yes
5682 echo "configure: failed program was:" >&5
5683 cat conftest.
$ac_ext >&5
5685 ac_cv_func_alloca_works
=no
5690 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5691 if test $ac_cv_func_alloca_works = yes; then
5692 cat >> confdefs.h
<<\EOF
5693 #define HAVE_ALLOCA 1
5698 if test $ac_cv_func_alloca_works = no
; then
5699 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5700 # that cause trouble. Some versions do not even contain alloca or
5701 # contain a buggy version. If you still want to use their alloca,
5702 # use ar to extract alloca.o from them instead of compiling alloca.c.
5703 ALLOCA
=alloca.
${ac_objext}
5704 cat >> confdefs.h
<<\EOF
5709 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5710 echo "configure:5711: checking whether alloca needs Cray hooks" >&5
5711 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.
$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5717 #if defined(CRAY) && ! defined(CRAY2)
5724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5725 egrep "webecray" >/dev
/null
2>&1; then
5736 echo "$ac_t""$ac_cv_os_cray" 1>&6
5737 if test $ac_cv_os_cray = yes; then
5738 for ac_func
in _getb67 GETB67 getb67
; do
5739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5740 echo "configure:5741: checking for $ac_func" >&5
5741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5744 cat > conftest.
$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5747 /* System header to define __stub macros and hopefully few prototypes,
5748 which can conflict with char $ac_func(); below. */
5750 /* Override any gcc2 internal prototype to avoid an error. */
5751 /* We use char because int might match the return type of a gcc2
5752 builtin and then its argument prototype would still apply. */
5757 /* The GNU C library defines this for functions which it implements
5758 to always fail with ENOSYS. Some functions are actually named
5759 something starting with __ and the normal name is an alias. */
5760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5768 if { (eval echo configure
:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5770 eval "ac_cv_func_$ac_func=yes"
5772 echo "configure: failed program was:" >&5
5773 cat conftest.
$ac_ext >&5
5775 eval "ac_cv_func_$ac_func=no"
5780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5781 echo "$ac_t""yes" 1>&6
5782 cat >> confdefs.h
<<EOF
5783 #define CRAY_STACKSEG_END $ac_func
5788 echo "$ac_t""no" 1>&6
5794 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5795 echo "configure:5796: checking stack direction for C alloca" >&5
5796 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5797 echo $ac_n "(cached) $ac_c" 1>&6
5799 if test "$cross_compiling" = yes; then
5800 ac_cv_c_stack_direction
=0
5802 cat > conftest.
$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5805 find_stack_direction ()
5807 static char *addr = 0;
5812 return find_stack_direction ();
5815 return (&dummy > addr) ? 1 : -1;
5819 exit (find_stack_direction() < 0);
5822 if { (eval echo configure
:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5824 ac_cv_c_stack_direction
=1
5826 echo "configure: failed program was:" >&5
5827 cat conftest.
$ac_ext >&5
5829 ac_cv_c_stack_direction
=-1
5836 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5837 cat >> confdefs.h
<<EOF
5838 #define STACK_DIRECTION $ac_cv_c_stack_direction
5881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_func" >&5
5883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.
$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* System header to define __stub macros and hopefully few prototypes,
5890 which can conflict with char $ac_func(); below. */
5892 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5899 /* The GNU C library defines this for functions which it implements
5900 to always fail with ENOSYS. Some functions are actually named
5901 something starting with __ and the normal name is an alias. */
5902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5910 if { (eval echo configure
:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5912 eval "ac_cv_func_$ac_func=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.
$ac_ext >&5
5917 eval "ac_cv_func_$ac_func=no"
5922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5924 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5925 cat >> confdefs.h
<<EOF
5926 #define $ac_tr_func 1
5930 echo "$ac_t""no" 1>&6
5952 netinet
/in_systm.h \
5992 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_hdr" >&5
5995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 cat > conftest.
$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6004 { (eval echo configure
:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6006 if test -z "$ac_err"; then
6008 eval "ac_cv_header_$ac_safe=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.
$ac_ext >&5
6014 eval "ac_cv_header_$ac_safe=no"
6018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6019 echo "$ac_t""yes" 1>&6
6020 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6021 cat >> confdefs.h
<<EOF
6022 #define $ac_tr_hdr 1
6026 echo "$ac_t""no" 1>&6
6030 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6031 echo "configure:6032: checking whether stat file-mode macros are broken" >&5
6032 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 cat > conftest.
$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 #include <sys/types.h>
6039 #include <sys/stat.h>
6041 #if defined(S_ISBLK) && defined(S_IFDIR)
6042 # if S_ISBLK (S_IFDIR)
6047 #if defined(S_ISBLK) && defined(S_IFCHR)
6048 # if S_ISBLK (S_IFCHR)
6053 #if defined(S_ISLNK) && defined(S_IFREG)
6054 # if S_ISLNK (S_IFREG)
6059 #if defined(S_ISSOCK) && defined(S_IFREG)
6060 # if S_ISSOCK (S_IFREG)
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 egrep "You lose" >/dev
/null
2>&1; then
6069 ac_cv_header_stat_broken
=yes
6072 ac_cv_header_stat_broken
=no
6078 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6079 if test $ac_cv_header_stat_broken = yes; then
6080 cat >> confdefs.h
<<\EOF
6081 #define STAT_MACROS_BROKEN 1
6088 echo $ac_n "checking for working const""... $ac_c" 1>&6
6089 echo "configure:6090: checking for working const" >&5
6090 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 cat > conftest.
$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6099 /* Ultrix mips cc rejects this. */
6100 typedef int charset[2]; const charset x;
6101 /* SunOS 4.1.1 cc rejects this. */
6102 char const *const *ccp;
6104 /* NEC SVR4.0.2 mips cc rejects this. */
6105 struct point {int x, y;};
6106 static struct point const zero = {0,0};
6107 /* AIX XL C 1.02.0.0 rejects this.
6108 It does not let you subtract one const X* pointer from another in an arm
6109 of an if-expression whose if-part is not a constant expression */
6110 const char *g = "string";
6111 ccp = &g + (g ? g-g : 0);
6112 /* HPUX 7.0 cc rejects these. */
6115 ccp = (char const *const *) p;
6116 { /* SCO 3.2v4 cc rejects this. */
6118 char const *s = 0 ? (char *) 0 : (char const *) 0;
6122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6124 const int *foo = &x[0];
6127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6128 typedef const int *iptr;
6132 { /* AIX XL C 1.02.0.0 rejects this saying
6133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6134 struct s { int j; const int *ap[3]; };
6135 struct s *b; b->j = 5;
6137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6143 if { (eval echo configure
:6144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6147 echo "configure: failed program was:" >&5
6148 cat conftest.
$ac_ext >&5
6155 echo "$ac_t""$ac_cv_c_const" 1>&6
6156 if test $ac_cv_c_const = no
; then
6157 cat >> confdefs.h
<<\EOF
6163 echo $ac_n "checking for inline""... $ac_c" 1>&6
6164 echo "configure:6165: checking for inline" >&5
6165 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6169 for ac_kw
in inline __inline__ __inline
; do
6170 cat > conftest.
$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6178 if { (eval echo configure
:6179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6180 ac_cv_c_inline
=$ac_kw; break
6182 echo "configure: failed program was:" >&5
6183 cat conftest.
$ac_ext >&5
6190 echo "$ac_t""$ac_cv_c_inline" 1>&6
6191 case "$ac_cv_c_inline" in
6193 no
) cat >> confdefs.h
<<\EOF
6197 *) cat >> confdefs.h
<<EOF
6198 #define inline $ac_cv_c_inline
6203 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6204 echo "configure:6205: checking for ANSI C header files" >&5
6205 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 cat > conftest.
$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6216 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6217 { (eval echo configure
:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6218 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6219 if test -z "$ac_err"; then
6221 ac_cv_header_stdc
=yes
6224 echo "configure: failed program was:" >&5
6225 cat conftest.
$ac_ext >&5
6227 ac_cv_header_stdc
=no
6231 if test $ac_cv_header_stdc = yes; then
6232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6233 cat > conftest.
$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 egrep "memchr" >/dev
/null
2>&1; then
6243 ac_cv_header_stdc
=no
6249 if test $ac_cv_header_stdc = yes; then
6250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6251 cat > conftest.
$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 egrep "free" >/dev
/null
2>&1; then
6261 ac_cv_header_stdc
=no
6267 if test $ac_cv_header_stdc = yes; then
6268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6269 if test "$cross_compiling" = yes; then
6272 cat > conftest.
$ac_ext <<EOF
6273 #line 6274 "configure"
6274 #include "confdefs.h"
6276 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6277 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6279 int main () { int i; for (i = 0; i < 256; i++)
6280 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6284 if { (eval echo configure
:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6288 echo "configure: failed program was:" >&5
6289 cat conftest.
$ac_ext >&5
6291 ac_cv_header_stdc
=no
6299 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6300 if test $ac_cv_header_stdc = yes; then
6301 cat >> confdefs.h
<<\EOF
6302 #define STDC_HEADERS 1
6307 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6308 echo "configure:6309: checking for size_t" >&5
6309 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6312 cat > conftest.
$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6315 #include <sys/types.h>
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6324 ac_cv_type_size_t
=yes
6327 ac_cv_type_size_t
=no
6332 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6333 if test $ac_cv_type_size_t = no
; then
6334 cat >> confdefs.h
<<\EOF
6335 #define size_t unsigned
6340 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6341 echo "configure:6342: checking size of long long" >&5
6342 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6345 if test "$cross_compiling" = yes; then
6346 ac_cv_sizeof_long_long
=0
6348 cat > conftest.
$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6352 #include <sys/types.h>
6355 FILE *f=fopen("conftestval", "w");
6357 fprintf(f, "%d\n", sizeof(long long));
6361 if { (eval echo configure
:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6363 ac_cv_sizeof_long_long
=`cat conftestval`
6365 echo "configure: failed program was:" >&5
6366 cat conftest.
$ac_ext >&5
6368 ac_cv_sizeof_long_long
=0
6374 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6375 cat >> confdefs.h
<<EOF
6376 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6381 echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
6382 echo "configure:6383: checking whether linux/input.h is for real" >&5
6383 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6386 cat > conftest.
$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6390 #include <linux/input.h>
6394 int foo = EVIOCGBIT(EV_ABS,42);
6395 int bar = BTN_PINKIE;
6400 if { (eval echo configure
:6401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6402 wine_cv_linux_input_h
=yes
6404 echo "configure: failed program was:" >&5
6405 cat conftest.
$ac_ext >&5
6407 wine_cv_linux_input_h
=no
6413 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6414 if test "$wine_cv_linux_input_h" = "yes"
6416 cat >> confdefs.h
<<\EOF
6417 #define HAVE_CORRECT_LINUXINPUT_H 1
6423 echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
6424 echo "configure:6425: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
6425 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 cat > conftest.
$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6438 struct hostent *result;
6445 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6446 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6450 if { (eval echo configure
:6451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6452 wine_cv_linux_gethostbyname_r_6
=yes
6454 echo "configure: failed program was:" >&5
6455 cat conftest.
$ac_ext >&5
6457 wine_cv_linux_gethostbyname_r_6
=no
6464 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6465 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6467 cat >> confdefs.h
<<\EOF
6468 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6473 if test "$ac_cv_header_linux_joystick_h" = "yes"
6475 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
6476 echo "configure:6477: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
6477 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.
$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6484 #include <sys/ioctl.h>
6485 #include <linux/joystick.h>
6487 struct js_event blub;
6488 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6489 #error "no 2.2 header"
6496 if { (eval echo configure
:6497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6498 wine_cv_linux_joystick_22_api
=yes
6500 echo "configure: failed program was:" >&5
6501 cat conftest.
$ac_ext >&5
6503 wine_cv_linux_joystick_22_api
=no
6509 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6510 if test "$wine_cv_linux_joystick_22_api" = "yes"
6512 cat >> confdefs.h
<<\EOF
6513 #define HAVE_LINUX_22_JOYSTICK_API 1
6520 if test "$ac_cv_header_sys_vfs_h" = "yes"
6522 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
6523 echo "configure:6524: checking whether sys/vfs.h defines statfs" >&5
6524 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 cat > conftest.
$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6531 #include <sys/types.h>
6532 #ifdef HAVE_SYS_PARAM_H
6533 # include <sys/param.h>
6535 #include <sys/vfs.h>
6541 memset(&stfs,0,sizeof(stfs));
6545 if { (eval echo configure
:6546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6547 wine_cv_sys_vfs_has_statfs
=yes
6549 echo "configure: failed program was:" >&5
6550 cat conftest.
$ac_ext >&5
6552 wine_cv_sys_vfs_has_statfs
=no
6559 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6560 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6562 cat >> confdefs.h
<<\EOF
6563 #define STATFS_DEFINED_BY_SYS_VFS 1
6569 if test "$ac_cv_header_sys_statfs_h" = "yes"
6571 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
6572 echo "configure:6573: checking whether sys/statfs.h defines statfs" >&5
6573 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6576 cat > conftest.
$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6580 #include <sys/types.h>
6581 #ifdef HAVE_SYS_PARAM_H
6582 # include <sys/param.h>
6584 #include <sys/statfs.h>
6592 if { (eval echo configure
:6593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6594 wine_cv_sys_statfs_has_statfs
=yes
6596 echo "configure: failed program was:" >&5
6597 cat conftest.
$ac_ext >&5
6599 wine_cv_sys_statfs_has_statfs
=no
6606 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6607 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6609 cat >> confdefs.h
<<\EOF
6610 #define STATFS_DEFINED_BY_SYS_STATFS 1
6616 if test "$ac_cv_header_sys_mount_h" = "yes"
6618 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
6619 echo "configure:6620: checking whether sys/mount.h defines statfs" >&5
6620 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6623 cat > conftest.
$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6627 #include <sys/types.h>
6628 #ifdef HAVE_SYS_PARAM_H
6629 # include <sys/param.h>
6631 #include <sys/mount.h>
6639 if { (eval echo configure
:6640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6641 wine_cv_sys_mount_has_statfs
=yes
6643 echo "configure: failed program was:" >&5
6644 cat conftest.
$ac_ext >&5
6646 wine_cv_sys_mount_has_statfs
=no
6653 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6654 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6656 cat >> confdefs.h
<<\EOF
6657 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6664 echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
6665 echo "configure:6666: checking for statfs.f_bfree" >&5
6666 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 if test "x$statfs_bfree" = "xno"
6671 wine_cv_statfs_bfree
=no
6673 cat > conftest.
$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6677 #include <sys/types.h>
6678 #ifdef HAVE_SYS_PARAM_H
6679 # include <sys/param.h>
6681 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6682 # include <sys/mount.h>
6684 # ifdef STATFS_DEFINED_BY_SYS_VFS
6685 # include <sys/vfs.h>
6687 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6688 # include <sys/statfs.h>
6701 if { (eval echo configure
:6702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6703 wine_cv_statfs_bfree
=yes
6705 echo "configure: failed program was:" >&5
6706 cat conftest.
$ac_ext >&5
6708 wine_cv_statfs_bfree
=no
6715 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6716 if test "$wine_cv_statfs_bfree" = "yes"
6718 cat >> confdefs.h
<<\EOF
6719 #define STATFS_HAS_BFREE 1
6724 echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
6725 echo "configure:6726: checking for statfs.f_bavail" >&5
6726 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 if test "x$statfs_bavail" = "xno"
6731 wine_cv_statfs_bavail
=no
6733 cat > conftest.
$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6737 #include <sys/types.h>
6738 #ifdef HAVE_SYS_PARAM_H
6739 # include <sys/param.h>
6741 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6742 # include <sys/mount.h>
6744 # ifdef STATFS_DEFINED_BY_SYS_VFS
6745 # include <sys/vfs.h>
6747 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6748 # include <sys/statfs.h>
6761 if { (eval echo configure
:6762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6763 wine_cv_statfs_bavail
=yes
6765 echo "configure: failed program was:" >&5
6766 cat conftest.
$ac_ext >&5
6768 wine_cv_statfs_bavail
=no
6775 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6776 if test "$wine_cv_statfs_bavail" = "yes"
6778 cat >> confdefs.h
<<\EOF
6779 #define STATFS_HAS_BAVAIL 1
6785 echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
6786 echo "configure:6787: checking for msg_accrights in struct msghdr" >&5
6787 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 cat > conftest.
$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 #include <sys/types.h>
6794 #include <sys/socket.h>
6796 struct msghdr hdr; hdr.msg_accrights=0
6799 if { (eval echo configure
:6800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6801 ac_cv_c_msg_accrights
="yes"
6803 echo "configure: failed program was:" >&5
6804 cat conftest.
$ac_ext >&5
6806 ac_cv_c_msg_accrights
="no"
6811 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6812 if test "$ac_cv_c_msg_accrights" = "yes"
6814 cat >> confdefs.h
<<\EOF
6815 #define HAVE_MSGHDR_ACCRIGHTS 1
6821 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
6822 echo "configure:6823: checking for sa_len in struct sockaddr" >&5
6823 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 cat > conftest.
$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 #include <sys/types.h>
6830 #include <sys/socket.h>
6833 static struct sockaddr addr; addr.sa_len = 1
6836 if { (eval echo configure
:6837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6838 ac_cv_c_sockaddr_sa_len
="yes"
6840 echo "configure: failed program was:" >&5
6841 cat conftest.
$ac_ext >&5
6843 ac_cv_c_sockaddr_sa_len
="no"
6848 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6849 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6851 cat >> confdefs.h
<<\EOF
6852 #define HAVE_SOCKADDR_SA_LEN 1
6858 echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
6859 echo "configure:6860: checking for sun_len in struct sockaddr_un" >&5
6860 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 cat > conftest.
$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 #include <sys/types.h>
6867 #include <sys/socket.h>
6870 static struct sockaddr_un addr; addr.sun_len = 1
6873 if { (eval echo configure
:6874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6875 ac_cv_c_sockaddr_sun_len
="yes"
6877 echo "configure: failed program was:" >&5
6878 cat conftest.
$ac_ext >&5
6880 ac_cv_c_sockaddr_sun_len
="no"
6885 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6886 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6888 cat >> confdefs.h
<<\EOF
6889 #define HAVE_SOCKADDR_SUN_LEN 1
6895 echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
6896 echo "configure:6897: checking whether we need to define __i386__" >&5
6897 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6900 cat > conftest.
$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908 egrep "yes" >/dev
/null
2>&1; then
6910 ac_cv_cpp_def_i386
="yes"
6913 ac_cv_cpp_def_i386
="no"
6919 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6920 if test "$ac_cv_cpp_def_i386" = "yes"
6922 CFLAGS
="$CFLAGS -D__i386__"
6923 LINTFLAGS
="$LINTFLAGS -D__i386__"
6927 if test "$GCC" = "yes"
6929 GCC_NO_BUILTIN
="-fno-builtin"
6934 cat >> confdefs.h
<<\EOF
6935 #define __WINE_CONFIG_H 1
6941 MAKE_RULES
=Make.rules
6944 MAKE_DLL_RULES
=dlls
/Makedll.rules
6947 MAKE_PROG_RULES
=programs
/Makeprog.rules
6951 cat > confcache
<<\EOF
6952 # This file is a shell script that caches the results of configure
6953 # tests run on this system so they can be shared between configure
6954 # scripts and configure runs. It is not useful on other systems.
6955 # If it contains results you don't want to keep, you may remove or edit it.
6957 # By default, configure uses ./config.cache as the cache file,
6958 # creating it if it does not exist already. You can give configure
6959 # the --cache-file=FILE option to use a different cache file; that is
6960 # what configure does when it calls configure scripts in
6961 # subdirectories, so they share the cache.
6962 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6963 # config.status only pays attention to the cache file if you give it the
6964 # --recheck option to rerun configure.
6967 # The following way of writing the cache mishandles newlines in values,
6968 # but we know of no workaround that is simple, portable, and efficient.
6969 # So, don't put newlines in cache variables' values.
6970 # Ultrix sh set writes to stderr and can't be redirected directly,
6971 # and sets the high bit in the cache file unless we assign to the vars.
6973 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6975 # `set' does not quote correctly, so add quotes (double-quote substitution
6976 # turns \\\\ into \\, and sed turns \\ into \).
6978 -e "s/'/'\\\\''/g" \
6979 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6982 # `set' quotes correctly as required by POSIX, so do not add quotes.
6983 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6986 if cmp -s $cache_file confcache
; then
6989 if test -w $cache_file; then
6990 echo "updating cache $cache_file"
6991 cat confcache
> $cache_file
6993 echo "not updating unwritable cache $cache_file"
6998 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7000 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7001 # Let make expand exec_prefix.
7002 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7004 # Any assignment to VPATH causes Sun make to only execute
7005 # the first set of double-colon rules, so remove it if not needed.
7006 # If there is a colon in the path, we need to keep it.
7007 if test "x$srcdir" = x.
; then
7008 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7011 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7013 DEFS
=-DHAVE_CONFIG_H
7015 # Without the "./", some shells look in PATH for config.status.
7016 : ${CONFIG_STATUS=./config.status}
7018 echo creating
$CONFIG_STATUS
7019 rm -f $CONFIG_STATUS
7020 cat > $CONFIG_STATUS <<EOF
7022 # Generated automatically by configure.
7023 # Run this file to recreate the current configuration.
7024 # This directory was configured as follows,
7025 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7027 # $0 $ac_configure_args
7029 # Compiler output produced by configure, useful for debugging
7030 # configure, is in ./config.log if it exists.
7032 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7035 case "\$ac_option" in
7036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7037 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7038 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7039 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7040 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7042 -help | --help | --hel | --he | --h)
7043 echo "\$ac_cs_usage"; exit 0 ;;
7044 *) echo "\$ac_cs_usage"; exit 1 ;;
7048 ac_given_srcdir=$srcdir
7049 ac_given_INSTALL="$INSTALL"
7051 trap 'rm -fr `echo "
7054 programs/Makeprog.rules
7060 dlls/advapi32/Makefile
7061 dlls/avicap32/Makefile
7062 dlls/avifil32/Makefile
7063 dlls/comctl32/Makefile
7064 dlls/commdlg/Makefile
7065 dlls/crtdll/Makefile
7066 dlls/dciman32/Makefile
7068 dlls/devenum/Makefile
7069 dlls/dinput/Makefile
7071 dlls/dplayx/Makefile
7072 dlls/dsound/Makefile
7076 dlls/imagehlp/Makefile
7078 dlls/kernel/Makefile
7079 dlls/lzexpand/Makefile
7080 dlls/mapi32/Makefile
7084 dlls/msimg32/Makefile
7085 dlls/msnet32/Makefile
7086 dlls/msrle32/Makefile
7087 dlls/msvcrt/Makefile
7088 dlls/msvideo/Makefile
7089 dlls/netapi32/Makefile
7091 dlls/odbc32/Makefile
7093 dlls/oleaut32/Makefile
7094 dlls/olecli/Makefile
7095 dlls/oledlg/Makefile
7096 dlls/olepro32/Makefile
7097 dlls/olesvr/Makefile
7098 dlls/opengl32/Makefile
7101 dlls/quartz/Makefile
7102 dlls/rasapi32/Makefile
7103 dlls/richedit/Makefile
7104 dlls/rpcrt4/Makefile
7105 dlls/serialui/Makefile
7106 dlls/setupapi/Makefile
7107 dlls/shdocvw/Makefile
7108 dlls/shell32/Makefile
7109 dlls/shfolder/Makefile
7110 dlls/shlwapi/Makefile
7112 dlls/tapi32/Makefile
7113 dlls/ttydrv/Makefile
7115 dlls/urlmon/Makefile
7117 dlls/version/Makefile
7118 dlls/win32s/Makefile
7119 dlls/winaspi/Makefile
7120 dlls/winedos/Makefile
7121 dlls/wineps/Makefile
7122 dlls/wininet/Makefile
7124 dlls/winmm/joystick/Makefile
7125 dlls/winmm/mcianim/Makefile
7126 dlls/winmm/mciavi/Makefile
7127 dlls/winmm/mcicda/Makefile
7128 dlls/winmm/mciseq/Makefile
7129 dlls/winmm/mciwave/Makefile
7130 dlls/winmm/midimap/Makefile
7131 dlls/winmm/wavemap/Makefile
7132 dlls/winmm/wineoss/Makefile
7133 dlls/winnls/Makefile
7134 dlls/winsock/Makefile
7135 dlls/winspool/Makefile
7136 dlls/wintrust/Makefile
7138 dlls/wsock32/Makefile
7139 dlls/x11drv/Makefile
7140 documentation/Makefile
7141 documentation/wine.conf.man
7142 documentation/wine.man
7145 graphics/enhmetafiledrv/Makefile
7146 graphics/metafiledrv/Makefile
7147 graphics/win16drv/Makefile
7148 graphics/x11drv/Makefile
7163 programs/avitools/Makefile
7164 programs/clock/Makefile
7165 programs/cmdlgtst/Makefile
7166 programs/control/Makefile
7167 programs/notepad/Makefile
7168 programs/osversioncheck/Makefile
7169 programs/progman/Makefile
7170 programs/regapi/Makefile
7171 programs/regtest/Makefile
7172 programs/uninstaller/Makefile
7173 programs/view/Makefile
7174 programs/wcmd/Makefile
7175 programs/wineconsole/Makefile
7176 programs/winemine/Makefile
7177 programs/winetest/Makefile
7178 programs/winhelp/Makefile
7179 programs/winver/Makefile
7184 tools/winapi/Makefile
7185 tools/winebuild/Makefile
7186 tools/winedump/Makefile
7194 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7196 cat >> $CONFIG_STATUS <<EOF
7198 # Protect against being on the right side of a sed subst in config.status.
7199 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7200 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7204 s%@CFLAGS@%$CFLAGS%g
7205 s%@CPPFLAGS@%$CPPFLAGS%g
7206 s%@CXXFLAGS@%$CXXFLAGS%g
7207 s%@FFLAGS@%$FFLAGS%g
7209 s%@LDFLAGS@%$LDFLAGS%g
7211 s%@exec_prefix@%$exec_prefix%g
7212 s%@prefix@%$prefix%g
7213 s%@program_transform_name@%$program_transform_name%g
7214 s%@bindir@%$bindir%g
7215 s%@sbindir@%$sbindir%g
7216 s%@libexecdir@%$libexecdir%g
7217 s%@datadir@%$datadir%g
7218 s%@sysconfdir@%$sysconfdir%g
7219 s%@sharedstatedir@%$sharedstatedir%g
7220 s%@localstatedir@%$localstatedir%g
7221 s%@libdir@%$libdir%g
7222 s%@includedir@%$includedir%g
7223 s%@oldincludedir@%$oldincludedir%g
7224 s%@infodir@%$infodir%g
7225 s%@mandir@%$mandir%g
7226 s%@OPTIONS@%$OPTIONS%g
7227 s%@SET_MAKE@%$SET_MAKE%g
7230 s%@X_CFLAGS@%$X_CFLAGS%g
7231 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7232 s%@X_LIBS@%$X_LIBS%g
7233 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7236 s%@LEXLIB@%$LEXLIB%g
7238 s%@RANLIB@%$RANLIB%g
7239 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7240 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7241 s%@INSTALL_DATA@%$INSTALL_DATA%g
7244 s%@LDCONFIG@%$LDCONFIG%g
7245 s%@DLLWRAP@%$DLLWRAP%g
7247 s%@LINTFLAGS@%$LINTFLAGS%g
7248 s%@LDCOMBINE@%$LDCOMBINE%g
7249 s%@UTILLIBS@%$UTILLIBS%g
7250 s%@DLLIBS@%$DLLIBS%g
7251 s%@JPEGLIB@%$JPEGLIB%g
7253 s%@XFILES@%$XFILES%g
7254 s%@OPENGLFILES@%$OPENGLFILES%g
7255 s%@GLU32FILES@%$GLU32FILES%g
7256 s%@CURSESLIBS@%$CURSESLIBS%g
7257 s%@CUPSLIBS@%$CUPSLIBS%g
7258 s%@ft_devel@%$ft_devel%g
7259 s%@ft_devel2@%$ft_devel2%g
7260 s%@FREETYPELIBS@%$FREETYPELIBS%g
7261 s%@FREETYPEINCL@%$FREETYPEINCL%g
7262 s%@DLLFLAGS@%$DLLFLAGS%g
7263 s%@LDSHARED@%$LDSHARED%g
7264 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7265 s%@LIBEXT@%$LIBEXT%g
7266 s%@LDPATH@%$LDPATH%g
7267 s%@ALLOCA@%$ALLOCA%g
7268 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7269 /@MAKE_RULES@/r $MAKE_RULES
7271 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7272 s%@MAKE_DLL_RULES@%%g
7273 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7274 s%@MAKE_PROG_RULES@%%g
7279 cat >> $CONFIG_STATUS <<\EOF
7281 # Split the substitutions into bite-sized pieces for seds with
7282 # small command number limits, like on Digital OSF/1 and HP-UX.
7283 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7284 ac_file
=1 # Number of current file.
7285 ac_beg
=1 # First line for current file.
7286 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7289 while $ac_more_lines; do
7290 if test $ac_beg -gt 1; then
7291 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7293 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7295 if test ! -s conftest.s
$ac_file; then
7297 rm -f conftest.s
$ac_file
7299 if test -z "$ac_sed_cmds"; then
7300 ac_sed_cmds
="sed -f conftest.s$ac_file"
7302 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7304 ac_file
=`expr $ac_file + 1`
7306 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7309 if test -z "$ac_sed_cmds"; then
7314 cat >> $CONFIG_STATUS <<EOF
7316 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7318 programs/Makeprog.rules
7324 dlls/advapi32/Makefile
7325 dlls/avicap32/Makefile
7326 dlls/avifil32/Makefile
7327 dlls/comctl32/Makefile
7328 dlls/commdlg/Makefile
7329 dlls/crtdll/Makefile
7330 dlls/dciman32/Makefile
7332 dlls/devenum/Makefile
7333 dlls/dinput/Makefile
7335 dlls/dplayx/Makefile
7336 dlls/dsound/Makefile
7340 dlls/imagehlp/Makefile
7342 dlls/kernel/Makefile
7343 dlls/lzexpand/Makefile
7344 dlls/mapi32/Makefile
7348 dlls/msimg32/Makefile
7349 dlls/msnet32/Makefile
7350 dlls/msrle32/Makefile
7351 dlls/msvcrt/Makefile
7352 dlls/msvideo/Makefile
7353 dlls/netapi32/Makefile
7355 dlls/odbc32/Makefile
7357 dlls/oleaut32/Makefile
7358 dlls/olecli/Makefile
7359 dlls/oledlg/Makefile
7360 dlls/olepro32/Makefile
7361 dlls/olesvr/Makefile
7362 dlls/opengl32/Makefile
7365 dlls/quartz/Makefile
7366 dlls/rasapi32/Makefile
7367 dlls/richedit/Makefile
7368 dlls/rpcrt4/Makefile
7369 dlls/serialui/Makefile
7370 dlls/setupapi/Makefile
7371 dlls/shdocvw/Makefile
7372 dlls/shell32/Makefile
7373 dlls/shfolder/Makefile
7374 dlls/shlwapi/Makefile
7376 dlls/tapi32/Makefile
7377 dlls/ttydrv/Makefile
7379 dlls/urlmon/Makefile
7381 dlls/version/Makefile
7382 dlls/win32s/Makefile
7383 dlls/winaspi/Makefile
7384 dlls/winedos/Makefile
7385 dlls/wineps/Makefile
7386 dlls/wininet/Makefile
7388 dlls/winmm/joystick/Makefile
7389 dlls/winmm/mcianim/Makefile
7390 dlls/winmm/mciavi/Makefile
7391 dlls/winmm/mcicda/Makefile
7392 dlls/winmm/mciseq/Makefile
7393 dlls/winmm/mciwave/Makefile
7394 dlls/winmm/midimap/Makefile
7395 dlls/winmm/wavemap/Makefile
7396 dlls/winmm/wineoss/Makefile
7397 dlls/winnls/Makefile
7398 dlls/winsock/Makefile
7399 dlls/winspool/Makefile
7400 dlls/wintrust/Makefile
7402 dlls/wsock32/Makefile
7403 dlls/x11drv/Makefile
7404 documentation/Makefile
7405 documentation/wine.conf.man
7406 documentation/wine.man
7409 graphics/enhmetafiledrv/Makefile
7410 graphics/metafiledrv/Makefile
7411 graphics/win16drv/Makefile
7412 graphics/x11drv/Makefile
7427 programs/avitools/Makefile
7428 programs/clock/Makefile
7429 programs/cmdlgtst/Makefile
7430 programs/control/Makefile
7431 programs/notepad/Makefile
7432 programs/osversioncheck/Makefile
7433 programs/progman/Makefile
7434 programs/regapi/Makefile
7435 programs/regtest/Makefile
7436 programs/uninstaller/Makefile
7437 programs/view/Makefile
7438 programs/wcmd/Makefile
7439 programs/wineconsole/Makefile
7440 programs/winemine/Makefile
7441 programs/winetest/Makefile
7442 programs/winhelp/Makefile
7443 programs/winver/Makefile
7448 tools/winapi/Makefile
7449 tools/winebuild/Makefile
7450 tools/winedump/Makefile
7458 windows/x11drv/Makefile "}
7460 cat >> $CONFIG_STATUS <<\EOF
7461 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7462 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7464 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7465 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7466 *) ac_file_in
="${ac_file}.in" ;;
7469 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7471 # Remove last slash and all that follows it. Not all systems have dirname.
7472 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7473 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7474 # The file is in a subdirectory.
7475 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7476 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7477 # A "../" for each directory in $ac_dir_suffix.
7478 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7480 ac_dir_suffix
= ac_dots
=
7483 case "$ac_given_srcdir" in
7485 if test -z "$ac_dots"; then top_srcdir
=.
7486 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7487 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7489 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7490 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7493 case "$ac_given_INSTALL" in
7494 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7495 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7498 echo creating
"$ac_file"
7500 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7502 *Makefile
*) ac_comsub
="1i\\
7503 # $configure_input" ;;
7507 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7509 s%@configure_input@%$configure_input%g
7510 s%@srcdir@%$srcdir%g
7511 s%@top_srcdir@%$top_srcdir%g
7512 s%@INSTALL@%$INSTALL%g
7513 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7517 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7518 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7520 # ac_d sets the value in "#define NAME VALUE" lines.
7521 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7522 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7525 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7526 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7527 ac_uB
='\([ ]\)%\1#\2define\3'
7530 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7531 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7532 ac_eB
='$%\1#\2define\3'
7536 if test "${CONFIG_HEADERS+set}" != set; then
7538 cat >> $CONFIG_STATUS <<EOF
7539 CONFIG_HEADERS="include/config.h"
7541 cat >> $CONFIG_STATUS <<\EOF
7543 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7546 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7547 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7548 *) ac_file_in
="${ac_file}.in" ;;
7551 echo creating
$ac_file
7553 rm -f conftest.frag conftest.
in conftest.out
7554 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7555 cat $ac_file_inputs > conftest.
in
7559 # Transform confdefs.h into a sed script conftest.vals that substitutes
7560 # the proper values into config.h.in to produce config.h. And first:
7561 # Protect against being on the right side of a sed subst in config.status.
7562 # Protect against being in an unquoted here document in config.status.
7564 cat > conftest.hdr
<<\EOF
7567 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7571 sed -n -f conftest.hdr confdefs.h > conftest.vals
7574 # This sed command replaces #undef with comments. This is necessary, for
7575 # example, in the case of _POSIX_SOURCE, which is predefined and required
7576 # on some systems where configure will not decide to define it.
7577 cat >> conftest.vals <<\EOF
7578 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7581 # Break up conftest.vals because some shells have a limit on
7582 # the size of here documents, and old seds have small limits too.
7587 ac_lines=`grep -c . conftest.vals
`
7588 # grep -c gives empty output for an empty file on some AIX systems.
7589 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7590 # Write a limited-size here document to conftest.frag.
7591 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7592 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7594 sed -f conftest.frag conftest.in > conftest.out
7596 mv conftest.out conftest.in
7598 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7600 mv conftest.tail conftest.vals
7604 cat >> $CONFIG_STATUS <<\EOF
7605 rm -f conftest.frag conftest.h
7606 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7607 cat conftest.in >> conftest.h
7609 if cmp -s $ac_file conftest.h 2>/dev/null; then
7610 echo "$ac_file is unchanged"
7613 # Remove last slash and all that follows it. Not all systems have dirname.
7614 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7615 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7616 # The file is in a subdirectory.
7617 test ! -d "$ac_dir" && mkdir "$ac_dir"
7620 mv conftest.h $ac_file
7625 cat >> $CONFIG_STATUS <<EOF
7629 cat >> $CONFIG_STATUS <<\EOF
7632 dlls/ddraw/d3ddevice \
7633 dlls/ddraw/dclipper \
7635 dlls/ddraw/direct3d \
7636 dlls/ddraw/dpalette \
7637 dlls/ddraw/dsurface \
7638 dlls/dinput/joystick \
7639 dlls/dinput/keyboard \
7641 dlls/kernel/messages \
7643 dlls/user/resources \
7646 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7650 chmod +x $CONFIG_STATUS
7651 rm -fr confdefs* $ac_clean_files
7652 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7655 if test "$have_x" = "no"
7658 echo "*** Warning: X development files not found. Wine will be built without"
7659 echo "*** X support, which currently does not work, and would probably not be"
7660 echo "*** what you want anyway. You will need to install devel packages of"
7661 echo "*** Xlib/Xfree86 and Xpm at the very least."
7662 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7665 echo "*** Warning: Xpm development files not found. Wine will be built without"
7666 echo "*** Xpm support, which currently does not work. You will need to install"
7667 echo "*** devel packages of Xpm."
7670 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7673 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7674 echo "*** terminal resize support. Consider upgrading ncurses."
7677 if test "$wine_cv_libc_reentrant" = "no"
7680 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7681 echo "*** thread support. Consider upgrading libc to a more recent"
7682 echo "*** reentrant version of libc."
7685 if test "$wine_cv_opengl_version_OK" = "no"
7688 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7689 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7692 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7695 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7696 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7697 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7698 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7701 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7704 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7705 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7706 echo "*** support before reporting bugs."
7709 if test "$wine_cv_warn_cups_h" = "yes"
7712 echo "*** Note: You have cups runtime libraries, but no development"
7713 echo "*** libraries. Install the cups-devel package or whichever package"
7714 echo "*** contains cups.h to enable CUPS support in WINE."
7717 if test "$wine_cv_msg_freetype" = "yes"
7720 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7721 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7722 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7723 echo "*** enable Wine to use TrueType fonts."
7727 echo "Configure finished. Do 'make depend && make' to compile Wine."