Link only a single .rc file with application.
[wine/multimedia.git] / configure
blobf06c2f203473b8013906508022070bc4c2c0eae0
1 #! /bin/sh
3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --disable-dll build static libraries instead of DLLs"
19 ac_help="$ac_help
20 --disable-lib build the Wine without building libwine.a"
21 ac_help="$ac_help
22 --disable-debug compile out all debugging messages"
23 ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25 ac_help="$ac_help
26 --without-reentrant-x compile for use with non-reentrant X libraries"
27 ac_help="$ac_help
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
71 ac_prev=
72 for ac_option
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
87 # Accept the important Cygnus configure options, so we can diagnose typos.
89 case "$ac_option" in
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
97 ac_prev=build ;;
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 build="$ac_optarg" ;;
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
152 cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 [same as prefix]
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
186 cat << EOF
187 Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
202 exit 0 ;;
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
352 exit 0 ;;
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 nonopt="$ac_option"
407 esac
408 done
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425 exec 6>/dev/null
426 else
427 exec 6>&1
429 exec 5>./config.log
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450 done
452 # NLS nuisances.
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=controls/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
482 else
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 else
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
507 done
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512 else
513 echo "creating cache $cache_file"
514 > $cache_file
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
524 ac_exeext=
525 ac_objext=o
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530 ' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
534 else
535 ac_n= ac_c='\c' ac_t=
540 ac_aux_dir=
541 for ac_dir in tools $srcdir/tools; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
551 done
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560 # We want these before the checks, so the checks can modify their values.
562 test -z "$PROGEXT" && PROGEXT=""
565 MAIN_TARGET=emu
566 LIB_TYPE=dll # one of static, dll, nolib
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 LIB_TYPE="static"; 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 LIB_TYPE="nolib"; fi
591 # Check whether --enable-debug or --disable-debug was given.
592 if test "${enable_debug+set}" = set; then
593 enableval="$enable_debug"
594 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
598 # Check whether --enable-trace or --disable-trace was given.
599 if test "${enable_trace+set}" = set; then
600 enableval="$enable_trace"
601 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
605 # Check whether --with-reentrant-x or --without-reentrant-x was given.
606 if test "${with_reentrant_x+set}" = set; then
607 withval="$with_reentrant_x"
615 if test "$DEBUG_MSGS" = "no"
616 then
617 cat >> confdefs.h <<\EOF
618 #define NO_DEBUG_MSGS 1
621 cat >> confdefs.h <<\EOF
622 #define NO_TRACE_MSGS 1
625 else
626 if test "$TRACE_MSGS" = "no"
627 then
628 cat >> confdefs.h <<\EOF
629 #define NO_TRACE_MSGS 1
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
641 else
642 cat > conftestmake <<\EOF
643 all:
644 @echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_${ac_make}_set=yes
650 else
651 eval ac_cv_prog_make_${ac_make}_set=no
653 rm -f conftestmake
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
657 SET_MAKE=
658 else
659 echo "$ac_t""no" 1>&6
660 SET_MAKE="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
669 else
670 if test -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
672 else
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
674 ac_dummy="$PATH"
675 for ac_dir in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_prog_CC="gcc"
679 break
681 done
682 IFS="$ac_save_ifs"
685 CC="$ac_cv_prog_CC"
686 if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
688 else
689 echo "$ac_t""no" 1>&6
692 if test -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694 set dummy cc; ac_word=$2
695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echo "configure:697: checking for $ac_word" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699 else
700 if test -n "$CC"; then
701 ac_cv_prog_CC="$CC" # Let the user override the test.
702 else
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
704 ac_prog_rejected=no
705 ac_dummy="$PATH"
706 for ac_dir in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
710 ac_prog_rejected=yes
711 continue
713 ac_cv_prog_CC="cc"
714 break
716 done
717 IFS="$ac_save_ifs"
718 if test $ac_prog_rejected = yes; then
719 # We found a bogon in the path, so make sure we never use it.
720 set dummy $ac_cv_prog_CC
721 shift
722 if test $# -gt 0; then
723 # We chose a different compiler from the bogus one.
724 # However, it has the same basename, so the bogon will be chosen
725 # first if we set CC to just the basename; use the full file name.
726 shift
727 set dummy "$ac_dir/$ac_word" "$@"
728 shift
729 ac_cv_prog_CC="$@"
734 CC="$ac_cv_prog_CC"
735 if test -n "$CC"; then
736 echo "$ac_t""$CC" 1>&6
737 else
738 echo "$ac_t""no" 1>&6
741 if test -z "$CC"; then
742 case "`uname -s`" in
743 *win32* | *WIN32*)
744 # Extract the first word of "cl", so it can be a program name with args.
745 set dummy cl; ac_word=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
750 else
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
753 else
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
755 ac_dummy="$PATH"
756 for ac_dir in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
759 ac_cv_prog_CC="cl"
760 break
762 done
763 IFS="$ac_save_ifs"
766 CC="$ac_cv_prog_CC"
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
769 else
770 echo "$ac_t""no" 1>&6
773 esac
775 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
781 ac_ext=c
782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
783 ac_cpp='$CPP $CPPFLAGS'
784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
786 cross_compiling=$ac_cv_prog_cc_cross
788 cat > conftest.$ac_ext << EOF
790 #line 791 "configure"
791 #include "confdefs.h"
793 main(){return(0);}
795 if { (eval echo configure:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
796 ac_cv_prog_cc_works=yes
797 # If we can't run a trivial program, we are probably using a cross compiler.
798 if (./conftest; exit) 2>/dev/null; then
799 ac_cv_prog_cc_cross=no
800 else
801 ac_cv_prog_cc_cross=yes
803 else
804 echo "configure: failed program was:" >&5
805 cat conftest.$ac_ext >&5
806 ac_cv_prog_cc_works=no
808 rm -fr conftest*
809 ac_ext=c
810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
811 ac_cpp='$CPP $CPPFLAGS'
812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
814 cross_compiling=$ac_cv_prog_cc_cross
816 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
817 if test $ac_cv_prog_cc_works = no; then
818 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
821 echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
822 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
823 cross_compiling=$ac_cv_prog_cc_cross
825 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
826 echo "configure:827: checking whether we are using GNU C" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
829 else
830 cat > conftest.c <<EOF
831 #ifdef __GNUC__
832 yes;
833 #endif
835 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
836 ac_cv_prog_gcc=yes
837 else
838 ac_cv_prog_gcc=no
842 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
844 if test $ac_cv_prog_gcc = yes; then
845 GCC=yes
846 else
847 GCC=
850 ac_test_CFLAGS="${CFLAGS+set}"
851 ac_save_CFLAGS="$CFLAGS"
852 CFLAGS=
853 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
854 echo "configure:855: checking whether ${CC-cc} accepts -g" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
857 else
858 echo 'void f(){}' > conftest.c
859 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
860 ac_cv_prog_cc_g=yes
861 else
862 ac_cv_prog_cc_g=no
864 rm -f conftest*
868 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
869 if test "$ac_test_CFLAGS" = set; then
870 CFLAGS="$ac_save_CFLAGS"
871 elif test $ac_cv_prog_cc_g = yes; then
872 if test "$GCC" = yes; then
873 CFLAGS="-g -O2"
874 else
875 CFLAGS="-g"
877 else
878 if test "$GCC" = yes; then
879 CFLAGS="-O2"
880 else
881 CFLAGS=
885 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
886 echo "configure:887: checking how to run the C preprocessor" >&5
887 # On Suns, sometimes $CPP names a directory.
888 if test -n "$CPP" && test -d "$CPP"; then
889 CPP=
891 if test -z "$CPP"; then
892 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
894 else
895 # This must be in double quotes, not single quotes, because CPP may get
896 # substituted into the Makefile and "${CC-cc}" will confuse make.
897 CPP="${CC-cc} -E"
898 # On the NeXT, cc -E runs the code through the compiler's parser,
899 # not just through cpp.
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
903 #include <assert.h>
904 Syntax Error
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
911 else
912 echo "$ac_err" >&5
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
915 rm -rf conftest*
916 CPP="${CC-cc} -E -traditional-cpp"
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
920 #include <assert.h>
921 Syntax Error
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
928 else
929 echo "$ac_err" >&5
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 CPP="${CC-cc} -nologo -E"
934 cat > conftest.$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
937 #include <assert.h>
938 Syntax Error
940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943 if test -z "$ac_err"; then
945 else
946 echo "$ac_err" >&5
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
949 rm -rf conftest*
950 CPP=/lib/cpp
952 rm -f conftest*
954 rm -f conftest*
956 rm -f conftest*
957 ac_cv_prog_CPP="$CPP"
959 CPP="$ac_cv_prog_CPP"
960 else
961 ac_cv_prog_CPP="$CPP"
963 echo "$ac_t""$CPP" 1>&6
965 # If we find X, set shell vars x_includes and x_libraries to the
966 # paths, otherwise set no_x=yes.
967 # Uses ac_ vars as temps to allow command line to override cache and checks.
968 # --without-x overrides everything else, but does not touch the cache.
969 echo $ac_n "checking for X""... $ac_c" 1>&6
970 echo "configure:971: checking for X" >&5
972 # Check whether --with-x or --without-x was given.
973 if test "${with_x+set}" = set; then
974 withval="$with_x"
978 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
979 if test "x$with_x" = xno; then
980 # The user explicitly disabled X.
981 have_x=disabled
982 else
983 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
984 # Both variables are already set.
985 have_x=yes
986 else
987 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 # One or both of the vars are not set, and there is no cached value.
991 ac_x_includes=NO ac_x_libraries=NO
992 rm -fr conftestdir
993 if mkdir conftestdir; then
994 cd conftestdir
995 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
996 cat > Imakefile <<'EOF'
997 acfindx:
998 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1000 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1002 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1003 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1004 for ac_extension in a so sl; do
1005 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1006 test -f $ac_im_libdir/libX11.$ac_extension; then
1007 ac_im_usrlibdir=$ac_im_libdir; break
1009 done
1010 # Screen out bogus values from the imake configuration. They are
1011 # bogus both because they are the default anyway, and because
1012 # using them would break gcc on systems where it needs fixed includes.
1013 case "$ac_im_incroot" in
1014 /usr/include) ;;
1015 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1016 esac
1017 case "$ac_im_usrlibdir" in
1018 /usr/lib | /lib) ;;
1019 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1020 esac
1022 cd ..
1023 rm -fr conftestdir
1026 if test "$ac_x_includes" = NO; then
1027 # Guess where to find include files, by looking for this one X11 .h file.
1028 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1030 # First, try using that file with no special directory specified.
1031 cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1034 #include <$x_direct_test_include>
1036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1037 { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1039 if test -z "$ac_err"; then
1040 rm -rf conftest*
1041 # We can compile using X headers with no special include directory.
1042 ac_x_includes=
1043 else
1044 echo "$ac_err" >&5
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1047 rm -rf conftest*
1048 # Look for the header file in a standard set of common directories.
1049 # Check X11 before X11Rn because it is often a symlink to the current release.
1050 for ac_dir in \
1051 /usr/X11/include \
1052 /usr/X11R6/include \
1053 /usr/X11R5/include \
1054 /usr/X11R4/include \
1056 /usr/include/X11 \
1057 /usr/include/X11R6 \
1058 /usr/include/X11R5 \
1059 /usr/include/X11R4 \
1061 /usr/local/X11/include \
1062 /usr/local/X11R6/include \
1063 /usr/local/X11R5/include \
1064 /usr/local/X11R4/include \
1066 /usr/local/include/X11 \
1067 /usr/local/include/X11R6 \
1068 /usr/local/include/X11R5 \
1069 /usr/local/include/X11R4 \
1071 /usr/X386/include \
1072 /usr/x386/include \
1073 /usr/XFree86/include/X11 \
1075 /usr/include \
1076 /usr/local/include \
1077 /usr/unsupported/include \
1078 /usr/athena/include \
1079 /usr/local/x11r5/include \
1080 /usr/lpp/Xamples/include \
1082 /usr/openwin/include \
1083 /usr/openwin/share/include \
1086 if test -r "$ac_dir/$x_direct_test_include"; then
1087 ac_x_includes=$ac_dir
1088 break
1090 done
1092 rm -f conftest*
1093 fi # $ac_x_includes = NO
1095 if test "$ac_x_libraries" = NO; then
1096 # Check for the libraries.
1098 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1099 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1101 # See if we find them without any special options.
1102 # Don't add to $LIBS permanently.
1103 ac_save_LIBS="$LIBS"
1104 LIBS="-l$x_direct_test_library $LIBS"
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1109 int main() {
1110 ${x_direct_test_function}()
1111 ; return 0; }
1113 if { (eval echo configure:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1114 rm -rf conftest*
1115 LIBS="$ac_save_LIBS"
1116 # We can link X programs with no special library path.
1117 ac_x_libraries=
1118 else
1119 echo "configure: failed program was:" >&5
1120 cat conftest.$ac_ext >&5
1121 rm -rf conftest*
1122 LIBS="$ac_save_LIBS"
1123 # First see if replacing the include by lib works.
1124 # Check X11 before X11Rn because it is often a symlink to the current release.
1125 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1126 /usr/X11/lib \
1127 /usr/X11R6/lib \
1128 /usr/X11R5/lib \
1129 /usr/X11R4/lib \
1131 /usr/lib/X11 \
1132 /usr/lib/X11R6 \
1133 /usr/lib/X11R5 \
1134 /usr/lib/X11R4 \
1136 /usr/local/X11/lib \
1137 /usr/local/X11R6/lib \
1138 /usr/local/X11R5/lib \
1139 /usr/local/X11R4/lib \
1141 /usr/local/lib/X11 \
1142 /usr/local/lib/X11R6 \
1143 /usr/local/lib/X11R5 \
1144 /usr/local/lib/X11R4 \
1146 /usr/X386/lib \
1147 /usr/x386/lib \
1148 /usr/XFree86/lib/X11 \
1150 /usr/lib \
1151 /usr/local/lib \
1152 /usr/unsupported/lib \
1153 /usr/athena/lib \
1154 /usr/local/x11r5/lib \
1155 /usr/lpp/Xamples/lib \
1156 /lib/usr/lib/X11 \
1158 /usr/openwin/lib \
1159 /usr/openwin/share/lib \
1162 for ac_extension in a so sl; do
1163 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1164 ac_x_libraries=$ac_dir
1165 break 2
1167 done
1168 done
1170 rm -f conftest*
1171 fi # $ac_x_libraries = NO
1173 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1174 # Didn't find X anywhere. Cache the known absence of X.
1175 ac_cv_have_x="have_x=no"
1176 else
1177 # Record where we found X for the cache.
1178 ac_cv_have_x="have_x=yes \
1179 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1183 eval "$ac_cv_have_x"
1184 fi # $with_x != no
1186 if test "$have_x" != yes; then
1187 echo "$ac_t""$have_x" 1>&6
1188 no_x=yes
1189 else
1190 # If each of the values was on the command line, it overrides each guess.
1191 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1192 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1193 # Update the cache value to reflect the command line values.
1194 ac_cv_have_x="have_x=yes \
1195 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1196 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1199 if test "$no_x" = yes; then
1200 # Not all programs may use this symbol, but it does not hurt to define it.
1201 cat >> confdefs.h <<\EOF
1202 #define X_DISPLAY_MISSING 1
1205 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1206 else
1207 if test -n "$x_includes"; then
1208 X_CFLAGS="$X_CFLAGS -I$x_includes"
1211 # It would also be nice to do this for all -L options, not just this one.
1212 if test -n "$x_libraries"; then
1213 X_LIBS="$X_LIBS -L$x_libraries"
1214 # For Solaris; some versions of Sun CC require a space after -R and
1215 # others require no space. Words are not sufficient . . . .
1216 case "`(uname -sr) 2>/dev/null`" in
1217 "SunOS 5"*)
1218 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether -R must be followed by a space" >&5
1220 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1225 int main() {
1227 ; return 0; }
1229 if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1230 rm -rf conftest*
1231 ac_R_nospace=yes
1232 else
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 ac_R_nospace=no
1238 rm -f conftest*
1239 if test $ac_R_nospace = yes; then
1240 echo "$ac_t""no" 1>&6
1241 X_LIBS="$X_LIBS -R$x_libraries"
1242 else
1243 LIBS="$ac_xsave_LIBS -R $x_libraries"
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1248 int main() {
1250 ; return 0; }
1252 if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1253 rm -rf conftest*
1254 ac_R_space=yes
1255 else
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1258 rm -rf conftest*
1259 ac_R_space=no
1261 rm -f conftest*
1262 if test $ac_R_space = yes; then
1263 echo "$ac_t""yes" 1>&6
1264 X_LIBS="$X_LIBS -R $x_libraries"
1265 else
1266 echo "$ac_t""neither works" 1>&6
1269 LIBS="$ac_xsave_LIBS"
1270 esac
1273 # Check for system-dependent libraries X programs must link with.
1274 # Do this before checking for the system-independent R6 libraries
1275 # (-lICE), since we may need -lsocket or whatever for X linking.
1277 if test "$ISC" = yes; then
1278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1279 else
1280 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1281 # libraries were built with DECnet support. And karl@cs.umb.edu says
1282 # the Alpha needs dnet_stub (dnet does not exist).
1283 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1284 echo "configure:1285: checking for dnet_ntoa in -ldnet" >&5
1285 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 ac_save_LIBS="$LIBS"
1290 LIBS="-ldnet $LIBS"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1297 char dnet_ntoa();
1299 int main() {
1300 dnet_ntoa()
1301 ; return 0; }
1303 if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1304 rm -rf conftest*
1305 eval "ac_cv_lib_$ac_lib_var=yes"
1306 else
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1309 rm -rf conftest*
1310 eval "ac_cv_lib_$ac_lib_var=no"
1312 rm -f conftest*
1313 LIBS="$ac_save_LIBS"
1316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1318 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1319 else
1320 echo "$ac_t""no" 1>&6
1323 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1324 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1325 echo "configure:1326: checking for dnet_ntoa in -ldnet_stub" >&5
1326 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1329 else
1330 ac_save_LIBS="$LIBS"
1331 LIBS="-ldnet_stub $LIBS"
1332 cat > conftest.$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1335 /* Override any gcc2 internal prototype to avoid an error. */
1336 /* We use char because int might match the return type of a gcc2
1337 builtin and then its argument prototype would still apply. */
1338 char dnet_ntoa();
1340 int main() {
1341 dnet_ntoa()
1342 ; return 0; }
1344 if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1345 rm -rf conftest*
1346 eval "ac_cv_lib_$ac_lib_var=yes"
1347 else
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1350 rm -rf conftest*
1351 eval "ac_cv_lib_$ac_lib_var=no"
1353 rm -f conftest*
1354 LIBS="$ac_save_LIBS"
1357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1358 echo "$ac_t""yes" 1>&6
1359 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1360 else
1361 echo "$ac_t""no" 1>&6
1366 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1367 # to get the SysV transport functions.
1368 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1369 # needs -lnsl.
1370 # The nsl library prevents programs from opening the X display
1371 # on Irix 5.2, according to dickey@clark.net.
1372 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1373 echo "configure:1374: checking for gethostbyname" >&5
1374 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1376 else
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 /* System header to define __stub macros and hopefully few prototypes,
1381 which can conflict with char gethostbyname(); below. */
1382 #include <assert.h>
1383 /* Override any gcc2 internal prototype to avoid an error. */
1384 /* We use char because int might match the return type of a gcc2
1385 builtin and then its argument prototype would still apply. */
1386 char gethostbyname();
1388 int main() {
1390 /* The GNU C library defines this for functions which it implements
1391 to always fail with ENOSYS. Some functions are actually named
1392 something starting with __ and the normal name is an alias. */
1393 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1394 choke me
1395 #else
1396 gethostbyname();
1397 #endif
1399 ; return 0; }
1401 if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1402 rm -rf conftest*
1403 eval "ac_cv_func_gethostbyname=yes"
1404 else
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1407 rm -rf conftest*
1408 eval "ac_cv_func_gethostbyname=no"
1410 rm -f conftest*
1413 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1414 echo "$ac_t""yes" 1>&6
1416 else
1417 echo "$ac_t""no" 1>&6
1420 if test $ac_cv_func_gethostbyname = no; then
1421 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1422 echo "configure:1423: checking for gethostbyname in -lnsl" >&5
1423 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427 ac_save_LIBS="$LIBS"
1428 LIBS="-lnsl $LIBS"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1435 char gethostbyname();
1437 int main() {
1438 gethostbyname()
1439 ; return 0; }
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1442 rm -rf conftest*
1443 eval "ac_cv_lib_$ac_lib_var=yes"
1444 else
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1447 rm -rf conftest*
1448 eval "ac_cv_lib_$ac_lib_var=no"
1450 rm -f conftest*
1451 LIBS="$ac_save_LIBS"
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1456 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1457 else
1458 echo "$ac_t""no" 1>&6
1463 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1464 # socket/setsockopt and other routines are undefined under SCO ODT
1465 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1466 # on later versions), says simon@lia.di.epfl.ch: it contains
1467 # gethostby* variants that don't use the nameserver (or something).
1468 # -lsocket must be given before -lnsl if both are needed.
1469 # We assume that if connect needs -lnsl, so does gethostbyname.
1470 echo $ac_n "checking for connect""... $ac_c" 1>&6
1471 echo "configure:1472: checking for connect" >&5
1472 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474 else
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478 /* System header to define __stub macros and hopefully few prototypes,
1479 which can conflict with char connect(); below. */
1480 #include <assert.h>
1481 /* Override any gcc2 internal prototype to avoid an error. */
1482 /* We use char because int might match the return type of a gcc2
1483 builtin and then its argument prototype would still apply. */
1484 char connect();
1486 int main() {
1488 /* The GNU C library defines this for functions which it implements
1489 to always fail with ENOSYS. Some functions are actually named
1490 something starting with __ and the normal name is an alias. */
1491 #if defined (__stub_connect) || defined (__stub___connect)
1492 choke me
1493 #else
1494 connect();
1495 #endif
1497 ; return 0; }
1499 if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1500 rm -rf conftest*
1501 eval "ac_cv_func_connect=yes"
1502 else
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1505 rm -rf conftest*
1506 eval "ac_cv_func_connect=no"
1508 rm -f conftest*
1511 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1512 echo "$ac_t""yes" 1>&6
1514 else
1515 echo "$ac_t""no" 1>&6
1518 if test $ac_cv_func_connect = no; then
1519 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1520 echo "configure:1521: checking for connect in -lsocket" >&5
1521 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525 ac_save_LIBS="$LIBS"
1526 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1533 char connect();
1535 int main() {
1536 connect()
1537 ; return 0; }
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1540 rm -rf conftest*
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1542 else
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1545 rm -rf conftest*
1546 eval "ac_cv_lib_$ac_lib_var=no"
1548 rm -f conftest*
1549 LIBS="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1555 else
1556 echo "$ac_t""no" 1>&6
1561 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1562 echo $ac_n "checking for remove""... $ac_c" 1>&6
1563 echo "configure:1564: checking for remove" >&5
1564 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* System header to define __stub macros and hopefully few prototypes,
1571 which can conflict with char remove(); below. */
1572 #include <assert.h>
1573 /* Override any gcc2 internal prototype to avoid an error. */
1574 /* We use char because int might match the return type of a gcc2
1575 builtin and then its argument prototype would still apply. */
1576 char remove();
1578 int main() {
1580 /* The GNU C library defines this for functions which it implements
1581 to always fail with ENOSYS. Some functions are actually named
1582 something starting with __ and the normal name is an alias. */
1583 #if defined (__stub_remove) || defined (__stub___remove)
1584 choke me
1585 #else
1586 remove();
1587 #endif
1589 ; return 0; }
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1592 rm -rf conftest*
1593 eval "ac_cv_func_remove=yes"
1594 else
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1597 rm -rf conftest*
1598 eval "ac_cv_func_remove=no"
1600 rm -f conftest*
1603 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1604 echo "$ac_t""yes" 1>&6
1606 else
1607 echo "$ac_t""no" 1>&6
1610 if test $ac_cv_func_remove = no; then
1611 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1612 echo "configure:1613: checking for remove in -lposix" >&5
1613 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 ac_save_LIBS="$LIBS"
1618 LIBS="-lposix $LIBS"
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1622 /* Override any gcc2 internal prototype to avoid an error. */
1623 /* We use char because int might match the return type of a gcc2
1624 builtin and then its argument prototype would still apply. */
1625 char remove();
1627 int main() {
1628 remove()
1629 ; return 0; }
1631 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1632 rm -rf conftest*
1633 eval "ac_cv_lib_$ac_lib_var=yes"
1634 else
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1637 rm -rf conftest*
1638 eval "ac_cv_lib_$ac_lib_var=no"
1640 rm -f conftest*
1641 LIBS="$ac_save_LIBS"
1644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1647 else
1648 echo "$ac_t""no" 1>&6
1653 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1654 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1655 echo "configure:1656: checking for shmat" >&5
1656 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1658 else
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 /* System header to define __stub macros and hopefully few prototypes,
1663 which can conflict with char shmat(); below. */
1664 #include <assert.h>
1665 /* Override any gcc2 internal prototype to avoid an error. */
1666 /* We use char because int might match the return type of a gcc2
1667 builtin and then its argument prototype would still apply. */
1668 char shmat();
1670 int main() {
1672 /* The GNU C library defines this for functions which it implements
1673 to always fail with ENOSYS. Some functions are actually named
1674 something starting with __ and the normal name is an alias. */
1675 #if defined (__stub_shmat) || defined (__stub___shmat)
1676 choke me
1677 #else
1678 shmat();
1679 #endif
1681 ; return 0; }
1683 if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1684 rm -rf conftest*
1685 eval "ac_cv_func_shmat=yes"
1686 else
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1689 rm -rf conftest*
1690 eval "ac_cv_func_shmat=no"
1692 rm -f conftest*
1695 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1698 else
1699 echo "$ac_t""no" 1>&6
1702 if test $ac_cv_func_shmat = no; then
1703 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1704 echo "configure:1705: checking for shmat in -lipc" >&5
1705 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1708 else
1709 ac_save_LIBS="$LIBS"
1710 LIBS="-lipc $LIBS"
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 /* Override any gcc2 internal prototype to avoid an error. */
1715 /* We use char because int might match the return type of a gcc2
1716 builtin and then its argument prototype would still apply. */
1717 char shmat();
1719 int main() {
1720 shmat()
1721 ; return 0; }
1723 if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1724 rm -rf conftest*
1725 eval "ac_cv_lib_$ac_lib_var=yes"
1726 else
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1729 rm -rf conftest*
1730 eval "ac_cv_lib_$ac_lib_var=no"
1732 rm -f conftest*
1733 LIBS="$ac_save_LIBS"
1736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1737 echo "$ac_t""yes" 1>&6
1738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1739 else
1740 echo "$ac_t""no" 1>&6
1746 # Check for libraries that X11R6 Xt/Xaw programs need.
1747 ac_save_LDFLAGS="$LDFLAGS"
1748 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1749 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1750 # check for ICE first), but we must link in the order -lSM -lICE or
1751 # we get undefined symbols. So assume we have SM if we have ICE.
1752 # These have to be linked with before -lX11, unlike the other
1753 # libraries we check for below, so use a different variable.
1754 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1755 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1756 echo "configure:1757: checking for IceConnectionNumber in -lICE" >&5
1757 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761 ac_save_LIBS="$LIBS"
1762 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766 /* Override any gcc2 internal prototype to avoid an error. */
1767 /* We use char because int might match the return type of a gcc2
1768 builtin and then its argument prototype would still apply. */
1769 char IceConnectionNumber();
1771 int main() {
1772 IceConnectionNumber()
1773 ; return 0; }
1775 if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 rm -rf conftest*
1777 eval "ac_cv_lib_$ac_lib_var=yes"
1778 else
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1781 rm -rf conftest*
1782 eval "ac_cv_lib_$ac_lib_var=no"
1784 rm -f conftest*
1785 LIBS="$ac_save_LIBS"
1788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1790 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1791 else
1792 echo "$ac_t""no" 1>&6
1795 LDFLAGS="$ac_save_LDFLAGS"
1799 for ac_prog in 'bison -y' byacc
1801 # Extract the first word of "$ac_prog", so it can be a program name with args.
1802 set dummy $ac_prog; ac_word=$2
1803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_word" >&5
1805 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1807 else
1808 if test -n "$YACC"; then
1809 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1810 else
1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1812 ac_dummy="$PATH"
1813 for ac_dir in $ac_dummy; do
1814 test -z "$ac_dir" && ac_dir=.
1815 if test -f $ac_dir/$ac_word; then
1816 ac_cv_prog_YACC="$ac_prog"
1817 break
1819 done
1820 IFS="$ac_save_ifs"
1823 YACC="$ac_cv_prog_YACC"
1824 if test -n "$YACC"; then
1825 echo "$ac_t""$YACC" 1>&6
1826 else
1827 echo "$ac_t""no" 1>&6
1830 test -n "$YACC" && break
1831 done
1832 test -n "$YACC" || YACC="yacc"
1834 # Extract the first word of "flex", so it can be a program name with args.
1835 set dummy flex; ac_word=$2
1836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_word" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841 if test -n "$LEX"; then
1842 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1843 else
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 ac_dummy="$PATH"
1846 for ac_dir in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir=.
1848 if test -f $ac_dir/$ac_word; then
1849 ac_cv_prog_LEX="flex"
1850 break
1852 done
1853 IFS="$ac_save_ifs"
1854 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1857 LEX="$ac_cv_prog_LEX"
1858 if test -n "$LEX"; then
1859 echo "$ac_t""$LEX" 1>&6
1860 else
1861 echo "$ac_t""no" 1>&6
1864 if test -z "$LEXLIB"
1865 then
1866 case "$LEX" in
1867 flex*) ac_lib=fl ;;
1868 *) ac_lib=l ;;
1869 esac
1870 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1871 echo "configure:1872: checking for yywrap in -l$ac_lib" >&5
1872 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875 else
1876 ac_save_LIBS="$LIBS"
1877 LIBS="-l$ac_lib $LIBS"
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 /* Override any gcc2 internal prototype to avoid an error. */
1882 /* We use char because int might match the return type of a gcc2
1883 builtin and then its argument prototype would still apply. */
1884 char yywrap();
1886 int main() {
1887 yywrap()
1888 ; return 0; }
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1891 rm -rf conftest*
1892 eval "ac_cv_lib_$ac_lib_var=yes"
1893 else
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1896 rm -rf conftest*
1897 eval "ac_cv_lib_$ac_lib_var=no"
1899 rm -f conftest*
1900 LIBS="$ac_save_LIBS"
1903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1905 LEXLIB="-l$ac_lib"
1906 else
1907 echo "$ac_t""no" 1>&6
1912 # Extract the first word of "ranlib", so it can be a program name with args.
1913 set dummy ranlib; ac_word=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 if test -n "$RANLIB"; then
1920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1921 else
1922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1923 ac_dummy="$PATH"
1924 for ac_dir in $ac_dummy; do
1925 test -z "$ac_dir" && ac_dir=.
1926 if test -f $ac_dir/$ac_word; then
1927 ac_cv_prog_RANLIB="ranlib"
1928 break
1930 done
1931 IFS="$ac_save_ifs"
1932 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1935 RANLIB="$ac_cv_prog_RANLIB"
1936 if test -n "$RANLIB"; then
1937 echo "$ac_t""$RANLIB" 1>&6
1938 else
1939 echo "$ac_t""no" 1>&6
1942 # Find a good install program. We prefer a C program (faster),
1943 # so one script is as good as another. But avoid the broken or
1944 # incompatible versions:
1945 # SysV /etc/install, /usr/sbin/install
1946 # SunOS /usr/etc/install
1947 # IRIX /sbin/install
1948 # AIX /bin/install
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # ./install, which can be erroneously created by make from ./install.sh.
1953 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1954 echo "configure:1955: checking for a BSD compatible install" >&5
1955 if test -z "$INSTALL"; then
1956 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1960 for ac_dir in $PATH; do
1961 # Account for people who put trailing slashes in PATH elements.
1962 case "$ac_dir/" in
1963 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1965 # OSF1 and SCO ODT 3.0 have their own names for install.
1966 # Don't use installbsd from OSF since it installs stuff as root
1967 # by default.
1968 for ac_prog in ginstall scoinst install; do
1969 if test -f $ac_dir/$ac_prog; then
1970 if test $ac_prog = install &&
1971 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1972 # AIX install. It has an incompatible calling convention.
1974 else
1975 ac_cv_path_install="$ac_dir/$ac_prog -c"
1976 break 2
1979 done
1981 esac
1982 done
1983 IFS="$ac_save_IFS"
1986 if test "${ac_cv_path_install+set}" = set; then
1987 INSTALL="$ac_cv_path_install"
1988 else
1989 # As a last resort, use the slow shell script. We don't cache a
1990 # path for INSTALL within a source directory, because that will
1991 # break other packages using the cache if that directory is
1992 # removed, or if the path is relative.
1993 INSTALL="$ac_install_sh"
1996 echo "$ac_t""$INSTALL" 1>&6
1998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1999 # It thinks the first close brace ends the variable substitution.
2000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2006 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2007 echo "configure:2008: checking whether ln -s works" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011 rm -f conftestdata
2012 if ln -s X conftestdata 2>/dev/null
2013 then
2014 rm -f conftestdata
2015 ac_cv_prog_LN_S="ln -s"
2016 else
2017 ac_cv_prog_LN_S=ln
2020 LN_S="$ac_cv_prog_LN_S"
2021 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2022 echo "$ac_t""yes" 1>&6
2023 else
2024 echo "$ac_t""no" 1>&6
2027 # Extract the first word of "c2man", so it can be a program name with args.
2028 set dummy c2man; ac_word=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 if test -n "$C2MAN"; then
2035 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2036 else
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2038 ac_dummy="$PATH"
2039 for ac_dir in $ac_dummy; do
2040 test -z "$ac_dir" && ac_dir=.
2041 if test -f $ac_dir/$ac_word; then
2042 ac_cv_prog_C2MAN="c2man"
2043 break
2045 done
2046 IFS="$ac_save_ifs"
2047 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2050 C2MAN="$ac_cv_prog_C2MAN"
2051 if test -n "$C2MAN"; then
2052 echo "$ac_t""$C2MAN" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2057 # Extract the first word of "ldconfig", so it can be a program name with args.
2058 set dummy ldconfig; ac_word=$2
2059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_word" >&5
2061 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2063 else
2064 case "$LDCONFIG" in
2066 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2068 ?:/*)
2069 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2073 ac_dummy="/sbin:/usr/sbin:$PATH"
2074 for ac_dir in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir=.
2076 if test -f $ac_dir/$ac_word; then
2077 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2078 break
2080 done
2081 IFS="$ac_save_ifs"
2082 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="false"
2084 esac
2086 LDCONFIG="$ac_cv_path_LDCONFIG"
2087 if test -n "$LDCONFIG"; then
2088 echo "$ac_t""$LDCONFIG" 1>&6
2089 else
2090 echo "$ac_t""no" 1>&6
2094 for ac_prog in lclint lint
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099 echo "configure:2100: checking for $ac_word" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102 else
2103 if test -n "$LINT"; then
2104 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2105 else
2106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2107 ac_dummy="$PATH"
2108 for ac_dir in $ac_dummy; do
2109 test -z "$ac_dir" && ac_dir=.
2110 if test -f $ac_dir/$ac_word; then
2111 ac_cv_prog_LINT="$ac_prog"
2112 break
2114 done
2115 IFS="$ac_save_ifs"
2118 LINT="$ac_cv_prog_LINT"
2119 if test -n "$LINT"; then
2120 echo "$ac_t""$LINT" 1>&6
2121 else
2122 echo "$ac_t""no" 1>&6
2125 test -n "$LINT" && break
2126 done
2128 if test "$LINT" = "lint"
2129 then
2130 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2136 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2137 echo "configure:2138: checking for sqrt in -lm" >&5
2138 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142 ac_save_LIBS="$LIBS"
2143 LIBS="-lm $LIBS"
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 /* Override any gcc2 internal prototype to avoid an error. */
2148 /* We use char because int might match the return type of a gcc2
2149 builtin and then its argument prototype would still apply. */
2150 char sqrt();
2152 int main() {
2153 sqrt()
2154 ; return 0; }
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2157 rm -rf conftest*
2158 eval "ac_cv_lib_$ac_lib_var=yes"
2159 else
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 rm -rf conftest*
2163 eval "ac_cv_lib_$ac_lib_var=no"
2165 rm -f conftest*
2166 LIBS="$ac_save_LIBS"
2169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2173 cat >> confdefs.h <<EOF
2174 #define $ac_tr_lib 1
2177 LIBS="-lm $LIBS"
2179 else
2180 echo "$ac_t""no" 1>&6
2183 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2184 echo "configure:2185: checking for i386_set_ldt in -li386" >&5
2185 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 ac_save_LIBS="$LIBS"
2190 LIBS="-li386 $LIBS"
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2197 char i386_set_ldt();
2199 int main() {
2200 i386_set_ldt()
2201 ; return 0; }
2203 if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2204 rm -rf conftest*
2205 eval "ac_cv_lib_$ac_lib_var=yes"
2206 else
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 rm -rf conftest*
2210 eval "ac_cv_lib_$ac_lib_var=no"
2212 rm -f conftest*
2213 LIBS="$ac_save_LIBS"
2216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2220 cat >> confdefs.h <<EOF
2221 #define $ac_tr_lib 1
2224 LIBS="-li386 $LIBS"
2226 else
2227 echo "$ac_t""no" 1>&6
2230 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2231 echo "configure:2232: checking for _oss_ioctl in -lossaudio" >&5
2232 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 ac_save_LIBS="$LIBS"
2237 LIBS="-lossaudio $LIBS"
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 /* Override any gcc2 internal prototype to avoid an error. */
2242 /* We use char because int might match the return type of a gcc2
2243 builtin and then its argument prototype would still apply. */
2244 char _oss_ioctl();
2246 int main() {
2247 _oss_ioctl()
2248 ; return 0; }
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251 rm -rf conftest*
2252 eval "ac_cv_lib_$ac_lib_var=yes"
2253 else
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 rm -rf conftest*
2257 eval "ac_cv_lib_$ac_lib_var=no"
2259 rm -f conftest*
2260 LIBS="$ac_save_LIBS"
2263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2267 cat >> confdefs.h <<EOF
2268 #define $ac_tr_lib 1
2271 LIBS="-lossaudio $LIBS"
2273 else
2274 echo "$ac_t""no" 1>&6
2277 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2278 echo "configure:2279: checking for iswalnum in -lw" >&5
2279 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283 ac_save_LIBS="$LIBS"
2284 LIBS="-lw $LIBS"
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* Override any gcc2 internal prototype to avoid an error. */
2289 /* We use char because int might match the return type of a gcc2
2290 builtin and then its argument prototype would still apply. */
2291 char iswalnum();
2293 int main() {
2294 iswalnum()
2295 ; return 0; }
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 rm -rf conftest*
2299 eval "ac_cv_lib_$ac_lib_var=yes"
2300 else
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 rm -rf conftest*
2304 eval "ac_cv_lib_$ac_lib_var=no"
2306 rm -f conftest*
2307 LIBS="$ac_save_LIBS"
2310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2312 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2314 cat >> confdefs.h <<EOF
2315 #define $ac_tr_lib 1
2318 LIBS="-lw $LIBS"
2320 else
2321 echo "$ac_t""no" 1>&6
2324 for ac_func in gethostbyname
2326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_func" >&5
2328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 /* System header to define __stub macros and hopefully few prototypes,
2335 which can conflict with char $ac_func(); below. */
2336 #include <assert.h>
2337 /* Override any gcc2 internal prototype to avoid an error. */
2338 /* We use char because int might match the return type of a gcc2
2339 builtin and then its argument prototype would still apply. */
2340 char $ac_func();
2342 int main() {
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2348 choke me
2349 #else
2350 $ac_func();
2351 #endif
2353 ; return 0; }
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2356 rm -rf conftest*
2357 eval "ac_cv_func_$ac_func=yes"
2358 else
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2361 rm -rf conftest*
2362 eval "ac_cv_func_$ac_func=no"
2364 rm -f conftest*
2367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2370 cat >> confdefs.h <<EOF
2371 #define $ac_tr_func 1
2374 else
2375 echo "$ac_t""no" 1>&6
2376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2377 echo "configure:2378: checking for gethostbyname in -lnsl" >&5
2378 ac_lib_var=`echo nsl'_'gethostbyname | 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
2381 else
2382 ac_save_LIBS="$LIBS"
2383 LIBS="-lnsl -lsocket $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 gethostbyname();
2392 int main() {
2393 gethostbyname()
2394 ; return 0; }
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2397 rm -rf conftest*
2398 eval "ac_cv_lib_$ac_lib_var=yes"
2399 else
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -rf conftest*
2403 eval "ac_cv_lib_$ac_lib_var=no"
2405 rm -f conftest*
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 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2412 else
2413 echo "$ac_t""no" 1>&6
2414 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2415 echo "configure:2416: checking for gethostbyname in -lsocket" >&5
2416 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2419 else
2420 ac_save_LIBS="$LIBS"
2421 LIBS="-lsocket -lnsl $LIBS"
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2428 char gethostbyname();
2430 int main() {
2431 gethostbyname()
2432 ; return 0; }
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435 rm -rf conftest*
2436 eval "ac_cv_lib_$ac_lib_var=yes"
2437 else
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -rf conftest*
2441 eval "ac_cv_lib_$ac_lib_var=no"
2443 rm -f conftest*
2444 LIBS="$ac_save_LIBS"
2447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2450 else
2451 echo "$ac_t""no" 1>&6
2457 done
2459 for ac_func in connect
2461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_func" >&5
2463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 /* System header to define __stub macros and hopefully few prototypes,
2470 which can conflict with char $ac_func(); below. */
2471 #include <assert.h>
2472 /* Override any gcc2 internal prototype to avoid an error. */
2473 /* We use char because int might match the return type of a gcc2
2474 builtin and then its argument prototype would still apply. */
2475 char $ac_func();
2477 int main() {
2479 /* The GNU C library defines this for functions which it implements
2480 to always fail with ENOSYS. Some functions are actually named
2481 something starting with __ and the normal name is an alias. */
2482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2483 choke me
2484 #else
2485 $ac_func();
2486 #endif
2488 ; return 0; }
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491 rm -rf conftest*
2492 eval "ac_cv_func_$ac_func=yes"
2493 else
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2496 rm -rf conftest*
2497 eval "ac_cv_func_$ac_func=no"
2499 rm -f conftest*
2502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_func 1
2509 else
2510 echo "$ac_t""no" 1>&6
2511 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2512 echo "configure:2513: checking for connect in -lsocket" >&5
2513 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516 else
2517 ac_save_LIBS="$LIBS"
2518 LIBS="-lsocket $LIBS"
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2525 char connect();
2527 int main() {
2528 connect()
2529 ; return 0; }
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2532 rm -rf conftest*
2533 eval "ac_cv_lib_$ac_lib_var=yes"
2534 else
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2537 rm -rf conftest*
2538 eval "ac_cv_lib_$ac_lib_var=no"
2540 rm -f conftest*
2541 LIBS="$ac_save_LIBS"
2544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2547 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2548 cat >> confdefs.h <<EOF
2549 #define $ac_tr_lib 1
2552 LIBS="-lsocket $LIBS"
2554 else
2555 echo "$ac_t""no" 1>&6
2559 done
2561 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2562 echo "configure:2563: checking for setrunelocale in -lxpg4" >&5
2563 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2566 else
2567 ac_save_LIBS="$LIBS"
2568 LIBS="-lxpg4 $LIBS"
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* Override any gcc2 internal prototype to avoid an error. */
2573 /* We use char because int might match the return type of a gcc2
2574 builtin and then its argument prototype would still apply. */
2575 char setrunelocale();
2577 int main() {
2578 setrunelocale()
2579 ; return 0; }
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2582 rm -rf conftest*
2583 eval "ac_cv_lib_$ac_lib_var=yes"
2584 else
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 rm -rf conftest*
2588 eval "ac_cv_lib_$ac_lib_var=no"
2590 rm -f conftest*
2591 LIBS="$ac_save_LIBS"
2594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2595 echo "$ac_t""yes" 1>&6
2596 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2598 cat >> confdefs.h <<EOF
2599 #define $ac_tr_lib 1
2602 LIBS="-lxpg4 $LIBS"
2604 else
2605 echo "$ac_t""no" 1>&6
2608 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2609 echo "configure:2610: checking for mmap in -lmmap" >&5
2610 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614 ac_save_LIBS="$LIBS"
2615 LIBS="-lmmap $LIBS"
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 /* We use char because int might match the return type of a gcc2
2621 builtin and then its argument prototype would still apply. */
2622 char mmap();
2624 int main() {
2625 mmap()
2626 ; return 0; }
2628 if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2629 rm -rf conftest*
2630 eval "ac_cv_lib_$ac_lib_var=yes"
2631 else
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -rf conftest*
2635 eval "ac_cv_lib_$ac_lib_var=no"
2637 rm -f conftest*
2638 LIBS="$ac_save_LIBS"
2641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2645 cat >> confdefs.h <<EOF
2646 #define $ac_tr_lib 1
2649 LIBS="-lmmap $LIBS"
2651 else
2652 echo "$ac_t""no" 1>&6
2655 for ac_func in openpty
2657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_func" >&5
2659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 /* System header to define __stub macros and hopefully few prototypes,
2666 which can conflict with char $ac_func(); below. */
2667 #include <assert.h>
2668 /* Override any gcc2 internal prototype to avoid an error. */
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2671 char $ac_func();
2673 int main() {
2675 /* The GNU C library defines this for functions which it implements
2676 to always fail with ENOSYS. Some functions are actually named
2677 something starting with __ and the normal name is an alias. */
2678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2679 choke me
2680 #else
2681 $ac_func();
2682 #endif
2684 ; return 0; }
2686 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2687 rm -rf conftest*
2688 eval "ac_cv_func_$ac_func=yes"
2689 else
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 rm -rf conftest*
2693 eval "ac_cv_func_$ac_func=no"
2695 rm -f conftest*
2698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_func 1
2705 else
2706 echo "$ac_t""no" 1>&6
2707 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2708 echo "configure:2709: checking for openpty in -lutil" >&5
2709 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2712 else
2713 ac_save_LIBS="$LIBS"
2714 LIBS="-lutil $LIBS"
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* Override any gcc2 internal prototype to avoid an error. */
2719 /* We use char because int might match the return type of a gcc2
2720 builtin and then its argument prototype would still apply. */
2721 char openpty();
2723 int main() {
2724 openpty()
2725 ; return 0; }
2727 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2728 rm -rf conftest*
2729 eval "ac_cv_lib_$ac_lib_var=yes"
2730 else
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2733 rm -rf conftest*
2734 eval "ac_cv_lib_$ac_lib_var=no"
2736 rm -f conftest*
2737 LIBS="$ac_save_LIBS"
2740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 cat >> confdefs.h <<\EOF
2743 #define HAVE_OPENPTY 1
2746 LIBS="$LIBS -lutil"
2748 else
2749 echo "$ac_t""no" 1>&6
2753 done
2756 for ac_hdr in dlfcn.h
2758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2760 echo "configure:2761: checking for $ac_hdr" >&5
2761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2763 else
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 #include <$ac_hdr>
2769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2770 { (eval echo configure:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2772 if test -z "$ac_err"; then
2773 rm -rf conftest*
2774 eval "ac_cv_header_$ac_safe=yes"
2775 else
2776 echo "$ac_err" >&5
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2779 rm -rf conftest*
2780 eval "ac_cv_header_$ac_safe=no"
2782 rm -f conftest*
2784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2785 echo "$ac_t""yes" 1>&6
2786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2787 cat >> confdefs.h <<EOF
2788 #define $ac_tr_hdr 1
2790 for ac_func in dlopen
2792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_func" >&5
2794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 /* System header to define __stub macros and hopefully few prototypes,
2801 which can conflict with char $ac_func(); below. */
2802 #include <assert.h>
2803 /* Override any gcc2 internal prototype to avoid an error. */
2804 /* We use char because int might match the return type of a gcc2
2805 builtin and then its argument prototype would still apply. */
2806 char $ac_func();
2808 int main() {
2810 /* The GNU C library defines this for functions which it implements
2811 to always fail with ENOSYS. Some functions are actually named
2812 something starting with __ and the normal name is an alias. */
2813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2814 choke me
2815 #else
2816 $ac_func();
2817 #endif
2819 ; return 0; }
2821 if { (eval echo configure:2822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2822 rm -rf conftest*
2823 eval "ac_cv_func_$ac_func=yes"
2824 else
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2827 rm -rf conftest*
2828 eval "ac_cv_func_$ac_func=no"
2830 rm -f conftest*
2833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2836 cat >> confdefs.h <<EOF
2837 #define $ac_tr_func 1
2839 cat >> confdefs.h <<\EOF
2840 #define HAVE_DL_API 1
2843 else
2844 echo "$ac_t""no" 1>&6
2845 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2846 echo "configure:2847: checking for dlopen in -ldl" >&5
2847 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2850 else
2851 ac_save_LIBS="$LIBS"
2852 LIBS="-ldl $LIBS"
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 /* Override any gcc2 internal prototype to avoid an error. */
2857 /* We use char because int might match the return type of a gcc2
2858 builtin and then its argument prototype would still apply. */
2859 char dlopen();
2861 int main() {
2862 dlopen()
2863 ; return 0; }
2865 if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2866 rm -rf conftest*
2867 eval "ac_cv_lib_$ac_lib_var=yes"
2868 else
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2871 rm -rf conftest*
2872 eval "ac_cv_lib_$ac_lib_var=no"
2874 rm -f conftest*
2875 LIBS="$ac_save_LIBS"
2878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2879 echo "$ac_t""yes" 1>&6
2880 cat >> confdefs.h <<\EOF
2881 #define HAVE_DL_API 1
2884 LIBS="$LIBS -ldl"
2886 else
2887 echo "$ac_t""no" 1>&6
2892 done
2895 else
2896 echo "$ac_t""no" 1>&6
2898 done
2901 if test "$have_x" = "yes"
2902 then
2903 XLIB="-lXext -lX11"
2904 ac_save_CPPFLAGS="$CPPFLAGS"
2905 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2907 for ac_hdr in X11/xpm.h
2909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2911 echo "configure:2912: checking for $ac_hdr" >&5
2912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2914 else
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2918 #include <$ac_hdr>
2920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2921 { (eval echo configure:2922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2923 if test -z "$ac_err"; then
2924 rm -rf conftest*
2925 eval "ac_cv_header_$ac_safe=yes"
2926 else
2927 echo "$ac_err" >&5
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 rm -rf conftest*
2931 eval "ac_cv_header_$ac_safe=no"
2933 rm -f conftest*
2935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2936 echo "$ac_t""yes" 1>&6
2937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2938 cat >> confdefs.h <<EOF
2939 #define $ac_tr_hdr 1
2942 else
2943 echo "$ac_t""no" 1>&6
2945 done
2947 if test "$ac_cv_header_X11_xpm_h" = "yes"
2948 then
2949 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2950 echo "configure:2951: checking for XpmCreatePixmapFromData in -lXpm" >&5
2951 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2954 else
2955 ac_save_LIBS="$LIBS"
2956 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char XpmCreatePixmapFromData();
2965 int main() {
2966 XpmCreatePixmapFromData()
2967 ; return 0; }
2969 if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2970 rm -rf conftest*
2971 eval "ac_cv_lib_$ac_lib_var=yes"
2972 else
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 rm -rf conftest*
2976 eval "ac_cv_lib_$ac_lib_var=no"
2978 rm -f conftest*
2979 LIBS="$ac_save_LIBS"
2982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 cat >> confdefs.h <<\EOF
2985 #define HAVE_LIBXXPM 1
2987 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2988 else
2989 echo "$ac_t""no" 1>&6
2992 else
2993 echo "When compiling with X support, you need the Xpm library, or"
2994 echo "WINE will not work. This Xpm library is within the following RPM,"
2995 echo "which you need to install:"
2996 echo "Redhat : xpm, xpm-devel"
2997 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
2998 echo "SuSE: xpm"
2999 echo
3000 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3001 echo "the directory /contrib/libraries."
3002 echo
3003 exit 1
3007 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
3009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_hdr" >&5
3012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3014 else
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 #include <$ac_hdr>
3020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3021 { (eval echo configure:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3023 if test -z "$ac_err"; then
3024 rm -rf conftest*
3025 eval "ac_cv_header_$ac_safe=yes"
3026 else
3027 echo "$ac_err" >&5
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3030 rm -rf conftest*
3031 eval "ac_cv_header_$ac_safe=no"
3033 rm -f conftest*
3035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3036 echo "$ac_t""yes" 1>&6
3037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3038 cat >> confdefs.h <<EOF
3039 #define $ac_tr_hdr 1
3042 else
3043 echo "$ac_t""no" 1>&6
3045 done
3047 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3048 then
3049 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3050 echo "configure:3051: checking for XShmQueryExtension in -lXext" >&5
3051 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3054 else
3055 ac_save_LIBS="$LIBS"
3056 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3063 char XShmQueryExtension();
3065 int main() {
3066 XShmQueryExtension()
3067 ; return 0; }
3069 if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3070 rm -rf conftest*
3071 eval "ac_cv_lib_$ac_lib_var=yes"
3072 else
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3075 rm -rf conftest*
3076 eval "ac_cv_lib_$ac_lib_var=no"
3078 rm -f conftest*
3079 LIBS="$ac_save_LIBS"
3082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3083 echo "$ac_t""yes" 1>&6
3084 cat >> confdefs.h <<\EOF
3085 #define HAVE_LIBXXSHM 1
3088 else
3089 echo "$ac_t""no" 1>&6
3093 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
3095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_hdr" >&5
3098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3100 else
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 #include <$ac_hdr>
3106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3107 { (eval echo configure:3108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3109 if test -z "$ac_err"; then
3110 rm -rf conftest*
3111 eval "ac_cv_header_$ac_safe=yes"
3112 else
3113 echo "$ac_err" >&5
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3116 rm -rf conftest*
3117 eval "ac_cv_header_$ac_safe=no"
3119 rm -f conftest*
3121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3122 echo "$ac_t""yes" 1>&6
3123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3124 cat >> confdefs.h <<EOF
3125 #define $ac_tr_hdr 1
3128 else
3129 echo "$ac_t""no" 1>&6
3131 done
3133 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3134 then
3135 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3136 echo "configure:3137: checking for XDGAQueryExtension in -lXxf86dga" >&5
3137 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3140 else
3141 ac_save_LIBS="$LIBS"
3142 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 /* Override any gcc2 internal prototype to avoid an error. */
3147 /* We use char because int might match the return type of a gcc2
3148 builtin and then its argument prototype would still apply. */
3149 char XDGAQueryExtension();
3151 int main() {
3152 XDGAQueryExtension()
3153 ; return 0; }
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3156 rm -rf conftest*
3157 eval "ac_cv_lib_$ac_lib_var=yes"
3158 else
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 eval "ac_cv_lib_$ac_lib_var=no"
3164 rm -f conftest*
3165 LIBS="$ac_save_LIBS"
3168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
3170 cat >> confdefs.h <<\EOF
3171 #define HAVE_LIBXXF86DGA2 1
3173 cat >> confdefs.h <<\EOF
3174 #define HAVE_LIBXXF86DGA 1
3176 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3177 else
3178 echo "$ac_t""no" 1>&6
3181 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3182 then
3183 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3184 echo "configure:3185: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3185 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3189 ac_save_LIBS="$LIBS"
3190 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* Override any gcc2 internal prototype to avoid an error. */
3195 /* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3197 char XF86DGAQueryExtension();
3199 int main() {
3200 XF86DGAQueryExtension()
3201 ; return 0; }
3203 if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3204 rm -rf conftest*
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3206 else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 eval "ac_cv_lib_$ac_lib_var=no"
3212 rm -f conftest*
3213 LIBS="$ac_save_LIBS"
3216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 cat >> confdefs.h <<\EOF
3219 #define HAVE_LIBXXF86DGA 1
3221 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3222 else
3223 echo "$ac_t""no" 1>&6
3229 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
3231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_hdr" >&5
3234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3236 else
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 #include <$ac_hdr>
3242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3243 { (eval echo configure:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3245 if test -z "$ac_err"; then
3246 rm -rf conftest*
3247 eval "ac_cv_header_$ac_safe=yes"
3248 else
3249 echo "$ac_err" >&5
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 rm -rf conftest*
3253 eval "ac_cv_header_$ac_safe=no"
3255 rm -f conftest*
3257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3260 cat >> confdefs.h <<EOF
3261 #define $ac_tr_hdr 1
3264 else
3265 echo "$ac_t""no" 1>&6
3267 done
3269 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3270 then
3271 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3272 echo "configure:3273: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3273 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3276 else
3277 ac_save_LIBS="$LIBS"
3278 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3285 char XF86VidModeQueryExtension();
3287 int main() {
3288 XF86VidModeQueryExtension()
3289 ; return 0; }
3291 if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3292 rm -rf conftest*
3293 eval "ac_cv_lib_$ac_lib_var=yes"
3294 else
3295 echo "configure: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3297 rm -rf conftest*
3298 eval "ac_cv_lib_$ac_lib_var=no"
3300 rm -f conftest*
3301 LIBS="$ac_save_LIBS"
3304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3305 echo "$ac_t""yes" 1>&6
3306 cat >> confdefs.h <<\EOF
3307 #define HAVE_LIBXXF86VM 1
3309 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3310 else
3311 echo "$ac_t""no" 1>&6
3316 for ac_hdr in GL/gl.h GL/glx.h GL/osmesa.h
3318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_hdr" >&5
3321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3323 else
3324 cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <$ac_hdr>
3329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3330 { (eval echo configure:3331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3332 if test -z "$ac_err"; then
3333 rm -rf conftest*
3334 eval "ac_cv_header_$ac_safe=yes"
3335 else
3336 echo "$ac_err" >&5
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -rf conftest*
3340 eval "ac_cv_header_$ac_safe=no"
3342 rm -f conftest*
3344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3345 echo "$ac_t""yes" 1>&6
3346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3347 cat >> confdefs.h <<EOF
3348 #define $ac_tr_hdr 1
3351 else
3352 echo "$ac_t""no" 1>&6
3354 done
3356 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3357 then
3358 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3359 echo "configure:3360: checking "for up-to-date Mesa version"" >&5
3360 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <GL/gl.h>
3367 int main() {
3368 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3369 ; return 0; }
3371 if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3372 rm -rf conftest*
3373 wine_cv_mesa_version_OK="yes"
3374 else
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 rm -rf conftest*
3378 wine_cv_mesa_version_OK="no"
3381 rm -f conftest*
3385 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3387 if test "$wine_cv_mesa_version_OK" = "yes"
3388 then
3389 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3390 echo "configure:3391: checking for glXCreateContext in -lGL" >&5
3391 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394 else
3395 ac_save_LIBS="$LIBS"
3396 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3403 char glXCreateContext();
3405 int main() {
3406 glXCreateContext()
3407 ; return 0; }
3409 if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3410 rm -rf conftest*
3411 eval "ac_cv_lib_$ac_lib_var=yes"
3412 else
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3415 rm -rf conftest*
3416 eval "ac_cv_lib_$ac_lib_var=no"
3418 rm -f conftest*
3419 LIBS="$ac_save_LIBS"
3422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 cat >> confdefs.h <<\EOF
3425 #define HAVE_LIBMESAGL 1
3427 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3428 else
3429 echo "$ac_t""no" 1>&6
3432 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3433 then
3434 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3435 echo "configure:3436: checking for glXCreateContext in -lMesaGL" >&5
3436 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3439 else
3440 ac_save_LIBS="$LIBS"
3441 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char glXCreateContext();
3450 int main() {
3451 glXCreateContext()
3452 ; return 0; }
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3455 rm -rf conftest*
3456 eval "ac_cv_lib_$ac_lib_var=yes"
3457 else
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3460 rm -rf conftest*
3461 eval "ac_cv_lib_$ac_lib_var=no"
3463 rm -f conftest*
3464 LIBS="$ac_save_LIBS"
3467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 cat >> confdefs.h <<\EOF
3470 #define HAVE_LIBMESAGL 1
3472 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3473 else
3474 echo "$ac_t""no" 1>&6
3479 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3480 echo "configure:3481: checking "for the OpenGL Color Index extension"" >&5
3481 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3483 else
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <GL/gl.h>
3488 int main() {
3489 GLenum test = GL_COLOR_INDEX8_EXT;
3490 ; return 0; }
3492 if { (eval echo configure:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3493 rm -rf conftest*
3494 cat >> confdefs.h <<\EOF
3495 #define HAVE_GL_COLOR_TABLE 1
3498 else
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3502 rm -f conftest*
3506 echo "$ac_t""$dummy" 1>&6
3507 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3508 then
3509 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3510 echo "configure:3511: checking for glColorTableEXT in -lMesaGL" >&5
3511 ac_lib_var=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3514 else
3515 ac_save_LIBS="$LIBS"
3516 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 /* Override any gcc2 internal prototype to avoid an error. */
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3523 char glColorTableEXT();
3525 int main() {
3526 glColorTableEXT()
3527 ; return 0; }
3529 if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3530 rm -rf conftest*
3531 eval "ac_cv_lib_$ac_lib_var=yes"
3532 else
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 rm -rf conftest*
3536 eval "ac_cv_lib_$ac_lib_var=no"
3538 rm -f conftest*
3539 LIBS="$ac_save_LIBS"
3542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3544 cat >> confdefs.h <<\EOF
3545 #define HAVE_GL_PALETTED_TEXTURE 1
3548 else
3549 echo "$ac_t""no" 1>&6
3552 else
3553 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3554 echo "configure:3555: checking for glColorTableEXT in -lGL" >&5
3555 ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3567 char glColorTableEXT();
3569 int main() {
3570 glColorTableEXT()
3571 ; return 0; }
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 rm -rf conftest*
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3576 else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 eval "ac_cv_lib_$ac_lib_var=no"
3582 rm -f conftest*
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 cat >> confdefs.h <<\EOF
3589 #define HAVE_GL_PALETTED_TEXTURE 1
3592 else
3593 echo "$ac_t""no" 1>&6
3600 CPPFLAGS="$ac_save_CPPFLAGS"
3601 else
3602 XLIB=""
3603 X_CFLAGS=""
3604 X_LIBS=""
3607 for ac_hdr in ncurses.h
3609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3611 echo "configure:3612: checking for $ac_hdr" >&5
3612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3614 else
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 #include <$ac_hdr>
3620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3621 { (eval echo configure:3622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3623 if test -z "$ac_err"; then
3624 rm -rf conftest*
3625 eval "ac_cv_header_$ac_safe=yes"
3626 else
3627 echo "$ac_err" >&5
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 rm -rf conftest*
3631 eval "ac_cv_header_$ac_safe=no"
3633 rm -f conftest*
3635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3638 cat >> confdefs.h <<EOF
3639 #define $ac_tr_hdr 1
3642 else
3643 echo "$ac_t""no" 1>&6
3645 done
3647 if test "$ac_cv_header_ncurses_h" = "yes"
3648 then
3649 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3650 echo "configure:3651: checking for waddch in -lncurses" >&5
3651 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3654 else
3655 ac_save_LIBS="$LIBS"
3656 LIBS="-lncurses $LIBS"
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3663 char waddch();
3665 int main() {
3666 waddch()
3667 ; return 0; }
3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3670 rm -rf conftest*
3671 eval "ac_cv_lib_$ac_lib_var=yes"
3672 else
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 rm -rf conftest*
3676 eval "ac_cv_lib_$ac_lib_var=no"
3678 rm -f conftest*
3679 LIBS="$ac_save_LIBS"
3682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3686 cat >> confdefs.h <<EOF
3687 #define $ac_tr_lib 1
3690 LIBS="-lncurses $LIBS"
3692 else
3693 echo "$ac_t""no" 1>&6
3697 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3698 then
3699 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3700 echo "configure:3701: checking for resizeterm in -lncurses" >&5
3701 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704 else
3705 ac_save_LIBS="$LIBS"
3706 LIBS="-lncurses $LIBS"
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 /* Override any gcc2 internal prototype to avoid an error. */
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3713 char resizeterm();
3715 int main() {
3716 resizeterm()
3717 ; return 0; }
3719 if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 rm -rf conftest*
3721 eval "ac_cv_lib_$ac_lib_var=yes"
3722 else
3723 echo "configure: failed program was:" >&5
3724 cat conftest.$ac_ext >&5
3725 rm -rf conftest*
3726 eval "ac_cv_lib_$ac_lib_var=no"
3728 rm -f conftest*
3729 LIBS="$ac_save_LIBS"
3732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3733 echo "$ac_t""yes" 1>&6
3734 cat >> confdefs.h <<\EOF
3735 #define HAVE_RESIZETERM 1
3738 else
3739 echo "$ac_t""no" 1>&6
3742 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3743 echo "configure:3744: checking for getbkgd in -lncurses" >&5
3744 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3747 else
3748 ac_save_LIBS="$LIBS"
3749 LIBS="-lncurses $LIBS"
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3756 char getbkgd();
3758 int main() {
3759 getbkgd()
3760 ; return 0; }
3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3763 rm -rf conftest*
3764 eval "ac_cv_lib_$ac_lib_var=yes"
3765 else
3766 echo "configure: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3768 rm -rf conftest*
3769 eval "ac_cv_lib_$ac_lib_var=no"
3771 rm -f conftest*
3772 LIBS="$ac_save_LIBS"
3775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 cat >> confdefs.h <<\EOF
3778 #define HAVE_GETBKGD 1
3781 else
3782 echo "$ac_t""no" 1>&6
3785 else
3786 for ac_hdr in curses.h
3788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3790 echo "configure:3791: checking for $ac_hdr" >&5
3791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3793 else
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 #include <$ac_hdr>
3799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3800 { (eval echo configure:3801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3802 if test -z "$ac_err"; then
3803 rm -rf conftest*
3804 eval "ac_cv_header_$ac_safe=yes"
3805 else
3806 echo "$ac_err" >&5
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3809 rm -rf conftest*
3810 eval "ac_cv_header_$ac_safe=no"
3812 rm -f conftest*
3814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3817 cat >> confdefs.h <<EOF
3818 #define $ac_tr_hdr 1
3821 else
3822 echo "$ac_t""no" 1>&6
3824 done
3826 if test "$ac_cv_header_curses_h" = "yes"
3827 then
3828 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3829 echo "configure:3830: checking for waddch in -lcurses" >&5
3830 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3833 else
3834 ac_save_LIBS="$LIBS"
3835 LIBS="-lcurses $LIBS"
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char waddch();
3844 int main() {
3845 waddch()
3846 ; return 0; }
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 rm -rf conftest*
3850 eval "ac_cv_lib_$ac_lib_var=yes"
3851 else
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 rm -rf conftest*
3855 eval "ac_cv_lib_$ac_lib_var=no"
3857 rm -f conftest*
3858 LIBS="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3865 cat >> confdefs.h <<EOF
3866 #define $ac_tr_lib 1
3869 LIBS="-lcurses $LIBS"
3871 else
3872 echo "$ac_t""no" 1>&6
3875 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3876 echo "configure:3877: checking for resizeterm in -lcurses" >&5
3877 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3880 else
3881 ac_save_LIBS="$LIBS"
3882 LIBS="-lcurses $LIBS"
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 /* Override any gcc2 internal prototype to avoid an error. */
3887 /* We use char because int might match the return type of a gcc2
3888 builtin and then its argument prototype would still apply. */
3889 char resizeterm();
3891 int main() {
3892 resizeterm()
3893 ; return 0; }
3895 if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3896 rm -rf conftest*
3897 eval "ac_cv_lib_$ac_lib_var=yes"
3898 else
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 rm -rf conftest*
3902 eval "ac_cv_lib_$ac_lib_var=no"
3904 rm -f conftest*
3905 LIBS="$ac_save_LIBS"
3908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3910 cat >> confdefs.h <<\EOF
3911 #define HAVE_RESIZETERM 1
3914 else
3915 echo "$ac_t""no" 1>&6
3918 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3919 echo "configure:3920: checking for getbkgd in -lcurses" >&5
3920 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3923 else
3924 ac_save_LIBS="$LIBS"
3925 LIBS="-lcurses $LIBS"
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3929 /* Override any gcc2 internal prototype to avoid an error. */
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3932 char getbkgd();
3934 int main() {
3935 getbkgd()
3936 ; return 0; }
3938 if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3939 rm -rf conftest*
3940 eval "ac_cv_lib_$ac_lib_var=yes"
3941 else
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3944 rm -rf conftest*
3945 eval "ac_cv_lib_$ac_lib_var=no"
3947 rm -f conftest*
3948 LIBS="$ac_save_LIBS"
3951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 cat >> confdefs.h <<\EOF
3954 #define HAVE_GETBKGD 1
3957 else
3958 echo "$ac_t""no" 1>&6
3964 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3965 echo "configure:3966: checking "for GNU style IPX support"" >&5
3966 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3968 else
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 #include <sys/socket.h>
3973 #include <netipx/ipx.h>
3974 int main() {
3975 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3976 ; return 0; }
3978 if { (eval echo configure:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3979 rm -rf conftest*
3980 ac_cv_c_ipx_gnu="yes"
3981 else
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3984 rm -rf conftest*
3985 ac_cv_c_ipx_gnu="no"
3987 rm -f conftest*
3991 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3992 if test "$ac_cv_c_ipx_gnu" = "yes"
3993 then
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_IPX_GNU 1
4000 if test "$ac_cv_c_ipx_gnu" = "no"
4001 then
4002 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4003 echo "configure:4004: checking "for linux style IPX support"" >&5
4004 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4006 else
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 #include <sys/socket.h>
4011 #include <asm/types.h>
4012 #include <linux/ipx.h>
4013 int main() {
4014 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4015 ; return 0; }
4017 if { (eval echo configure:4018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4018 rm -rf conftest*
4019 ac_cv_c_ipx_linux="yes"
4020 else
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4023 rm -rf conftest*
4024 ac_cv_c_ipx_linux="no"
4026 rm -f conftest*
4030 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4031 if test "$ac_cv_c_ipx_linux" = "yes"
4032 then
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_IPX_LINUX 1
4040 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4044 echo "configure:4045: checking for $ac_hdr" >&5
4045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4047 else
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <$ac_hdr>
4053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4054 { (eval echo configure:4055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4056 if test -z "$ac_err"; then
4057 rm -rf conftest*
4058 eval "ac_cv_header_$ac_safe=yes"
4059 else
4060 echo "$ac_err" >&5
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4063 rm -rf conftest*
4064 eval "ac_cv_header_$ac_safe=no"
4066 rm -f conftest*
4068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4069 echo "$ac_t""yes" 1>&6
4070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4071 cat >> confdefs.h <<EOF
4072 #define $ac_tr_hdr 1
4074 break
4075 else
4076 echo "$ac_t""no" 1>&6
4078 done
4081 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4082 echo "configure:4083: checking "for Open Sound System"" >&5
4083 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4085 else
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4090 #if defined(HAVE_SYS_SOUNDCARD_H)
4091 #include <sys/soundcard.h>
4092 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4093 #include <machine/soundcard.h>
4094 #elif defined(HAVE_SOUNDCARD_H)
4095 #include <soundcard.h>
4096 #endif
4098 int main() {
4101 /* check for one of the Open Sound System specific SNDCTL_ defines */
4102 #if !defined(SNDCTL_DSP_STEREO)
4103 #error No open sound system
4104 #endif
4106 ; return 0; }
4108 if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4109 rm -rf conftest*
4110 ac_cv_c_opensoundsystem="yes"
4111 else
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4114 rm -rf conftest*
4115 ac_cv_c_opensoundsystem="no"
4117 rm -f conftest*
4120 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4122 if test "$ac_cv_c_opensoundsystem" = "yes"
4123 then
4124 cat >> confdefs.h <<\EOF
4125 #define HAVE_OSS 1
4130 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4131 echo "configure:4132: checking "for Open Sound System/MIDI interface"" >&5
4132 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4134 else
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4139 #if defined(HAVE_SYS_SOUNDCARD_H)
4140 #include <sys/soundcard.h>
4141 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4142 #include <machine/soundcard.h>
4143 #elif defined(HAVE_SOUNDCARD_H)
4144 #include <soundcard.h>
4145 #endif
4147 int main() {
4150 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4151 #if !defined(SNDCTL_SEQ_SYNC)
4152 #error No open sound system MIDI interface
4153 #endif
4155 ; return 0; }
4157 if { (eval echo configure:4158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4158 rm -rf conftest*
4159 ac_cv_c_opensoundsystem_midi="yes"
4160 else
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 rm -rf conftest*
4164 ac_cv_c_opensoundsystem_midi="no"
4166 rm -f conftest*
4169 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4171 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4172 then
4173 cat >> confdefs.h <<\EOF
4174 #define HAVE_OSS_MIDI 1
4179 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4182 if test "x${GCC}" = "xyes"
4183 then
4184 CFLAGS="$CFLAGS -Wall"
4185 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4186 echo "configure:4187: checking "for gcc strength-reduce bug"" >&5
4187 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4189 else
4190 if test "$cross_compiling" = yes; then
4191 ac_cv_c_gcc_strength_bug="yes"
4192 else
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4197 int main(void) {
4198 static int Array[3];
4199 unsigned int B = 3;
4200 int i;
4201 for(i=0; i<B; i++) Array[i] = i - 3;
4202 exit( Array[1] != -2 );
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4206 then
4207 ac_cv_c_gcc_strength_bug="no"
4208 else
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 rm -fr conftest*
4212 ac_cv_c_gcc_strength_bug="yes"
4214 rm -fr conftest*
4219 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4220 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4221 then
4222 CFLAGS="$CFLAGS -fno-strength-reduce"
4227 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4228 echo "configure:4229: checking "whether external symbols need an underscore prefix"" >&5
4229 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231 else
4232 saved_libs=$LIBS
4233 LIBS="conftest_asm.s $LIBS"
4234 cat > conftest_asm.s <<EOF
4235 .globl _ac_test
4236 _ac_test:
4237 .long 0
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 extern int ac_test;
4243 int main() {
4244 if (ac_test) return 1
4245 ; return 0; }
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4248 rm -rf conftest*
4249 ac_cv_c_extern_prefix="yes"
4250 else
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4253 rm -rf conftest*
4254 ac_cv_c_extern_prefix="no"
4256 rm -f conftest*
4257 LIBS=$saved_libs
4260 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4261 if test "$ac_cv_c_extern_prefix" = "yes"
4262 then
4263 cat >> confdefs.h <<\EOF
4264 #define NEED_UNDERSCORE_PREFIX 1
4270 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4271 echo "configure:4272: checking "whether assembler accepts .string"" >&5
4272 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4274 else
4275 saved_libs=$LIBS
4276 LIBS="conftest_asm.s $LIBS"
4277 cat > conftest_asm.s <<EOF
4278 .string "test"
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4284 int main() {
4286 ; return 0; }
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4289 rm -rf conftest*
4290 ac_cv_c_asm_string="yes"
4291 else
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4294 rm -rf conftest*
4295 ac_cv_c_asm_string="no"
4297 rm -f conftest*
4298 LIBS=$saved_libs
4301 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4302 if test "$ac_cv_c_asm_string" = "yes"
4303 then
4304 cat >> confdefs.h <<\EOF
4305 #define HAVE_ASM_STRING 1
4311 LDSHARED=""
4312 if test "$LIB_TYPE" = "dll"
4313 then
4314 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4315 echo "configure:4316: checking "whether we can build a Linux dll"" >&5
4316 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4318 else
4319 saved_cflags=$CFLAGS
4320 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4325 int main() {
4326 return 1
4327 ; return 0; }
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4330 rm -rf conftest*
4331 ac_cv_c_dll_linux="yes"
4332 else
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4335 rm -rf conftest*
4336 ac_cv_c_dll_linux="no"
4338 rm -f conftest*
4339 CFLAGS=$saved_cflags
4343 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4344 if test "$ac_cv_c_dll_linux" = "yes"
4345 then
4346 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4347 else
4348 echo $ac_n "checking "whether we can build a UnixWare dll"""... $ac_c" 1>&6
4349 echo "configure:4350: checking "whether we can build a UnixWare dll"" >&5
4350 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4352 else
4353 saved_cflags=$CFLAGS
4354 CFLAGS="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0"
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4359 int main() {
4360 return 1
4361 ; return 0; }
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4364 rm -rf conftest*
4365 ac_cv_c_dll_unixware="yes"
4366 else
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4369 rm -rf conftest*
4370 ac_cv_c_dll_unixware="no"
4372 rm -f conftest*
4373 CFLAGS=$saved_cflags
4377 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4378 if test "$ac_cv_c_dll_unixware" = "yes"
4379 then
4380 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4381 else
4382 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4383 echo "configure:4384: checking "whether we can build a NetBSD dll"" >&5
4384 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4386 else
4387 saved_cflags=$CFLAGS
4388 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4393 int main() {
4394 return 1
4395 ; return 0; }
4397 if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4398 rm -rf conftest*
4399 ac_cv_c_dll_netbsd="yes"
4400 else
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 rm -rf conftest*
4404 ac_cv_c_dll_netbsd="no"
4406 rm -f conftest*
4407 CFLAGS=$saved_cflags
4411 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4412 if test "$ac_cv_c_dll_netbsd" = "yes"
4413 then
4414 LDSHARED="ld -Bshareable -Bforcearchive"
4418 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4419 then
4420 LIB_TYPE="static"
4424 DLLFLAGS=""
4425 BUILDFLAGS=""
4426 LIBEXT="a"
4428 if test "$LIB_TYPE" = "nolib"; then
4429 ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"
4430 LIB_TARGET=""
4431 else
4432 ALT_LINK="-Wl,--whole-archive -L\$(TOPOBJDIR) -lwine -Wl,--no-whole-archive"
4433 if test "$LIB_TYPE" = "dll"; then
4434 LIB_TARGET="libwine.so"
4435 BUILDFLAGS="-pic"
4436 DLLFLAGS="-fPIC"
4437 LIBEXT="so"
4438 else
4439 LIB_TARGET="libwine.a"
4452 wine_cv_libc_reentrant=no
4453 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4454 echo "configure:4455: checking "for reentrant libc: __errno_location"" >&5
4455 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458 if test "$cross_compiling" = yes; then
4459 wine_cv_libc_r__errno_location=yes
4460 else
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 int myerrno = 0;
4465 char buf[256];
4466 int *__errno_location(){return &myerrno;}
4467 main(){connect(0,buf,255); exit(!myerrno);}
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4470 then
4471 wine_cv_libc_r__errno_location=yes
4472 else
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -fr conftest*
4476 wine_cv_libc_r__errno_location=no
4478 rm -fr conftest*
4484 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4485 if test "$wine_cv_libc_r__errno_location" = "yes"
4486 then
4487 cat >> confdefs.h <<\EOF
4488 #define HAVE__ERRNO_LOCATION 1
4491 wine_cv_libc_reentrant=__errno_location
4493 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4494 echo "configure:4495: checking "for reentrant libc: __error"" >&5
4495 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4497 else
4498 if test "$cross_compiling" = yes; then
4499 wine_cv_libc_r__error=yes
4500 else
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 int myerrno = 0;
4505 char buf[256];
4506 int *__error(){return &myerrno;}
4507 main(){connect(0,buf,255); exit(!myerrno);}
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4510 then
4511 wine_cv_libc_r__error=yes
4512 else
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4515 rm -fr conftest*
4516 wine_cv_libc_r__error=no
4518 rm -fr conftest*
4524 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4525 if test "$wine_cv_libc_r__error" = "yes"
4526 then
4527 cat >> confdefs.h <<\EOF
4528 #define HAVE__ERROR 1
4531 wine_cv_libc_reentrant=__error
4533 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4534 echo "configure:4535: checking "for reentrant libc: ___errno"" >&5
4535 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4537 else
4538 if test "$cross_compiling" = yes; then
4539 wine_cv_libc_r___errno=yes
4540 else
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 int myerrno = 0;
4545 char buf[256];
4546 int *___errno(){return &myerrno;}
4547 main(){connect(0,buf,255); exit(!myerrno);}
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4550 then
4551 wine_cv_libc_r___errno=yes
4552 else
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 rm -fr conftest*
4556 wine_cv_libc_r___errno=no
4558 rm -fr conftest*
4564 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4565 if test "$wine_cv_libc_r___errno" = "yes"
4566 then
4567 cat >> confdefs.h <<\EOF
4568 #define HAVE___ERRNO 1
4571 wine_cv_libc_reentrant=___errno
4573 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4574 echo "configure:4575: checking "for reentrant libc: __thr_errno"" >&5
4575 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4577 else
4578 if test "$cross_compiling" = yes; then
4579 wine_cv_libc_r__thr_errno=yes
4580 else
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 int myerrno = 0;
4585 char buf[256];
4586 int *__thr_errno(){return &myerrno;}
4587 main(){connect(0,buf,255); exit(!myerrno);}
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4590 then
4591 wine_cv_libc_r__thr_errno=yes
4592 else
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4595 rm -fr conftest*
4596 wine_cv_libc_r__thr_errno=no
4598 rm -fr conftest*
4604 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4605 if test "$wine_cv_libc_r__thr_errno" = "yes"
4606 then
4607 cat >> confdefs.h <<\EOF
4608 #define HAVE__THR_ERRNO 1
4611 wine_cv_libc_reentrant=__thr_errno
4613 if test "$wine_cv_libc_reentrant" = "no"
4614 then
4615 cat >> confdefs.h <<\EOF
4616 #define NO_REENTRANT_LIBC 1
4622 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4623 then
4624 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4625 echo "configure:4626: checking "for reentrant X libraries"" >&5
4626 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4628 else
4629 if test "x$with_reentrant_x" = "xno"
4630 then
4631 wine_cv_x_reentrant=no
4632 else
4633 libX11_check=none
4634 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4635 if test -r $dir/libX11.so; then
4636 libX11_check="-D $dir/libX11.so"
4637 break 1
4639 if test -r $dir/libX11.a; then
4640 libX11_check="$dir/libX11.a"
4641 break 1
4643 done
4644 if test "$libX11_check" != "none"; then
4645 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4646 then
4647 wine_cv_x_reentrant=yes
4648 else
4649 wine_cv_x_reentrant=no
4651 else
4652 wine_cv_x_reentrant=unknown
4657 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4658 else
4659 wine_cv_x_reentrant=no
4661 if test "$wine_cv_x_reentrant" = "no"
4662 then
4663 cat >> confdefs.h <<\EOF
4664 #define NO_REENTRANT_X11 1
4670 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4671 echo "configure:4672: checking whether byte ordering is bigendian" >&5
4672 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4674 else
4675 ac_cv_c_bigendian=unknown
4676 # See if sys/param.h defines the BYTE_ORDER macro.
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <sys/types.h>
4681 #include <sys/param.h>
4682 int main() {
4684 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4685 bogus endian macros
4686 #endif
4687 ; return 0; }
4689 if { (eval echo configure:4690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4690 rm -rf conftest*
4691 # It does; now see whether it defined to BIG_ENDIAN or not.
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 #include <sys/types.h>
4696 #include <sys/param.h>
4697 int main() {
4699 #if BYTE_ORDER != BIG_ENDIAN
4700 not big endian
4701 #endif
4702 ; return 0; }
4704 if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4705 rm -rf conftest*
4706 ac_cv_c_bigendian=yes
4707 else
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4710 rm -rf conftest*
4711 ac_cv_c_bigendian=no
4713 rm -f conftest*
4714 else
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4718 rm -f conftest*
4719 if test $ac_cv_c_bigendian = unknown; then
4720 if test "$cross_compiling" = yes; then
4721 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4722 else
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 main () {
4727 /* Are we little or big endian? From Harbison&Steele. */
4728 union
4730 long l;
4731 char c[sizeof (long)];
4732 } u;
4733 u.l = 1;
4734 exit (u.c[sizeof (long) - 1] == 1);
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4738 then
4739 ac_cv_c_bigendian=no
4740 else
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4743 rm -fr conftest*
4744 ac_cv_c_bigendian=yes
4746 rm -fr conftest*
4752 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4753 if test $ac_cv_c_bigendian = yes; then
4754 cat >> confdefs.h <<\EOF
4755 #define WORDS_BIGENDIAN 1
4762 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4763 # for constant arguments. Useless!
4764 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4765 echo "configure:4766: checking for working alloca.h" >&5
4766 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4768 else
4769 cat > conftest.$ac_ext <<EOF
4770 #line 4771 "configure"
4771 #include "confdefs.h"
4772 #include <alloca.h>
4773 int main() {
4774 void *p = alloca(2 * sizeof(int));
4775 ; return 0; }
4777 if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 rm -rf conftest*
4779 ac_cv_header_alloca_h=yes
4780 else
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 rm -rf conftest*
4784 ac_cv_header_alloca_h=no
4786 rm -f conftest*
4789 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4790 if test $ac_cv_header_alloca_h = yes; then
4791 cat >> confdefs.h <<\EOF
4792 #define HAVE_ALLOCA_H 1
4797 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4798 echo "configure:4799: checking for alloca" >&5
4799 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4801 else
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4806 #ifdef __GNUC__
4807 # define alloca __builtin_alloca
4808 #else
4809 # ifdef _MSC_VER
4810 # include <malloc.h>
4811 # define alloca _alloca
4812 # else
4813 # if HAVE_ALLOCA_H
4814 # include <alloca.h>
4815 # else
4816 # ifdef _AIX
4817 #pragma alloca
4818 # else
4819 # ifndef alloca /* predefined by HP cc +Olibcalls */
4820 char *alloca ();
4821 # endif
4822 # endif
4823 # endif
4824 # endif
4825 #endif
4827 int main() {
4828 char *p = (char *) alloca(1);
4829 ; return 0; }
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4832 rm -rf conftest*
4833 ac_cv_func_alloca_works=yes
4834 else
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4837 rm -rf conftest*
4838 ac_cv_func_alloca_works=no
4840 rm -f conftest*
4843 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4844 if test $ac_cv_func_alloca_works = yes; then
4845 cat >> confdefs.h <<\EOF
4846 #define HAVE_ALLOCA 1
4851 if test $ac_cv_func_alloca_works = no; then
4852 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4853 # that cause trouble. Some versions do not even contain alloca or
4854 # contain a buggy version. If you still want to use their alloca,
4855 # use ar to extract alloca.o from them instead of compiling alloca.c.
4856 ALLOCA=alloca.${ac_objext}
4857 cat >> confdefs.h <<\EOF
4858 #define C_ALLOCA 1
4862 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4863 echo "configure:4864: checking whether alloca needs Cray hooks" >&5
4864 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4866 else
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 #if defined(CRAY) && ! defined(CRAY2)
4871 webecray
4872 #else
4873 wenotbecray
4874 #endif
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 egrep "webecray" >/dev/null 2>&1; then
4879 rm -rf conftest*
4880 ac_cv_os_cray=yes
4881 else
4882 rm -rf conftest*
4883 ac_cv_os_cray=no
4885 rm -f conftest*
4889 echo "$ac_t""$ac_cv_os_cray" 1>&6
4890 if test $ac_cv_os_cray = yes; then
4891 for ac_func in _getb67 GETB67 getb67; do
4892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4893 echo "configure:4894: checking for $ac_func" >&5
4894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4896 else
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4900 /* System header to define __stub macros and hopefully few prototypes,
4901 which can conflict with char $ac_func(); below. */
4902 #include <assert.h>
4903 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4906 char $ac_func();
4908 int main() {
4910 /* The GNU C library defines this for functions which it implements
4911 to always fail with ENOSYS. Some functions are actually named
4912 something starting with __ and the normal name is an alias. */
4913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4914 choke me
4915 #else
4916 $ac_func();
4917 #endif
4919 ; return 0; }
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4922 rm -rf conftest*
4923 eval "ac_cv_func_$ac_func=yes"
4924 else
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4927 rm -rf conftest*
4928 eval "ac_cv_func_$ac_func=no"
4930 rm -f conftest*
4933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4935 cat >> confdefs.h <<EOF
4936 #define CRAY_STACKSEG_END $ac_func
4939 break
4940 else
4941 echo "$ac_t""no" 1>&6
4944 done
4947 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4948 echo "configure:4949: checking stack direction for C alloca" >&5
4949 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4951 else
4952 if test "$cross_compiling" = yes; then
4953 ac_cv_c_stack_direction=0
4954 else
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 find_stack_direction ()
4960 static char *addr = 0;
4961 auto char dummy;
4962 if (addr == 0)
4964 addr = &dummy;
4965 return find_stack_direction ();
4967 else
4968 return (&dummy > addr) ? 1 : -1;
4970 main ()
4972 exit (find_stack_direction() < 0);
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4976 then
4977 ac_cv_c_stack_direction=1
4978 else
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 rm -fr conftest*
4982 ac_cv_c_stack_direction=-1
4984 rm -fr conftest*
4989 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4990 cat >> confdefs.h <<EOF
4991 #define STACK_DIRECTION $ac_cv_c_stack_direction
4996 for ac_func in \
4997 _lwp_create \
4998 clone \
4999 getnetbyaddr \
5000 getnetbyname \
5001 getpagesize \
5002 getprotobyname \
5003 getprotobynumber \
5004 getservbyport \
5005 getsockopt \
5006 inet_network \
5007 memmove \
5008 rfork \
5009 select \
5010 sendmsg \
5011 settimeofday \
5012 sigaltstack \
5013 statfs \
5014 strcasecmp \
5015 strerror \
5016 strncasecmp \
5017 tcgetattr \
5018 timegm \
5019 usleep \
5020 vfscanf \
5021 wait4 \
5022 waitpid \
5025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5026 echo "configure:5027: checking for $ac_func" >&5
5027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5029 else
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5033 /* System header to define __stub macros and hopefully few prototypes,
5034 which can conflict with char $ac_func(); below. */
5035 #include <assert.h>
5036 /* Override any gcc2 internal prototype to avoid an error. */
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5039 char $ac_func();
5041 int main() {
5043 /* The GNU C library defines this for functions which it implements
5044 to always fail with ENOSYS. Some functions are actually named
5045 something starting with __ and the normal name is an alias. */
5046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5047 choke me
5048 #else
5049 $ac_func();
5050 #endif
5052 ; return 0; }
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 rm -rf conftest*
5056 eval "ac_cv_func_$ac_func=yes"
5057 else
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060 rm -rf conftest*
5061 eval "ac_cv_func_$ac_func=no"
5063 rm -f conftest*
5066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5067 echo "$ac_t""yes" 1>&6
5068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5069 cat >> confdefs.h <<EOF
5070 #define $ac_tr_func 1
5073 else
5074 echo "$ac_t""no" 1>&6
5076 done
5080 for ac_hdr in \
5081 a.out.h \
5082 a_out.h \
5083 arpa/inet.h \
5084 arpa/nameser.h \
5085 curses.h \
5086 elf.h \
5087 float.h \
5088 libio.h \
5089 link.h \
5090 linux/cdrom.h \
5091 linux/joystick.h \
5092 linux/ucdrom.h \
5093 ncurses.h \
5094 net/if.h \
5095 netinet/in.h \
5096 netinet/tcp.h \
5097 pty.h \
5098 resolv.h \
5099 sched.h \
5100 socket.h \
5101 strings.h \
5102 sys/cdio.h \
5103 sys/errno.h \
5104 sys/file.h \
5105 sys/filio.h \
5106 sys/ipc.h \
5107 sys/lwp.h \
5108 sys/mman.h \
5109 sys/modem.h \
5110 sys/mount.h \
5111 sys/msg.h \
5112 sys/param.h \
5113 sys/signal.h \
5114 sys/shm.h \
5115 sys/socket.h \
5116 sys/sockio.h \
5117 sys/statfs.h \
5118 sys/strtio.h \
5119 sys/syscall.h \
5120 sys/wait.h \
5121 sys/v86.h \
5122 sys/v86intr.h \
5123 sys/vfs.h \
5124 sys/vm86.h \
5125 syscall.h \
5126 ucontext.h \
5127 wctype.h \
5130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5132 echo "configure:5133: checking for $ac_hdr" >&5
5133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5135 else
5136 cat > conftest.$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5139 #include <$ac_hdr>
5141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5142 { (eval echo configure:5143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5144 if test -z "$ac_err"; then
5145 rm -rf conftest*
5146 eval "ac_cv_header_$ac_safe=yes"
5147 else
5148 echo "$ac_err" >&5
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5151 rm -rf conftest*
5152 eval "ac_cv_header_$ac_safe=no"
5154 rm -f conftest*
5156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5157 echo "$ac_t""yes" 1>&6
5158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5159 cat >> confdefs.h <<EOF
5160 #define $ac_tr_hdr 1
5163 else
5164 echo "$ac_t""no" 1>&6
5166 done
5168 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5169 echo "configure:5170: checking whether stat file-mode macros are broken" >&5
5170 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5172 else
5173 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5176 #include <sys/types.h>
5177 #include <sys/stat.h>
5179 #if defined(S_ISBLK) && defined(S_IFDIR)
5180 # if S_ISBLK (S_IFDIR)
5181 You lose.
5182 # endif
5183 #endif
5185 #if defined(S_ISBLK) && defined(S_IFCHR)
5186 # if S_ISBLK (S_IFCHR)
5187 You lose.
5188 # endif
5189 #endif
5191 #if defined(S_ISLNK) && defined(S_IFREG)
5192 # if S_ISLNK (S_IFREG)
5193 You lose.
5194 # endif
5195 #endif
5197 #if defined(S_ISSOCK) && defined(S_IFREG)
5198 # if S_ISSOCK (S_IFREG)
5199 You lose.
5200 # endif
5201 #endif
5204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5205 egrep "You lose" >/dev/null 2>&1; then
5206 rm -rf conftest*
5207 ac_cv_header_stat_broken=yes
5208 else
5209 rm -rf conftest*
5210 ac_cv_header_stat_broken=no
5212 rm -f conftest*
5216 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5217 if test $ac_cv_header_stat_broken = yes; then
5218 cat >> confdefs.h <<\EOF
5219 #define STAT_MACROS_BROKEN 1
5226 echo $ac_n "checking for working const""... $ac_c" 1>&6
5227 echo "configure:5228: checking for working const" >&5
5228 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5230 else
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5235 int main() {
5237 /* Ultrix mips cc rejects this. */
5238 typedef int charset[2]; const charset x = {0,0};
5239 /* SunOS 4.1.1 cc rejects this. */
5240 char const *const *ccp;
5241 char **p;
5242 /* NEC SVR4.0.2 mips cc rejects this. */
5243 struct point {int x, y;};
5244 static struct point const zero = {0,0};
5245 /* AIX XL C 1.02.0.0 rejects this.
5246 It does not let you subtract one const X* pointer from another in an arm
5247 of an if-expression whose if-part is not a constant expression */
5248 const char *g = "string";
5249 ccp = &g + (g ? g-g : 0);
5250 /* HPUX 7.0 cc rejects these. */
5251 ++ccp;
5252 p = (char**) ccp;
5253 ccp = (char const *const *) p;
5254 { /* SCO 3.2v4 cc rejects this. */
5255 char *t;
5256 char const *s = 0 ? (char *) 0 : (char const *) 0;
5258 *t++ = 0;
5260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5261 int x[] = {25, 17};
5262 const int *foo = &x[0];
5263 ++foo;
5265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5266 typedef const int *iptr;
5267 iptr p = 0;
5268 ++p;
5270 { /* AIX XL C 1.02.0.0 rejects this saying
5271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5272 struct s { int j; const int *ap[3]; };
5273 struct s *b; b->j = 5;
5275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5276 const int foo = 10;
5279 ; return 0; }
5281 if { (eval echo configure:5282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5282 rm -rf conftest*
5283 ac_cv_c_const=yes
5284 else
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 rm -rf conftest*
5288 ac_cv_c_const=no
5290 rm -f conftest*
5293 echo "$ac_t""$ac_cv_c_const" 1>&6
5294 if test $ac_cv_c_const = no; then
5295 cat >> confdefs.h <<\EOF
5296 #define const
5301 echo $ac_n "checking for inline""... $ac_c" 1>&6
5302 echo "configure:5303: checking for inline" >&5
5303 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5305 else
5306 ac_cv_c_inline=no
5307 for ac_kw in inline __inline__ __inline; do
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5312 int main() {
5313 } int $ac_kw foo() {
5314 ; return 0; }
5316 if { (eval echo configure:5317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5317 rm -rf conftest*
5318 ac_cv_c_inline=$ac_kw; break
5319 else
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 rm -f conftest*
5324 done
5328 echo "$ac_t""$ac_cv_c_inline" 1>&6
5329 case "$ac_cv_c_inline" in
5330 inline | yes) ;;
5331 no) cat >> confdefs.h <<\EOF
5332 #define inline
5335 *) cat >> confdefs.h <<EOF
5336 #define inline $ac_cv_c_inline
5339 esac
5341 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5342 echo "configure:5343: checking for ANSI C header files" >&5
5343 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5345 else
5346 cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5349 #include <stdlib.h>
5350 #include <stdarg.h>
5351 #include <string.h>
5352 #include <float.h>
5354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5355 { (eval echo configure:5356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5357 if test -z "$ac_err"; then
5358 rm -rf conftest*
5359 ac_cv_header_stdc=yes
5360 else
5361 echo "$ac_err" >&5
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5364 rm -rf conftest*
5365 ac_cv_header_stdc=no
5367 rm -f conftest*
5369 if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 #include <string.h>
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 egrep "memchr" >/dev/null 2>&1; then
5379 else
5380 rm -rf conftest*
5381 ac_cv_header_stdc=no
5383 rm -f conftest*
5387 if test $ac_cv_header_stdc = yes; then
5388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #include <stdlib.h>
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 egrep "free" >/dev/null 2>&1; then
5397 else
5398 rm -rf conftest*
5399 ac_cv_header_stdc=no
5401 rm -f conftest*
5405 if test $ac_cv_header_stdc = yes; then
5406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5407 if test "$cross_compiling" = yes; then
5409 else
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 #include <ctype.h>
5414 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5415 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5417 int main () { int i; for (i = 0; i < 256; i++)
5418 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5419 exit (0); }
5422 if { (eval echo configure:5423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5423 then
5425 else
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 rm -fr conftest*
5429 ac_cv_header_stdc=no
5431 rm -fr conftest*
5437 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5438 if test $ac_cv_header_stdc = yes; then
5439 cat >> confdefs.h <<\EOF
5440 #define STDC_HEADERS 1
5445 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5446 echo "configure:5447: checking for size_t" >&5
5447 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5449 else
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 #include <sys/types.h>
5454 #if STDC_HEADERS
5455 #include <stdlib.h>
5456 #include <stddef.h>
5457 #endif
5459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5460 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5461 rm -rf conftest*
5462 ac_cv_type_size_t=yes
5463 else
5464 rm -rf conftest*
5465 ac_cv_type_size_t=no
5467 rm -f conftest*
5470 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5471 if test $ac_cv_type_size_t = no; then
5472 cat >> confdefs.h <<\EOF
5473 #define size_t unsigned
5478 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5479 echo "configure:5480: checking size of long long" >&5
5480 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5482 else
5483 if test "$cross_compiling" = yes; then
5484 ac_cv_sizeof_long_long=0
5485 else
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 #include <stdio.h>
5490 main()
5492 FILE *f=fopen("conftestval", "w");
5493 if (!f) exit(1);
5494 fprintf(f, "%d\n", sizeof(long long));
5495 exit(0);
5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5499 then
5500 ac_cv_sizeof_long_long=`cat conftestval`
5501 else
5502 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5504 rm -fr conftest*
5505 ac_cv_sizeof_long_long=0
5507 rm -fr conftest*
5511 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5512 cat >> confdefs.h <<EOF
5513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5518 if test "$ac_cv_header_linux_joystick_h" = "yes"
5519 then
5520 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5521 echo "configure:5522: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5522 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5529 #include <sys/ioctl.h>
5530 #include <linux/joystick.h>
5532 struct js_event blub;
5533 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5534 #error "no 2.2 header"
5535 #endif
5537 int main() {
5538 /*empty*/
5539 ; return 0; }
5541 if { (eval echo configure:5542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5542 rm -rf conftest*
5543 wine_cv_linux_joystick_22_api=yes
5544 else
5545 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 rm -rf conftest*
5548 wine_cv_linux_joystick_22_api=no
5550 rm -f conftest*
5554 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5555 if test "$wine_cv_linux_joystick_22_api"
5556 then
5557 cat >> confdefs.h <<\EOF
5558 #define HAVE_LINUX_22_JOYSTICK_API 1
5565 if test "$ac_cv_header_sys_vfs_h" = "yes"
5566 then
5567 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5568 echo "configure:5569: checking "whether sys/vfs.h defines statfs"" >&5
5569 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5571 else
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5576 #include <sys/types.h>
5577 #ifdef HAVE_SYS_PARAM_H
5578 # include <sys/param.h>
5579 #endif
5580 #include <sys/vfs.h>
5582 int main() {
5584 struct statfs stfs;
5586 memset(&stfs,0,sizeof(stfs));
5588 ; return 0; }
5590 if { (eval echo configure:5591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5591 rm -rf conftest*
5592 wine_cv_sys_vfs_has_statfs=yes
5593 else
5594 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5596 rm -rf conftest*
5597 wine_cv_sys_vfs_has_statfs=no
5600 rm -f conftest*
5604 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5605 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5606 then
5607 cat >> confdefs.h <<\EOF
5608 #define STATFS_DEFINED_BY_SYS_VFS 1
5614 if test "$ac_cv_header_sys_statfs_h" = "yes"
5615 then
5616 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5617 echo "configure:5618: checking "whether sys/statfs.h defines statfs"" >&5
5618 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5620 else
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5625 #include <sys/types.h>
5626 #ifdef HAVE_SYS_PARAM_H
5627 # include <sys/param.h>
5628 #endif
5629 #include <sys/statfs.h>
5631 int main() {
5633 struct statfs stfs;
5635 ; return 0; }
5637 if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5638 rm -rf conftest*
5639 wine_cv_sys_statfs_has_statfs=yes
5640 else
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5643 rm -rf conftest*
5644 wine_cv_sys_statfs_has_statfs=no
5647 rm -f conftest*
5651 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5652 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5653 then
5654 cat >> confdefs.h <<\EOF
5655 #define STATFS_DEFINED_BY_SYS_STATFS 1
5661 if test "$ac_cv_header_sys_mount_h" = "yes"
5662 then
5663 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5664 echo "configure:5665: checking "whether sys/mount.h defines statfs"" >&5
5665 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5666 echo $ac_n "(cached) $ac_c" 1>&6
5667 else
5668 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5672 #include <sys/types.h>
5673 #ifdef HAVE_SYS_PARAM_H
5674 # include <sys/param.h>
5675 #endif
5676 #include <sys/mount.h>
5678 int main() {
5680 struct statfs stfs;
5682 ; return 0; }
5684 if { (eval echo configure:5685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5685 rm -rf conftest*
5686 wine_cv_sys_mount_has_statfs=yes
5687 else
5688 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5690 rm -rf conftest*
5691 wine_cv_sys_mount_has_statfs=no
5694 rm -f conftest*
5698 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5699 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5700 then
5701 cat >> confdefs.h <<\EOF
5702 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5709 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5710 echo "configure:5711: checking "for statfs.f_bfree"" >&5
5711 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5713 else
5714 if test "x$statfs_bfree" = "xno"
5715 then
5716 wine_cv_statfs_bfree=no
5717 else
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5722 #include <sys/types.h>
5723 #ifdef HAVE_SYS_PARAM_H
5724 # include <sys/param.h>
5725 #endif
5726 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5727 # include <sys/mount.h>
5728 #else
5729 # ifdef STATFS_DEFINED_BY_SYS_VFS
5730 # include <sys/vfs.h>
5731 # else
5732 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5733 # include <sys/statfs.h>
5734 # endif
5735 # endif
5736 #endif
5738 int main() {
5740 struct statfs stfs;
5742 stfs.f_bfree++;
5744 ; return 0; }
5746 if { (eval echo configure:5747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5747 rm -rf conftest*
5748 wine_cv_statfs_bfree=yes
5749 else
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 rm -rf conftest*
5753 wine_cv_statfs_bfree=no
5756 rm -f conftest*
5760 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5761 if test "$wine_cv_statfs_bfree" = "yes"
5762 then
5763 cat >> confdefs.h <<\EOF
5764 #define STATFS_HAS_BFREE 1
5769 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5770 echo "configure:5771: checking "for statfs.f_bavail"" >&5
5771 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5773 else
5774 if test "x$statfs_bavail" = "xno"
5775 then
5776 wine_cv_statfs_bavail=no
5777 else
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5782 #include <sys/types.h>
5783 #ifdef HAVE_SYS_PARAM_H
5784 # include <sys/param.h>
5785 #endif
5786 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5787 # include <sys/mount.h>
5788 #else
5789 # ifdef STATFS_DEFINED_BY_SYS_VFS
5790 # include <sys/vfs.h>
5791 # else
5792 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5793 # include <sys/statfs.h>
5794 # endif
5795 # endif
5796 #endif
5798 int main() {
5800 struct statfs stfs;
5802 stfs.f_bavail++;
5804 ; return 0; }
5806 if { (eval echo configure:5807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5807 rm -rf conftest*
5808 wine_cv_statfs_bavail=yes
5809 else
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5812 rm -rf conftest*
5813 wine_cv_statfs_bavail=no
5816 rm -f conftest*
5820 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5821 if test "$wine_cv_statfs_bavail" = "yes"
5822 then
5823 cat >> confdefs.h <<\EOF
5824 #define STATFS_HAS_BAVAIL 1
5830 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5831 echo "configure:5832: checking "for working sigaltstack"" >&5
5832 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5834 else
5835 if test "$cross_compiling" = yes; then
5836 ac_cv_c_working_sigaltstack="no"
5838 else
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5843 #include <stdio.h>
5844 #include <time.h> /* <sys/time.h> ? bad magic without end */
5845 #include <sys/types.h>
5846 #include <sys/signal.h>
5847 #ifdef HAVE_SYS_PARAM_H
5848 # include <sys/param.h>
5849 #endif
5850 #ifdef HAVE_SYSCALL_H
5851 # include <syscall.h>
5852 #else
5853 # ifdef HAVE_SYS_SYSCALL_H
5854 # include <sys/syscall.h>
5855 # endif
5856 #endif
5858 unsigned char *xaltstack;
5861 main(int argc,char **argv) {
5862 struct sigaltstack ss;
5864 xaltstack = malloc(16384);
5865 ss.ss_sp = xaltstack;
5866 ss.ss_size = 16384;
5867 ss.ss_flags = 0;
5868 if (sigaltstack(&ss, NULL) < 0) {
5869 /* this catches the glibc case */
5870 perror("sigaltstack");
5871 return (1); /* aka exit(1) aka fail */
5873 /* assume it works. */
5874 return 0; /* OK */
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5879 then
5880 ac_cv_c_working_sigaltstack="yes"
5881 else
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5884 rm -fr conftest*
5885 ac_cv_c_working_sigaltstack="no"
5887 rm -fr conftest*
5892 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5894 if test "$ac_cv_c_working_sigaltstack" = "yes"
5895 then
5896 cat >> confdefs.h <<\EOF
5897 #define HAVE_WORKING_SIGALTSTACK 1
5904 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5905 echo "configure:5906: checking "for msg_accrights in struct msghdr"" >&5
5906 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5907 echo $ac_n "(cached) $ac_c" 1>&6
5908 else
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 #include <sys/types.h>
5913 #include <sys/socket.h>
5914 int main() {
5915 struct msghdr hdr; hdr.msg_accrights=0
5916 ; return 0; }
5918 if { (eval echo configure:5919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5919 rm -rf conftest*
5920 ac_cv_c_msg_accrights="yes"
5921 else
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5924 rm -rf conftest*
5925 ac_cv_c_msg_accrights="no"
5927 rm -f conftest*
5930 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5931 if test "$ac_cv_c_msg_accrights" = "yes"
5932 then
5933 cat >> confdefs.h <<\EOF
5934 #define HAVE_MSGHDR_ACCRIGHTS 1
5940 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
5941 echo "configure:5942: checking "whether we need to define __i386__"" >&5
5942 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5944 else
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5950 #endif
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 egrep "yes" >/dev/null 2>&1; then
5954 rm -rf conftest*
5955 ac_cv_cpp_def_i386="yes"
5956 else
5957 rm -rf conftest*
5958 ac_cv_cpp_def_i386="no"
5960 rm -f conftest*
5964 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5965 if test "$ac_cv_cpp_def_i386" = "yes"
5966 then
5967 CFLAGS="$CFLAGS -D__i386__"
5968 LINTFLAGS="$LINTFLAGS -D__i386__"
5971 GCC_NO_BUILTIN=""
5972 if test "$GCC" = "yes"
5973 then
5974 GCC_NO_BUILTIN="-fno-builtin"
5979 MAKE_RULES=Make.rules
5982 trap '' 1 2 15
5983 cat > confcache <<\EOF
5984 # This file is a shell script that caches the results of configure
5985 # tests run on this system so they can be shared between configure
5986 # scripts and configure runs. It is not useful on other systems.
5987 # If it contains results you don't want to keep, you may remove or edit it.
5989 # By default, configure uses ./config.cache as the cache file,
5990 # creating it if it does not exist already. You can give configure
5991 # the --cache-file=FILE option to use a different cache file; that is
5992 # what configure does when it calls configure scripts in
5993 # subdirectories, so they share the cache.
5994 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5995 # config.status only pays attention to the cache file if you give it the
5996 # --recheck option to rerun configure.
5999 # The following way of writing the cache mishandles newlines in values,
6000 # but we know of no workaround that is simple, portable, and efficient.
6001 # So, don't put newlines in cache variables' values.
6002 # Ultrix sh set writes to stderr and can't be redirected directly,
6003 # and sets the high bit in the cache file unless we assign to the vars.
6004 (set) 2>&1 |
6005 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6006 *ac_space=\ *)
6007 # `set' does not quote correctly, so add quotes (double-quote substitution
6008 # turns \\\\ into \\, and sed turns \\ into \).
6009 sed -n \
6010 -e "s/'/'\\\\''/g" \
6011 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6014 # `set' quotes correctly as required by POSIX, so do not add quotes.
6015 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6017 esac >> confcache
6018 if cmp -s $cache_file confcache; then
6020 else
6021 if test -w $cache_file; then
6022 echo "updating cache $cache_file"
6023 cat confcache > $cache_file
6024 else
6025 echo "not updating unwritable cache $cache_file"
6028 rm -f confcache
6030 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6033 # Let make expand exec_prefix.
6034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6036 # Any assignment to VPATH causes Sun make to only execute
6037 # the first set of double-colon rules, so remove it if not needed.
6038 # If there is a colon in the path, we need to keep it.
6039 if test "x$srcdir" = x.; then
6040 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6043 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6045 DEFS=-DHAVE_CONFIG_H
6047 # Without the "./", some shells look in PATH for config.status.
6048 : ${CONFIG_STATUS=./config.status}
6050 echo creating $CONFIG_STATUS
6051 rm -f $CONFIG_STATUS
6052 cat > $CONFIG_STATUS <<EOF
6053 #! /bin/sh
6054 # Generated automatically by configure.
6055 # Run this file to recreate the current configuration.
6056 # This directory was configured as follows,
6057 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6059 # $0 $ac_configure_args
6061 # Compiler output produced by configure, useful for debugging
6062 # configure, is in ./config.log if it exists.
6064 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6065 for ac_option
6067 case "\$ac_option" in
6068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6069 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6070 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6071 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6072 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6073 exit 0 ;;
6074 -help | --help | --hel | --he | --h)
6075 echo "\$ac_cs_usage"; exit 0 ;;
6076 *) echo "\$ac_cs_usage"; exit 1 ;;
6077 esac
6078 done
6080 ac_given_srcdir=$srcdir
6081 ac_given_INSTALL="$INSTALL"
6083 trap 'rm -fr `echo "
6084 Make.rules
6085 Makefile
6086 console/Makefile
6087 controls/Makefile
6088 debugger/Makefile
6089 dlls/Makefile
6090 dlls/advapi32/Makefile
6091 dlls/avifil32/Makefile
6092 dlls/comctl32/Makefile
6093 dlls/commdlg/Makefile
6094 dlls/crtdll/Makefile
6095 dlls/dciman32/Makefile
6096 dlls/display/Makefile
6097 dlls/dplayx/Makefile
6098 dlls/dsound/Makefile
6099 dlls/icmp/Makefile
6100 dlls/imagehlp/Makefile
6101 dlls/imm32/Makefile
6102 dlls/lzexpand/Makefile
6103 dlls/mouse/Makefile
6104 dlls/mpr/Makefile
6105 dlls/msacm/Makefile
6106 dlls/msacm32/Makefile
6107 dlls/msnet32/Makefile
6108 dlls/msvideo/Makefile
6109 dlls/ntdll/Makefile
6110 dlls/odbc32/Makefile
6111 dlls/ole32/Makefile
6112 dlls/oleaut32/Makefile
6113 dlls/olecli/Makefile
6114 dlls/oledlg/Makefile
6115 dlls/olesvr/Makefile
6116 dlls/psapi/Makefile
6117 dlls/rasapi32/Makefile
6118 dlls/setupx/Makefile
6119 dlls/shell32/Makefile
6120 dlls/sound/Makefile
6121 dlls/stress/Makefile
6122 dlls/tapi32/Makefile
6123 dlls/version/Makefile
6124 dlls/win32s/Makefile
6125 dlls/win87em/Makefile
6126 dlls/winaspi/Makefile
6127 dlls/windebug/Makefile
6128 dlls/wing/Makefile
6129 dlls/winmm/Makefile
6130 dlls/winmm/mcianim/Makefile
6131 dlls/winmm/mciavi/Makefile
6132 dlls/winmm/mcicda/Makefile
6133 dlls/winmm/mciseq/Makefile
6134 dlls/winmm/mciwave/Makefile
6135 dlls/winmm/midimap/Makefile
6136 dlls/winmm/wavemap/Makefile
6137 dlls/winmm/wineoss/Makefile
6138 dlls/winsock/Makefile
6139 dlls/winspool/Makefile
6140 dlls/wnaspi32/Makefile
6141 documentation/Makefile
6142 documentation/wine.conf.man
6143 documentation/wine.man
6144 files/Makefile
6145 graphics/Makefile
6146 graphics/enhmetafiledrv/Makefile
6147 graphics/metafiledrv/Makefile
6148 graphics/psdrv/Makefile
6149 graphics/ttydrv/Makefile
6150 graphics/win16drv/Makefile
6151 graphics/x11drv/Makefile
6152 if1632/Makefile
6153 include/Makefile
6154 library/Makefile
6155 libtest/Makefile
6156 loader/Makefile
6157 loader/ne/Makefile
6158 loader/dos/Makefile
6159 memory/Makefile
6160 misc/Makefile
6161 miscemu/Makefile
6162 msdos/Makefile
6163 objects/Makefile
6164 ole/Makefile
6165 programs/Makefile
6166 programs/clock/Makefile
6167 programs/cmdlgtst/Makefile
6168 programs/control/Makefile
6169 programs/avitools/Makefile
6170 programs/osversioncheck/Makefile
6171 programs/notepad/Makefile
6172 programs/progman/Makefile
6173 programs/regtest/Makefile
6174 programs/regapi/Makefile
6175 programs/view/Makefile
6176 programs/wcmd/Makefile
6177 programs/winhelp/Makefile
6178 programs/winver/Makefile
6179 rc/Makefile
6180 relay32/Makefile
6181 resources/Makefile
6182 scheduler/Makefile
6183 server/Makefile
6184 tools/Makefile
6185 tools/wrc/Makefile
6186 tsx11/Makefile
6187 win32/Makefile
6188 windows/Makefile
6189 windows/ttydrv/Makefile
6190 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6192 cat >> $CONFIG_STATUS <<EOF
6194 # Protect against being on the right side of a sed subst in config.status.
6195 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6196 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6197 $ac_vpsub
6198 $extrasub
6199 s%@SHELL@%$SHELL%g
6200 s%@CFLAGS@%$CFLAGS%g
6201 s%@CPPFLAGS@%$CPPFLAGS%g
6202 s%@CXXFLAGS@%$CXXFLAGS%g
6203 s%@FFLAGS@%$FFLAGS%g
6204 s%@DEFS@%$DEFS%g
6205 s%@LDFLAGS@%$LDFLAGS%g
6206 s%@LIBS@%$LIBS%g
6207 s%@exec_prefix@%$exec_prefix%g
6208 s%@prefix@%$prefix%g
6209 s%@program_transform_name@%$program_transform_name%g
6210 s%@bindir@%$bindir%g
6211 s%@sbindir@%$sbindir%g
6212 s%@libexecdir@%$libexecdir%g
6213 s%@datadir@%$datadir%g
6214 s%@sysconfdir@%$sysconfdir%g
6215 s%@sharedstatedir@%$sharedstatedir%g
6216 s%@localstatedir@%$localstatedir%g
6217 s%@libdir@%$libdir%g
6218 s%@includedir@%$includedir%g
6219 s%@oldincludedir@%$oldincludedir%g
6220 s%@infodir@%$infodir%g
6221 s%@mandir@%$mandir%g
6222 s%@PROGEXT@%$PROGEXT%g
6223 s%@MAIN_TARGET@%$MAIN_TARGET%g
6224 s%@OPTIONS@%$OPTIONS%g
6225 s%@SET_MAKE@%$SET_MAKE%g
6226 s%@CC@%$CC%g
6227 s%@CPP@%$CPP%g
6228 s%@X_CFLAGS@%$X_CFLAGS%g
6229 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6230 s%@X_LIBS@%$X_LIBS%g
6231 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6232 s%@YACC@%$YACC%g
6233 s%@LEX@%$LEX%g
6234 s%@LEXLIB@%$LEXLIB%g
6235 s%@RANLIB@%$RANLIB%g
6236 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6237 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6238 s%@INSTALL_DATA@%$INSTALL_DATA%g
6239 s%@LN_S@%$LN_S%g
6240 s%@C2MAN@%$C2MAN%g
6241 s%@LDCONFIG@%$LDCONFIG%g
6242 s%@LINT@%$LINT%g
6243 s%@LINTFLAGS@%$LINTFLAGS%g
6244 s%@XLIB@%$XLIB%g
6245 s%@LIB_TARGET@%$LIB_TARGET%g
6246 s%@LIB_TYPE@%$LIB_TYPE%g
6247 s%@ALT_LINK@%$ALT_LINK%g
6248 s%@BUILDFLAGS@%$BUILDFLAGS%g
6249 s%@DLLFLAGS@%$DLLFLAGS%g
6250 s%@LDSHARED@%$LDSHARED%g
6251 s%@LIBEXT@%$LIBEXT%g
6252 s%@ALLOCA@%$ALLOCA%g
6253 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6254 /@MAKE_RULES@/r $MAKE_RULES
6255 s%@MAKE_RULES@%%g
6257 CEOF
6260 cat >> $CONFIG_STATUS <<\EOF
6262 # Split the substitutions into bite-sized pieces for seds with
6263 # small command number limits, like on Digital OSF/1 and HP-UX.
6264 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6265 ac_file=1 # Number of current file.
6266 ac_beg=1 # First line for current file.
6267 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6268 ac_more_lines=:
6269 ac_sed_cmds=""
6270 while $ac_more_lines; do
6271 if test $ac_beg -gt 1; then
6272 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6273 else
6274 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6276 if test ! -s conftest.s$ac_file; then
6277 ac_more_lines=false
6278 rm -f conftest.s$ac_file
6279 else
6280 if test -z "$ac_sed_cmds"; then
6281 ac_sed_cmds="sed -f conftest.s$ac_file"
6282 else
6283 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6285 ac_file=`expr $ac_file + 1`
6286 ac_beg=$ac_end
6287 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6289 done
6290 if test -z "$ac_sed_cmds"; then
6291 ac_sed_cmds=cat
6295 cat >> $CONFIG_STATUS <<EOF
6297 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6298 Makefile
6299 console/Makefile
6300 controls/Makefile
6301 debugger/Makefile
6302 dlls/Makefile
6303 dlls/advapi32/Makefile
6304 dlls/avifil32/Makefile
6305 dlls/comctl32/Makefile
6306 dlls/commdlg/Makefile
6307 dlls/crtdll/Makefile
6308 dlls/dciman32/Makefile
6309 dlls/display/Makefile
6310 dlls/dplayx/Makefile
6311 dlls/dsound/Makefile
6312 dlls/icmp/Makefile
6313 dlls/imagehlp/Makefile
6314 dlls/imm32/Makefile
6315 dlls/lzexpand/Makefile
6316 dlls/mouse/Makefile
6317 dlls/mpr/Makefile
6318 dlls/msacm/Makefile
6319 dlls/msacm32/Makefile
6320 dlls/msnet32/Makefile
6321 dlls/msvideo/Makefile
6322 dlls/ntdll/Makefile
6323 dlls/odbc32/Makefile
6324 dlls/ole32/Makefile
6325 dlls/oleaut32/Makefile
6326 dlls/olecli/Makefile
6327 dlls/oledlg/Makefile
6328 dlls/olesvr/Makefile
6329 dlls/psapi/Makefile
6330 dlls/rasapi32/Makefile
6331 dlls/setupx/Makefile
6332 dlls/shell32/Makefile
6333 dlls/sound/Makefile
6334 dlls/stress/Makefile
6335 dlls/tapi32/Makefile
6336 dlls/version/Makefile
6337 dlls/win32s/Makefile
6338 dlls/win87em/Makefile
6339 dlls/winaspi/Makefile
6340 dlls/windebug/Makefile
6341 dlls/wing/Makefile
6342 dlls/winmm/Makefile
6343 dlls/winmm/mcianim/Makefile
6344 dlls/winmm/mciavi/Makefile
6345 dlls/winmm/mcicda/Makefile
6346 dlls/winmm/mciseq/Makefile
6347 dlls/winmm/mciwave/Makefile
6348 dlls/winmm/midimap/Makefile
6349 dlls/winmm/wavemap/Makefile
6350 dlls/winmm/wineoss/Makefile
6351 dlls/winsock/Makefile
6352 dlls/winspool/Makefile
6353 dlls/wnaspi32/Makefile
6354 documentation/Makefile
6355 documentation/wine.conf.man
6356 documentation/wine.man
6357 files/Makefile
6358 graphics/Makefile
6359 graphics/enhmetafiledrv/Makefile
6360 graphics/metafiledrv/Makefile
6361 graphics/psdrv/Makefile
6362 graphics/ttydrv/Makefile
6363 graphics/win16drv/Makefile
6364 graphics/x11drv/Makefile
6365 if1632/Makefile
6366 include/Makefile
6367 library/Makefile
6368 libtest/Makefile
6369 loader/Makefile
6370 loader/ne/Makefile
6371 loader/dos/Makefile
6372 memory/Makefile
6373 misc/Makefile
6374 miscemu/Makefile
6375 msdos/Makefile
6376 objects/Makefile
6377 ole/Makefile
6378 programs/Makefile
6379 programs/clock/Makefile
6380 programs/cmdlgtst/Makefile
6381 programs/control/Makefile
6382 programs/avitools/Makefile
6383 programs/osversioncheck/Makefile
6384 programs/notepad/Makefile
6385 programs/progman/Makefile
6386 programs/regtest/Makefile
6387 programs/regapi/Makefile
6388 programs/view/Makefile
6389 programs/wcmd/Makefile
6390 programs/winhelp/Makefile
6391 programs/winver/Makefile
6392 rc/Makefile
6393 relay32/Makefile
6394 resources/Makefile
6395 scheduler/Makefile
6396 server/Makefile
6397 tools/Makefile
6398 tools/wrc/Makefile
6399 tsx11/Makefile
6400 win32/Makefile
6401 windows/Makefile
6402 windows/ttydrv/Makefile
6403 windows/x11drv/Makefile "}
6405 cat >> $CONFIG_STATUS <<\EOF
6406 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6407 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6408 case "$ac_file" in
6409 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6410 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6411 *) ac_file_in="${ac_file}.in" ;;
6412 esac
6414 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6416 # Remove last slash and all that follows it. Not all systems have dirname.
6417 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6418 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6419 # The file is in a subdirectory.
6420 test ! -d "$ac_dir" && mkdir "$ac_dir"
6421 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6422 # A "../" for each directory in $ac_dir_suffix.
6423 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6424 else
6425 ac_dir_suffix= ac_dots=
6428 case "$ac_given_srcdir" in
6429 .) srcdir=.
6430 if test -z "$ac_dots"; then top_srcdir=.
6431 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6432 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6433 *) # Relative path.
6434 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6435 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6436 esac
6438 case "$ac_given_INSTALL" in
6439 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6440 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6441 esac
6443 echo creating "$ac_file"
6444 rm -f "$ac_file"
6445 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6446 case "$ac_file" in
6447 *Makefile*) ac_comsub="1i\\
6448 # $configure_input" ;;
6449 *) ac_comsub= ;;
6450 esac
6452 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6453 sed -e "$ac_comsub
6454 s%@configure_input@%$configure_input%g
6455 s%@srcdir@%$srcdir%g
6456 s%@top_srcdir@%$top_srcdir%g
6457 s%@INSTALL@%$INSTALL%g
6458 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6459 fi; done
6460 rm -f conftest.s*
6462 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6463 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6465 # ac_d sets the value in "#define NAME VALUE" lines.
6466 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6467 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6468 ac_dC='\3'
6469 ac_dD='%g'
6470 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6471 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6472 ac_uB='\([ ]\)%\1#\2define\3'
6473 ac_uC=' '
6474 ac_uD='\4%g'
6475 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6476 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6477 ac_eB='$%\1#\2define\3'
6478 ac_eC=' '
6479 ac_eD='%g'
6481 if test "${CONFIG_HEADERS+set}" != set; then
6483 cat >> $CONFIG_STATUS <<EOF
6484 CONFIG_HEADERS="include/config.h"
6486 cat >> $CONFIG_STATUS <<\EOF
6488 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6490 case "$ac_file" in
6491 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6492 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6493 *) ac_file_in="${ac_file}.in" ;;
6494 esac
6496 echo creating $ac_file
6498 rm -f conftest.frag conftest.in conftest.out
6499 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6500 cat $ac_file_inputs > conftest.in
6504 # Transform confdefs.h into a sed script conftest.vals that substitutes
6505 # the proper values into config.h.in to produce config.h. And first:
6506 # Protect against being on the right side of a sed subst in config.status.
6507 # Protect against being in an unquoted here document in config.status.
6508 rm -f conftest.vals
6509 cat > conftest.hdr <<\EOF
6510 s/[\\&%]/\\&/g
6511 s%[\\$`]%\\&%g
6512 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6513 s%ac_d%ac_u%gp
6514 s%ac_u%ac_e%gp
6516 sed -n -f conftest.hdr confdefs.h > conftest.vals
6517 rm -f conftest.hdr
6519 # This sed command replaces #undef with comments. This is necessary, for
6520 # example, in the case of _POSIX_SOURCE, which is predefined and required
6521 # on some systems where configure will not decide to define it.
6522 cat >> conftest.vals <<\EOF
6523 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6526 # Break up conftest.vals because some shells have a limit on
6527 # the size of here documents, and old seds have small limits too.
6529 rm -f conftest.tail
6530 while :
6532 ac_lines=`grep -c . conftest.vals`
6533 # grep -c gives empty output for an empty file on some AIX systems.
6534 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6535 # Write a limited-size here document to conftest.frag.
6536 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6537 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6538 echo 'CEOF
6539 sed -f conftest.frag conftest.in > conftest.out
6540 rm -f conftest.in
6541 mv conftest.out conftest.in
6542 ' >> $CONFIG_STATUS
6543 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6544 rm -f conftest.vals
6545 mv conftest.tail conftest.vals
6546 done
6547 rm -f conftest.vals
6549 cat >> $CONFIG_STATUS <<\EOF
6550 rm -f conftest.frag conftest.h
6551 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6552 cat conftest.in >> conftest.h
6553 rm -f conftest.in
6554 if cmp -s $ac_file conftest.h 2>/dev/null; then
6555 echo "$ac_file is unchanged"
6556 rm -f conftest.h
6557 else
6558 # Remove last slash and all that follows it. Not all systems have dirname.
6559 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6560 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6561 # The file is in a subdirectory.
6562 test ! -d "$ac_dir" && mkdir "$ac_dir"
6564 rm -f $ac_file
6565 mv conftest.h $ac_file
6567 fi; done
6570 cat >> $CONFIG_STATUS <<EOF
6573 cat >> $CONFIG_STATUS <<\EOF
6575 exit 0
6577 chmod +x $CONFIG_STATUS
6578 rm -fr confdefs* $ac_clean_files
6579 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6582 if test "$have_x" = "no"
6583 then
6584 echo
6585 echo "*** Warning: X development files not found. Wine will be built without"
6586 echo "*** X support, which currently does not work, and would probably not be"
6587 echo "*** what you want anyway. You will need to install devel packages of"
6588 echo "*** Xlib/Xfree86 and Xpm at the very least."
6589 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6590 then
6591 echo
6592 echo "*** Warning: Xpm development files not found. Wine will be built without"
6593 echo "*** Xpm support, which currently does not work. You will need to install"
6594 echo "*** devel packages of Xpm."
6597 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6598 then
6599 echo
6600 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6601 echo "*** terminal resize support. Consider upgrading ncurses."
6604 if test "$wine_cv_libc_reentrant" = "no"
6605 then
6606 echo
6607 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6608 echo "*** thread support. Consider upgrading libc to a more recent"
6609 echo "*** reentrant version of libc."
6612 if test "$wine_cv_mesa_version_OK" = "no"
6613 then
6614 echo
6615 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6616 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6619 echo
6620 echo "Configure finished. Do 'make depend && make' to compile Wine."
6621 echo