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"
20 --disable-trace compile out TRACE messages"
22 --without-curses do not use curses"
24 --without-reentrant-x compile for use with non-reentrant X libraries"
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file
=.
/config.cache
41 program_transform_name
=s
,x
,x
,
49 bindir
='${exec_prefix}/bin'
50 sbindir
='${exec_prefix}/sbin'
51 libexecdir
='${exec_prefix}/libexec'
52 datadir
='${prefix}/share'
53 sysconfdir
='${prefix}/etc'
54 sharedstatedir
='${prefix}/com'
55 localstatedir
='${prefix}/var'
56 libdir
='${exec_prefix}/lib'
57 includedir
='${prefix}/include'
58 oldincludedir
='/usr/include'
59 infodir
='${prefix}/info'
60 mandir
='${prefix}/man'
62 # Initialize some other variables.
65 SHELL
=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
91 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
92 bindir
="$ac_optarg" ;;
94 -build |
--build |
--buil |
--bui |
--bu)
96 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
99 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
100 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
101 ac_prev
=cache_file
;;
102 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
103 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
104 cache_file
="$ac_optarg" ;;
106 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
108 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
110 datadir
="$ac_optarg" ;;
112 -disable-* |
--disable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* |
--enable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
135 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
136 |
--exec |
--exe |
--ex)
137 ac_prev
=exec_prefix
;;
138 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
139 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
140 |
--exec=* |
--exe=* |
--ex=*)
141 exec_prefix
="$ac_optarg" ;;
143 -gas |
--gas |
--ga |
--g)
144 # Obsolete; use --with-gas.
147 -help |
--help |
--hel |
--he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host |
--host |
--hos |
--ho)
204 -host=* |
--host=* |
--hos=* |
--ho=*)
207 -includedir |
--includedir |
--includedi |
--included |
--include \
208 |
--includ |
--inclu |
--incl |
--inc)
209 ac_prev
=includedir
;;
210 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
211 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
212 includedir
="$ac_optarg" ;;
214 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
216 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
217 infodir
="$ac_optarg" ;;
219 -libdir |
--libdir |
--libdi |
--libd)
221 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
222 libdir
="$ac_optarg" ;;
224 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
225 |
--libexe |
--libex |
--libe)
226 ac_prev
=libexecdir
;;
227 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
228 |
--libexe=* |
--libex=* |
--libe=*)
229 libexecdir
="$ac_optarg" ;;
231 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
232 |
--localstate |
--localstat |
--localsta |
--localst \
233 |
--locals |
--local |
--loca |
--loc |
--lo)
234 ac_prev
=localstatedir
;;
235 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
236 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
237 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
238 localstatedir
="$ac_optarg" ;;
240 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
242 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
243 mandir
="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
253 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
254 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
257 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
258 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
259 |
--oldin |
--oldi |
--old |
--ol |
--o)
260 ac_prev
=oldincludedir
;;
261 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
262 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
263 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
264 oldincludedir
="$ac_optarg" ;;
266 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
268 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
269 prefix
="$ac_optarg" ;;
271 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
272 |
--program-pre |
--program-pr |
--program-p)
273 ac_prev
=program_prefix
;;
274 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
275 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
276 program_prefix
="$ac_optarg" ;;
278 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
279 |
--program-suf |
--program-su |
--program-s)
280 ac_prev
=program_suffix
;;
281 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
282 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
283 program_suffix
="$ac_optarg" ;;
285 -program-transform-name |
--program-transform-name \
286 |
--program-transform-nam |
--program-transform-na \
287 |
--program-transform-n |
--program-transform- \
288 |
--program-transform |
--program-transfor \
289 |
--program-transfo |
--program-transf \
290 |
--program-trans |
--program-tran \
291 |
--progr-tra |
--program-tr |
--program-t)
292 ac_prev
=program_transform_name
;;
293 -program-transform-name=* |
--program-transform-name=* \
294 |
--program-transform-nam=* |
--program-transform-na=* \
295 |
--program-transform-n=* |
--program-transform-=* \
296 |
--program-transform=* |
--program-transfor=* \
297 |
--program-transfo=* |
--program-transf=* \
298 |
--program-trans=* |
--program-tran=* \
299 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
300 program_transform_name
="$ac_optarg" ;;
302 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
303 |
-silent |
--silent |
--silen |
--sile |
--sil)
306 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
308 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
310 sbindir
="$ac_optarg" ;;
312 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
313 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
314 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
316 ac_prev
=sharedstatedir
;;
317 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
318 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
319 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
321 sharedstatedir
="$ac_optarg" ;;
323 -site |
--site |
--sit)
325 -site=* |
--site=* |
--sit=*)
328 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
330 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
331 srcdir
="$ac_optarg" ;;
333 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
334 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
335 ac_prev
=sysconfdir
;;
336 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
337 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
338 sysconfdir
="$ac_optarg" ;;
340 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
342 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
343 target
="$ac_optarg" ;;
345 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
348 -version |
--version |
--versio |
--versi |
--vers)
349 echo "configure generated by autoconf version 2.13"
353 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* |
--without-*)
366 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
379 |
--x-incl |
--x-inc |
--x-in |
--x-i)
380 ac_prev
=x_includes
;;
381 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
382 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
383 x_includes
="$ac_optarg" ;;
385 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
386 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
387 ac_prev
=x_libraries
;;
388 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
389 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
390 x_libraries
="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE
; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
441 |
--no-cr |
--no-c) ;;
442 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
443 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
444 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest
* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file
=controls
/edit.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted
=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted
=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE
; then
495 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file
in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp
='$CPP $CPPFLAGS'
518 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling
=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
533 ac_n
= ac_c
='\c' ac_t
=
539 for ac_dir
in tools
$srcdir/tools
; do
540 if test -f $ac_dir/install-sh
; then
542 ac_install_sh
="$ac_aux_dir/install-sh -c"
544 elif test -f $ac_dir/install.sh
; then
546 ac_install_sh
="$ac_aux_dir/install.sh -c"
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
553 ac_config_guess
=$ac_aux_dir/config.guess
554 ac_config_sub
=$ac_aux_dir/config.sub
555 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
559 LIBEXT
=so
# library type .so or .a
560 TRACE_MSGS
=yes # the TRACE() macro
561 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval
="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if test "${enable_opengl+set}" = set; then
574 enableval
="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL
="no"; elif test "$enableval" = "yes"; then OPENGL
="yes"; fi
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval
="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval
="$with_curses"
589 if test "$withval" = "no"; then CURSES
="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval
="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
604 cat >> confdefs.h
<<\EOF
605 #define NO_DEBUG_MSGS 1
608 cat >> confdefs.h
<<\EOF
609 #define NO_TRACE_MSGS 1
613 if test "$TRACE_MSGS" = "no"
615 cat >> confdefs.h
<<\EOF
616 #define NO_TRACE_MSGS 1
623 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
624 echo "configure:625: checking whether ${MAKE-make} sets \${MAKE}" >&5
625 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
626 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
629 cat > conftestmake
<<\EOF
631 @
echo 'ac_maketemp="${MAKE}"'
633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
634 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
635 if test -n "$ac_maketemp"; then
636 eval ac_cv_prog_make_
${ac_make}_set
=yes
638 eval ac_cv_prog_make_
${ac_make}_set
=no
642 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
643 echo "$ac_t""yes" 1>&6
646 echo "$ac_t""no" 1>&6
647 SET_MAKE
="MAKE=${MAKE-make}"
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc
; ac_word
=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 if test -n "$CC"; then
658 ac_cv_prog_CC
="$CC" # Let the user override the test.
660 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
662 for ac_dir
in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir
=.
664 if test -f $ac_dir/$ac_word; then
673 if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
676 echo "$ac_t""no" 1>&6
679 if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681 set dummy cc
; ac_word
=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 if test -n "$CC"; then
688 ac_cv_prog_CC
="$CC" # Let the user override the test.
690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
693 for ac_dir
in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir
=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy
$ac_cv_prog_CC
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
714 set dummy
"$ac_dir/$ac_word" "$@"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
728 if test -z "$CC"; then
731 # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl
; ac_word
=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 if test -n "$CC"; then
739 ac_cv_prog_CC
="$CC" # Let the user override the test.
741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
743 for ac_dir
in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir
=.
745 if test -f $ac_dir/$ac_word; then
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
757 echo "$ac_t""no" 1>&6
762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp
='$CPP $CPPFLAGS'
771 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling
=$ac_cv_prog_cc_cross
775 cat > conftest.
$ac_ext << EOF
777 #line 778 "configure"
778 #include "confdefs.h"
782 if { (eval echo configure
:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
783 ac_cv_prog_cc_works
=yes
784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (.
/conftest
; exit) 2>/dev
/null
; then
786 ac_cv_prog_cc_cross
=no
788 ac_cv_prog_cc_cross
=yes
791 echo "configure: failed program was:" >&5
792 cat conftest.
$ac_ext >&5
793 ac_cv_prog_cc_works
=no
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp
='$CPP $CPPFLAGS'
799 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling
=$ac_cv_prog_cc_cross
803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804 if test $ac_cv_prog_cc_works = no
; then
805 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810 cross_compiling
=$ac_cv_prog_cc_cross
812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
813 echo "configure:814: checking whether we are using GNU C" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.c
<<EOF
822 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831 if test $ac_cv_prog_gcc = yes; then
837 ac_test_CFLAGS
="${CFLAGS+set}"
838 ac_save_CFLAGS
="$CFLAGS"
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857 CFLAGS
="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
859 if test "$GCC" = yes; then
865 if test "$GCC" = yes; then
872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
873 echo "configure:874: checking how to run the C preprocessor" >&5
874 # On Suns, sometimes $CPP names a directory.
875 if test -n "$CPP" && test -d "$CPP"; then
878 if test -z "$CPP"; then
879 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 # This must be in double quotes, not single quotes, because CPP may get
883 # substituted into the Makefile and "${CC-cc}" will confuse make.
885 # On the NeXT, cc -E runs the code through the compiler's parser,
886 # not just through cpp.
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure
:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
903 CPP
="${CC-cc} -E -traditional-cpp"
904 cat > conftest.
$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure
:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
917 echo "configure: failed program was:" >&5
918 cat conftest.
$ac_ext >&5
920 CPP
="${CC-cc} -nologo -E"
921 cat > conftest.
$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure
:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930 if test -z "$ac_err"; then
934 echo "configure: failed program was:" >&5
935 cat conftest.
$ac_ext >&5
944 ac_cv_prog_CPP
="$CPP"
946 CPP
="$ac_cv_prog_CPP"
948 ac_cv_prog_CPP
="$CPP"
950 echo "$ac_t""$CPP" 1>&6
952 # If we find X, set shell vars x_includes and x_libraries to the
953 # paths, otherwise set no_x=yes.
954 # Uses ac_ vars as temps to allow command line to override cache and checks.
955 # --without-x overrides everything else, but does not touch the cache.
956 echo $ac_n "checking for X""... $ac_c" 1>&6
957 echo "configure:958: checking for X" >&5
959 # Check whether --with-x or --without-x was given.
960 if test "${with_x+set}" = set; then
965 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
966 if test "x$with_x" = xno
; then
967 # The user explicitly disabled X.
970 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
971 # Both variables are already set.
974 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 # One or both of the vars are not set, and there is no cached value.
978 ac_x_includes
=NO ac_x_libraries
=NO
980 if mkdir conftestdir
; then
982 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
983 cat > Imakefile
<<'EOF'
985 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
987 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
989 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
990 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
991 for ac_extension
in a so sl
; do
992 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
993 test -f $ac_im_libdir/libX11.
$ac_extension; then
994 ac_im_usrlibdir
=$ac_im_libdir; break
997 # Screen out bogus values from the imake configuration. They are
998 # bogus both because they are the default anyway, and because
999 # using them would break gcc on systems where it needs fixed includes.
1000 case "$ac_im_incroot" in
1002 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1004 case "$ac_im_usrlibdir" in
1006 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1013 if test "$ac_x_includes" = NO
; then
1014 # Guess where to find include files, by looking for this one X11 .h file.
1015 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1017 # First, try using that file with no special directory specified.
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <$x_direct_test_include>
1023 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure
:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1026 if test -z "$ac_err"; then
1028 # We can compile using X headers with no special include directory.
1032 echo "configure: failed program was:" >&5
1033 cat conftest.
$ac_ext >&5
1035 # Look for the header file in a standard set of common directories.
1036 # Check X11 before X11Rn because it is often a symlink to the current release.
1039 /usr
/X11R
6/include \
1040 /usr
/X11R
5/include \
1041 /usr
/X11R
4/include \
1044 /usr
/include
/X11R6 \
1045 /usr
/include
/X11R5 \
1046 /usr
/include
/X11R4 \
1048 /usr
/local
/X11
/include \
1049 /usr
/local
/X11R
6/include \
1050 /usr
/local
/X11R
5/include \
1051 /usr
/local
/X11R
4/include \
1053 /usr
/local
/include
/X11 \
1054 /usr
/local
/include
/X11R6 \
1055 /usr
/local
/include
/X11R5 \
1056 /usr
/local
/include
/X11R4 \
1060 /usr
/XFree86
/include
/X11 \
1063 /usr
/local
/include \
1064 /usr
/unsupported
/include \
1065 /usr
/athena
/include \
1066 /usr
/local
/x11r
5/include \
1067 /usr
/lpp
/Xamples
/include \
1069 /usr
/openwin
/include \
1070 /usr
/openwin
/share
/include \
1073 if test -r "$ac_dir/$x_direct_test_include"; then
1074 ac_x_includes
=$ac_dir
1080 fi # $ac_x_includes = NO
1082 if test "$ac_x_libraries" = NO
; then
1083 # Check for the libraries.
1085 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1086 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1088 # See if we find them without any special options.
1089 # Don't add to $LIBS permanently.
1090 ac_save_LIBS
="$LIBS"
1091 LIBS
="-l$x_direct_test_library $LIBS"
1092 cat > conftest.
$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1097 ${x_direct_test_function}()
1100 if { (eval echo configure
:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1102 LIBS
="$ac_save_LIBS"
1103 # We can link X programs with no special library path.
1106 echo "configure: failed program was:" >&5
1107 cat conftest.
$ac_ext >&5
1109 LIBS
="$ac_save_LIBS"
1110 # First see if replacing the include by lib works.
1111 # Check X11 before X11Rn because it is often a symlink to the current release.
1112 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1123 /usr
/local
/X11
/lib \
1124 /usr
/local
/X11R
6/lib \
1125 /usr
/local
/X11R
5/lib \
1126 /usr
/local
/X11R
4/lib \
1128 /usr
/local
/lib
/X11 \
1129 /usr
/local
/lib
/X11R6 \
1130 /usr
/local
/lib
/X11R5 \
1131 /usr
/local
/lib
/X11R4 \
1135 /usr
/XFree86
/lib
/X11 \
1139 /usr
/unsupported
/lib \
1141 /usr
/local
/x11r
5/lib \
1142 /usr
/lpp
/Xamples
/lib \
1146 /usr
/openwin
/share
/lib \
1149 for ac_extension
in a so sl
; do
1150 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1151 ac_x_libraries
=$ac_dir
1158 fi # $ac_x_libraries = NO
1160 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1161 # Didn't find X anywhere. Cache the known absence of X.
1162 ac_cv_have_x
="have_x=no"
1164 # Record where we found X for the cache.
1165 ac_cv_have_x
="have_x=yes \
1166 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1170 eval "$ac_cv_have_x"
1173 if test "$have_x" != yes; then
1174 echo "$ac_t""$have_x" 1>&6
1177 # If each of the values was on the command line, it overrides each guess.
1178 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1179 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1180 # Update the cache value to reflect the command line values.
1181 ac_cv_have_x
="have_x=yes \
1182 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1183 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1186 if test "$no_x" = yes; then
1187 # Not all programs may use this symbol, but it does not hurt to define it.
1188 cat >> confdefs.h
<<\EOF
1189 #define X_DISPLAY_MISSING 1
1192 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1194 if test -n "$x_includes"; then
1195 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1198 # It would also be nice to do this for all -L options, not just this one.
1199 if test -n "$x_libraries"; then
1200 X_LIBS
="$X_LIBS -L$x_libraries"
1201 # For Solaris; some versions of Sun CC require a space after -R and
1202 # others require no space. Words are not sufficient . . . .
1203 case "`(uname -sr) 2>/dev/null`" in
1205 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether -R must be followed by a space" >&5
1207 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1208 cat > conftest.
$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1216 if { (eval echo configure
:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1220 echo "configure: failed program was:" >&5
1221 cat conftest.
$ac_ext >&5
1226 if test $ac_R_nospace = yes; then
1227 echo "$ac_t""no" 1>&6
1228 X_LIBS
="$X_LIBS -R$x_libraries"
1230 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1231 cat > conftest.
$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1239 if { (eval echo configure
:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1243 echo "configure: failed program was:" >&5
1244 cat conftest.
$ac_ext >&5
1249 if test $ac_R_space = yes; then
1250 echo "$ac_t""yes" 1>&6
1251 X_LIBS
="$X_LIBS -R $x_libraries"
1253 echo "$ac_t""neither works" 1>&6
1256 LIBS
="$ac_xsave_LIBS"
1260 # Check for system-dependent libraries X programs must link with.
1261 # Do this before checking for the system-independent R6 libraries
1262 # (-lICE), since we may need -lsocket or whatever for X linking.
1264 if test "$ISC" = yes; then
1265 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1267 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1268 # libraries were built with DECnet support. And karl@cs.umb.edu says
1269 # the Alpha needs dnet_stub (dnet does not exist).
1270 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1271 echo "configure:1272: checking for dnet_ntoa in -ldnet" >&5
1272 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 ac_save_LIBS
="$LIBS"
1278 cat > conftest.
$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 /* Override any gcc2 internal prototype to avoid an error. */
1282 /* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
1290 if { (eval echo configure
:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1292 eval "ac_cv_lib_$ac_lib_var=yes"
1294 echo "configure: failed program was:" >&5
1295 cat conftest.
$ac_ext >&5
1297 eval "ac_cv_lib_$ac_lib_var=no"
1300 LIBS
="$ac_save_LIBS"
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1307 echo "$ac_t""no" 1>&6
1310 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1311 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1312 echo "configure:1313: checking for dnet_ntoa in -ldnet_stub" >&5
1313 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 ac_save_LIBS
="$LIBS"
1318 LIBS
="-ldnet_stub $LIBS"
1319 cat > conftest.
$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* Override any gcc2 internal prototype to avoid an error. */
1323 /* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
1331 if { (eval echo configure
:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1333 eval "ac_cv_lib_$ac_lib_var=yes"
1335 echo "configure: failed program was:" >&5
1336 cat conftest.
$ac_ext >&5
1338 eval "ac_cv_lib_$ac_lib_var=no"
1341 LIBS
="$ac_save_LIBS"
1344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1346 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1348 echo "$ac_t""no" 1>&6
1353 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1354 # to get the SysV transport functions.
1355 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1357 # The nsl library prevents programs from opening the X display
1358 # on Irix 5.2, according to dickey@clark.net.
1359 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1360 echo "configure:1361: checking for gethostbyname" >&5
1361 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.
$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* System header to define __stub macros and hopefully few prototypes,
1368 which can conflict with char gethostbyname(); below. */
1370 /* Override any gcc2 internal prototype to avoid an error. */
1371 /* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1373 char gethostbyname();
1377 /* The GNU C library defines this for functions which it implements
1378 to always fail with ENOSYS. Some functions are actually named
1379 something starting with __ and the normal name is an alias. */
1380 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1388 if { (eval echo configure
:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1390 eval "ac_cv_func_gethostbyname=yes"
1392 echo "configure: failed program was:" >&5
1393 cat conftest.
$ac_ext >&5
1395 eval "ac_cv_func_gethostbyname=no"
1400 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1401 echo "$ac_t""yes" 1>&6
1404 echo "$ac_t""no" 1>&6
1407 if test $ac_cv_func_gethostbyname = no
; then
1408 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1409 echo "configure:1410: checking for gethostbyname in -lnsl" >&5
1410 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 ac_save_LIBS
="$LIBS"
1416 cat > conftest.
$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 /* Override any gcc2 internal prototype to avoid an error. */
1420 /* We use char because int might match the return type of a gcc2
1421 builtin and then its argument prototype would still apply. */
1422 char gethostbyname();
1428 if { (eval echo configure
:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1430 eval "ac_cv_lib_$ac_lib_var=yes"
1432 echo "configure: failed program was:" >&5
1433 cat conftest.
$ac_ext >&5
1435 eval "ac_cv_lib_$ac_lib_var=no"
1438 LIBS
="$ac_save_LIBS"
1441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1445 echo "$ac_t""no" 1>&6
1450 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1451 # socket/setsockopt and other routines are undefined under SCO ODT
1452 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1453 # on later versions), says simon@lia.di.epfl.ch: it contains
1454 # gethostby* variants that don't use the nameserver (or something).
1455 # -lsocket must be given before -lnsl if both are needed.
1456 # We assume that if connect needs -lnsl, so does gethostbyname.
1457 echo $ac_n "checking for connect""... $ac_c" 1>&6
1458 echo "configure:1459: checking for connect" >&5
1459 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftest.
$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1465 /* System header to define __stub macros and hopefully few prototypes,
1466 which can conflict with char connect(); below. */
1468 /* Override any gcc2 internal prototype to avoid an error. */
1469 /* We use char because int might match the return type of a gcc2
1470 builtin and then its argument prototype would still apply. */
1475 /* The GNU C library defines this for functions which it implements
1476 to always fail with ENOSYS. Some functions are actually named
1477 something starting with __ and the normal name is an alias. */
1478 #if defined (__stub_connect) || defined (__stub___connect)
1486 if { (eval echo configure
:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1488 eval "ac_cv_func_connect=yes"
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1493 eval "ac_cv_func_connect=no"
1498 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 if test $ac_cv_func_connect = no
; then
1506 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1507 echo "configure:1508: checking for connect in -lsocket" >&5
1508 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 ac_save_LIBS
="$LIBS"
1513 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517 /* Override any gcc2 internal prototype to avoid an error. */
1518 /* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1526 if { (eval echo configure
:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1528 eval "ac_cv_lib_$ac_lib_var=yes"
1530 echo "configure: failed program was:" >&5
1531 cat conftest.
$ac_ext >&5
1533 eval "ac_cv_lib_$ac_lib_var=no"
1536 LIBS
="$ac_save_LIBS"
1539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1540 echo "$ac_t""yes" 1>&6
1541 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1543 echo "$ac_t""no" 1>&6
1548 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1549 echo $ac_n "checking for remove""... $ac_c" 1>&6
1550 echo "configure:1551: checking for remove" >&5
1551 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* System header to define __stub macros and hopefully few prototypes,
1558 which can conflict with char remove(); below. */
1560 /* Override any gcc2 internal prototype to avoid an error. */
1561 /* We use char because int might match the return type of a gcc2
1562 builtin and then its argument prototype would still apply. */
1567 /* The GNU C library defines this for functions which it implements
1568 to always fail with ENOSYS. Some functions are actually named
1569 something starting with __ and the normal name is an alias. */
1570 #if defined (__stub_remove) || defined (__stub___remove)
1578 if { (eval echo configure
:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1580 eval "ac_cv_func_remove=yes"
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 eval "ac_cv_func_remove=no"
1590 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1594 echo "$ac_t""no" 1>&6
1597 if test $ac_cv_func_remove = no
; then
1598 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1599 echo "configure:1600: checking for remove in -lposix" >&5
1600 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 ac_save_LIBS
="$LIBS"
1605 LIBS
="-lposix $LIBS"
1606 cat > conftest.
$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1618 if { (eval echo configure
:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1620 eval "ac_cv_lib_$ac_lib_var=yes"
1622 echo "configure: failed program was:" >&5
1623 cat conftest.
$ac_ext >&5
1625 eval "ac_cv_lib_$ac_lib_var=no"
1628 LIBS
="$ac_save_LIBS"
1631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1635 echo "$ac_t""no" 1>&6
1640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1642 echo "configure:1643: checking for shmat" >&5
1643 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.
$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 /* System header to define __stub macros and hopefully few prototypes,
1650 which can conflict with char shmat(); below. */
1652 /* Override any gcc2 internal prototype to avoid an error. */
1653 /* We use char because int might match the return type of a gcc2
1654 builtin and then its argument prototype would still apply. */
1659 /* The GNU C library defines this for functions which it implements
1660 to always fail with ENOSYS. Some functions are actually named
1661 something starting with __ and the normal name is an alias. */
1662 #if defined (__stub_shmat) || defined (__stub___shmat)
1670 if { (eval echo configure
:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1672 eval "ac_cv_func_shmat=yes"
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1677 eval "ac_cv_func_shmat=no"
1682 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1686 echo "$ac_t""no" 1>&6
1689 if test $ac_cv_func_shmat = no
; then
1690 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1691 echo "configure:1692: checking for shmat in -lipc" >&5
1692 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 ac_save_LIBS
="$LIBS"
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 /* Override any gcc2 internal prototype to avoid an error. */
1702 /* We use char because int might match the return type of a gcc2
1703 builtin and then its argument prototype would still apply. */
1710 if { (eval echo configure
:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1712 eval "ac_cv_lib_$ac_lib_var=yes"
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1717 eval "ac_cv_lib_$ac_lib_var=no"
1720 LIBS
="$ac_save_LIBS"
1723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1727 echo "$ac_t""no" 1>&6
1733 # Check for libraries that X11R6 Xt/Xaw programs need.
1734 ac_save_LDFLAGS
="$LDFLAGS"
1735 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1736 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1737 # check for ICE first), but we must link in the order -lSM -lICE or
1738 # we get undefined symbols. So assume we have SM if we have ICE.
1739 # These have to be linked with before -lX11, unlike the other
1740 # libraries we check for below, so use a different variable.
1741 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1742 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1743 echo "configure:1744: checking for IceConnectionNumber in -lICE" >&5
1744 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 ac_save_LIBS
="$LIBS"
1749 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1750 cat > conftest.
$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* Override any gcc2 internal prototype to avoid an error. */
1754 /* We use char because int might match the return type of a gcc2
1755 builtin and then its argument prototype would still apply. */
1756 char IceConnectionNumber();
1759 IceConnectionNumber()
1762 if { (eval echo configure
:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1764 eval "ac_cv_lib_$ac_lib_var=yes"
1766 echo "configure: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1769 eval "ac_cv_lib_$ac_lib_var=no"
1772 LIBS
="$ac_save_LIBS"
1775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1779 echo "$ac_t""no" 1>&6
1782 LDFLAGS
="$ac_save_LDFLAGS"
1786 for ac_prog
in 'bison -y' byacc
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy
$ac_prog; ac_word
=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$YACC"; then
1796 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 for ac_dir
in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir
=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_YACC
="$ac_prog"
1810 YACC
="$ac_cv_prog_YACC"
1811 if test -n "$YACC"; then
1812 echo "$ac_t""$YACC" 1>&6
1814 echo "$ac_t""no" 1>&6
1817 test -n "$YACC" && break
1819 test -n "$YACC" || YACC
="yacc"
1821 # Extract the first word of "flex", so it can be a program name with args.
1822 set dummy flex
; ac_word
=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 if test -n "$LEX"; then
1829 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1831 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1833 for ac_dir
in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir
=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_LEX
="flex"
1841 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1844 LEX
="$ac_cv_prog_LEX"
1845 if test -n "$LEX"; then
1846 echo "$ac_t""$LEX" 1>&6
1848 echo "$ac_t""no" 1>&6
1851 if test -z "$LEXLIB"
1857 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1858 echo "configure:1859: checking for yywrap in -l$ac_lib" >&5
1859 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 ac_save_LIBS
="$LIBS"
1864 LIBS
="-l$ac_lib $LIBS"
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 /* Override any gcc2 internal prototype to avoid an error. */
1869 /* We use char because int might match the return type of a gcc2
1870 builtin and then its argument prototype would still apply. */
1877 if { (eval echo configure
:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1879 eval "ac_cv_lib_$ac_lib_var=yes"
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 eval "ac_cv_lib_$ac_lib_var=no"
1887 LIBS
="$ac_save_LIBS"
1890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1894 echo "$ac_t""no" 1>&6
1899 for ac_prog
in $LEX flex
lex
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902 set dummy
$ac_prog; ac_word
=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$XLEX"; then
1909 ac_cv_prog_XLEX
="$XLEX" # Let the user override the test.
1911 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1913 for ac_dir
in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir
=.
1915 if test -f $ac_dir/$ac_word; then
1916 ac_cv_prog_XLEX
="$ac_prog"
1923 XLEX
="$ac_cv_prog_XLEX"
1924 if test -n "$XLEX"; then
1925 echo "$ac_t""$XLEX" 1>&6
1927 echo "$ac_t""no" 1>&6
1930 test -n "$XLEX" && break
1932 test -n "$XLEX" || XLEX
="none"
1934 if test "$XLEX" = "none"
1936 echo "*** Error: No suitable lex found. ***"
1937 echo " Please install the 'flex' package."
1940 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1941 echo "configure:1942: checking lex output file root" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 # The minimal lex program is just a single line: %%. But some broken lexes
1946 # (Solaris, I think it was) want two %% lines, so accommodate them.
1949 if test -f lex.yy.c
; then
1950 ac_cv_prog_lex_root
=lex.yy
1951 elif test -f lexyy.c
; then
1952 ac_cv_prog_lex_root
=lexyy
1954 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1958 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1959 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
1961 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether yytext is a pointer" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 # POSIX says lex can declare yytext either as a pointer or an array; the
1967 # default is implementation-dependent. Figure out which it is, since
1968 # not all implementations provide the %pointer and %array declarations.
1969 ac_cv_prog_lex_yytext_pointer
=no
1970 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1971 ac_save_LIBS
="$LIBS"
1972 LIBS
="$LIBS $LEXLIB"
1973 cat > conftest.
$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 `cat $LEX_OUTPUT_ROOT.c`
1981 if { (eval echo configure
:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1983 ac_cv_prog_lex_yytext_pointer
=yes
1985 echo "configure: failed program was:" >&5
1986 cat conftest.
$ac_ext >&5
1989 LIBS
="$ac_save_LIBS"
1990 rm -f "${LEX_OUTPUT_ROOT}.c"
1994 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1995 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1996 cat >> confdefs.h
<<\EOF
1997 #define YYTEXT_POINTER 1
2002 # Extract the first word of "ranlib", so it can be a program name with args.
2003 set dummy ranlib
; ac_word
=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 if test -n "$RANLIB"; then
2010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2012 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2014 for ac_dir
in $ac_dummy; do
2015 test -z "$ac_dir" && ac_dir
=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_RANLIB
="ranlib"
2022 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2025 RANLIB
="$ac_cv_prog_RANLIB"
2026 if test -n "$RANLIB"; then
2027 echo "$ac_t""$RANLIB" 1>&6
2029 echo "$ac_t""no" 1>&6
2032 # Find a good install program. We prefer a C program (faster),
2033 # so one script is as good as another. But avoid the broken or
2034 # incompatible versions:
2035 # SysV /etc/install, /usr/sbin/install
2036 # SunOS /usr/etc/install
2037 # IRIX /sbin/install
2039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2042 # ./install, which can be erroneously created by make from ./install.sh.
2043 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2044 echo "configure:2045: checking for a BSD compatible install" >&5
2045 if test -z "$INSTALL"; then
2046 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2050 for ac_dir
in $PATH; do
2051 # Account for people who put trailing slashes in PATH elements.
2053 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2055 # OSF1 and SCO ODT 3.0 have their own names for install.
2056 # Don't use installbsd from OSF since it installs stuff as root
2058 for ac_prog
in ginstall scoinst
install; do
2059 if test -f $ac_dir/$ac_prog; then
2060 if test $ac_prog = install &&
2061 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2062 # AIX install. It has an incompatible calling convention.
2065 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL
="$ac_cv_path_install"
2079 # As a last resort, use the slow shell script. We don't cache a
2080 # path for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the path is relative.
2083 INSTALL
="$ac_install_sh"
2086 echo "$ac_t""$INSTALL" 1>&6
2088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2089 # It thinks the first close brace ends the variable substitution.
2090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2094 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2096 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether ln -s works" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2102 if ln -s X conftestdata
2>/dev
/null
2105 ac_cv_prog_LN_S
="ln -s"
2110 LN_S
="$ac_cv_prog_LN_S"
2111 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2112 echo "$ac_t""yes" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 # Extract the first word of "c2man", so it can be a program name with args.
2118 set dummy c2man
; ac_word
=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test -n "$C2MAN"; then
2125 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2129 for ac_dir
in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir
=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_C2MAN
="c2man"
2137 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="\$(TOPSRCDIR)/tools/c2man.pl"
2140 C2MAN
="$ac_cv_prog_C2MAN"
2141 if test -n "$C2MAN"; then
2142 echo "$ac_t""$C2MAN" 1>&6
2144 echo "$ac_t""no" 1>&6
2147 # Extract the first word of "ldconfig", so it can be a program name with args.
2148 set dummy ldconfig
; ac_word
=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2156 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2159 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2162 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2163 ac_dummy
="/sbin:/usr/sbin:$PATH"
2164 for ac_dir
in $ac_dummy; do
2165 test -z "$ac_dir" && ac_dir
=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2172 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="true"
2176 LDCONFIG
="$ac_cv_path_LDCONFIG"
2177 if test -n "$LDCONFIG"; then
2178 echo "$ac_t""$LDCONFIG" 1>&6
2180 echo "$ac_t""no" 1>&6
2184 for ac_prog
in lclint lint
2186 # Extract the first word of "$ac_prog", so it can be a program name with args.
2187 set dummy
$ac_prog; ac_word
=$2
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_word" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 if test -n "$LINT"; then
2194 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2196 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2198 for ac_dir
in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir
=.
2200 if test -f $ac_dir/$ac_word; then
2201 ac_cv_prog_LINT
="$ac_prog"
2208 LINT
="$ac_cv_prog_LINT"
2209 if test -n "$LINT"; then
2210 echo "$ac_t""$LINT" 1>&6
2212 echo "$ac_t""no" 1>&6
2215 test -n "$LINT" && break
2218 if test "$LINT" = "lint"
2220 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2226 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2227 echo "configure:2228: checking for sqrt in -lm" >&5
2228 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 ac_save_LIBS
="$LIBS"
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2246 if { (eval echo configure
:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.
$ac_ext >&5
2253 eval "ac_cv_lib_$ac_lib_var=no"
2256 LIBS
="$ac_save_LIBS"
2259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2263 cat >> confdefs.h
<<EOF
2264 #define $ac_tr_lib 1
2270 echo "$ac_t""no" 1>&6
2273 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2274 echo "configure:2275: checking for i386_set_ldt in -li386" >&5
2275 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 ac_save_LIBS
="$LIBS"
2281 cat > conftest.
$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2287 char i386_set_ldt();
2293 if { (eval echo configure
:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2295 eval "ac_cv_lib_$ac_lib_var=yes"
2297 echo "configure: failed program was:" >&5
2298 cat conftest.
$ac_ext >&5
2300 eval "ac_cv_lib_$ac_lib_var=no"
2303 LIBS
="$ac_save_LIBS"
2306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2307 echo "$ac_t""yes" 1>&6
2308 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2310 cat >> confdefs.h
<<EOF
2311 #define $ac_tr_lib 1
2317 echo "$ac_t""no" 1>&6
2320 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2321 echo "configure:2322: checking for _oss_ioctl in -lossaudio" >&5
2322 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2326 ac_save_LIBS
="$LIBS"
2327 LIBS
="-lossaudio $LIBS"
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* Override any gcc2 internal prototype to avoid an error. */
2332 /* We use char because int might match the return type of a gcc2
2333 builtin and then its argument prototype would still apply. */
2340 if { (eval echo configure
:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2342 eval "ac_cv_lib_$ac_lib_var=yes"
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2347 eval "ac_cv_lib_$ac_lib_var=no"
2350 LIBS
="$ac_save_LIBS"
2353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2354 echo "$ac_t""yes" 1>&6
2355 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2357 cat >> confdefs.h
<<EOF
2358 #define $ac_tr_lib 1
2361 LIBS
="-lossaudio $LIBS"
2364 echo "$ac_t""no" 1>&6
2367 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2368 echo "configure:2369: checking for iswalnum in -lw" >&5
2369 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 ac_save_LIBS
="$LIBS"
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2387 if { (eval echo configure
:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2389 eval "ac_cv_lib_$ac_lib_var=yes"
2391 echo "configure: failed program was:" >&5
2392 cat conftest.
$ac_ext >&5
2394 eval "ac_cv_lib_$ac_lib_var=no"
2397 LIBS
="$ac_save_LIBS"
2400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2404 cat >> confdefs.h
<<EOF
2405 #define $ac_tr_lib 1
2411 echo "$ac_t""no" 1>&6
2414 for ac_func
in gethostbyname
2416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2417 echo "configure:2418: checking for $ac_func" >&5
2418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 cat > conftest.
$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2424 /* System header to define __stub macros and hopefully few prototypes,
2425 which can conflict with char $ac_func(); below. */
2427 /* Override any gcc2 internal prototype to avoid an error. */
2428 /* We use char because int might match the return type of a gcc2
2429 builtin and then its argument prototype would still apply. */
2434 /* The GNU C library defines this for functions which it implements
2435 to always fail with ENOSYS. Some functions are actually named
2436 something starting with __ and the normal name is an alias. */
2437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2445 if { (eval echo configure
:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2447 eval "ac_cv_func_$ac_func=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.
$ac_ext >&5
2452 eval "ac_cv_func_$ac_func=no"
2457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2460 cat >> confdefs.h
<<EOF
2461 #define $ac_tr_func 1
2465 echo "$ac_t""no" 1>&6
2466 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2467 echo "configure:2468: checking for gethostbyname in -lnsl" >&5
2468 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 ac_save_LIBS
="$LIBS"
2473 LIBS
="-lnsl -lsocket $LIBS"
2474 cat > conftest.
$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 /* Override any gcc2 internal prototype to avoid an error. */
2478 /* We use char because int might match the return type of a gcc2
2479 builtin and then its argument prototype would still apply. */
2480 char gethostbyname();
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2488 eval "ac_cv_lib_$ac_lib_var=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.
$ac_ext >&5
2493 eval "ac_cv_lib_$ac_lib_var=no"
2496 LIBS
="$ac_save_LIBS"
2499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2503 echo "$ac_t""no" 1>&6
2504 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2505 echo "configure:2506: checking for gethostbyname in -lsocket" >&5
2506 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 ac_save_LIBS
="$LIBS"
2511 LIBS
="-lsocket -lnsl $LIBS"
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 /* Override any gcc2 internal prototype to avoid an error. */
2516 /* We use char because int might match the return type of a gcc2
2517 builtin and then its argument prototype would still apply. */
2518 char gethostbyname();
2524 if { (eval echo configure
:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2526 eval "ac_cv_lib_$ac_lib_var=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2531 eval "ac_cv_lib_$ac_lib_var=no"
2534 LIBS
="$ac_save_LIBS"
2537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2539 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2541 echo "$ac_t""no" 1>&6
2549 for ac_func
in connect
2551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_func" >&5
2553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 cat > conftest.
$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $ac_func(); below. */
2562 /* Override any gcc2 internal prototype to avoid an error. */
2563 /* We use char because int might match the return type of a gcc2
2564 builtin and then its argument prototype would still apply. */
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2580 if { (eval echo configure
:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2582 eval "ac_cv_func_$ac_func=yes"
2584 echo "configure: failed program was:" >&5
2585 cat conftest.
$ac_ext >&5
2587 eval "ac_cv_func_$ac_func=no"
2592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2594 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2595 cat >> confdefs.h
<<EOF
2596 #define $ac_tr_func 1
2600 echo "$ac_t""no" 1>&6
2601 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2602 echo "configure:2603: checking for connect in -lsocket" >&5
2603 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 ac_save_LIBS
="$LIBS"
2608 LIBS
="-lsocket $LIBS"
2609 cat > conftest.
$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2612 /* Override any gcc2 internal prototype to avoid an error. */
2613 /* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */
2621 if { (eval echo configure
:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2623 eval "ac_cv_lib_$ac_lib_var=yes"
2625 echo "configure: failed program was:" >&5
2626 cat conftest.
$ac_ext >&5
2628 eval "ac_cv_lib_$ac_lib_var=no"
2631 LIBS
="$ac_save_LIBS"
2634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2637 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2638 cat >> confdefs.h
<<EOF
2639 #define $ac_tr_lib 1
2642 LIBS
="-lsocket $LIBS"
2645 echo "$ac_t""no" 1>&6
2651 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2652 echo "configure:2653: checking for setrunelocale in -lxpg4" >&5
2653 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 ac_save_LIBS
="$LIBS"
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 /* Override any gcc2 internal prototype to avoid an error. */
2663 /* We use char because int might match the return type of a gcc2
2664 builtin and then its argument prototype would still apply. */
2665 char setrunelocale();
2671 if { (eval echo configure
:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2673 eval "ac_cv_lib_$ac_lib_var=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2678 eval "ac_cv_lib_$ac_lib_var=no"
2681 LIBS
="$ac_save_LIBS"
2684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2687 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2688 cat >> confdefs.h
<<EOF
2689 #define $ac_tr_lib 1
2695 echo "$ac_t""no" 1>&6
2698 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2699 echo "configure:2700: checking for mmap in -lmmap" >&5
2700 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 ac_save_LIBS
="$LIBS"
2706 cat > conftest.
$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 /* We use char because int might match the return type of a gcc2
2711 builtin and then its argument prototype would still apply. */
2718 if { (eval echo configure
:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2720 eval "ac_cv_lib_$ac_lib_var=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 eval "ac_cv_lib_$ac_lib_var=no"
2728 LIBS
="$ac_save_LIBS"
2731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2733 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2734 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2735 cat >> confdefs.h
<<EOF
2736 #define $ac_tr_lib 1
2742 echo "$ac_t""no" 1>&6
2745 for ac_func
in openpty
2747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2748 echo "configure:2749: checking for $ac_func" >&5
2749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 cat > conftest.
$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 /* System header to define __stub macros and hopefully few prototypes,
2756 which can conflict with char $ac_func(); below. */
2758 /* Override any gcc2 internal prototype to avoid an error. */
2759 /* We use char because int might match the return type of a gcc2
2760 builtin and then its argument prototype would still apply. */
2765 /* The GNU C library defines this for functions which it implements
2766 to always fail with ENOSYS. Some functions are actually named
2767 something starting with __ and the normal name is an alias. */
2768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2776 if { (eval echo configure
:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2778 eval "ac_cv_func_$ac_func=yes"
2780 echo "configure: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2783 eval "ac_cv_func_$ac_func=no"
2788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2789 echo "$ac_t""yes" 1>&6
2790 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2791 cat >> confdefs.h
<<EOF
2792 #define $ac_tr_func 1
2796 echo "$ac_t""no" 1>&6
2797 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2798 echo "configure:2799: checking for openpty in -lutil" >&5
2799 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 ac_save_LIBS
="$LIBS"
2805 cat > conftest.
$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 /* Override any gcc2 internal prototype to avoid an error. */
2809 /* We use char because int might match the return type of a gcc2
2810 builtin and then its argument prototype would still apply. */
2817 if { (eval echo configure
:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2819 eval "ac_cv_lib_$ac_lib_var=yes"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.
$ac_ext >&5
2824 eval "ac_cv_lib_$ac_lib_var=no"
2827 LIBS
="$ac_save_LIBS"
2830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2831 echo "$ac_t""yes" 1>&6
2832 cat >> confdefs.h
<<\EOF
2833 #define HAVE_OPENPTY 1
2839 echo "$ac_t""no" 1>&6
2846 for ac_hdr
in dlfcn.h
2848 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_hdr" >&5
2851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 cat > conftest.
$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2860 { (eval echo configure
:2861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2861 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2862 if test -z "$ac_err"; then
2864 eval "ac_cv_header_$ac_safe=yes"
2867 echo "configure: failed program was:" >&5
2868 cat conftest.
$ac_ext >&5
2870 eval "ac_cv_header_$ac_safe=no"
2874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2877 cat >> confdefs.h
<<EOF
2878 #define $ac_tr_hdr 1
2880 for ac_func
in dlopen
2882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2883 echo "configure:2884: checking for $ac_func" >&5
2884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 cat > conftest.
$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 /* System header to define __stub macros and hopefully few prototypes,
2891 which can conflict with char $ac_func(); below. */
2893 /* Override any gcc2 internal prototype to avoid an error. */
2894 /* We use char because int might match the return type of a gcc2
2895 builtin and then its argument prototype would still apply. */
2900 /* The GNU C library defines this for functions which it implements
2901 to always fail with ENOSYS. Some functions are actually named
2902 something starting with __ and the normal name is an alias. */
2903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2911 if { (eval echo configure
:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2913 eval "ac_cv_func_$ac_func=yes"
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 eval "ac_cv_func_$ac_func=no"
2923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2926 cat >> confdefs.h
<<EOF
2927 #define $ac_tr_func 1
2929 cat >> confdefs.h
<<\EOF
2930 #define HAVE_DL_API 1
2934 echo "$ac_t""no" 1>&6
2935 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2936 echo "configure:2937: checking for dlopen in -ldl" >&5
2937 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 ac_save_LIBS
="$LIBS"
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* Override any gcc2 internal prototype to avoid an error. */
2947 /* We use char because int might match the return type of a gcc2
2948 builtin and then its argument prototype would still apply. */
2955 if { (eval echo configure
:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2957 eval "ac_cv_lib_$ac_lib_var=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.
$ac_ext >&5
2962 eval "ac_cv_lib_$ac_lib_var=no"
2965 LIBS
="$ac_save_LIBS"
2968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2969 echo "$ac_t""yes" 1>&6
2970 cat >> confdefs.h
<<\EOF
2971 #define HAVE_DL_API 1
2976 echo "$ac_t""no" 1>&6
2986 echo "$ac_t""no" 1>&6
3007 if test "$have_x" = "yes"
3010 ac_save_CPPFLAGS
="$CPPFLAGS"
3011 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3013 for ac_hdr
in X11
/xpm.h
3015 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3017 echo "configure:3018: checking for $ac_hdr" >&5
3018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 cat > conftest.
$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3027 { (eval echo configure
:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3028 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3029 if test -z "$ac_err"; then
3031 eval "ac_cv_header_$ac_safe=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.
$ac_ext >&5
3037 eval "ac_cv_header_$ac_safe=no"
3041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3044 cat >> confdefs.h
<<EOF
3045 #define $ac_tr_hdr 1
3047 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3048 echo "configure:3049: checking for XpmCreatePixmapFromData in -lXpm" >&5
3049 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 ac_save_LIBS
="$LIBS"
3054 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3056 cat > conftest.
$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3062 char XpmCreatePixmapFromData();
3065 XpmCreatePixmapFromData()
3068 if { (eval echo configure
:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3070 eval "ac_cv_lib_$ac_lib_var=yes"
3072 echo "configure: failed program was:" >&5
3073 cat conftest.
$ac_ext >&5
3075 eval "ac_cv_lib_$ac_lib_var=no"
3078 LIBS
="$ac_save_LIBS"
3081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3082 echo "$ac_t""yes" 1>&6
3083 cat >> confdefs.h
<<\EOF
3084 #define HAVE_LIBXXPM 1
3086 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
3088 echo "$ac_t""no" 1>&6
3093 echo "$ac_t""no" 1>&6
3094 echo "Redhat : xpm xpm-devel"
3095 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3097 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3099 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3100 echo "the directory /contrib/libraries."
3109 for ac_hdr
in X11
/Xlib.h
3111 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3113 echo "configure:3114: checking for $ac_hdr" >&5
3114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 cat > conftest.
$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3123 { (eval echo configure
:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3124 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3125 if test -z "$ac_err"; then
3127 eval "ac_cv_header_$ac_safe=yes"
3130 echo "configure: failed program was:" >&5
3131 cat conftest.
$ac_ext >&5
3133 eval "ac_cv_header_$ac_safe=no"
3137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3138 echo "$ac_t""yes" 1>&6
3139 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3140 cat >> confdefs.h
<<EOF
3141 #define $ac_tr_hdr 1
3144 for ac_hdr
in X11
/extensions
/XShm.h
3146 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3148 echo "configure:3149: checking for $ac_hdr" >&5
3149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 cat > conftest.
$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3157 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3158 { (eval echo configure
:3159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3159 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3160 if test -z "$ac_err"; then
3162 eval "ac_cv_header_$ac_safe=yes"
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 eval "ac_cv_header_$ac_safe=no"
3172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3173 echo "$ac_t""yes" 1>&6
3174 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3175 cat >> confdefs.h
<<EOF
3176 #define $ac_tr_hdr 1
3178 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3179 echo "configure:3180: checking for XShmQueryExtension in -lXext" >&5
3180 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3184 ac_save_LIBS
="$LIBS"
3185 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 /* Override any gcc2 internal prototype to avoid an error. */
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3192 char XShmQueryExtension();
3195 XShmQueryExtension()
3198 if { (eval echo configure
:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3200 eval "ac_cv_lib_$ac_lib_var=yes"
3202 echo "configure: failed program was:" >&5
3203 cat conftest.
$ac_ext >&5
3205 eval "ac_cv_lib_$ac_lib_var=no"
3208 LIBS
="$ac_save_LIBS"
3211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3212 echo "$ac_t""yes" 1>&6
3213 cat >> confdefs.h
<<\EOF
3214 #define HAVE_LIBXXSHM 1
3218 echo "$ac_t""no" 1>&6
3223 echo "$ac_t""no" 1>&6
3224 echo "configure: warning: Xshm extension not found!!" 1>&2
3230 for ac_hdr
in X11
/Xlib.h X11
/extensions
/shape.h
3232 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_hdr" >&5
3235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3243 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3244 { (eval echo configure
:3245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3245 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3246 if test -z "$ac_err"; then
3248 eval "ac_cv_header_$ac_safe=yes"
3251 echo "configure: failed program was:" >&5
3252 cat conftest.
$ac_ext >&5
3254 eval "ac_cv_header_$ac_safe=no"
3258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3261 cat >> confdefs.h
<<EOF
3262 #define $ac_tr_hdr 1
3264 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3265 echo "configure:3266: checking for XShapeQueryExtension in -lXext" >&5
3266 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 ac_save_LIBS
="$LIBS"
3271 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3272 cat > conftest.
$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 /* Override any gcc2 internal prototype to avoid an error. */
3276 /* We use char because int might match the return type of a gcc2
3277 builtin and then its argument prototype would still apply. */
3278 char XShapeQueryExtension();
3281 XShapeQueryExtension()
3284 if { (eval echo configure
:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3286 eval "ac_cv_lib_$ac_lib_var=yes"
3288 echo "configure: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3291 eval "ac_cv_lib_$ac_lib_var=no"
3294 LIBS
="$ac_save_LIBS"
3297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3299 cat >> confdefs.h
<<\EOF
3300 #define HAVE_LIBXSHAPE 1
3304 echo "$ac_t""no" 1>&6
3309 echo "$ac_t""no" 1>&6
3310 echo "configure: warning: XShape extension found!!" 1>&2
3316 for ac_hdr
in X11
/extensions
/xf86dga.h
3318 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_hdr" >&5
3321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 cat > conftest.
$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3329 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3330 { (eval echo configure
:3331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3331 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3332 if test -z "$ac_err"; then
3334 eval "ac_cv_header_$ac_safe=yes"
3337 echo "configure: failed program was:" >&5
3338 cat conftest.
$ac_ext >&5
3340 eval "ac_cv_header_$ac_safe=no"
3344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3345 echo "$ac_t""yes" 1>&6
3346 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3347 cat >> confdefs.h
<<EOF
3348 #define $ac_tr_hdr 1
3350 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3351 echo "configure:3352: checking for XDGAQueryExtension in -lXxf86dga" >&5
3352 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 ac_save_LIBS
="$LIBS"
3357 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3359 cat > conftest.
$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3365 char XDGAQueryExtension();
3368 XDGAQueryExtension()
3371 if { (eval echo configure
:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.
$ac_ext >&5
3378 eval "ac_cv_lib_$ac_lib_var=no"
3381 LIBS
="$ac_save_LIBS"
3384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 cat >> confdefs.h
<<\EOF
3387 #define HAVE_LIBXXF86DGA2 1
3390 cat >> confdefs.h
<<\EOF
3391 #define HAVE_LIBXXF86DGA 1
3394 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3395 DGA_SRCS
='$(DGA_SRCS)'
3396 DGA2_SRCS
='$(DGA2_SRCS)'
3399 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3401 echo "configure:3402: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3402 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_save_LIBS
="$LIBS"
3407 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3409 cat > conftest.
$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 /* Override any gcc2 internal prototype to avoid an error. */
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3415 char XF86DGAQueryExtension();
3418 XF86DGAQueryExtension()
3421 if { (eval echo configure
:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3423 eval "ac_cv_lib_$ac_lib_var=yes"
3425 echo "configure: failed program was:" >&5
3426 cat conftest.
$ac_ext >&5
3428 eval "ac_cv_lib_$ac_lib_var=no"
3431 LIBS
="$ac_save_LIBS"
3434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3435 echo "$ac_t""yes" 1>&6
3436 cat >> confdefs.h
<<\EOF
3437 #define HAVE_LIBXXF86DGA 1
3440 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3441 DGA_SRCS
='$(DGA_SRCS)'
3444 echo "$ac_t""no" 1>&6
3452 echo "$ac_t""no" 1>&6
3453 echo "configure: warning: DGA extension not found!!" 1>&2
3459 for ac_hdr
in X11
/extensions
/xf86vmode.h
3461 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3463 echo "configure:3464: checking for $ac_hdr" >&5
3464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3472 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3473 { (eval echo configure
:3474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3474 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3475 if test -z "$ac_err"; then
3477 eval "ac_cv_header_$ac_safe=yes"
3480 echo "configure: failed program was:" >&5
3481 cat conftest.
$ac_ext >&5
3483 eval "ac_cv_header_$ac_safe=no"
3487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3490 cat >> confdefs.h
<<EOF
3491 #define $ac_tr_hdr 1
3493 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3494 echo "configure:3495: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3495 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS
="$LIBS"
3500 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508 char XF86VidModeQueryExtension();
3511 XF86VidModeQueryExtension()
3514 if { (eval echo configure
:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.
$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS
="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 cat >> confdefs.h
<<\EOF
3530 #define HAVE_LIBXXF86VM 1
3533 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3536 echo "$ac_t""no" 1>&6
3541 echo "$ac_t""no" 1>&6
3542 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3548 for ac_hdr
in X11
/extensions
/Xvlib.h
3550 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3552 echo "configure:3553: checking for $ac_hdr" >&5
3553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3561 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3562 { (eval echo configure
:3563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3563 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3564 if test -z "$ac_err"; then
3566 eval "ac_cv_header_$ac_safe=yes"
3569 echo "configure: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3572 eval "ac_cv_header_$ac_safe=no"
3576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3579 cat >> confdefs.h
<<EOF
3580 #define $ac_tr_hdr 1
3582 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3583 echo "configure:3584: checking for XvShmCreateImage in -lXv" >&5
3584 ac_lib_var
=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 ac_save_LIBS
="$LIBS"
3589 LIBS
="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3591 cat > conftest.
$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* Override any gcc2 internal prototype to avoid an error. */
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597 char XvShmCreateImage();
3603 if { (eval echo configure
:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3605 eval "ac_cv_lib_$ac_lib_var=yes"
3607 echo "configure: failed program was:" >&5
3608 cat conftest.
$ac_ext >&5
3610 eval "ac_cv_lib_$ac_lib_var=no"
3613 LIBS
="$ac_save_LIBS"
3616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 cat >> confdefs.h
<<\EOF
3619 #define HAVE_XVIDEO 1
3622 X_PRE_LIBS
="$X_PRE_LIBS -lXv"
3625 echo "$ac_t""no" 1>&6
3630 echo "$ac_t""no" 1>&6
3631 echo "configure: warning: XVideo extension not found !!" 1>&2
3640 echo "$ac_t""no" 1>&6
3644 if test $OPENGL = "yes" -o $OPENGL = "normal"
3646 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/glext.h
3648 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3650 echo "configure:3651: checking for $ac_hdr" >&5
3651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.
$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3659 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3660 { (eval echo configure
:3661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3661 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3662 if test -z "$ac_err"; then
3664 eval "ac_cv_header_$ac_safe=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3670 eval "ac_cv_header_$ac_safe=no"
3674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3675 echo "$ac_t""yes" 1>&6
3676 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3677 cat >> confdefs.h
<<EOF
3678 #define $ac_tr_hdr 1
3682 echo "$ac_t""no" 1>&6
3686 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3688 echo $ac_n "checking "for up-to-date OpenGL version
"""... $ac_c" 1>&6
3689 echo "configure:3690: checking "for up-to-date OpenGL version
"" >&5
3690 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.
$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3698 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3701 if { (eval echo configure
:3702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 wine_cv_opengl_version_OK
="yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.
$ac_ext >&5
3708 wine_cv_opengl_version_OK
="no"
3715 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3717 echo $ac_n "checking "for thread-safe OpenGL version
"""... $ac_c" 1>&6
3718 echo "configure:3719: checking "for thread-safe OpenGL version
"" >&5
3719 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3729 pthread_getspecific();
3732 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3734 wine_cv_opengl_version_threadsafe
="yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 wine_cv_opengl_version_threadsafe
="no"
3746 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3748 if test "$wine_cv_opengl_version_OK" = "yes" -a \
( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \
)
3750 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3751 echo "configure:3752: checking for glXCreateContext in -lGL" >&5
3752 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 ac_save_LIBS
="$LIBS"
3757 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 /* We use char because int might match the return type of a gcc2
3763 builtin and then its argument prototype would still apply. */
3764 char glXCreateContext();
3770 if { (eval echo configure
:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3772 eval "ac_cv_lib_$ac_lib_var=yes"
3774 echo "configure: failed program was:" >&5
3775 cat conftest.
$ac_ext >&5
3777 eval "ac_cv_lib_$ac_lib_var=no"
3780 LIBS
="$ac_save_LIBS"
3783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3785 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3786 MESA_SRCS
='$(MESA_SRCS)'
3789 echo "$ac_t""no" 1>&6
3793 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3796 OPENGLFILES
='$(OPENGLFILES)'
3797 cat >> confdefs.h
<<\EOF
3798 #define HAVE_OPENGL 1
3802 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3803 echo "configure:3804: checking for glXGetProcAddressARB in -lGL" >&5
3804 ac_lib_var
=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 ac_save_LIBS
="$LIBS"
3809 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 /* Override any gcc2 internal prototype to avoid an error. */
3814 /* We use char because int might match the return type of a gcc2
3815 builtin and then its argument prototype would still apply. */
3816 char glXGetProcAddressARB();
3819 glXGetProcAddressARB()
3822 if { (eval echo configure
:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3824 eval "ac_cv_lib_$ac_lib_var=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.
$ac_ext >&5
3829 eval "ac_cv_lib_$ac_lib_var=no"
3832 LIBS
="$ac_save_LIBS"
3835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3836 echo "$ac_t""yes" 1>&6
3837 cat >> confdefs.h
<<\EOF
3838 #define HAVE_GLX_GETPROCADDRESS 1
3842 echo "$ac_t""no" 1>&6
3846 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3848 echo $ac_n "checking "for OpenGL extension functions prototypes
"""... $ac_c" 1>&6
3849 echo "configure:3850: checking "for OpenGL extension functions prototypes
"" >&5
3850 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.
$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3857 #ifdef HAVE_GL_GLEXT_H
3858 # include <GL/glext.h>
3862 PFNGLCOLORTABLEEXTPROC test_proc;
3865 if { (eval echo configure
:3866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3867 wine_cv_extension_prototypes
="yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3872 wine_cv_extension_prototypes
="no"
3879 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
3880 if test $wine_cv_extension_prototypes = "yes"
3882 cat >> confdefs.h
<<\EOF
3883 #define HAVE_GLEXT_PROTOTYPES 1
3888 OPENGL32_DLL
=opengl32
3895 CPPFLAGS
="$ac_save_CPPFLAGS"
3904 if test "$CURSES" = "yes"
3906 for ac_hdr
in ncurses.h
3908 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3910 echo "configure:3911: checking for $ac_hdr" >&5
3911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3919 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3920 { (eval echo configure
:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3921 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3922 if test -z "$ac_err"; then
3924 eval "ac_cv_header_$ac_safe=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3930 eval "ac_cv_header_$ac_safe=no"
3934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
3936 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3937 cat >> confdefs.h
<<EOF
3938 #define $ac_tr_hdr 1
3942 echo "$ac_t""no" 1>&6
3946 if test "$ac_cv_header_ncurses_h" = "yes"
3948 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3949 echo "configure:3950: checking for waddch in -lncurses" >&5
3950 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 ac_save_LIBS
="$LIBS"
3955 LIBS
="-lncurses $LIBS"
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* Override any gcc2 internal prototype to avoid an error. */
3960 /* We use char because int might match the return type of a gcc2
3961 builtin and then its argument prototype would still apply. */
3968 if { (eval echo configure
:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3970 eval "ac_cv_lib_$ac_lib_var=yes"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.
$ac_ext >&5
3975 eval "ac_cv_lib_$ac_lib_var=no"
3978 LIBS
="$ac_save_LIBS"
3981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3982 echo "$ac_t""yes" 1>&6
3983 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3985 cat >> confdefs.h
<<EOF
3986 #define $ac_tr_lib 1
3989 LIBS
="-lncurses $LIBS"
3992 echo "$ac_t""no" 1>&6
3996 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3998 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3999 echo "configure:4000: checking for resizeterm in -lncurses" >&5
4000 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 ac_save_LIBS
="$LIBS"
4005 LIBS
="-lncurses $LIBS"
4006 cat > conftest.
$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4018 if { (eval echo configure
:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4020 eval "ac_cv_lib_$ac_lib_var=yes"
4022 echo "configure: failed program was:" >&5
4023 cat conftest.
$ac_ext >&5
4025 eval "ac_cv_lib_$ac_lib_var=no"
4028 LIBS
="$ac_save_LIBS"
4031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 cat >> confdefs.h
<<\EOF
4034 #define HAVE_RESIZETERM 1
4038 echo "$ac_t""no" 1>&6
4041 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
4042 echo "configure:4043: checking for getbkgd in -lncurses" >&5
4043 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 ac_save_LIBS
="$LIBS"
4048 LIBS
="-lncurses $LIBS"
4049 cat > conftest.
$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 eval "ac_cv_lib_$ac_lib_var=no"
4071 LIBS
="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 cat >> confdefs.h
<<\EOF
4077 #define HAVE_GETBKGD 1
4081 echo "$ac_t""no" 1>&6
4085 for ac_hdr
in curses.h
4087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4089 echo "configure:4090: checking for $ac_hdr" >&5
4090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4099 { (eval echo configure
:4100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4100 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4101 if test -z "$ac_err"; then
4103 eval "ac_cv_header_$ac_safe=yes"
4106 echo "configure: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4109 eval "ac_cv_header_$ac_safe=no"
4113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4116 cat >> confdefs.h
<<EOF
4117 #define $ac_tr_hdr 1
4121 echo "$ac_t""no" 1>&6
4125 if test "$ac_cv_header_curses_h" = "yes"
4127 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4128 echo "configure:4129: checking for waddch in -lcurses" >&5
4129 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 ac_save_LIBS
="$LIBS"
4134 LIBS
="-lcurses $LIBS"
4135 cat > conftest.
$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4147 if { (eval echo configure
:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4149 eval "ac_cv_lib_$ac_lib_var=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.
$ac_ext >&5
4154 eval "ac_cv_lib_$ac_lib_var=no"
4157 LIBS
="$ac_save_LIBS"
4160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4164 cat >> confdefs.h
<<EOF
4165 #define $ac_tr_lib 1
4168 LIBS
="-lcurses $LIBS"
4171 echo "$ac_t""no" 1>&6
4174 if test "$ac_cv_lib_curses_waddch" = "yes"
4176 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4177 echo "configure:4178: checking for resizeterm in -lcurses" >&5
4178 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 ac_save_LIBS
="$LIBS"
4183 LIBS
="-lcurses $LIBS"
4184 cat > conftest.
$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4196 if { (eval echo configure
:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4198 eval "ac_cv_lib_$ac_lib_var=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.
$ac_ext >&5
4203 eval "ac_cv_lib_$ac_lib_var=no"
4206 LIBS
="$ac_save_LIBS"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 cat >> confdefs.h
<<\EOF
4212 #define HAVE_RESIZETERM 1
4216 echo "$ac_t""no" 1>&6
4219 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4220 echo "configure:4221: checking for getbkgd in -lcurses" >&5
4221 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4225 ac_save_LIBS
="$LIBS"
4226 LIBS
="-lcurses $LIBS"
4227 cat > conftest.
$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 /* Override any gcc2 internal prototype to avoid an error. */
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4239 if { (eval echo configure
:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4241 eval "ac_cv_lib_$ac_lib_var=yes"
4243 echo "configure: failed program was:" >&5
4244 cat conftest.
$ac_ext >&5
4246 eval "ac_cv_lib_$ac_lib_var=no"
4249 LIBS
="$ac_save_LIBS"
4252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 cat >> confdefs.h
<<\EOF
4255 #define HAVE_GETBKGD 1
4259 echo "$ac_t""no" 1>&6
4267 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
4268 echo "configure:4269: checking "for GNU style IPX support
"" >&5
4269 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.
$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 #include <sys/socket.h>
4276 #include <netipx/ipx.h>
4278 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4281 if { (eval echo configure
:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4283 ac_cv_c_ipx_gnu
="yes"
4285 echo "configure: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 ac_cv_c_ipx_gnu
="no"
4294 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4295 if test "$ac_cv_c_ipx_gnu" = "yes"
4297 cat >> confdefs.h
<<\EOF
4298 #define HAVE_IPX_GNU 1
4303 if test "$ac_cv_c_ipx_gnu" = "no"
4305 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
4306 echo "configure:4307: checking "for linux style IPX support
"" >&5
4307 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 cat > conftest.
$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include <sys/socket.h>
4314 #include <asm/types.h>
4315 #include <linux/ipx.h>
4317 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4320 if { (eval echo configure
:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 ac_cv_c_ipx_linux
="yes"
4324 echo "configure: failed program was:" >&5
4325 cat conftest.
$ac_ext >&5
4327 ac_cv_c_ipx_linux
="no"
4333 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4334 if test "$ac_cv_c_ipx_linux" = "yes"
4336 cat >> confdefs.h
<<\EOF
4337 #define HAVE_IPX_LINUX 1
4343 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4345 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4347 echo "configure:4348: checking for $ac_hdr" >&5
4348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 cat > conftest.
$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4356 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4357 { (eval echo configure
:4358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4358 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4359 if test -z "$ac_err"; then
4361 eval "ac_cv_header_$ac_safe=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4367 eval "ac_cv_header_$ac_safe=no"
4371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4374 cat >> confdefs.h
<<EOF
4375 #define $ac_tr_hdr 1
4379 echo "$ac_t""no" 1>&6
4384 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
4385 echo "configure:4386: checking "for Open Sound System
"" >&5
4386 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 cat > conftest.
$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4393 #if defined(HAVE_SYS_SOUNDCARD_H)
4394 #include <sys/soundcard.h>
4395 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4396 #include <machine/soundcard.h>
4397 #elif defined(HAVE_SOUNDCARD_H)
4398 #include <soundcard.h>
4404 /* check for one of the Open Sound System specific SNDCTL_ defines */
4405 #if !defined(SNDCTL_DSP_STEREO)
4406 #error No open sound system
4411 if { (eval echo configure
:4412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4413 ac_cv_c_opensoundsystem
="yes"
4415 echo "configure: failed program was:" >&5
4416 cat conftest.
$ac_ext >&5
4418 ac_cv_c_opensoundsystem
="no"
4423 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4425 if test "$ac_cv_c_opensoundsystem" = "yes"
4427 cat >> confdefs.h
<<\EOF
4433 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4434 echo "configure:4435: checking "for Open Sound System
/MIDI interface
"" >&5
4435 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 cat > conftest.
$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4442 #if defined(HAVE_SYS_SOUNDCARD_H)
4443 #include <sys/soundcard.h>
4444 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4445 #include <machine/soundcard.h>
4446 #elif defined(HAVE_SOUNDCARD_H)
4447 #include <soundcard.h>
4453 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4454 #if !defined(SNDCTL_SEQ_SYNC)
4455 #error No open sound system MIDI interface
4460 if { (eval echo configure
:4461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4462 ac_cv_c_opensoundsystem_midi
="yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4467 ac_cv_c_opensoundsystem_midi
="no"
4472 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4474 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4476 cat >> confdefs.h
<<\EOF
4477 #define HAVE_OSS_MIDI 1
4482 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4485 if test "x${GCC}" = "xyes"
4487 CFLAGS
="$CFLAGS -Wall"
4488 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4489 echo "configure:4490: checking "for gcc strength-reduce bug
"" >&5
4490 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 if test "$cross_compiling" = yes; then
4494 ac_cv_c_gcc_strength_bug
="yes"
4496 cat > conftest.
$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4500 int L[4] = {0,1,2,3};
4502 static int Array[3];
4505 for(i=0; i<B; i++) Array[i] = i - 3;
4506 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4509 exit( Array[1] != -2 || L[2] != 3);
4512 if { (eval echo configure
:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4514 ac_cv_c_gcc_strength_bug
="no"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.
$ac_ext >&5
4519 ac_cv_c_gcc_strength_bug
="yes"
4526 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4527 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4529 CFLAGS
="$CFLAGS -fno-strength-reduce"
4534 echo $ac_n "checking "whether .
type must sit inside a .def directive
"""... $ac_c" 1>&6
4535 echo "configure:4536: checking "whether .
type must sit inside a .def directive
"" >&5
4536 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4540 LIBS
="conftest_asm.s $LIBS"
4541 cat > conftest_asm.s
<<EOF
4543 .def _ac_test; .scl 2; .type 32; .endef
4547 cat > conftest.
$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4555 if { (eval echo configure
:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4557 ac_cv_c_type_in_def
="yes"
4559 echo "configure: failed program was:" >&5
4560 cat conftest.
$ac_ext >&5
4562 ac_cv_c_type_in_def
="no"
4568 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
4569 if test "$ac_cv_c_type_in_def" = "yes"
4571 cat >> confdefs.h
<<\EOF
4572 #define NEED_TYPE_IN_DEF 1
4578 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4579 echo "configure:4580: checking "whether external symbols need an underscore prefix
"" >&5
4580 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4584 LIBS
="conftest_asm.s $LIBS"
4585 cat > conftest_asm.s
<<EOF
4590 cat > conftest.
$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4595 if (ac_test) return 1
4598 if { (eval echo configure
:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4600 ac_cv_c_extern_prefix
="yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.
$ac_ext >&5
4605 ac_cv_c_extern_prefix
="no"
4611 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4612 if test "$ac_cv_c_extern_prefix" = "yes"
4614 cat >> confdefs.h
<<\EOF
4615 #define NEED_UNDERSCORE_PREFIX 1
4621 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4622 echo "configure:4623: checking "whether assembler accepts .string
"" >&5
4623 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4627 LIBS
="conftest_asm.s $LIBS"
4628 cat > conftest_asm.s
<<EOF
4631 cat > conftest.
$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4639 if { (eval echo configure
:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4641 ac_cv_c_asm_string
="yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.
$ac_ext >&5
4646 ac_cv_c_asm_string
="no"
4652 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4653 if test "$ac_cv_c_asm_string" = "yes"
4655 cat >> confdefs.h
<<\EOF
4656 #define HAVE_ASM_STRING 1
4664 if test "$LIBEXT" = "so"
4666 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4667 echo "configure:4668: checking "whether we can build a Linux dll
"" >&5
4668 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 saved_cflags
=$CFLAGS
4672 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
4673 cat > conftest.
$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4681 if { (eval echo configure
:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4683 ac_cv_c_dll_linux
="yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4688 ac_cv_c_dll_linux
="no"
4691 CFLAGS
=$saved_cflags
4695 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4696 if test "$ac_cv_c_dll_linux" = "yes"
4698 LDSHARED
="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
4699 LDDLLFLAGS
="-Wl,-Bsymbolic"
4701 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether we can build a UnixWare (Solaris) dll" >&5
4703 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 saved_cflags
=$CFLAGS
4707 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
4708 cat > conftest.
$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4716 if { (eval echo configure
:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4718 ac_cv_c_dll_unixware
="yes"
4720 echo "configure: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4723 ac_cv_c_dll_unixware
="no"
4726 CFLAGS
=$saved_cflags
4730 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4731 if test "$ac_cv_c_dll_unixware" = "yes"
4733 LDSHARED
="\$(CC) -Wl,-G \$(SONAME:%=-Wl,h,\$(libdir)/%)"
4734 LDDLLFLAGS
="-Wl,-B,symbolic"
4736 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4737 echo "configure:4738: checking "whether we can build a NetBSD dll
"" >&5
4738 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 saved_cflags
=$CFLAGS
4742 CFLAGS
="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
4743 cat > conftest.
$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4751 if { (eval echo configure
:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4753 ac_cv_c_dll_netbsd
="yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.
$ac_ext >&5
4758 ac_cv_c_dll_netbsd
="no"
4761 CFLAGS
=$saved_cflags
4765 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4766 if test "$ac_cv_c_dll_netbsd" = "yes"
4768 LDSHARED
="\$(CC) -Wl,-Bshareable,-Bforcearchive"
4769 LDDLLFLAGS
="" #FIXME
4773 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4775 echo "*** It is currently not possible to build WINE without shared"
4776 echo "*** library (.so) support to allow transparent switch between .so"
4777 echo "*** and .dll files."
4778 echo "*** If you are using Linux, you will need a newer binutils."
4785 if test "$LIBEXT" = "so"; then
4787 DLL_LINK
="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode"
4789 DLL_LINK
="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)"
4790 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4791 echo "configure:4792: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4792 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 saved_cflags
=$CFLAGS
4796 CFLAGS
="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4805 if { (eval echo configure
:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4807 ac_cv_c_whole_archive
="yes"
4809 echo "configure: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4812 ac_cv_c_whole_archive
="no"
4815 CFLAGS
=$saved_cflags
4819 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4820 if test "$ac_cv_c_whole_archive" = "yes"
4822 DLL_LINK
="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4824 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4825 echo "configure:4826: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4826 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 saved_cflags
=$CFLAGS
4830 CFLAGS
="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4831 cat > conftest.
$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4839 if { (eval echo configure
:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4841 ac_cv_c_allextract
="yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4846 ac_cv_c_allextract
="no"
4849 CFLAGS
=$saved_cflags
4853 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4854 if test "$ac_cv_c_allextract" = "yes"
4856 DLL_LINK
="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4868 wine_cv_libc_reentrant
=no
4869 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
4870 echo "configure:4871: checking "for reentrant libc
: __errno_location
"" >&5
4871 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 if test "$cross_compiling" = yes; then
4875 wine_cv_libc_r__errno_location
=yes
4877 cat > conftest.
$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4882 int *__errno_location(){return &myerrno;}
4883 main(){connect(0,buf,255); exit(!myerrno);}
4885 if { (eval echo configure
:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4887 wine_cv_libc_r__errno_location
=yes
4889 echo "configure: failed program was:" >&5
4890 cat conftest.
$ac_ext >&5
4892 wine_cv_libc_r__errno_location
=no
4900 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4901 if test "$wine_cv_libc_r__errno_location" = "yes"
4903 cat >> confdefs.h
<<\EOF
4904 #define HAVE__ERRNO_LOCATION 1
4907 wine_cv_libc_reentrant
=__errno_location
4909 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
4910 echo "configure:4911: checking "for reentrant libc
: __error
"" >&5
4911 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4914 if test "$cross_compiling" = yes; then
4915 wine_cv_libc_r__error
=yes
4917 cat > conftest.
$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4922 int *__error(){return &myerrno;}
4923 main(){connect(0,buf,255); exit(!myerrno);}
4925 if { (eval echo configure
:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4927 wine_cv_libc_r__error
=yes
4929 echo "configure: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4932 wine_cv_libc_r__error
=no
4940 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4941 if test "$wine_cv_libc_r__error" = "yes"
4943 cat >> confdefs.h
<<\EOF
4944 #define HAVE__ERROR 1
4947 wine_cv_libc_reentrant
=__error
4949 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4950 echo "configure:4951: checking "for reentrant libc
: ___errno
"" >&5
4951 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4954 if test "$cross_compiling" = yes; then
4955 wine_cv_libc_r___errno
=yes
4957 cat > conftest.
$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4962 int *___errno(){return &myerrno;}
4963 main(){connect(0,buf,255); exit(!myerrno);}
4965 if { (eval echo configure
:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4967 wine_cv_libc_r___errno
=yes
4969 echo "configure: failed program was:" >&5
4970 cat conftest.
$ac_ext >&5
4972 wine_cv_libc_r___errno
=no
4980 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4981 if test "$wine_cv_libc_r___errno" = "yes"
4983 cat >> confdefs.h
<<\EOF
4984 #define HAVE___ERRNO 1
4987 wine_cv_libc_reentrant
=___errno
4989 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
4990 echo "configure:4991: checking "for reentrant libc
: __thr_errno
"" >&5
4991 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 if test "$cross_compiling" = yes; then
4995 wine_cv_libc_r__thr_errno
=yes
4997 cat > conftest.
$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5002 int *__thr_errno(){return &myerrno;}
5003 main(){connect(0,buf,255); exit(!myerrno);}
5005 if { (eval echo configure
:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5007 wine_cv_libc_r__thr_errno
=yes
5009 echo "configure: failed program was:" >&5
5010 cat conftest.
$ac_ext >&5
5012 wine_cv_libc_r__thr_errno
=no
5020 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
5021 if test "$wine_cv_libc_r__thr_errno" = "yes"
5023 cat >> confdefs.h
<<\EOF
5024 #define HAVE__THR_ERRNO 1
5027 wine_cv_libc_reentrant
=__thr_errno
5029 if test "$wine_cv_libc_reentrant" = "no"
5031 cat >> confdefs.h
<<\EOF
5032 #define NO_REENTRANT_LIBC 1
5038 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5040 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
5041 echo "configure:5042: checking "for reentrant X libraries
"" >&5
5042 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 if test "x$with_reentrant_x" = "xno"
5047 wine_cv_x_reentrant
=no
5050 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
5051 if test -r $dir/libX11.so
; then
5052 libX11_check
="-D $dir/libX11.so"
5055 if test -r $dir/libX11.a
; then
5056 libX11_check
="$dir/libX11.a"
5060 if test "$libX11_check" != "none"; then
5061 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
5063 wine_cv_x_reentrant
=yes
5065 wine_cv_x_reentrant
=no
5068 wine_cv_x_reentrant
=unknown
5073 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5075 wine_cv_x_reentrant
=no
5077 if test "$wine_cv_x_reentrant" = "no"
5079 cat >> confdefs.h
<<\EOF
5080 #define NO_REENTRANT_X11 1
5086 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5087 echo "configure:5088: checking whether byte ordering is bigendian" >&5
5088 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 ac_cv_c_bigendian
=unknown
5092 # See if sys/param.h defines the BYTE_ORDER macro.
5093 cat > conftest.
$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 #include <sys/types.h>
5097 #include <sys/param.h>
5100 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5105 if { (eval echo configure
:5106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5107 # It does; now see whether it defined to BIG_ENDIAN or not.
5108 cat > conftest.
$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 #include <sys/types.h>
5112 #include <sys/param.h>
5115 #if BYTE_ORDER != BIG_ENDIAN
5120 if { (eval echo configure
:5121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5122 ac_cv_c_bigendian
=yes
5124 echo "configure: failed program was:" >&5
5125 cat conftest.
$ac_ext >&5
5127 ac_cv_c_bigendian
=no
5131 echo "configure: failed program was:" >&5
5132 cat conftest.
$ac_ext >&5
5135 if test $ac_cv_c_bigendian = unknown
; then
5136 if test "$cross_compiling" = yes; then
5137 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5139 cat > conftest.
$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5143 /* Are we little or big endian? From Harbison&Steele. */
5147 char c[sizeof (long)];
5150 exit (u.c[sizeof (long) - 1] == 1);
5153 if { (eval echo configure
:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5155 ac_cv_c_bigendian
=no
5157 echo "configure: failed program was:" >&5
5158 cat conftest.
$ac_ext >&5
5160 ac_cv_c_bigendian
=yes
5168 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5169 if test $ac_cv_c_bigendian = yes; then
5170 cat >> confdefs.h
<<\EOF
5171 #define WORDS_BIGENDIAN 1
5178 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5179 # for constant arguments. Useless!
5180 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5181 echo "configure:5182: checking for working alloca.h" >&5
5182 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 cat > conftest.
$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5190 void *p = alloca(2 * sizeof(int));
5193 if { (eval echo configure
:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5195 ac_cv_header_alloca_h
=yes
5197 echo "configure: failed program was:" >&5
5198 cat conftest.
$ac_ext >&5
5200 ac_cv_header_alloca_h
=no
5205 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5206 if test $ac_cv_header_alloca_h = yes; then
5207 cat >> confdefs.h
<<\EOF
5208 #define HAVE_ALLOCA_H 1
5213 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5214 echo "configure:5215: checking for alloca" >&5
5215 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.
$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5223 # define alloca __builtin_alloca
5226 # include <malloc.h>
5227 # define alloca _alloca
5230 # include <alloca.h>
5235 # ifndef alloca /* predefined by HP cc +Olibcalls */
5244 char *p = (char *) alloca(1);
5247 if { (eval echo configure
:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5249 ac_cv_func_alloca_works
=yes
5251 echo "configure: failed program was:" >&5
5252 cat conftest.
$ac_ext >&5
5254 ac_cv_func_alloca_works
=no
5259 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5260 if test $ac_cv_func_alloca_works = yes; then
5261 cat >> confdefs.h
<<\EOF
5262 #define HAVE_ALLOCA 1
5267 if test $ac_cv_func_alloca_works = no
; then
5268 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5269 # that cause trouble. Some versions do not even contain alloca or
5270 # contain a buggy version. If you still want to use their alloca,
5271 # use ar to extract alloca.o from them instead of compiling alloca.c.
5272 ALLOCA
=alloca.
${ac_objext}
5273 cat >> confdefs.h
<<\EOF
5278 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5279 echo "configure:5280: checking whether alloca needs Cray hooks" >&5
5280 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5283 cat > conftest.
$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5286 #if defined(CRAY) && ! defined(CRAY2)
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 egrep "webecray" >/dev
/null
2>&1; then
5305 echo "$ac_t""$ac_cv_os_cray" 1>&6
5306 if test $ac_cv_os_cray = yes; then
5307 for ac_func
in _getb67 GETB67 getb67
; do
5308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5309 echo "configure:5310: checking for $ac_func" >&5
5310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5313 cat > conftest.
$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char $ac_func(); below. */
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5326 /* The GNU C library defines this for functions which it implements
5327 to always fail with ENOSYS. Some functions are actually named
5328 something starting with __ and the normal name is an alias. */
5329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5337 if { (eval echo configure
:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5339 eval "ac_cv_func_$ac_func=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.
$ac_ext >&5
5344 eval "ac_cv_func_$ac_func=no"
5349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5350 echo "$ac_t""yes" 1>&6
5351 cat >> confdefs.h
<<EOF
5352 #define CRAY_STACKSEG_END $ac_func
5357 echo "$ac_t""no" 1>&6
5363 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5364 echo "configure:5365: checking stack direction for C alloca" >&5
5365 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 if test "$cross_compiling" = yes; then
5369 ac_cv_c_stack_direction
=0
5371 cat > conftest.
$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 find_stack_direction ()
5376 static char *addr = 0;
5381 return find_stack_direction ();
5384 return (&dummy > addr) ? 1 : -1;
5388 exit (find_stack_direction() < 0);
5391 if { (eval echo configure
:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5393 ac_cv_c_stack_direction
=1
5395 echo "configure: failed program was:" >&5
5396 cat conftest.
$ac_ext >&5
5398 ac_cv_c_stack_direction
=-1
5405 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5406 cat >> confdefs.h
<<EOF
5407 #define STACK_DIRECTION $ac_cv_c_stack_direction
5447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5448 echo "configure:5449: checking for $ac_func" >&5
5449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 cat > conftest.
$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char $ac_func(); below. */
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5465 /* The GNU C library defines this for functions which it implements
5466 to always fail with ENOSYS. Some functions are actually named
5467 something starting with __ and the normal name is an alias. */
5468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5476 if { (eval echo configure
:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5478 eval "ac_cv_func_$ac_func=yes"
5480 echo "configure: failed program was:" >&5
5481 cat conftest.
$ac_ext >&5
5483 eval "ac_cv_func_$ac_func=no"
5488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5490 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5491 cat >> confdefs.h
<<EOF
5492 #define $ac_tr_func 1
5496 echo "$ac_t""no" 1>&6
5516 netinet
/in_systm.h \
5554 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_hdr" >&5
5557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.
$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5566 { (eval echo configure
:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5568 if test -z "$ac_err"; then
5570 eval "ac_cv_header_$ac_safe=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.
$ac_ext >&5
5576 eval "ac_cv_header_$ac_safe=no"
5580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5583 cat >> confdefs.h
<<EOF
5584 #define $ac_tr_hdr 1
5588 echo "$ac_t""no" 1>&6
5592 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5593 echo "configure:5594: checking whether stat file-mode macros are broken" >&5
5594 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.
$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 #include <sys/types.h>
5601 #include <sys/stat.h>
5603 #if defined(S_ISBLK) && defined(S_IFDIR)
5604 # if S_ISBLK (S_IFDIR)
5609 #if defined(S_ISBLK) && defined(S_IFCHR)
5610 # if S_ISBLK (S_IFCHR)
5615 #if defined(S_ISLNK) && defined(S_IFREG)
5616 # if S_ISLNK (S_IFREG)
5621 #if defined(S_ISSOCK) && defined(S_IFREG)
5622 # if S_ISSOCK (S_IFREG)
5628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5629 egrep "You lose" >/dev
/null
2>&1; then
5631 ac_cv_header_stat_broken
=yes
5634 ac_cv_header_stat_broken
=no
5640 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5641 if test $ac_cv_header_stat_broken = yes; then
5642 cat >> confdefs.h
<<\EOF
5643 #define STAT_MACROS_BROKEN 1
5650 echo $ac_n "checking for working const""... $ac_c" 1>&6
5651 echo "configure:5652: checking for working const" >&5
5652 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 cat > conftest.
$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5661 /* Ultrix mips cc rejects this. */
5662 typedef int charset[2]; const charset x = {0,0};
5663 /* SunOS 4.1.1 cc rejects this. */
5664 char const *const *ccp;
5666 /* NEC SVR4.0.2 mips cc rejects this. */
5667 struct point {int x, y;};
5668 static struct point const zero = {0,0};
5669 /* AIX XL C 1.02.0.0 rejects this.
5670 It does not let you subtract one const X* pointer from another in an arm
5671 of an if-expression whose if-part is not a constant expression */
5672 const char *g = "string";
5673 ccp = &g + (g ? g-g : 0);
5674 /* HPUX 7.0 cc rejects these. */
5677 ccp = (char const *const *) p;
5678 { /* SCO 3.2v4 cc rejects this. */
5680 char const *s = 0 ? (char *) 0 : (char const *) 0;
5684 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5686 const int *foo = &x[0];
5689 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5690 typedef const int *iptr;
5694 { /* AIX XL C 1.02.0.0 rejects this saying
5695 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5696 struct s { int j; const int *ap[3]; };
5697 struct s *b; b->j = 5;
5699 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5705 if { (eval echo configure
:5706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5709 echo "configure: failed program was:" >&5
5710 cat conftest.
$ac_ext >&5
5717 echo "$ac_t""$ac_cv_c_const" 1>&6
5718 if test $ac_cv_c_const = no
; then
5719 cat >> confdefs.h
<<\EOF
5725 echo $ac_n "checking for inline""... $ac_c" 1>&6
5726 echo "configure:5727: checking for inline" >&5
5727 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5731 for ac_kw
in inline __inline__ __inline
; do
5732 cat > conftest.
$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5737 } int $ac_kw foo() {
5740 if { (eval echo configure
:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5742 ac_cv_c_inline
=$ac_kw; break
5744 echo "configure: failed program was:" >&5
5745 cat conftest.
$ac_ext >&5
5752 echo "$ac_t""$ac_cv_c_inline" 1>&6
5753 case "$ac_cv_c_inline" in
5755 no
) cat >> confdefs.h
<<\EOF
5759 *) cat >> confdefs.h
<<EOF
5760 #define inline $ac_cv_c_inline
5765 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5766 echo "configure:5767: checking for ANSI C header files" >&5
5767 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5770 cat > conftest.
$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5779 { (eval echo configure
:5780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5780 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5781 if test -z "$ac_err"; then
5783 ac_cv_header_stdc
=yes
5786 echo "configure: failed program was:" >&5
5787 cat conftest.
$ac_ext >&5
5789 ac_cv_header_stdc
=no
5793 if test $ac_cv_header_stdc = yes; then
5794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5795 cat > conftest.
$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5801 egrep "memchr" >/dev
/null
2>&1; then
5805 ac_cv_header_stdc
=no
5811 if test $ac_cv_header_stdc = yes; then
5812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5813 cat > conftest.
$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819 egrep "free" >/dev
/null
2>&1; then
5823 ac_cv_header_stdc
=no
5829 if test $ac_cv_header_stdc = yes; then
5830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5831 if test "$cross_compiling" = yes; then
5834 cat > conftest.
$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5838 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5839 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5841 int main () { int i; for (i = 0; i < 256; i++)
5842 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5846 if { (eval echo configure
:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5850 echo "configure: failed program was:" >&5
5851 cat conftest.
$ac_ext >&5
5853 ac_cv_header_stdc
=no
5861 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5862 if test $ac_cv_header_stdc = yes; then
5863 cat >> confdefs.h
<<\EOF
5864 #define STDC_HEADERS 1
5869 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5870 echo "configure:5871: checking for size_t" >&5
5871 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 cat > conftest.
$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5877 #include <sys/types.h>
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5886 ac_cv_type_size_t
=yes
5889 ac_cv_type_size_t
=no
5894 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5895 if test $ac_cv_type_size_t = no
; then
5896 cat >> confdefs.h
<<\EOF
5897 #define size_t unsigned
5902 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5903 echo "configure:5904: checking size of long long" >&5
5904 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5907 if test "$cross_compiling" = yes; then
5908 ac_cv_sizeof_long_long
=0
5910 cat > conftest.
$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5916 FILE *f=fopen("conftestval", "w");
5918 fprintf(f, "%d\n", sizeof(long long));
5922 if { (eval echo configure
:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5924 ac_cv_sizeof_long_long
=`cat conftestval`
5926 echo "configure: failed program was:" >&5
5927 cat conftest.
$ac_ext >&5
5929 ac_cv_sizeof_long_long
=0
5935 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5936 cat >> confdefs.h
<<EOF
5937 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5943 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style
"""... $ac_c" 1>&6
5944 echo "configure:5945: checking "whether we can use re-entrant gethostbyname_r Linux style
"" >&5
5945 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 cat > conftest.
$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5958 struct hostent *result;
5965 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
5966 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
5970 if { (eval echo configure
:5971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5972 wine_cv_linux_gethostbyname_r_6
=yes
5974 echo "configure: failed program was:" >&5
5975 cat conftest.
$ac_ext >&5
5977 wine_cv_linux_gethostbyname_r_6
=no
5984 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
5985 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
5987 cat >> confdefs.h
<<\EOF
5988 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
5993 if test "$ac_cv_header_linux_joystick_h" = "yes"
5995 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
5996 echo "configure:5997: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
5997 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.
$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6004 #include <sys/ioctl.h>
6005 #include <linux/joystick.h>
6007 struct js_event blub;
6008 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6009 #error "no 2.2 header"
6016 if { (eval echo configure
:6017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6018 wine_cv_linux_joystick_22_api
=yes
6020 echo "configure: failed program was:" >&5
6021 cat conftest.
$ac_ext >&5
6023 wine_cv_linux_joystick_22_api
=no
6029 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6030 if test "$wine_cv_linux_joystick_22_api" = "yes"
6032 cat >> confdefs.h
<<\EOF
6033 #define HAVE_LINUX_22_JOYSTICK_API 1
6040 if test "$ac_cv_header_sys_vfs_h" = "yes"
6042 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
6043 echo "configure:6044: checking "whether sys
/vfs.h defines statfs
"" >&5
6044 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6045 echo $ac_n "(cached) $ac_c" 1>&6
6047 cat > conftest.
$ac_ext <<EOF
6048 #line 6049 "configure"
6049 #include "confdefs.h"
6051 #include <sys/types.h>
6052 #ifdef HAVE_SYS_PARAM_H
6053 # include <sys/param.h>
6055 #include <sys/vfs.h>
6061 memset(&stfs,0,sizeof(stfs));
6065 if { (eval echo configure
:6066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6067 wine_cv_sys_vfs_has_statfs
=yes
6069 echo "configure: failed program was:" >&5
6070 cat conftest.
$ac_ext >&5
6072 wine_cv_sys_vfs_has_statfs
=no
6079 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6080 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6082 cat >> confdefs.h
<<\EOF
6083 #define STATFS_DEFINED_BY_SYS_VFS 1
6089 if test "$ac_cv_header_sys_statfs_h" = "yes"
6091 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
6092 echo "configure:6093: checking "whether sys
/statfs.h defines statfs
"" >&5
6093 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6096 cat > conftest.
$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6100 #include <sys/types.h>
6101 #ifdef HAVE_SYS_PARAM_H
6102 # include <sys/param.h>
6104 #include <sys/statfs.h>
6112 if { (eval echo configure
:6113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6114 wine_cv_sys_statfs_has_statfs
=yes
6116 echo "configure: failed program was:" >&5
6117 cat conftest.
$ac_ext >&5
6119 wine_cv_sys_statfs_has_statfs
=no
6126 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6127 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6129 cat >> confdefs.h
<<\EOF
6130 #define STATFS_DEFINED_BY_SYS_STATFS 1
6136 if test "$ac_cv_header_sys_mount_h" = "yes"
6138 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
6139 echo "configure:6140: checking "whether sys
/mount.h defines statfs
"" >&5
6140 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6143 cat > conftest.
$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6147 #include <sys/types.h>
6148 #ifdef HAVE_SYS_PARAM_H
6149 # include <sys/param.h>
6151 #include <sys/mount.h>
6159 if { (eval echo configure
:6160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6161 wine_cv_sys_mount_has_statfs
=yes
6163 echo "configure: failed program was:" >&5
6164 cat conftest.
$ac_ext >&5
6166 wine_cv_sys_mount_has_statfs
=no
6173 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6174 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6176 cat >> confdefs.h
<<\EOF
6177 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6184 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
6185 echo "configure:6186: checking "for statfs.f_bfree
"" >&5
6186 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 if test "x$statfs_bfree" = "xno"
6191 wine_cv_statfs_bfree
=no
6193 cat > conftest.
$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6197 #include <sys/types.h>
6198 #ifdef HAVE_SYS_PARAM_H
6199 # include <sys/param.h>
6201 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6202 # include <sys/mount.h>
6204 # ifdef STATFS_DEFINED_BY_SYS_VFS
6205 # include <sys/vfs.h>
6207 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6208 # include <sys/statfs.h>
6221 if { (eval echo configure
:6222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6223 wine_cv_statfs_bfree
=yes
6225 echo "configure: failed program was:" >&5
6226 cat conftest.
$ac_ext >&5
6228 wine_cv_statfs_bfree
=no
6235 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6236 if test "$wine_cv_statfs_bfree" = "yes"
6238 cat >> confdefs.h
<<\EOF
6239 #define STATFS_HAS_BFREE 1
6244 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
6245 echo "configure:6246: checking "for statfs.f_bavail
"" >&5
6246 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6249 if test "x$statfs_bavail" = "xno"
6251 wine_cv_statfs_bavail
=no
6253 cat > conftest.
$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6257 #include <sys/types.h>
6258 #ifdef HAVE_SYS_PARAM_H
6259 # include <sys/param.h>
6261 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6262 # include <sys/mount.h>
6264 # ifdef STATFS_DEFINED_BY_SYS_VFS
6265 # include <sys/vfs.h>
6267 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6268 # include <sys/statfs.h>
6281 if { (eval echo configure
:6282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6283 wine_cv_statfs_bavail
=yes
6285 echo "configure: failed program was:" >&5
6286 cat conftest.
$ac_ext >&5
6288 wine_cv_statfs_bavail
=no
6295 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6296 if test "$wine_cv_statfs_bavail" = "yes"
6298 cat >> confdefs.h
<<\EOF
6299 #define STATFS_HAS_BAVAIL 1
6305 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
6306 echo "configure:6307: checking "for msg_accrights
in struct msghdr
"" >&5
6307 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6310 cat > conftest.
$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 #include <sys/types.h>
6314 #include <sys/socket.h>
6316 struct msghdr hdr; hdr.msg_accrights=0
6319 if { (eval echo configure
:6320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6321 ac_cv_c_msg_accrights
="yes"
6323 echo "configure: failed program was:" >&5
6324 cat conftest.
$ac_ext >&5
6326 ac_cv_c_msg_accrights
="no"
6331 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6332 if test "$ac_cv_c_msg_accrights" = "yes"
6334 cat >> confdefs.h
<<\EOF
6335 #define HAVE_MSGHDR_ACCRIGHTS 1
6341 echo $ac_n "checking "for sun_len
in struct sockaddr_un
"""... $ac_c" 1>&6
6342 echo "configure:6343: checking "for sun_len
in struct sockaddr_un
"" >&5
6343 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 cat > conftest.
$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 #include <sys/types.h>
6350 #include <sys/socket.h>
6353 static struct sockaddr_un addr; addr.sun_len = 1
6356 if { (eval echo configure
:6357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6358 ac_cv_c_sun_len
="yes"
6360 echo "configure: failed program was:" >&5
6361 cat conftest.
$ac_ext >&5
6363 ac_cv_c_sun_len
="no"
6368 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6369 if test "$ac_cv_c_sun_len" = "yes"
6371 cat >> confdefs.h
<<\EOF
6372 #define HAVE_SOCKADDR_SUN_LEN 1
6378 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
6379 echo "configure:6380: checking "whether we need to define __i386__
"" >&5
6380 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6383 cat > conftest.
$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 egrep "yes" >/dev
/null
2>&1; then
6393 ac_cv_cpp_def_i386
="yes"
6396 ac_cv_cpp_def_i386
="no"
6402 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6403 if test "$ac_cv_cpp_def_i386" = "yes"
6405 CFLAGS
="$CFLAGS -D__i386__"
6406 LINTFLAGS
="$LINTFLAGS -D__i386__"
6410 if test "$GCC" = "yes"
6412 GCC_NO_BUILTIN
="-fno-builtin"
6419 MAKE_RULES
=Make.rules
6422 MAKE_DLL_RULES
=dlls
/Makedll.rules
6425 MAKE_PROG_RULES
=programs
/Makeprog.rules
6429 cat > confcache
<<\EOF
6430 # This file is a shell script that caches the results of configure
6431 # tests run on this system so they can be shared between configure
6432 # scripts and configure runs. It is not useful on other systems.
6433 # If it contains results you don't want to keep, you may remove or edit it.
6435 # By default, configure uses ./config.cache as the cache file,
6436 # creating it if it does not exist already. You can give configure
6437 # the --cache-file=FILE option to use a different cache file; that is
6438 # what configure does when it calls configure scripts in
6439 # subdirectories, so they share the cache.
6440 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6441 # config.status only pays attention to the cache file if you give it the
6442 # --recheck option to rerun configure.
6445 # The following way of writing the cache mishandles newlines in values,
6446 # but we know of no workaround that is simple, portable, and efficient.
6447 # So, don't put newlines in cache variables' values.
6448 # Ultrix sh set writes to stderr and can't be redirected directly,
6449 # and sets the high bit in the cache file unless we assign to the vars.
6451 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6453 # `set' does not quote correctly, so add quotes (double-quote substitution
6454 # turns \\\\ into \\, and sed turns \\ into \).
6456 -e "s/'/'\\\\''/g" \
6457 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6460 # `set' quotes correctly as required by POSIX, so do not add quotes.
6461 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6464 if cmp -s $cache_file confcache
; then
6467 if test -w $cache_file; then
6468 echo "updating cache $cache_file"
6469 cat confcache
> $cache_file
6471 echo "not updating unwritable cache $cache_file"
6476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6478 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6479 # Let make expand exec_prefix.
6480 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6482 # Any assignment to VPATH causes Sun make to only execute
6483 # the first set of double-colon rules, so remove it if not needed.
6484 # If there is a colon in the path, we need to keep it.
6485 if test "x$srcdir" = x.
; then
6486 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6489 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6491 DEFS
=-DHAVE_CONFIG_H
6493 # Without the "./", some shells look in PATH for config.status.
6494 : ${CONFIG_STATUS=./config.status}
6496 echo creating
$CONFIG_STATUS
6497 rm -f $CONFIG_STATUS
6498 cat > $CONFIG_STATUS <<EOF
6500 # Generated automatically by configure.
6501 # Run this file to recreate the current configuration.
6502 # This directory was configured as follows,
6503 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6505 # $0 $ac_configure_args
6507 # Compiler output produced by configure, useful for debugging
6508 # configure, is in ./config.log if it exists.
6510 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6513 case "\$ac_option" in
6514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6515 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6516 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6517 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6518 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6520 -help | --help | --hel | --he | --h)
6521 echo "\$ac_cs_usage"; exit 0 ;;
6522 *) echo "\$ac_cs_usage"; exit 1 ;;
6526 ac_given_srcdir=$srcdir
6527 ac_given_INSTALL="$INSTALL"
6529 trap 'rm -fr `echo "
6532 programs/Makeprog.rules
6538 dlls/advapi32/Makefile
6539 dlls/avifil32/Makefile
6540 dlls/comctl32/Makefile
6541 dlls/commdlg/Makefile
6542 dlls/crtdll/Makefile
6543 dlls/dciman32/Makefile
6545 dlls/dinput/Makefile
6547 dlls/dplayx/Makefile
6548 dlls/dsound/Makefile
6551 dlls/imagehlp/Makefile
6553 dlls/kernel/Makefile
6554 dlls/lzexpand/Makefile
6557 dlls/msnet32/Makefile
6558 dlls/msvideo/Makefile
6560 dlls/odbc32/Makefile
6562 dlls/oleaut32/Makefile
6563 dlls/olecli/Makefile
6564 dlls/oledlg/Makefile
6565 dlls/olepro32/Makefile
6566 dlls/olesvr/Makefile
6567 dlls/opengl32/Makefile
6569 dlls/rasapi32/Makefile
6570 dlls/richedit/Makefile
6571 dlls/rpcrt4/Makefile
6572 dlls/serialui/Makefile
6573 dlls/setupapi/Makefile
6574 dlls/shell32/Makefile
6575 dlls/shfolder/Makefile
6576 dlls/shlwapi/Makefile
6577 dlls/tapi32/Makefile
6578 dlls/ttydrv/Makefile
6579 dlls/urlmon/Makefile
6581 dlls/version/Makefile
6582 dlls/win32s/Makefile
6583 dlls/winaspi/Makefile
6584 dlls/wineps/Makefile
6585 dlls/wininet/Makefile
6587 dlls/winmm/joystick/Makefile
6588 dlls/winmm/mcianim/Makefile
6589 dlls/winmm/mciavi/Makefile
6590 dlls/winmm/mcicda/Makefile
6591 dlls/winmm/mciseq/Makefile
6592 dlls/winmm/mciwave/Makefile
6593 dlls/winmm/midimap/Makefile
6594 dlls/winmm/wavemap/Makefile
6595 dlls/winmm/wineoss/Makefile
6596 dlls/winsock/Makefile
6597 dlls/winspool/Makefile
6599 dlls/wsock32/Makefile
6600 dlls/x11drv/Makefile
6601 documentation/Makefile
6602 documentation/wine.conf.man
6603 documentation/wine.man
6606 graphics/enhmetafiledrv/Makefile
6607 graphics/metafiledrv/Makefile
6608 graphics/win16drv/Makefile
6609 graphics/x11drv/Makefile
6624 programs/avitools/Makefile
6625 programs/clock/Makefile
6626 programs/cmdlgtst/Makefile
6627 programs/control/Makefile
6628 programs/notepad/Makefile
6629 programs/osversioncheck/Makefile
6630 programs/progman/Makefile
6631 programs/regapi/Makefile
6632 programs/regtest/Makefile
6633 programs/uninstaller/Makefile
6634 programs/view/Makefile
6635 programs/wcmd/Makefile
6636 programs/winemine/Makefile
6637 programs/winhelp/Makefile
6638 programs/winver/Makefile
6643 tools/cvdump/Makefile
6644 tools/winebuild/Makefile
6652 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6654 cat >> $CONFIG_STATUS <<EOF
6656 # Protect against being on the right side of a sed subst in config.status.
6657 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6658 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6662 s%@CFLAGS@%$CFLAGS%g
6663 s%@CPPFLAGS@%$CPPFLAGS%g
6664 s%@CXXFLAGS@%$CXXFLAGS%g
6665 s%@FFLAGS@%$FFLAGS%g
6667 s%@LDFLAGS@%$LDFLAGS%g
6669 s%@exec_prefix@%$exec_prefix%g
6670 s%@prefix@%$prefix%g
6671 s%@program_transform_name@%$program_transform_name%g
6672 s%@bindir@%$bindir%g
6673 s%@sbindir@%$sbindir%g
6674 s%@libexecdir@%$libexecdir%g
6675 s%@datadir@%$datadir%g
6676 s%@sysconfdir@%$sysconfdir%g
6677 s%@sharedstatedir@%$sharedstatedir%g
6678 s%@localstatedir@%$localstatedir%g
6679 s%@libdir@%$libdir%g
6680 s%@includedir@%$includedir%g
6681 s%@oldincludedir@%$oldincludedir%g
6682 s%@infodir@%$infodir%g
6683 s%@mandir@%$mandir%g
6684 s%@OPTIONS@%$OPTIONS%g
6685 s%@SET_MAKE@%$SET_MAKE%g
6688 s%@X_CFLAGS@%$X_CFLAGS%g
6689 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6690 s%@X_LIBS@%$X_LIBS%g
6691 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6694 s%@LEXLIB@%$LEXLIB%g
6696 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6697 s%@RANLIB@%$RANLIB%g
6698 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6699 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6700 s%@INSTALL_DATA@%$INSTALL_DATA%g
6703 s%@LDCONFIG@%$LDCONFIG%g
6705 s%@LINTFLAGS@%$LINTFLAGS%g
6707 s%@X_DLLS@%$X_DLLS%g
6708 s%@XFILES@%$XFILES%g
6709 s%@OPENGLFILES@%$OPENGLFILES%g
6710 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6711 s%@DGA_SRCS@%$DGA_SRCS%g
6712 s%@DGA2_SRCS@%$DGA2_SRCS%g
6713 s%@MESA_SRCS@%$MESA_SRCS%g
6714 s%@DLL_LINK@%$DLL_LINK%g
6715 s%@DLLFLAGS@%$DLLFLAGS%g
6716 s%@LDSHARED@%$LDSHARED%g
6717 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
6718 s%@LIBEXT@%$LIBEXT%g
6719 s%@ALLOCA@%$ALLOCA%g
6720 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6721 /@MAKE_RULES@/r $MAKE_RULES
6723 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6724 s%@MAKE_DLL_RULES@%%g
6725 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
6726 s%@MAKE_PROG_RULES@%%g
6731 cat >> $CONFIG_STATUS <<\EOF
6733 # Split the substitutions into bite-sized pieces for seds with
6734 # small command number limits, like on Digital OSF/1 and HP-UX.
6735 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6736 ac_file
=1 # Number of current file.
6737 ac_beg
=1 # First line for current file.
6738 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6741 while $ac_more_lines; do
6742 if test $ac_beg -gt 1; then
6743 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6745 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6747 if test ! -s conftest.s
$ac_file; then
6749 rm -f conftest.s
$ac_file
6751 if test -z "$ac_sed_cmds"; then
6752 ac_sed_cmds
="sed -f conftest.s$ac_file"
6754 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6756 ac_file
=`expr $ac_file + 1`
6758 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6761 if test -z "$ac_sed_cmds"; then
6766 cat >> $CONFIG_STATUS <<EOF
6768 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6770 programs/Makeprog.rules
6776 dlls/advapi32/Makefile
6777 dlls/avifil32/Makefile
6778 dlls/comctl32/Makefile
6779 dlls/commdlg/Makefile
6780 dlls/crtdll/Makefile
6781 dlls/dciman32/Makefile
6783 dlls/dinput/Makefile
6785 dlls/dplayx/Makefile
6786 dlls/dsound/Makefile
6789 dlls/imagehlp/Makefile
6791 dlls/kernel/Makefile
6792 dlls/lzexpand/Makefile
6795 dlls/msnet32/Makefile
6796 dlls/msvideo/Makefile
6798 dlls/odbc32/Makefile
6800 dlls/oleaut32/Makefile
6801 dlls/olecli/Makefile
6802 dlls/oledlg/Makefile
6803 dlls/olepro32/Makefile
6804 dlls/olesvr/Makefile
6805 dlls/opengl32/Makefile
6807 dlls/rasapi32/Makefile
6808 dlls/richedit/Makefile
6809 dlls/rpcrt4/Makefile
6810 dlls/serialui/Makefile
6811 dlls/setupapi/Makefile
6812 dlls/shell32/Makefile
6813 dlls/shfolder/Makefile
6814 dlls/shlwapi/Makefile
6815 dlls/tapi32/Makefile
6816 dlls/ttydrv/Makefile
6817 dlls/urlmon/Makefile
6819 dlls/version/Makefile
6820 dlls/win32s/Makefile
6821 dlls/winaspi/Makefile
6822 dlls/wineps/Makefile
6823 dlls/wininet/Makefile
6825 dlls/winmm/joystick/Makefile
6826 dlls/winmm/mcianim/Makefile
6827 dlls/winmm/mciavi/Makefile
6828 dlls/winmm/mcicda/Makefile
6829 dlls/winmm/mciseq/Makefile
6830 dlls/winmm/mciwave/Makefile
6831 dlls/winmm/midimap/Makefile
6832 dlls/winmm/wavemap/Makefile
6833 dlls/winmm/wineoss/Makefile
6834 dlls/winsock/Makefile
6835 dlls/winspool/Makefile
6837 dlls/wsock32/Makefile
6838 dlls/x11drv/Makefile
6839 documentation/Makefile
6840 documentation/wine.conf.man
6841 documentation/wine.man
6844 graphics/enhmetafiledrv/Makefile
6845 graphics/metafiledrv/Makefile
6846 graphics/win16drv/Makefile
6847 graphics/x11drv/Makefile
6862 programs/avitools/Makefile
6863 programs/clock/Makefile
6864 programs/cmdlgtst/Makefile
6865 programs/control/Makefile
6866 programs/notepad/Makefile
6867 programs/osversioncheck/Makefile
6868 programs/progman/Makefile
6869 programs/regapi/Makefile
6870 programs/regtest/Makefile
6871 programs/uninstaller/Makefile
6872 programs/view/Makefile
6873 programs/wcmd/Makefile
6874 programs/winemine/Makefile
6875 programs/winhelp/Makefile
6876 programs/winver/Makefile
6881 tools/cvdump/Makefile
6882 tools/winebuild/Makefile
6890 windows/x11drv/Makefile "}
6892 cat >> $CONFIG_STATUS <<\EOF
6893 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6896 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6897 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6898 *) ac_file_in
="${ac_file}.in" ;;
6901 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6903 # Remove last slash and all that follows it. Not all systems have dirname.
6904 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6905 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6906 # The file is in a subdirectory.
6907 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6908 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6909 # A "../" for each directory in $ac_dir_suffix.
6910 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6912 ac_dir_suffix
= ac_dots
=
6915 case "$ac_given_srcdir" in
6917 if test -z "$ac_dots"; then top_srcdir
=.
6918 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6919 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6921 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6922 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6925 case "$ac_given_INSTALL" in
6926 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6927 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6930 echo creating
"$ac_file"
6932 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6934 *Makefile
*) ac_comsub
="1i\\
6935 # $configure_input" ;;
6939 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6941 s%@configure_input@%$configure_input%g
6942 s%@srcdir@%$srcdir%g
6943 s%@top_srcdir@%$top_srcdir%g
6944 s%@INSTALL@%$INSTALL%g
6945 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6950 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6952 # ac_d sets the value in "#define NAME VALUE" lines.
6953 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6954 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6957 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6958 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6959 ac_uB
='\([ ]\)%\1#\2define\3'
6962 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6963 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6964 ac_eB
='$%\1#\2define\3'
6968 if test "${CONFIG_HEADERS+set}" != set; then
6970 cat >> $CONFIG_STATUS <<EOF
6971 CONFIG_HEADERS="include/config.h"
6973 cat >> $CONFIG_STATUS <<\EOF
6975 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6978 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6979 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6980 *) ac_file_in
="${ac_file}.in" ;;
6983 echo creating
$ac_file
6985 rm -f conftest.frag conftest.
in conftest.out
6986 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6987 cat $ac_file_inputs > conftest.
in
6991 # Transform confdefs.h into a sed script conftest.vals that substitutes
6992 # the proper values into config.h.in to produce config.h. And first:
6993 # Protect against being on the right side of a sed subst in config.status.
6994 # Protect against being in an unquoted here document in config.status.
6996 cat > conftest.hdr
<<\EOF
6999 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7003 sed -n -f conftest.hdr confdefs.h > conftest.vals
7006 # This sed command replaces #undef with comments. This is necessary, for
7007 # example, in the case of _POSIX_SOURCE, which is predefined and required
7008 # on some systems where configure will not decide to define it.
7009 cat >> conftest.vals <<\EOF
7010 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7013 # Break up conftest.vals because some shells have a limit on
7014 # the size of here documents, and old seds have small limits too.
7019 ac_lines=`grep -c . conftest.vals
`
7020 # grep -c gives empty output for an empty file on some AIX systems.
7021 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7022 # Write a limited-size here document to conftest.frag.
7023 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7024 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7026 sed -f conftest.frag conftest.in > conftest.out
7028 mv conftest.out conftest.in
7030 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7032 mv conftest.tail conftest.vals
7036 cat >> $CONFIG_STATUS <<\EOF
7037 rm -f conftest.frag conftest.h
7038 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7039 cat conftest.in >> conftest.h
7041 if cmp -s $ac_file conftest.h 2>/dev/null; then
7042 echo "$ac_file is unchanged"
7045 # Remove last slash and all that follows it. Not all systems have dirname.
7046 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7047 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7048 # The file is in a subdirectory.
7049 test ! -d "$ac_dir" && mkdir "$ac_dir"
7052 mv conftest.h $ac_file
7057 cat >> $CONFIG_STATUS <<EOF
7061 cat >> $CONFIG_STATUS <<\EOF
7064 dlls/ddraw/d3ddevice \
7065 dlls/ddraw/dclipper \
7067 dlls/ddraw/direct3d \
7068 dlls/ddraw/dpalette \
7069 dlls/ddraw/dsurface \
7070 dlls/dinput/joystick \
7071 dlls/dinput/keyboard \
7073 dlls/kernel/messages \
7074 dlls/user/resources \
7076 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7080 chmod +x $CONFIG_STATUS
7081 rm -fr confdefs* $ac_clean_files
7082 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7085 if test "$have_x" = "no"
7088 echo "*** Warning: X development files not found. Wine will be built without"
7089 echo "*** X support, which currently does not work, and would probably not be"
7090 echo "*** what you want anyway. You will need to install devel packages of"
7091 echo "*** Xlib/Xfree86 and Xpm at the very least."
7092 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7095 echo "*** Warning: Xpm development files not found. Wine will be built without"
7096 echo "*** Xpm support, which currently does not work. You will need to install"
7097 echo "*** devel packages of Xpm."
7100 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7103 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7104 echo "*** terminal resize support. Consider upgrading ncurses."
7107 if test "$wine_cv_libc_reentrant" = "no"
7110 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7111 echo "*** thread support. Consider upgrading libc to a more recent"
7112 echo "*** reentrant version of libc."
7115 if test "$wine_cv_opengl_version_OK" = "no"
7118 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7119 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7122 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7125 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7126 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7127 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
7128 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7131 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7134 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
7135 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7136 echo "*** support before reporting bugs."
7141 echo "Configure finished. Do 'make depend && make' to compile Wine."