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.12
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-emulator build only the Wine library, not the emulator"
18 --enable-dll build the Wine library as a DLL"
20 --disable-lib build the Wine without building libwine.a"
22 --disable-debug compile out all debugging messages"
24 --disable-trace compile out TRACE messages"
26 --with-ncurses compile in the ncurses terminal (EXPERIMENTAL)"
28 --without-reentrant-x compile for use with non-reentrant X libraries"
30 --with-x use the X Window System"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
53 bindir
='${exec_prefix}/bin'
54 sbindir
='${exec_prefix}/sbin'
55 libexecdir
='${exec_prefix}/libexec'
56 datadir
='${prefix}/share'
57 sysconfdir
='${prefix}/etc'
58 sharedstatedir
='${prefix}/com'
59 localstatedir
='${prefix}/var'
60 libdir
='${exec_prefix}/lib'
61 includedir
='${prefix}/include'
62 oldincludedir
='/usr/include'
63 infodir
='${prefix}/info'
64 mandir
='${prefix}/man'
66 # Initialize some other variables.
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
94 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
95 bindir
="$ac_optarg" ;;
97 -build |
--build |
--buil |
--bui |
--bu)
99 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 build
="$ac_optarg" ;;
102 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
103 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
104 ac_prev
=cache_file
;;
105 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
106 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
107 cache_file
="$ac_optarg" ;;
109 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
111 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
113 datadir
="$ac_optarg" ;;
115 -disable-* |
--disable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* |
--enable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
138 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
139 |
--exec |
--exe |
--ex)
140 ac_prev
=exec_prefix
;;
141 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
142 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
143 |
--exec=* |
--exe=* |
--ex=*)
144 exec_prefix
="$ac_optarg" ;;
146 -gas |
--gas |
--ga |
--g)
147 # Obsolete; use --with-gas.
150 -help |
--help |
--hel |
--he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host |
--host |
--hos |
--ho)
207 -host=* |
--host=* |
--hos=* |
--ho=*)
210 -includedir |
--includedir |
--includedi |
--included |
--include \
211 |
--includ |
--inclu |
--incl |
--inc)
212 ac_prev
=includedir
;;
213 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
214 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
215 includedir
="$ac_optarg" ;;
217 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
219 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
220 infodir
="$ac_optarg" ;;
222 -libdir |
--libdir |
--libdi |
--libd)
224 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
225 libdir
="$ac_optarg" ;;
227 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
228 |
--libexe |
--libex |
--libe)
229 ac_prev
=libexecdir
;;
230 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
231 |
--libexe=* |
--libex=* |
--libe=*)
232 libexecdir
="$ac_optarg" ;;
234 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
235 |
--localstate |
--localstat |
--localsta |
--localst \
236 |
--locals |
--local |
--loca |
--loc |
--lo)
237 ac_prev
=localstatedir
;;
238 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
239 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
240 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
241 localstatedir
="$ac_optarg" ;;
243 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
245 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
246 mandir
="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
256 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
257 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
260 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
261 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
262 |
--oldin |
--oldi |
--old |
--ol |
--o)
263 ac_prev
=oldincludedir
;;
264 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
265 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
266 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
267 oldincludedir
="$ac_optarg" ;;
269 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
271 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
272 prefix
="$ac_optarg" ;;
274 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
275 |
--program-pre |
--program-pr |
--program-p)
276 ac_prev
=program_prefix
;;
277 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
278 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
279 program_prefix
="$ac_optarg" ;;
281 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
282 |
--program-suf |
--program-su |
--program-s)
283 ac_prev
=program_suffix
;;
284 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
285 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
286 program_suffix
="$ac_optarg" ;;
288 -program-transform-name |
--program-transform-name \
289 |
--program-transform-nam |
--program-transform-na \
290 |
--program-transform-n |
--program-transform- \
291 |
--program-transform |
--program-transfor \
292 |
--program-transfo |
--program-transf \
293 |
--program-trans |
--program-tran \
294 |
--progr-tra |
--program-tr |
--program-t)
295 ac_prev
=program_transform_name
;;
296 -program-transform-name=* |
--program-transform-name=* \
297 |
--program-transform-nam=* |
--program-transform-na=* \
298 |
--program-transform-n=* |
--program-transform-=* \
299 |
--program-transform=* |
--program-transfor=* \
300 |
--program-transfo=* |
--program-transf=* \
301 |
--program-trans=* |
--program-tran=* \
302 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
303 program_transform_name
="$ac_optarg" ;;
305 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
306 |
-silent |
--silent |
--silen |
--sile |
--sil)
309 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
311 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
313 sbindir
="$ac_optarg" ;;
315 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
316 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
317 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
319 ac_prev
=sharedstatedir
;;
320 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
321 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
322 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
324 sharedstatedir
="$ac_optarg" ;;
326 -site |
--site |
--sit)
328 -site=* |
--site=* |
--sit=*)
331 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
333 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
334 srcdir
="$ac_optarg" ;;
336 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
337 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
338 ac_prev
=sysconfdir
;;
339 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
340 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
341 sysconfdir
="$ac_optarg" ;;
343 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
345 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
346 target
="$ac_optarg" ;;
348 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
351 -version |
--version |
--versio |
--versi |
--vers)
352 echo "configure generated by autoconf version 2.12"
356 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* |
--without-*)
369 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
382 |
--x-incl |
--x-inc |
--x-in |
--x-i)
383 ac_prev
=x_includes
;;
384 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
385 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
386 x_includes
="$ac_optarg" ;;
388 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
389 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
390 ac_prev
=x_libraries
;;
391 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
392 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
393 x_libraries
="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE
; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
444 |
--no-cr |
--no-c) ;;
445 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
446 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
447 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest
* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file
=controls
/edit.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted
=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted
=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE
; then
498 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file
in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp
='$CPP $CPPFLAGS'
521 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling
=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
534 ac_n
= ac_c
='\c' ac_t
=
540 for ac_dir
in tools
$srcdir/tools
; do
541 if test -f $ac_dir/install-sh
; then
543 ac_install_sh
="$ac_aux_dir/install-sh -c"
545 elif test -f $ac_dir/install.sh
; then
547 ac_install_sh
="$ac_aux_dir/install.sh -c"
551 if test -z "$ac_aux_dir"; then
552 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
554 ac_config_guess
=$ac_aux_dir/config.guess
555 ac_config_sub
=$ac_aux_dir/config.sub
556 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
559 # We want these before the checks, so the checks can modify their values.
561 test -z "$PROGEXT" && PROGEXT
=""
567 TRACE_MSGS
=yes # the TRACE() macro
568 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
570 # Check whether --enable-emulator or --disable-emulator was given.
571 if test "${enable_emulator+set}" = set; then
572 enableval
="$enable_emulator"
573 if test "$enableval" = "no"; then MAIN_TARGET
="lib"; fi
577 # Check whether --enable-dll or --disable-dll was given.
578 if test "${enable_dll+set}" = set; then
579 enableval
="$enable_dll"
580 if test "$enableval" = "no"; then : ; else LIB_TARGET
="libwine.so.1.0"; fi
584 # Check whether --enable-lib or --disable-lib was given.
585 if test "${enable_lib+set}" = set; then
586 enableval
="$enable_lib"
587 if test "$enableval" = "no"; then ALT_LINK
="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET
=""; fi
592 # Check whether --enable-debug or --disable-debug was given.
593 if test "${enable_debug+set}" = set; then
594 enableval
="$enable_debug"
595 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
599 # Check whether --enable-trace or --disable-trace was given.
600 if test "${enable_trace+set}" = set; then
601 enableval
="$enable_trace"
602 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
606 # Check whether --with-ncurses or --without-ncurses was given.
607 if test "${with_ncurses+set}" = set; then
608 withval
="$with_ncurses"
609 if test "$withval" = "yes"; then LIBS
="$LIBS -lncurses"; cat >> confdefs.h
<<\EOF
610 #define WINE_NCURSES 1
616 # Check whether --with-reentrant-x or --without-reentrant-x was given.
617 if test "${with_reentrant_x+set}" = set; then
618 withval
="$with_reentrant_x"
628 if test "$DEBUG_MSGS" = "no"
630 cat >> confdefs.h
<<\EOF
631 #define NO_DEBUG_MSGS 1
634 cat >> confdefs.h
<<\EOF
635 #define NO_TRACE_MSGS 1
639 if test "$TRACE_MSGS" = "no"
641 cat >> confdefs.h
<<\EOF
642 #define NO_TRACE_MSGS 1
649 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
650 echo "configure:651: checking whether ${MAKE-make} sets \${MAKE}" >&5
651 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
652 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 cat > conftestmake
<<\EOF
657 @
echo 'ac_maketemp="${MAKE}"'
659 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
660 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
661 if test -n "$ac_maketemp"; then
662 eval ac_cv_prog_make_
${ac_make}_set
=yes
664 eval ac_cv_prog_make_
${ac_make}_set
=no
668 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
669 echo "$ac_t""yes" 1>&6
672 echo "$ac_t""no" 1>&6
673 SET_MAKE
="MAKE=${MAKE-make}"
676 # Extract the first word of "gcc", so it can be a program name with args.
677 set dummy gcc
; ac_word
=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC
="$CC" # Let the user override the test.
686 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
687 for ac_dir
in $PATH; do
688 test -z "$ac_dir" && ac_dir
=.
689 if test -f $ac_dir/$ac_word; then
698 if test -n "$CC"; then
699 echo "$ac_t""$CC" 1>&6
701 echo "$ac_t""no" 1>&6
704 if test -z "$CC"; then
705 # Extract the first word of "cc", so it can be a program name with args.
706 set dummy cc
; ac_word
=$2
707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
708 echo "configure:709: checking for $ac_word" >&5
709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 if test -n "$CC"; then
713 ac_cv_prog_CC
="$CC" # Let the user override the test.
715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
717 for ac_dir
in $PATH; do
718 test -z "$ac_dir" && ac_dir
=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
729 if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy
$ac_cv_prog_CC
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
738 set dummy
"$ac_dir/$ac_word" "$@"
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
749 echo "$ac_t""no" 1>&6
752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp
='$CPP $CPPFLAGS'
761 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling
=$ac_cv_prog_cc_cross
765 cat > conftest.
$ac_ext <<EOF
766 #line 767 "configure"
767 #include "confdefs.h"
770 if { (eval echo configure
:771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
771 ac_cv_prog_cc_works
=yes
772 # If we can't run a trivial program, we are probably using a cross compiler.
773 if (.
/conftest
; exit) 2>/dev
/null
; then
774 ac_cv_prog_cc_cross
=no
776 ac_cv_prog_cc_cross
=yes
779 echo "configure: failed program was:" >&5
780 cat conftest.
$ac_ext >&5
781 ac_cv_prog_cc_works
=no
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no
; then
787 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling
=$ac_cv_prog_cc_cross
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 cat > conftest.c
<<EOF
804 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
811 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
813 if test $ac_cv_prog_gcc = yes; then
815 ac_test_CFLAGS
="${CFLAGS+set}"
816 ac_save_CFLAGS
="$CFLAGS"
818 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${CC-cc} accepts -g" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 echo 'void f(){}' > conftest.c
824 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
833 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
834 if test "$ac_test_CFLAGS" = set; then
835 CFLAGS
="$ac_save_CFLAGS"
836 elif test $ac_cv_prog_cc_g = yes; then
843 test "${CFLAGS+set}" = set || CFLAGS
="-g"
846 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
847 echo "configure:848: checking how to run the C preprocessor" >&5
848 # On Suns, sometimes $CPP names a directory.
849 if test -n "$CPP" && test -d "$CPP"; then
852 if test -z "$CPP"; then
853 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 # This must be in double quotes, not single quotes, because CPP may get
857 # substituted into the Makefile and "${CC-cc}" will confuse make.
859 # On the NeXT, cc -E runs the code through the compiler's parser,
860 # not just through cpp.
861 cat > conftest.
$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
868 { (eval echo configure
:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
869 ac_err
=`grep -v '^ *+' conftest.out`
870 if test -z "$ac_err"; then
874 echo "configure: failed program was:" >&5
875 cat conftest.
$ac_ext >&5
877 CPP
="${CC-cc} -E -traditional-cpp"
878 cat > conftest.
$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
885 { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
886 ac_err
=`grep -v '^ *+' conftest.out`
887 if test -z "$ac_err"; then
891 echo "configure: failed program was:" >&5
892 cat conftest.
$ac_ext >&5
899 ac_cv_prog_CPP
="$CPP"
901 CPP
="$ac_cv_prog_CPP"
903 ac_cv_prog_CPP
="$CPP"
905 echo "$ac_t""$CPP" 1>&6
907 # If we find X, set shell vars x_includes and x_libraries to the
908 # paths, otherwise set no_x=yes.
909 # Uses ac_ vars as temps to allow command line to override cache and checks.
910 # --without-x overrides everything else, but does not touch the cache.
911 echo $ac_n "checking for X""... $ac_c" 1>&6
912 echo "configure:913: checking for X" >&5
914 # Check whether --with-x or --without-x was given.
915 if test "${with_x+set}" = set; then
920 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
921 if test "x$with_x" = xno
; then
922 # The user explicitly disabled X.
925 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
926 # Both variables are already set.
929 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 # One or both of the vars are not set, and there is no cached value.
933 ac_x_includes
=NO ac_x_libraries
=NO
935 if mkdir conftestdir
; then
937 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
938 cat > Imakefile
<<'EOF'
940 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
942 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
944 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
945 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
946 for ac_extension
in a so sl
; do
947 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
948 test -f $ac_im_libdir/libX11.
$ac_extension; then
949 ac_im_usrlibdir
=$ac_im_libdir; break
952 # Screen out bogus values from the imake configuration. They are
953 # bogus both because they are the default anyway, and because
954 # using them would break gcc on systems where it needs fixed includes.
955 case "$ac_im_incroot" in
957 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
959 case "$ac_im_usrlibdir" in
961 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
968 if test "$ac_x_includes" = NO
; then
969 # Guess where to find include files, by looking for this one X11 .h file.
970 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
972 # First, try using that file with no special directory specified.
973 cat > conftest.
$ac_ext <<EOF
974 #line 975 "configure"
975 #include "confdefs.h"
976 #include <$x_direct_test_include>
978 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
979 { (eval echo configure
:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
980 ac_err
=`grep -v '^ *+' conftest.out`
981 if test -z "$ac_err"; then
983 # We can compile using X headers with no special include directory.
987 echo "configure: failed program was:" >&5
988 cat conftest.
$ac_ext >&5
990 # Look for the header file in a standard set of common directories.
991 # Check X11 before X11Rn because it is often a symlink to the current release.
1000 /usr
/include
/X11R5 \
1001 /usr
/include
/X11R4 \
1003 /usr
/local
/X11
/include \
1004 /usr
/local
/X11R
6/include \
1005 /usr
/local
/X11R
5/include \
1006 /usr
/local
/X11R
4/include \
1008 /usr
/local
/include
/X11 \
1009 /usr
/local
/include
/X11R6 \
1010 /usr
/local
/include
/X11R5 \
1011 /usr
/local
/include
/X11R4 \
1015 /usr
/XFree86
/include
/X11 \
1018 /usr
/local
/include \
1019 /usr
/unsupported
/include \
1020 /usr
/athena
/include \
1021 /usr
/local
/x11r
5/include \
1022 /usr
/lpp
/Xamples
/include \
1024 /usr
/openwin
/include \
1025 /usr
/openwin
/share
/include \
1028 if test -r "$ac_dir/$x_direct_test_include"; then
1029 ac_x_includes
=$ac_dir
1035 fi # $ac_x_includes = NO
1037 if test "$ac_x_libraries" = NO
; then
1038 # Check for the libraries.
1040 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1041 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1043 # See if we find them without any special options.
1044 # Don't add to $LIBS permanently.
1045 ac_save_LIBS
="$LIBS"
1046 LIBS
="-l$x_direct_test_library $LIBS"
1047 cat > conftest.
$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1052 ${x_direct_test_function}()
1055 if { (eval echo configure
:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1057 LIBS
="$ac_save_LIBS"
1058 # We can link X programs with no special library path.
1061 echo "configure: failed program was:" >&5
1062 cat conftest.
$ac_ext >&5
1064 LIBS
="$ac_save_LIBS"
1065 # First see if replacing the include by lib works.
1066 # Check X11 before X11Rn because it is often a symlink to the current release.
1067 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1078 /usr
/local
/X11
/lib \
1079 /usr
/local
/X11R
6/lib \
1080 /usr
/local
/X11R
5/lib \
1081 /usr
/local
/X11R
4/lib \
1083 /usr
/local
/lib
/X11 \
1084 /usr
/local
/lib
/X11R6 \
1085 /usr
/local
/lib
/X11R5 \
1086 /usr
/local
/lib
/X11R4 \
1090 /usr
/XFree86
/lib
/X11 \
1094 /usr
/unsupported
/lib \
1096 /usr
/local
/x11r
5/lib \
1097 /usr
/lpp
/Xamples
/lib \
1101 /usr
/openwin
/share
/lib \
1104 for ac_extension
in a so sl
; do
1105 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1106 ac_x_libraries
=$ac_dir
1113 fi # $ac_x_libraries = NO
1115 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1116 # Didn't find X anywhere. Cache the known absence of X.
1117 ac_cv_have_x
="have_x=no"
1119 # Record where we found X for the cache.
1120 ac_cv_have_x
="have_x=yes \
1121 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1125 eval "$ac_cv_have_x"
1128 if test "$have_x" != yes; then
1129 echo "$ac_t""$have_x" 1>&6
1132 # If each of the values was on the command line, it overrides each guess.
1133 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1134 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1135 # Update the cache value to reflect the command line values.
1136 ac_cv_have_x
="have_x=yes \
1137 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1138 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1141 if test "$no_x" = yes; then
1142 # Not all programs may use this symbol, but it does not hurt to define it.
1143 cat >> confdefs.h
<<\EOF
1144 #define X_DISPLAY_MISSING 1
1147 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1149 if test -n "$x_includes"; then
1150 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1153 # It would also be nice to do this for all -L options, not just this one.
1154 if test -n "$x_libraries"; then
1155 X_LIBS
="$X_LIBS -L$x_libraries"
1156 # For Solaris; some versions of Sun CC require a space after -R and
1157 # others require no space. Words are not sufficient . . . .
1158 case "`(uname -sr) 2>/dev/null`" in
1160 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether -R must be followed by a space" >&5
1162 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1163 cat > conftest.
$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1171 if { (eval echo configure
:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1175 echo "configure: failed program was:" >&5
1176 cat conftest.
$ac_ext >&5
1181 if test $ac_R_nospace = yes; then
1182 echo "$ac_t""no" 1>&6
1183 X_LIBS
="$X_LIBS -R$x_libraries"
1185 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1186 cat > conftest.
$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1194 if { (eval echo configure
:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1198 echo "configure: failed program was:" >&5
1199 cat conftest.
$ac_ext >&5
1204 if test $ac_R_space = yes; then
1205 echo "$ac_t""yes" 1>&6
1206 X_LIBS
="$X_LIBS -R $x_libraries"
1208 echo "$ac_t""neither works" 1>&6
1211 LIBS
="$ac_xsave_LIBS"
1215 # Check for system-dependent libraries X programs must link with.
1216 # Do this before checking for the system-independent R6 libraries
1217 # (-lICE), since we may need -lsocket or whatever for X linking.
1219 if test "$ISC" = yes; then
1220 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1222 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1223 # libraries were built with DECnet support. And karl@cs.umb.edu says
1224 # the Alpha needs dnet_stub (dnet does not exist).
1225 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1226 echo "configure:1227: checking for dnet_ntoa in -ldnet" >&5
1227 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 ac_save_LIBS
="$LIBS"
1233 cat > conftest.
$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 /* Override any gcc2 internal prototype to avoid an error. */
1237 /* We use char because int might match the return type of a gcc2
1238 builtin and then its argument prototype would still apply. */
1245 if { (eval echo configure
:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1247 eval "ac_cv_lib_$ac_lib_var=yes"
1249 echo "configure: failed program was:" >&5
1250 cat conftest.
$ac_ext >&5
1252 eval "ac_cv_lib_$ac_lib_var=no"
1255 LIBS
="$ac_save_LIBS"
1258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1259 echo "$ac_t""yes" 1>&6
1260 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1262 echo "$ac_t""no" 1>&6
1265 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1266 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1267 echo "configure:1268: checking for dnet_ntoa in -ldnet_stub" >&5
1268 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 ac_save_LIBS
="$LIBS"
1273 LIBS
="-ldnet_stub $LIBS"
1274 cat > conftest.
$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 /* Override any gcc2 internal prototype to avoid an error. */
1278 /* We use char because int might match the return type of a gcc2
1279 builtin and then its argument prototype would still apply. */
1286 if { (eval echo configure
:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1288 eval "ac_cv_lib_$ac_lib_var=yes"
1290 echo "configure: failed program was:" >&5
1291 cat conftest.
$ac_ext >&5
1293 eval "ac_cv_lib_$ac_lib_var=no"
1296 LIBS
="$ac_save_LIBS"
1299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1303 echo "$ac_t""no" 1>&6
1308 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1309 # to get the SysV transport functions.
1310 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1312 # The nsl library prevents programs from opening the X display
1313 # on Irix 5.2, according to dickey@clark.net.
1314 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1315 echo "configure:1316: checking for gethostbyname" >&5
1316 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 cat > conftest.
$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* System header to define __stub macros and hopefully few prototypes,
1323 which can conflict with char gethostbyname(); below. */
1325 /* Override any gcc2 internal prototype to avoid an error. */
1326 /* We use char because int might match the return type of a gcc2
1327 builtin and then its argument prototype would still apply. */
1328 char gethostbyname();
1332 /* The GNU C library defines this for functions which it implements
1333 to always fail with ENOSYS. Some functions are actually named
1334 something starting with __ and the normal name is an alias. */
1335 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1343 if { (eval echo configure
:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1345 eval "ac_cv_func_gethostbyname=yes"
1347 echo "configure: failed program was:" >&5
1348 cat conftest.
$ac_ext >&5
1350 eval "ac_cv_func_gethostbyname=no"
1355 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1359 echo "$ac_t""no" 1>&6
1362 if test $ac_cv_func_gethostbyname = no
; then
1363 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1364 echo "configure:1365: checking for gethostbyname in -lnsl" >&5
1365 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 ac_save_LIBS
="$LIBS"
1371 cat > conftest.
$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1377 char gethostbyname();
1383 if { (eval echo configure
:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1385 eval "ac_cv_lib_$ac_lib_var=yes"
1387 echo "configure: failed program was:" >&5
1388 cat conftest.
$ac_ext >&5
1390 eval "ac_cv_lib_$ac_lib_var=no"
1393 LIBS
="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1398 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1400 echo "$ac_t""no" 1>&6
1405 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1406 # socket/setsockopt and other routines are undefined under SCO ODT
1407 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1408 # on later versions), says simon@lia.di.epfl.ch: it contains
1409 # gethostby* variants that don't use the nameserver (or something).
1410 # -lsocket must be given before -lnsl if both are needed.
1411 # We assume that if connect needs -lnsl, so does gethostbyname.
1412 echo $ac_n "checking for connect""... $ac_c" 1>&6
1413 echo "configure:1414: checking for connect" >&5
1414 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 cat > conftest.
$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* System header to define __stub macros and hopefully few prototypes,
1421 which can conflict with char connect(); below. */
1423 /* Override any gcc2 internal prototype to avoid an error. */
1424 /* We use char because int might match the return type of a gcc2
1425 builtin and then its argument prototype would still apply. */
1430 /* The GNU C library defines this for functions which it implements
1431 to always fail with ENOSYS. Some functions are actually named
1432 something starting with __ and the normal name is an alias. */
1433 #if defined (__stub_connect) || defined (__stub___connect)
1441 if { (eval echo configure
:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1443 eval "ac_cv_func_connect=yes"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.
$ac_ext >&5
1448 eval "ac_cv_func_connect=no"
1453 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1457 echo "$ac_t""no" 1>&6
1460 if test $ac_cv_func_connect = no
; then
1461 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1462 echo "configure:1463: checking for connect in -lsocket" >&5
1463 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 ac_save_LIBS
="$LIBS"
1468 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1469 cat > conftest.
$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472 /* Override any gcc2 internal prototype to avoid an error. */
1473 /* We use char because int might match the return type of a gcc2
1474 builtin and then its argument prototype would still apply. */
1481 if { (eval echo configure
:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1483 eval "ac_cv_lib_$ac_lib_var=yes"
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1488 eval "ac_cv_lib_$ac_lib_var=no"
1491 LIBS
="$ac_save_LIBS"
1494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1495 echo "$ac_t""yes" 1>&6
1496 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1498 echo "$ac_t""no" 1>&6
1503 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1504 echo $ac_n "checking for remove""... $ac_c" 1>&6
1505 echo "configure:1506: checking for remove" >&5
1506 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512 /* System header to define __stub macros and hopefully few prototypes,
1513 which can conflict with char remove(); below. */
1515 /* Override any gcc2 internal prototype to avoid an error. */
1516 /* We use char because int might match the return type of a gcc2
1517 builtin and then its argument prototype would still apply. */
1522 /* The GNU C library defines this for functions which it implements
1523 to always fail with ENOSYS. Some functions are actually named
1524 something starting with __ and the normal name is an alias. */
1525 #if defined (__stub_remove) || defined (__stub___remove)
1533 if { (eval echo configure
:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1535 eval "ac_cv_func_remove=yes"
1537 echo "configure: failed program was:" >&5
1538 cat conftest.
$ac_ext >&5
1540 eval "ac_cv_func_remove=no"
1545 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1549 echo "$ac_t""no" 1>&6
1552 if test $ac_cv_func_remove = no
; then
1553 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1554 echo "configure:1555: checking for remove in -lposix" >&5
1555 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 ac_save_LIBS
="$LIBS"
1560 LIBS
="-lposix $LIBS"
1561 cat > conftest.
$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2
1566 builtin and then its argument prototype would still apply. */
1573 if { (eval echo configure
:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1575 eval "ac_cv_lib_$ac_lib_var=yes"
1577 echo "configure: failed program was:" >&5
1578 cat conftest.
$ac_ext >&5
1580 eval "ac_cv_lib_$ac_lib_var=no"
1583 LIBS
="$ac_save_LIBS"
1586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1588 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1590 echo "$ac_t""no" 1>&6
1595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1596 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1597 echo "configure:1598: checking for shmat" >&5
1598 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1601 cat > conftest.
$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1604 /* System header to define __stub macros and hopefully few prototypes,
1605 which can conflict with char shmat(); below. */
1607 /* Override any gcc2 internal prototype to avoid an error. */
1608 /* We use char because int might match the return type of a gcc2
1609 builtin and then its argument prototype would still apply. */
1614 /* The GNU C library defines this for functions which it implements
1615 to always fail with ENOSYS. Some functions are actually named
1616 something starting with __ and the normal name is an alias. */
1617 #if defined (__stub_shmat) || defined (__stub___shmat)
1625 if { (eval echo configure
:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1627 eval "ac_cv_func_shmat=yes"
1629 echo "configure: failed program was:" >&5
1630 cat conftest.
$ac_ext >&5
1632 eval "ac_cv_func_shmat=no"
1637 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1641 echo "$ac_t""no" 1>&6
1644 if test $ac_cv_func_shmat = no
; then
1645 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1646 echo "configure:1647: checking for shmat in -lipc" >&5
1647 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 ac_save_LIBS
="$LIBS"
1653 cat > conftest.
$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 /* Override any gcc2 internal prototype to avoid an error. */
1657 /* We use char because int might match the return type of a gcc2
1658 builtin and then its argument prototype would still apply. */
1665 if { (eval echo configure
:1666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1667 eval "ac_cv_lib_$ac_lib_var=yes"
1669 echo "configure: failed program was:" >&5
1670 cat conftest.
$ac_ext >&5
1672 eval "ac_cv_lib_$ac_lib_var=no"
1675 LIBS
="$ac_save_LIBS"
1678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1680 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1682 echo "$ac_t""no" 1>&6
1688 # Check for libraries that X11R6 Xt/Xaw programs need.
1689 ac_save_LDFLAGS
="$LDFLAGS"
1690 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1691 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1692 # check for ICE first), but we must link in the order -lSM -lICE or
1693 # we get undefined symbols. So assume we have SM if we have ICE.
1694 # These have to be linked with before -lX11, unlike the other
1695 # libraries we check for below, so use a different variable.
1696 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1697 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1698 echo "configure:1699: checking for IceConnectionNumber in -lICE" >&5
1699 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 ac_save_LIBS
="$LIBS"
1705 cat > conftest.
$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 /* Override any gcc2 internal prototype to avoid an error. */
1709 /* We use char because int might match the return type of a gcc2
1710 builtin and then its argument prototype would still apply. */
1711 char IceConnectionNumber();
1714 IceConnectionNumber()
1717 if { (eval echo configure
:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1719 eval "ac_cv_lib_$ac_lib_var=yes"
1721 echo "configure: failed program was:" >&5
1722 cat conftest.
$ac_ext >&5
1724 eval "ac_cv_lib_$ac_lib_var=no"
1727 LIBS
="$ac_save_LIBS"
1730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1731 echo "$ac_t""yes" 1>&6
1732 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1734 echo "$ac_t""no" 1>&6
1737 LDFLAGS
="$ac_save_LDFLAGS"
1741 for ac_prog
in 'bison -y' byacc
1743 # Extract the first word of "$ac_prog", so it can be a program name with args.
1744 set dummy
$ac_prog; ac_word
=$2
1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_word" >&5
1747 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 if test -n "$YACC"; then
1751 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1753 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1754 for ac_dir
in $PATH; do
1755 test -z "$ac_dir" && ac_dir
=.
1756 if test -f $ac_dir/$ac_word; then
1757 ac_cv_prog_YACC
="$ac_prog"
1764 YACC
="$ac_cv_prog_YACC"
1765 if test -n "$YACC"; then
1766 echo "$ac_t""$YACC" 1>&6
1768 echo "$ac_t""no" 1>&6
1771 test -n "$YACC" && break
1773 test -n "$YACC" || YACC
="yacc"
1775 # Extract the first word of "flex", so it can be a program name with args.
1776 set dummy flex
; ac_word
=$2
1777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_word" >&5
1779 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 if test -n "$LEX"; then
1783 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1786 for ac_dir
in $PATH; do
1787 test -z "$ac_dir" && ac_dir
=.
1788 if test -f $ac_dir/$ac_word; then
1789 ac_cv_prog_LEX
="flex"
1794 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1797 LEX
="$ac_cv_prog_LEX"
1798 if test -n "$LEX"; then
1799 echo "$ac_t""$LEX" 1>&6
1801 echo "$ac_t""no" 1>&6
1804 if test -z "$LEXLIB"
1810 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1811 echo "configure:1812: checking for yywrap in -l$ac_lib" >&5
1812 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 ac_save_LIBS
="$LIBS"
1817 LIBS
="-l$ac_lib $LIBS"
1818 cat > conftest.
$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1830 if { (eval echo configure
:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1832 eval "ac_cv_lib_$ac_lib_var=yes"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.
$ac_ext >&5
1837 eval "ac_cv_lib_$ac_lib_var=no"
1840 LIBS
="$ac_save_LIBS"
1843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1847 echo "$ac_t""no" 1>&6
1852 # Extract the first word of "ranlib", so it can be a program name with args.
1853 set dummy ranlib
; ac_word
=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test -n "$RANLIB"; then
1860 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1863 for ac_dir
in $PATH; do
1864 test -z "$ac_dir" && ac_dir
=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_prog_RANLIB
="ranlib"
1871 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1874 RANLIB
="$ac_cv_prog_RANLIB"
1875 if test -n "$RANLIB"; then
1876 echo "$ac_t""$RANLIB" 1>&6
1878 echo "$ac_t""no" 1>&6
1881 # Find a good install program. We prefer a C program (faster),
1882 # so one script is as good as another. But avoid the broken or
1883 # incompatible versions:
1884 # SysV /etc/install, /usr/sbin/install
1885 # SunOS /usr/etc/install
1886 # IRIX /sbin/install
1888 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1889 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1890 # ./install, which can be erroneously created by make from ./install.sh.
1891 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1892 echo "configure:1893: checking for a BSD compatible install" >&5
1893 if test -z "$INSTALL"; then
1894 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1897 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1898 for ac_dir
in $PATH; do
1899 # Account for people who put trailing slashes in PATH elements.
1901 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1903 # OSF1 and SCO ODT 3.0 have their own names for install.
1904 for ac_prog
in ginstall installbsd scoinst
install; do
1905 if test -f $ac_dir/$ac_prog; then
1906 if test $ac_prog = install &&
1907 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1908 # AIX install. It has an incompatible calling convention.
1909 # OSF/1 installbsd also uses dspmsg, but is usable.
1912 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1923 if test "${ac_cv_path_install+set}" = set; then
1924 INSTALL
="$ac_cv_path_install"
1926 # As a last resort, use the slow shell script. We don't cache a
1927 # path for INSTALL within a source directory, because that will
1928 # break other packages using the cache if that directory is
1929 # removed, or if the path is relative.
1930 INSTALL
="$ac_install_sh"
1933 echo "$ac_t""$INSTALL" 1>&6
1935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1936 # It thinks the first close brace ends the variable substitution.
1937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1939 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1941 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether ln -s works" >&5
1943 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1947 if ln -s X conftestdata
2>/dev
/null
1950 ac_cv_prog_LN_S
="ln -s"
1955 LN_S
="$ac_cv_prog_LN_S"
1956 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1957 echo "$ac_t""yes" 1>&6
1959 echo "$ac_t""no" 1>&6
1962 # Extract the first word of "c2man", so it can be a program name with args.
1963 set dummy c2man
; ac_word
=$2
1964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1965 echo "configure:1966: checking for $ac_word" >&5
1966 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 if test -n "$C2MAN"; then
1970 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
1972 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1973 for ac_dir
in $PATH; do
1974 test -z "$ac_dir" && ac_dir
=.
1975 if test -f $ac_dir/$ac_word; then
1976 ac_cv_prog_C2MAN
="c2man"
1981 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
1984 C2MAN
="$ac_cv_prog_C2MAN"
1985 if test -n "$C2MAN"; then
1986 echo "$ac_t""$C2MAN" 1>&6
1988 echo "$ac_t""no" 1>&6
1993 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1994 echo "configure:1995: checking for i386_set_ldt in -li386" >&5
1995 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 ac_save_LIBS
="$LIBS"
2001 cat > conftest.
$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 /* Override any gcc2 internal prototype to avoid an error. */
2005 /* We use char because int might match the return type of a gcc2
2006 builtin and then its argument prototype would still apply. */
2007 char i386_set_ldt();
2013 if { (eval echo configure
:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2015 eval "ac_cv_lib_$ac_lib_var=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.
$ac_ext >&5
2020 eval "ac_cv_lib_$ac_lib_var=no"
2023 LIBS
="$ac_save_LIBS"
2026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2030 cat >> confdefs.h
<<EOF
2031 #define $ac_tr_lib 1
2037 echo "$ac_t""no" 1>&6
2040 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2041 echo "configure:2042: checking for iswalnum in -lw" >&5
2042 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 ac_save_LIBS
="$LIBS"
2048 cat > conftest.
$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2051 /* Override any gcc2 internal prototype to avoid an error. */
2052 /* We use char because int might match the return type of a gcc2
2053 builtin and then its argument prototype would still apply. */
2060 if { (eval echo configure
:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2062 eval "ac_cv_lib_$ac_lib_var=yes"
2064 echo "configure: failed program was:" >&5
2065 cat conftest.
$ac_ext >&5
2067 eval "ac_cv_lib_$ac_lib_var=no"
2070 LIBS
="$ac_save_LIBS"
2073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2077 cat >> confdefs.h
<<EOF
2078 #define $ac_tr_lib 1
2084 echo "$ac_t""no" 1>&6
2087 for ac_func
in gethostbyname
2089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_func" >&5
2091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 /* System header to define __stub macros and hopefully few prototypes,
2098 which can conflict with char $ac_func(); below. */
2100 /* Override any gcc2 internal prototype to avoid an error. */
2101 /* We use char because int might match the return type of a gcc2
2102 builtin and then its argument prototype would still apply. */
2107 /* The GNU C library defines this for functions which it implements
2108 to always fail with ENOSYS. Some functions are actually named
2109 something starting with __ and the normal name is an alias. */
2110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2118 if { (eval echo configure
:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2120 eval "ac_cv_func_$ac_func=yes"
2122 echo "configure: failed program was:" >&5
2123 cat conftest.
$ac_ext >&5
2125 eval "ac_cv_func_$ac_func=no"
2130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2131 echo "$ac_t""yes" 1>&6
2132 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2133 cat >> confdefs.h
<<EOF
2134 #define $ac_tr_func 1
2138 echo "$ac_t""no" 1>&6
2142 if test "$ac_cv_func_gethostbyname" = "no"
2144 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2145 echo "configure:2146: checking for gethostbyname in -lnsl" >&5
2146 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 ac_save_LIBS
="$LIBS"
2152 cat > conftest.
$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2155 /* Override any gcc2 internal prototype to avoid an error. */
2156 /* We use char because int might match the return type of a gcc2
2157 builtin and then its argument prototype would still apply. */
2158 char gethostbyname();
2164 if { (eval echo configure
:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2166 eval "ac_cv_lib_$ac_lib_var=yes"
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2171 eval "ac_cv_lib_$ac_lib_var=no"
2174 LIBS
="$ac_save_LIBS"
2177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2181 cat >> confdefs.h
<<EOF
2182 #define $ac_tr_lib 1
2188 echo "$ac_t""no" 1>&6
2192 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2193 echo "configure:2194: checking for setrunelocale in -lxpg4" >&5
2194 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 ac_save_LIBS
="$LIBS"
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 /* Override any gcc2 internal prototype to avoid an error. */
2204 /* We use char because int might match the return type of a gcc2
2205 builtin and then its argument prototype would still apply. */
2206 char setrunelocale();
2212 if { (eval echo configure
:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2214 eval "ac_cv_lib_$ac_lib_var=yes"
2216 echo "configure: failed program was:" >&5
2217 cat conftest.
$ac_ext >&5
2219 eval "ac_cv_lib_$ac_lib_var=no"
2222 LIBS
="$ac_save_LIBS"
2225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2229 cat >> confdefs.h
<<EOF
2230 #define $ac_tr_lib 1
2236 echo "$ac_t""no" 1>&6
2239 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2240 echo "configure:2241: checking for dlopen in -ldl" >&5
2241 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 ac_save_LIBS
="$LIBS"
2247 cat > conftest.
$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 /* Override any gcc2 internal prototype to avoid an error. */
2251 /* We use char because int might match the return type of a gcc2
2252 builtin and then its argument prototype would still apply. */
2259 if { (eval echo configure
:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2261 eval "ac_cv_lib_$ac_lib_var=yes"
2263 echo "configure: failed program was:" >&5
2264 cat conftest.
$ac_ext >&5
2266 eval "ac_cv_lib_$ac_lib_var=no"
2269 LIBS
="$ac_save_LIBS"
2272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2276 cat >> confdefs.h
<<EOF
2277 #define $ac_tr_lib 1
2283 echo "$ac_t""no" 1>&6
2287 if test "$have_x" = "yes"
2289 XLIB
="-lXpm -lXext -lX11"
2290 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2291 echo "configure:2292: checking for XShmQueryExtension in -lXext" >&5
2292 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 ac_save_LIBS
="$LIBS"
2297 LIBS
="-lXext $X_LIBS -lXext -lX11 $LIBS"
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 /* Override any gcc2 internal prototype to avoid an error. */
2302 /* We use char because int might match the return type of a gcc2
2303 builtin and then its argument prototype would still apply. */
2304 char XShmQueryExtension();
2307 XShmQueryExtension()
2310 if { (eval echo configure
:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2312 eval "ac_cv_lib_$ac_lib_var=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 eval "ac_cv_lib_$ac_lib_var=no"
2320 LIBS
="$ac_save_LIBS"
2323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 cat >> confdefs.h
<<\EOF
2326 #define HAVE_LIBXXSHM 1
2330 echo "$ac_t""no" 1>&6
2333 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2334 echo "configure:2335: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2335 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 ac_save_LIBS
="$LIBS"
2340 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 /* Override any gcc2 internal prototype to avoid an error. */
2345 /* We use char because int might match the return type of a gcc2
2346 builtin and then its argument prototype would still apply. */
2347 char XF86DGAQueryExtension();
2350 XF86DGAQueryExtension()
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2355 eval "ac_cv_lib_$ac_lib_var=yes"
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 eval "ac_cv_lib_$ac_lib_var=no"
2363 LIBS
="$ac_save_LIBS"
2366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 cat >> confdefs.h
<<\EOF
2369 #define HAVE_LIBXXF86DGA 1
2371 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
2373 echo "$ac_t""no" 1>&6
2376 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2377 echo "configure:2378: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2378 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 ac_save_LIBS
="$LIBS"
2383 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 /* Override any gcc2 internal prototype to avoid an error. */
2388 /* We use char because int might match the return type of a gcc2
2389 builtin and then its argument prototype would still apply. */
2390 char XF86VidModeQueryExtension();
2393 XF86VidModeQueryExtension()
2396 if { (eval echo configure
:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2398 eval "ac_cv_lib_$ac_lib_var=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 eval "ac_cv_lib_$ac_lib_var=no"
2406 LIBS
="$ac_save_LIBS"
2409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 cat >> confdefs.h
<<\EOF
2412 #define HAVE_LIBXXF86VM 1
2414 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
2416 echo "$ac_t""no" 1>&6
2425 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h
2427 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2429 echo "configure:2430: checking for $ac_hdr" >&5
2430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.
$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2439 { (eval echo configure
:2440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2440 ac_err
=`grep -v '^ *+' conftest.out`
2441 if test -z "$ac_err"; then
2443 eval "ac_cv_header_$ac_safe=yes"
2446 echo "configure: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2449 eval "ac_cv_header_$ac_safe=no"
2453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2456 cat >> confdefs.h
<<EOF
2457 #define $ac_tr_hdr 1
2461 echo "$ac_t""no" 1>&6
2466 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
2467 echo "configure:2468: checking "for Open Sound System
"" >&5
2468 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.
$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2475 #ifdef HAVE_SYS_SOUNDCARD_H
2476 #include <sys/soundcard.h>
2478 #ifdef HAVE_MACHINE_SOUNDCARD_H
2479 #include <machine/soundcard.h>
2485 /* check for one of the Open Sound System specific SNDCTL_ defines */
2486 #if !defined(SNDCTL_DSP_STEREO)
2487 #error No open sound system
2492 if { (eval echo configure
:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 ac_cv_c_opensoundsystem
="yes"
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2499 ac_cv_c_opensoundsystem
="no"
2504 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2506 if test "$ac_cv_c_opensoundsystem" = "yes"
2508 cat >> confdefs.h
<<\EOF
2515 echo $ac_n "checking "for union semun
"""... $ac_c" 1>&6
2516 echo "configure:2517: checking "for union semun
"" >&5
2517 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 cat > conftest.
$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 #include <sys/types.h>
2524 #include <sys/sem.h>
2529 if { (eval echo configure
:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2531 ac_cv_c_union_semun
="yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.
$ac_ext >&5
2536 ac_cv_c_union_semun
="no"
2541 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2542 if test "$ac_cv_c_union_semun" = "yes"
2544 cat >> confdefs.h
<<\EOF
2545 #define HAVE_UNION_SEMUN 1
2550 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
2553 if test "x${GCC}" = "xyes"
2555 CFLAGS
="$CFLAGS -Wall"
2556 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
2557 echo "configure:2558: checking "for gcc strength-reduce bug
"" >&5
2558 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2561 if test "$cross_compiling" = yes; then
2562 ac_cv_c_gcc_strength_bug
="yes"
2564 cat > conftest.
$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2569 static int Array[3];
2572 for(i=0; i<B; i++) Array[i] = i - 3;
2573 exit( Array[1] != -2 );
2576 if { (eval echo configure
:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2578 ac_cv_c_gcc_strength_bug
="no"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2583 ac_cv_c_gcc_strength_bug
="yes"
2590 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2591 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2593 CFLAGS
="$CFLAGS -fno-strength-reduce"
2598 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
2599 echo "configure:2600: checking "whether external symbols need an underscore prefix
"" >&5
2600 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2604 LIBS
="conftest_asm.s $LIBS"
2605 cat > conftest_asm.s
<<EOF
2610 cat > conftest.
$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2615 if (ac_test) return 1
2618 if { (eval echo configure
:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2620 ac_cv_c_extern_prefix
="yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.
$ac_ext >&5
2625 ac_cv_c_extern_prefix
="no"
2631 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2632 if test "$ac_cv_c_extern_prefix" = "yes"
2634 cat >> confdefs.h
<<\EOF
2635 #define NEED_UNDERSCORE_PREFIX 1
2641 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
2642 echo "configure:2643: checking "whether assembler accepts .string
"" >&5
2643 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2647 LIBS
="conftest_asm.s $LIBS"
2648 cat > conftest_asm.s
<<EOF
2651 cat > conftest.
$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2659 if { (eval echo configure
:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2661 ac_cv_c_asm_string
="yes"
2663 echo "configure: failed program was:" >&5
2664 cat conftest.
$ac_ext >&5
2666 ac_cv_c_asm_string
="no"
2672 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2673 if test "$ac_cv_c_asm_string" = "yes"
2675 cat >> confdefs.h
<<\EOF
2676 #define HAVE_ASM_STRING 1
2683 if test "$LIB_TARGET" = "libwine.so.1.0"
2685 echo $ac_n "checking "whether we can build a dll
"""... $ac_c" 1>&6
2686 echo "configure:2687: checking "whether we can build a dll
"" >&5
2687 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 saved_cflags
=$CFLAGS
2691 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2700 if { (eval echo configure
:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2704 echo "configure: failed program was:" >&5
2705 cat conftest.
$ac_ext >&5
2710 CFLAGS
=$saved_cflags
2714 echo "$ac_t""$ac_cv_c_dll" 1>&6
2715 if test "$ac_cv_c_dll" = "yes"
2719 LIB_TARGET
="libwine.a"
2725 echo $ac_n "checking "for reentrant libc
"""... $ac_c" 1>&6
2726 echo "configure:2727: checking "for reentrant libc
"" >&5
2727 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test "$cross_compiling" = yes; then
2731 wine_cv_libc_reentrant
=yes
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2738 int *__errno_location(){return &myerrno;}
2739 main(){connect(0,buf,255); exit(!myerrno);}
2741 if { (eval echo configure
:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2743 wine_cv_libc_reentrant
=yes
2745 echo "configure: failed program was:" >&5
2746 cat conftest.
$ac_ext >&5
2748 wine_cv_libc_reentrant
=no
2755 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
2756 if test "$wine_cv_libc_reentrant" = "no"
2758 cat >> confdefs.h
<<\EOF
2759 #define NO_REENTRANT_LIBC 1
2765 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
2766 echo "configure:2767: checking "for reentrant X libraries
"" >&5
2767 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 if test "x$with_reentrant_x" = "xno"
2772 wine_cv_x_reentrant
=no
2775 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
2776 if test -r $dir/libX11.so
; then
2777 libX11_check
="-D $dir/libX11.so"
2780 if test -r $dir/libX11.a
; then
2781 libX11_check
="$dir/libX11.a"
2785 if test "$libX11_check" != "none"; then
2786 if nm
$libX11_check |
grep __errno_location
>/dev
/null
2>&1
2788 wine_cv_x_reentrant
=yes
2790 wine_cv_x_reentrant
=no
2793 wine_cv_x_reentrant
=unknown
2798 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2799 if test "$wine_cv_x_reentrant" = "no"
2801 cat >> confdefs.h
<<\EOF
2802 #define NO_REENTRANT_X11 1
2808 for ac_func
in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm
usleep wait4 waitpid vfscanf
2810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2811 echo "configure:2812: checking for $ac_func" >&5
2812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 cat > conftest.
$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2818 /* System header to define __stub macros and hopefully few prototypes,
2819 which can conflict with char $ac_func(); below. */
2821 /* Override any gcc2 internal prototype to avoid an error. */
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2828 /* The GNU C library defines this for functions which it implements
2829 to always fail with ENOSYS. Some functions are actually named
2830 something starting with __ and the normal name is an alias. */
2831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2839 if { (eval echo configure
:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2841 eval "ac_cv_func_$ac_func=yes"
2843 echo "configure: failed program was:" >&5
2844 cat conftest.
$ac_ext >&5
2846 eval "ac_cv_func_$ac_func=no"
2851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2854 cat >> confdefs.h
<<EOF
2855 #define $ac_tr_func 1
2859 echo "$ac_t""no" 1>&6
2863 for ac_hdr
in wctype.h sys
/syscall.h syscall.h sys
/param.h sys
/vfs.h sys
/mount.h sys
/statfs.h float.h linux
/cdrom.h linux
/ucdrom.h sys
/cdio.h sys
/filio.h sys
/modem.h
strings.h sys
/strtio.h dlfcn.h unistd.h sys
/sockio.h net
/if.h netinet
/in.h linux
/ipx.h
2865 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_hdr" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.
$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2877 { (eval echo configure
:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2878 ac_err
=`grep -v '^ *+' conftest.out`
2879 if test -z "$ac_err"; then
2881 eval "ac_cv_header_$ac_safe=yes"
2884 echo "configure: failed program was:" >&5
2885 cat conftest.
$ac_ext >&5
2887 eval "ac_cv_header_$ac_safe=no"
2891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2894 cat >> confdefs.h
<<EOF
2895 #define $ac_tr_hdr 1
2899 echo "$ac_t""no" 1>&6
2903 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2904 echo "configure:2905: checking whether stat file-mode macros are broken" >&5
2905 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <sys/types.h>
2912 #include <sys/stat.h>
2914 #if defined(S_ISBLK) && defined(S_IFDIR)
2915 # if S_ISBLK (S_IFDIR)
2920 #if defined(S_ISBLK) && defined(S_IFCHR)
2921 # if S_ISBLK (S_IFCHR)
2926 #if defined(S_ISLNK) && defined(S_IFREG)
2927 # if S_ISLNK (S_IFREG)
2932 #if defined(S_ISSOCK) && defined(S_IFREG)
2933 # if S_ISSOCK (S_IFREG)
2939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2940 egrep "You lose" >/dev
/null
2>&1; then
2942 ac_cv_header_stat_broken
=yes
2945 ac_cv_header_stat_broken
=no
2951 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2952 if test $ac_cv_header_stat_broken = yes; then
2953 cat >> confdefs.h
<<\EOF
2954 #define STAT_MACROS_BROKEN 1
2959 echo $ac_n "checking for working const""... $ac_c" 1>&6
2960 echo "configure:2961: checking for working const" >&5
2961 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 cat > conftest.
$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2970 /* Ultrix mips cc rejects this. */
2971 typedef int charset[2]; const charset x;
2972 /* SunOS 4.1.1 cc rejects this. */
2973 char const *const *ccp;
2975 /* NEC SVR4.0.2 mips cc rejects this. */
2976 struct point {int x, y;};
2977 static struct point const zero = {0,0};
2978 /* AIX XL C 1.02.0.0 rejects this.
2979 It does not let you subtract one const X* pointer from another in an arm
2980 of an if-expression whose if-part is not a constant expression */
2981 const char *g = "string";
2982 ccp = &g + (g ? g-g : 0);
2983 /* HPUX 7.0 cc rejects these. */
2986 ccp = (char const *const *) p;
2987 { /* SCO 3.2v4 cc rejects this. */
2989 char const *s = 0 ? (char *) 0 : (char const *) 0;
2993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2995 const int *foo = &x[0];
2998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2999 typedef const int *iptr;
3003 { /* AIX XL C 1.02.0.0 rejects this saying
3004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3005 struct s { int j; const int *ap[3]; };
3006 struct s *b; b->j = 5;
3008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3014 if { (eval echo configure
:3015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018 echo "configure: failed program was:" >&5
3019 cat conftest.
$ac_ext >&5
3026 echo "$ac_t""$ac_cv_c_const" 1>&6
3027 if test $ac_cv_c_const = no
; then
3028 cat >> confdefs.h
<<\EOF
3034 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3035 echo "configure:3036: checking for ANSI C header files" >&5
3036 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 cat > conftest.
$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3048 { (eval echo configure
:3049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3049 ac_err
=`grep -v '^ *+' conftest.out`
3050 if test -z "$ac_err"; then
3052 ac_cv_header_stdc
=yes
3055 echo "configure: failed program was:" >&5
3056 cat conftest.
$ac_ext >&5
3058 ac_cv_header_stdc
=no
3062 if test $ac_cv_header_stdc = yes; then
3063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3064 cat > conftest.
$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3070 egrep "memchr" >/dev
/null
2>&1; then
3074 ac_cv_header_stdc
=no
3080 if test $ac_cv_header_stdc = yes; then
3081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3082 cat > conftest.
$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 egrep "free" >/dev
/null
2>&1; then
3092 ac_cv_header_stdc
=no
3098 if test $ac_cv_header_stdc = yes; then
3099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3100 if test "$cross_compiling" = yes; then
3103 cat > conftest.
$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3107 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3108 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3110 int main () { int i; for (i = 0; i < 256; i++)
3111 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3115 if { (eval echo configure
:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3119 echo "configure: failed program was:" >&5
3120 cat conftest.
$ac_ext >&5
3122 ac_cv_header_stdc
=no
3130 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3131 if test $ac_cv_header_stdc = yes; then
3132 cat >> confdefs.h
<<\EOF
3133 #define STDC_HEADERS 1
3138 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3139 echo "configure:3140: checking for size_t" >&5
3140 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 cat > conftest.
$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 #include <sys/types.h>
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3155 ac_cv_type_size_t
=yes
3158 ac_cv_type_size_t
=no
3163 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3164 if test $ac_cv_type_size_t = no
; then
3165 cat >> confdefs.h
<<\EOF
3166 #define size_t unsigned
3171 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3172 echo "configure:3173: checking size of long long" >&5
3173 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 if test "$cross_compiling" = yes; then
3177 ac_cv_sizeof_long_long
=0
3179 cat > conftest.
$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3185 FILE *f=fopen("conftestval", "w");
3187 fprintf(f, "%d\n", sizeof(long long));
3191 if { (eval echo configure
:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3193 ac_cv_sizeof_long_long
=`cat conftestval`
3195 echo "configure: failed program was:" >&5
3196 cat conftest.
$ac_ext >&5
3198 ac_cv_sizeof_long_long
=0
3204 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3205 cat >> confdefs.h
<<EOF
3206 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3212 if test $ac_cv_func_sendmsg = no
; then
3213 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
3214 echo "configure:3215: checking for sendmsg in -lsocket" >&5
3215 ac_lib_var
=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
3216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 ac_save_LIBS
="$LIBS"
3220 LIBS
="-lsocket $LIBS"
3221 cat > conftest.
$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3233 if { (eval echo configure
:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3235 eval "ac_cv_lib_$ac_lib_var=yes"
3237 echo "configure: failed program was:" >&5
3238 cat conftest.
$ac_ext >&5
3240 eval "ac_cv_lib_$ac_lib_var=no"
3243 LIBS
="$ac_save_LIBS"
3246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3250 cat >> confdefs.h
<<EOF
3251 #define $ac_tr_lib 1
3254 LIBS
="-lsocket $LIBS"
3257 echo "$ac_t""no" 1>&6
3263 if test "$ac_cv_header_sys_vfs_h" = "yes"
3265 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
3266 echo "configure:3267: checking "whether sys
/vfs.h defines statfs
"" >&5
3267 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 cat > conftest.
$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3274 #include <sys/types.h>
3275 #ifdef HAVE_SYS_PARAM_H
3276 # include <sys/param.h>
3278 #include <sys/vfs.h>
3284 memset(&stfs,0,sizeof(stfs));
3288 if { (eval echo configure
:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 wine_cv_sys_vfs_has_statfs
=yes
3292 echo "configure: failed program was:" >&5
3293 cat conftest.
$ac_ext >&5
3295 wine_cv_sys_vfs_has_statfs
=no
3302 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
3303 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
3305 cat >> confdefs.h
<<\EOF
3306 #define STATFS_DEFINED_BY_SYS_VFS 1
3312 if test "$ac_cv_header_sys_statfs_h" = "yes"
3314 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
3315 echo "configure:3316: checking "whether sys
/statfs.h defines statfs
"" >&5
3316 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3323 #include <sys/types.h>
3324 #ifdef HAVE_SYS_PARAM_H
3325 # include <sys/param.h>
3327 #include <sys/statfs.h>
3335 if { (eval echo configure
:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337 wine_cv_sys_statfs_has_statfs
=yes
3339 echo "configure: failed program was:" >&5
3340 cat conftest.
$ac_ext >&5
3342 wine_cv_sys_statfs_has_statfs
=no
3349 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
3350 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
3352 cat >> confdefs.h
<<\EOF
3353 #define STATFS_DEFINED_BY_SYS_STATFS 1
3359 if test "$ac_cv_header_sys_mount_h" = "yes"
3361 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
3362 echo "configure:3363: checking "whether sys
/mount.h defines statfs
"" >&5
3363 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.
$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3370 #include <sys/types.h>
3371 #ifdef HAVE_SYS_PARAM_H
3372 # include <sys/param.h>
3374 #include <sys/mount.h>
3382 if { (eval echo configure
:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384 wine_cv_sys_mount_has_statfs
=yes
3386 echo "configure: failed program was:" >&5
3387 cat conftest.
$ac_ext >&5
3389 wine_cv_sys_mount_has_statfs
=no
3396 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
3397 if test "$wine_cv_sys_mount_has_statfs" = "yes"
3399 cat >> confdefs.h
<<\EOF
3400 #define STATFS_DEFINED_BY_SYS_MOUNT 1
3407 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
3408 echo "configure:3409: checking "for statfs.f_bfree
"" >&5
3409 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 if test "x$statfs_bfree" = "xno"
3414 wine_cv_statfs_bfree
=no
3416 cat > conftest.
$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3420 #include <sys/types.h>
3421 #ifdef HAVE_SYS_PARAM_H
3422 # include <sys/param.h>
3424 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3425 # include <sys/mount.h>
3427 # ifdef STATFS_DEFINED_BY_SYS_VFS
3428 # include <sys/vfs.h>
3430 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3431 # include <sys/statfs.h>
3444 if { (eval echo configure
:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446 wine_cv_statfs_bfree
=yes
3448 echo "configure: failed program was:" >&5
3449 cat conftest.
$ac_ext >&5
3451 wine_cv_statfs_bfree
=no
3458 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
3459 if test "$wine_cv_statfs_bfree" = "yes"
3461 cat >> confdefs.h
<<\EOF
3462 #define STATFS_HAS_BFREE 1
3467 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
3468 echo "configure:3469: checking "for statfs.f_bavail
"" >&5
3469 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 if test "x$statfs_bavail" = "xno"
3474 wine_cv_statfs_bavail
=no
3476 cat > conftest.
$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3480 #include <sys/types.h>
3481 #ifdef HAVE_SYS_PARAM_H
3482 # include <sys/param.h>
3484 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3485 # include <sys/mount.h>
3487 # ifdef STATFS_DEFINED_BY_SYS_VFS
3488 # include <sys/vfs.h>
3490 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3491 # include <sys/statfs.h>
3504 if { (eval echo configure
:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 wine_cv_statfs_bavail
=yes
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3511 wine_cv_statfs_bavail
=no
3518 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
3519 if test "$wine_cv_statfs_bavail" = "yes"
3521 cat >> confdefs.h
<<\EOF
3522 #define STATFS_HAS_BAVAIL 1
3528 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
3529 echo "configure:3530: checking "for working sigaltstack
"" >&5
3530 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 if test "$cross_compiling" = yes; then
3534 ac_cv_c_working_sigaltstack
="no"
3537 cat > conftest.
$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3542 #include <time.h> /* <sys/time.h> ? bad magic without end */
3543 #include <sys/types.h>
3544 #include <sys/signal.h>
3545 #ifdef HAVE_SYS_PARAM_H
3546 # include <sys/param.h>
3548 #ifdef HAVE_SYSCALL_H
3549 # include <syscall.h>
3551 # ifdef HAVE_SYS_SYSCALL_H
3552 # include <sys/syscall.h>
3556 unsigned char *xaltstack;
3559 main(int argc,char **argv) {
3560 struct sigaltstack ss;
3562 xaltstack = malloc(16384);
3563 ss.ss_sp = xaltstack;
3566 if (sigaltstack(&ss, NULL) < 0) {
3567 /* this catches the glibc case */
3568 perror("sigaltstack");
3569 return (1); /* aka exit(1) aka fail */
3571 /* assume it works. */
3576 if { (eval echo configure
:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3578 ac_cv_c_working_sigaltstack
="yes"
3580 echo "configure: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3583 ac_cv_c_working_sigaltstack
="no"
3590 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
3592 if test "$ac_cv_c_working_sigaltstack" = "yes"
3594 cat >> confdefs.h
<<\EOF
3595 #define HAVE_WORKING_SIGALTSTACK 1
3602 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
3603 echo "configure:3604: checking "for msg_accrights
in struct msghdr
"" >&5
3604 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 cat > conftest.
$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 #include <sys/types.h>
3611 #include <sys/socket.h>
3613 struct msghdr hdr; hdr.msg_accrights=0
3616 if { (eval echo configure
:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3618 ac_cv_c_msg_accrights
="yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.
$ac_ext >&5
3623 ac_cv_c_msg_accrights
="no"
3628 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
3629 if test "$ac_cv_c_msg_accrights" = "yes"
3631 cat >> confdefs.h
<<\EOF
3632 #define HAVE_MSGHDR_ACCRIGHTS 1
3638 MAKE_RULES
=Make.rules
3642 cat > confcache
<<\EOF
3643 # This file is a shell script that caches the results of configure
3644 # tests run on this system so they can be shared between configure
3645 # scripts and configure runs. It is not useful on other systems.
3646 # If it contains results you don't want to keep, you may remove or edit it.
3648 # By default, configure uses ./config.cache as the cache file,
3649 # creating it if it does not exist already. You can give configure
3650 # the --cache-file=FILE option to use a different cache file; that is
3651 # what configure does when it calls configure scripts in
3652 # subdirectories, so they share the cache.
3653 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3654 # config.status only pays attention to the cache file if you give it the
3655 # --recheck option to rerun configure.
3658 # The following way of writing the cache mishandles newlines in values,
3659 # but we know of no workaround that is simple, portable, and efficient.
3660 # So, don't put newlines in cache variables' values.
3661 # Ultrix sh set writes to stderr and can't be redirected directly,
3662 # and sets the high bit in the cache file unless we assign to the vars.
3664 case `(ac_space=' '; set) 2>&1` in
3666 # `set' does not quote correctly, so add quotes (double-quote substitution
3667 # turns \\\\ into \\, and sed turns \\ into \).
3669 -e "s/'/'\\\\''/g" \
3670 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3673 # `set' quotes correctly as required by POSIX, so do not add quotes.
3674 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3677 if cmp -s $cache_file confcache
; then
3680 if test -w $cache_file; then
3681 echo "updating cache $cache_file"
3682 cat confcache
> $cache_file
3684 echo "not updating unwritable cache $cache_file"
3689 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3691 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3692 # Let make expand exec_prefix.
3693 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3695 # Any assignment to VPATH causes Sun make to only execute
3696 # the first set of double-colon rules, so remove it if not needed.
3697 # If there is a colon in the path, we need to keep it.
3698 if test "x$srcdir" = x.
; then
3699 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3702 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3704 DEFS
=-DHAVE_CONFIG_H
3706 # Without the "./", some shells look in PATH for config.status.
3707 : ${CONFIG_STATUS=./config.status}
3709 echo creating
$CONFIG_STATUS
3710 rm -f $CONFIG_STATUS
3711 cat > $CONFIG_STATUS <<EOF
3713 # Generated automatically by configure.
3714 # Run this file to recreate the current configuration.
3715 # This directory was configured as follows,
3716 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3718 # $0 $ac_configure_args
3720 # Compiler output produced by configure, useful for debugging
3721 # configure, is in ./config.log if it exists.
3723 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3726 case "\$ac_option" in
3727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3728 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3729 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3730 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3731 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3733 -help | --help | --hel | --he | --h)
3734 echo "\$ac_cs_usage"; exit 0 ;;
3735 *) echo "\$ac_cs_usage"; exit 1 ;;
3739 ac_given_srcdir=$srcdir
3740 ac_given_INSTALL="$INSTALL"
3742 trap 'rm -fr `echo "
3749 dlls/comctl32/Makefile
3750 dlls/imagehlp/Makefile
3752 dlls/msacm32/Makefile
3755 dlls/rasapi32/Makefile
3756 dlls/shell32/Makefile
3757 dlls/winaspi/Makefile
3758 dlls/wnaspi32/Makefile
3759 documentation/Makefile
3762 graphics/metafiledrv/Makefile
3763 graphics/psdrv/Makefile
3764 graphics/win16drv/Makefile
3765 graphics/x11drv/Makefile
3781 programs/clock/Makefile
3782 programs/control/Makefile
3783 programs/notepad/Makefile
3784 programs/progman/Makefile
3785 programs/regtest/Makefile
3786 programs/view/Makefile
3787 programs/winhelp/Makefile
3788 programs/winver/Makefile
3799 windows/ttydrv/Makefile
3800 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3802 cat >> $CONFIG_STATUS <<EOF
3804 # Protect against being on the right side of a sed subst in config.status.
3805 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3806 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3809 s%@CFLAGS@%$CFLAGS%g
3810 s%@CPPFLAGS@%$CPPFLAGS%g
3811 s%@CXXFLAGS@%$CXXFLAGS%g
3813 s%@LDFLAGS@%$LDFLAGS%g
3815 s%@exec_prefix@%$exec_prefix%g
3816 s%@prefix@%$prefix%g
3817 s%@program_transform_name@%$program_transform_name%g
3818 s%@bindir@%$bindir%g
3819 s%@sbindir@%$sbindir%g
3820 s%@libexecdir@%$libexecdir%g
3821 s%@datadir@%$datadir%g
3822 s%@sysconfdir@%$sysconfdir%g
3823 s%@sharedstatedir@%$sharedstatedir%g
3824 s%@localstatedir@%$localstatedir%g
3825 s%@libdir@%$libdir%g
3826 s%@includedir@%$includedir%g
3827 s%@oldincludedir@%$oldincludedir%g
3828 s%@infodir@%$infodir%g
3829 s%@mandir@%$mandir%g
3830 s%@PROGEXT@%$PROGEXT%g
3831 s%@MAIN_TARGET@%$MAIN_TARGET%g
3832 s%@LIB_TARGET@%$LIB_TARGET%g
3833 s%@ALT_LINK@%$ALT_LINK%g
3834 s%@OPTIONS@%$OPTIONS%g
3835 s%@SET_MAKE@%$SET_MAKE%g
3838 s%@X_CFLAGS@%$X_CFLAGS%g
3839 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3840 s%@X_LIBS@%$X_LIBS%g
3841 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3844 s%@LEXLIB@%$LEXLIB%g
3845 s%@RANLIB@%$RANLIB%g
3846 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3847 s%@INSTALL_DATA@%$INSTALL_DATA%g
3851 s%@DLLFLAGS@%$DLLFLAGS%g
3852 /@MAKE_RULES@/r $MAKE_RULES
3858 cat >> $CONFIG_STATUS <<\EOF
3860 # Split the substitutions into bite-sized pieces for seds with
3861 # small command number limits, like on Digital OSF/1 and HP-UX.
3862 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3863 ac_file
=1 # Number of current file.
3864 ac_beg
=1 # First line for current file.
3865 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3868 while $ac_more_lines; do
3869 if test $ac_beg -gt 1; then
3870 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3872 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3874 if test ! -s conftest.s
$ac_file; then
3876 rm -f conftest.s
$ac_file
3878 if test -z "$ac_sed_cmds"; then
3879 ac_sed_cmds
="sed -f conftest.s$ac_file"
3881 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3883 ac_file
=`expr $ac_file + 1`
3885 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3888 if test -z "$ac_sed_cmds"; then
3893 cat >> $CONFIG_STATUS <<EOF
3895 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
3901 dlls/comctl32/Makefile
3902 dlls/imagehlp/Makefile
3904 dlls/msacm32/Makefile
3907 dlls/rasapi32/Makefile
3908 dlls/shell32/Makefile
3909 dlls/winaspi/Makefile
3910 dlls/wnaspi32/Makefile
3911 documentation/Makefile
3914 graphics/metafiledrv/Makefile
3915 graphics/psdrv/Makefile
3916 graphics/win16drv/Makefile
3917 graphics/x11drv/Makefile
3933 programs/clock/Makefile
3934 programs/control/Makefile
3935 programs/notepad/Makefile
3936 programs/progman/Makefile
3937 programs/regtest/Makefile
3938 programs/view/Makefile
3939 programs/winhelp/Makefile
3940 programs/winver/Makefile
3951 windows/ttydrv/Makefile
3952 windows/x11drv/Makefile "}
3954 cat >> $CONFIG_STATUS <<\EOF
3955 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3958 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3959 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3960 *) ac_file_in
="${ac_file}.in" ;;
3963 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3965 # Remove last slash and all that follows it. Not all systems have dirname.
3966 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3967 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3968 # The file is in a subdirectory.
3969 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3970 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3971 # A "../" for each directory in $ac_dir_suffix.
3972 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3974 ac_dir_suffix
= ac_dots
=
3977 case "$ac_given_srcdir" in
3979 if test -z "$ac_dots"; then top_srcdir
=.
3980 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3981 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3983 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3984 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3987 case "$ac_given_INSTALL" in
3988 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3989 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3992 echo creating
"$ac_file"
3994 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3996 *Makefile
*) ac_comsub
="1i\\
3997 # $configure_input" ;;
4001 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4003 s%@configure_input@%$configure_input%g
4004 s%@srcdir@%$srcdir%g
4005 s%@top_srcdir@%$top_srcdir%g
4006 s%@INSTALL@%$INSTALL%g
4007 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4014 # ac_d sets the value in "#define NAME VALUE" lines.
4015 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4016 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4019 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4020 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4021 ac_uB
='\([ ]\)%\1#\2define\3'
4024 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4025 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4026 ac_eB
='$%\1#\2define\3'
4030 if test "${CONFIG_HEADERS+set}" != set; then
4032 cat >> $CONFIG_STATUS <<EOF
4033 CONFIG_HEADERS="include/config.h"
4035 cat >> $CONFIG_STATUS <<\EOF
4037 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4040 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4041 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4042 *) ac_file_in
="${ac_file}.in" ;;
4045 echo creating
$ac_file
4047 rm -f conftest.frag conftest.
in conftest.out
4048 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4049 cat $ac_file_inputs > conftest.
in
4053 # Transform confdefs.h into a sed script conftest.vals that substitutes
4054 # the proper values into config.h.in to produce config.h. And first:
4055 # Protect against being on the right side of a sed subst in config.status.
4056 # Protect against being in an unquoted here document in config.status.
4058 cat > conftest.hdr
<<\EOF
4061 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4065 sed -n -f conftest.hdr confdefs.h > conftest.vals
4068 # This sed command replaces #undef with comments. This is necessary, for
4069 # example, in the case of _POSIX_SOURCE, which is predefined and required
4070 # on some systems where configure will not decide to define it.
4071 cat >> conftest.vals <<\EOF
4072 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4075 # Break up conftest.vals because some shells have a limit on
4076 # the size of here documents, and old seds have small limits too.
4081 ac_lines=`grep -c . conftest.vals
`
4082 # grep -c gives empty output for an empty file on some AIX systems.
4083 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4084 # Write a limited-size here document to conftest.frag.
4085 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4086 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4088 sed -f conftest.frag conftest.in > conftest.out
4090 mv conftest.out conftest.in
4092 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4094 mv conftest.tail conftest.vals
4098 cat >> $CONFIG_STATUS <<\EOF
4099 rm -f conftest.frag conftest.h
4100 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4101 cat conftest.in >> conftest.h
4103 if cmp -s $ac_file conftest.h 2>/dev/null; then
4104 echo "$ac_file is unchanged"
4107 # Remove last slash and all that follows it. Not all systems have dirname.
4108 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4109 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4110 # The file is in a subdirectory.
4111 test ! -d "$ac_dir" && mkdir "$ac_dir"
4114 mv conftest.h $ac_file
4119 cat >> $CONFIG_STATUS <<EOF
4122 cat >> $CONFIG_STATUS <<\EOF
4126 chmod +x $CONFIG_STATUS
4127 rm -fr confdefs* $ac_clean_files
4128 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4131 if test "$wine_cv_libc_reentrant" = "no"
4134 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
4135 echo "*** thread support. Consider upgrading libc to a more recent"
4136 echo "*** reentrant version of libc."
4141 echo "Configure finished. Do 'make depend; make' to compile Wine."