Added configure check for sys/reg.h.
[wine.git] / configure
blobc0dd6fb3c0d2ce839b0663c0491bcf531abea521
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 (Solaris) dll""... $ac_c" 1>&6
4349 echo "configure:4350: checking whether we can build a UnixWare (Solaris) 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,-h,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="-L\$(TOPOBJDIR) -lwine"
4434 if test "$LIB_TYPE" = "dll"; then
4435 LIB_TARGET="libwine.so"
4436 BUILDFLAGS="-pic"
4437 DLLFLAGS="-fPIC"
4438 LIBEXT="so"
4439 else
4440 LIB_TARGET="libwine.a"
4441 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4442 echo "configure:4443: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4443 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446 saved_cflags=$CFLAGS
4447 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4452 int main() {
4453 return 1
4454 ; return 0; }
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4457 rm -rf conftest*
4458 ac_cv_c_whole_archive="yes"
4459 else
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4462 rm -rf conftest*
4463 ac_cv_c_whole_archive="no"
4465 rm -f conftest*
4466 CFLAGS=$saved_cflags
4470 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4471 if test "$ac_cv_c_whole_archive" = "yes"
4472 then
4473 ALT_LINK="-Wl,--whole-archive -L\$(TOPOBJDIR) -lwine -Wl,--no-whole-archive"
4474 else
4475 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4476 echo "configure:4477: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4477 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4479 else
4480 saved_cflags=$CFLAGS
4481 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4486 int main() {
4487 return 1
4488 ; return 0; }
4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4491 rm -rf conftest*
4492 ac_cv_c_allextract="yes"
4493 else
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 rm -rf conftest*
4497 ac_cv_c_allextract="no"
4499 rm -f conftest*
4500 CFLAGS=$saved_cflags
4504 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4505 if test "$ac_cv_c_allextract" = "yes"
4506 then
4507 ALT_LINK="-Wl,-z,allextract -L\$(TOPOBJDIR) -lwine -Wl,-z,defaultextract"
4522 wine_cv_libc_reentrant=no
4523 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4524 echo "configure:4525: checking "for reentrant libc: __errno_location"" >&5
4525 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4527 else
4528 if test "$cross_compiling" = yes; then
4529 wine_cv_libc_r__errno_location=yes
4530 else
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 int myerrno = 0;
4535 char buf[256];
4536 int *__errno_location(){return &myerrno;}
4537 main(){connect(0,buf,255); exit(!myerrno);}
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4540 then
4541 wine_cv_libc_r__errno_location=yes
4542 else
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 rm -fr conftest*
4546 wine_cv_libc_r__errno_location=no
4548 rm -fr conftest*
4554 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4555 if test "$wine_cv_libc_r__errno_location" = "yes"
4556 then
4557 cat >> confdefs.h <<\EOF
4558 #define HAVE__ERRNO_LOCATION 1
4561 wine_cv_libc_reentrant=__errno_location
4563 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4564 echo "configure:4565: checking "for reentrant libc: __error"" >&5
4565 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4567 else
4568 if test "$cross_compiling" = yes; then
4569 wine_cv_libc_r__error=yes
4570 else
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 int myerrno = 0;
4575 char buf[256];
4576 int *__error(){return &myerrno;}
4577 main(){connect(0,buf,255); exit(!myerrno);}
4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4580 then
4581 wine_cv_libc_r__error=yes
4582 else
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 rm -fr conftest*
4586 wine_cv_libc_r__error=no
4588 rm -fr conftest*
4594 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4595 if test "$wine_cv_libc_r__error" = "yes"
4596 then
4597 cat >> confdefs.h <<\EOF
4598 #define HAVE__ERROR 1
4601 wine_cv_libc_reentrant=__error
4603 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4604 echo "configure:4605: checking "for reentrant libc: ___errno"" >&5
4605 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4607 else
4608 if test "$cross_compiling" = yes; then
4609 wine_cv_libc_r___errno=yes
4610 else
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 int myerrno = 0;
4615 char buf[256];
4616 int *___errno(){return &myerrno;}
4617 main(){connect(0,buf,255); exit(!myerrno);}
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4620 then
4621 wine_cv_libc_r___errno=yes
4622 else
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 rm -fr conftest*
4626 wine_cv_libc_r___errno=no
4628 rm -fr conftest*
4634 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4635 if test "$wine_cv_libc_r___errno" = "yes"
4636 then
4637 cat >> confdefs.h <<\EOF
4638 #define HAVE___ERRNO 1
4641 wine_cv_libc_reentrant=___errno
4643 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4644 echo "configure:4645: checking "for reentrant libc: __thr_errno"" >&5
4645 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4647 else
4648 if test "$cross_compiling" = yes; then
4649 wine_cv_libc_r__thr_errno=yes
4650 else
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 int myerrno = 0;
4655 char buf[256];
4656 int *__thr_errno(){return &myerrno;}
4657 main(){connect(0,buf,255); exit(!myerrno);}
4659 if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4660 then
4661 wine_cv_libc_r__thr_errno=yes
4662 else
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 rm -fr conftest*
4666 wine_cv_libc_r__thr_errno=no
4668 rm -fr conftest*
4674 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4675 if test "$wine_cv_libc_r__thr_errno" = "yes"
4676 then
4677 cat >> confdefs.h <<\EOF
4678 #define HAVE__THR_ERRNO 1
4681 wine_cv_libc_reentrant=__thr_errno
4683 if test "$wine_cv_libc_reentrant" = "no"
4684 then
4685 cat >> confdefs.h <<\EOF
4686 #define NO_REENTRANT_LIBC 1
4692 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4693 then
4694 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4695 echo "configure:4696: checking "for reentrant X libraries"" >&5
4696 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4698 else
4699 if test "x$with_reentrant_x" = "xno"
4700 then
4701 wine_cv_x_reentrant=no
4702 else
4703 libX11_check=none
4704 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4705 if test -r $dir/libX11.so; then
4706 libX11_check="-D $dir/libX11.so"
4707 break 1
4709 if test -r $dir/libX11.a; then
4710 libX11_check="$dir/libX11.a"
4711 break 1
4713 done
4714 if test "$libX11_check" != "none"; then
4715 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4716 then
4717 wine_cv_x_reentrant=yes
4718 else
4719 wine_cv_x_reentrant=no
4721 else
4722 wine_cv_x_reentrant=unknown
4727 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4728 else
4729 wine_cv_x_reentrant=no
4731 if test "$wine_cv_x_reentrant" = "no"
4732 then
4733 cat >> confdefs.h <<\EOF
4734 #define NO_REENTRANT_X11 1
4740 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4741 echo "configure:4742: checking whether byte ordering is bigendian" >&5
4742 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4744 else
4745 ac_cv_c_bigendian=unknown
4746 # See if sys/param.h defines the BYTE_ORDER macro.
4747 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 #include <sys/types.h>
4751 #include <sys/param.h>
4752 int main() {
4754 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4755 bogus endian macros
4756 #endif
4757 ; return 0; }
4759 if { (eval echo configure:4760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 rm -rf conftest*
4761 # It does; now see whether it defined to BIG_ENDIAN or not.
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <sys/types.h>
4766 #include <sys/param.h>
4767 int main() {
4769 #if BYTE_ORDER != BIG_ENDIAN
4770 not big endian
4771 #endif
4772 ; return 0; }
4774 if { (eval echo configure:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4775 rm -rf conftest*
4776 ac_cv_c_bigendian=yes
4777 else
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4780 rm -rf conftest*
4781 ac_cv_c_bigendian=no
4783 rm -f conftest*
4784 else
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 rm -f conftest*
4789 if test $ac_cv_c_bigendian = unknown; then
4790 if test "$cross_compiling" = yes; then
4791 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4792 else
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 main () {
4797 /* Are we little or big endian? From Harbison&Steele. */
4798 union
4800 long l;
4801 char c[sizeof (long)];
4802 } u;
4803 u.l = 1;
4804 exit (u.c[sizeof (long) - 1] == 1);
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4808 then
4809 ac_cv_c_bigendian=no
4810 else
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 rm -fr conftest*
4814 ac_cv_c_bigendian=yes
4816 rm -fr conftest*
4822 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4823 if test $ac_cv_c_bigendian = yes; then
4824 cat >> confdefs.h <<\EOF
4825 #define WORDS_BIGENDIAN 1
4832 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4833 # for constant arguments. Useless!
4834 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4835 echo "configure:4836: checking for working alloca.h" >&5
4836 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4838 else
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 #include <alloca.h>
4843 int main() {
4844 void *p = alloca(2 * sizeof(int));
4845 ; return 0; }
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848 rm -rf conftest*
4849 ac_cv_header_alloca_h=yes
4850 else
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 rm -rf conftest*
4854 ac_cv_header_alloca_h=no
4856 rm -f conftest*
4859 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4860 if test $ac_cv_header_alloca_h = yes; then
4861 cat >> confdefs.h <<\EOF
4862 #define HAVE_ALLOCA_H 1
4867 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4868 echo "configure:4869: checking for alloca" >&5
4869 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4871 else
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4876 #ifdef __GNUC__
4877 # define alloca __builtin_alloca
4878 #else
4879 # ifdef _MSC_VER
4880 # include <malloc.h>
4881 # define alloca _alloca
4882 # else
4883 # if HAVE_ALLOCA_H
4884 # include <alloca.h>
4885 # else
4886 # ifdef _AIX
4887 #pragma alloca
4888 # else
4889 # ifndef alloca /* predefined by HP cc +Olibcalls */
4890 char *alloca ();
4891 # endif
4892 # endif
4893 # endif
4894 # endif
4895 #endif
4897 int main() {
4898 char *p = (char *) alloca(1);
4899 ; return 0; }
4901 if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 rm -rf conftest*
4903 ac_cv_func_alloca_works=yes
4904 else
4905 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 rm -rf conftest*
4908 ac_cv_func_alloca_works=no
4910 rm -f conftest*
4913 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4914 if test $ac_cv_func_alloca_works = yes; then
4915 cat >> confdefs.h <<\EOF
4916 #define HAVE_ALLOCA 1
4921 if test $ac_cv_func_alloca_works = no; then
4922 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4923 # that cause trouble. Some versions do not even contain alloca or
4924 # contain a buggy version. If you still want to use their alloca,
4925 # use ar to extract alloca.o from them instead of compiling alloca.c.
4926 ALLOCA=alloca.${ac_objext}
4927 cat >> confdefs.h <<\EOF
4928 #define C_ALLOCA 1
4932 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4933 echo "configure:4934: checking whether alloca needs Cray hooks" >&5
4934 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4936 else
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 #if defined(CRAY) && ! defined(CRAY2)
4941 webecray
4942 #else
4943 wenotbecray
4944 #endif
4947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4948 egrep "webecray" >/dev/null 2>&1; then
4949 rm -rf conftest*
4950 ac_cv_os_cray=yes
4951 else
4952 rm -rf conftest*
4953 ac_cv_os_cray=no
4955 rm -f conftest*
4959 echo "$ac_t""$ac_cv_os_cray" 1>&6
4960 if test $ac_cv_os_cray = yes; then
4961 for ac_func in _getb67 GETB67 getb67; do
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4966 else
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4972 #include <assert.h>
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4976 char $ac_func();
4978 int main() {
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4984 choke me
4985 #else
4986 $ac_func();
4987 #endif
4989 ; return 0; }
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4992 rm -rf conftest*
4993 eval "ac_cv_func_$ac_func=yes"
4994 else
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4997 rm -rf conftest*
4998 eval "ac_cv_func_$ac_func=no"
5000 rm -f conftest*
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 cat >> confdefs.h <<EOF
5006 #define CRAY_STACKSEG_END $ac_func
5009 break
5010 else
5011 echo "$ac_t""no" 1>&6
5014 done
5017 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5018 echo "configure:5019: checking stack direction for C alloca" >&5
5019 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5021 else
5022 if test "$cross_compiling" = yes; then
5023 ac_cv_c_stack_direction=0
5024 else
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 find_stack_direction ()
5030 static char *addr = 0;
5031 auto char dummy;
5032 if (addr == 0)
5034 addr = &dummy;
5035 return find_stack_direction ();
5037 else
5038 return (&dummy > addr) ? 1 : -1;
5040 main ()
5042 exit (find_stack_direction() < 0);
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5046 then
5047 ac_cv_c_stack_direction=1
5048 else
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5051 rm -fr conftest*
5052 ac_cv_c_stack_direction=-1
5054 rm -fr conftest*
5059 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5060 cat >> confdefs.h <<EOF
5061 #define STACK_DIRECTION $ac_cv_c_stack_direction
5066 for ac_func in \
5067 _lwp_create \
5068 clone \
5069 getnetbyaddr \
5070 getnetbyname \
5071 getpagesize \
5072 getprotobyname \
5073 getprotobynumber \
5074 getservbyport \
5075 getsockopt \
5076 inet_network \
5077 memmove \
5078 rfork \
5079 select \
5080 sendmsg \
5081 settimeofday \
5082 sigaltstack \
5083 statfs \
5084 strcasecmp \
5085 strerror \
5086 strncasecmp \
5087 tcgetattr \
5088 timegm \
5089 usleep \
5090 vfscanf \
5091 wait4 \
5092 waitpid \
5095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_func" >&5
5097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char $ac_func(); below. */
5105 #include <assert.h>
5106 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */
5109 char $ac_func();
5111 int main() {
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5117 choke me
5118 #else
5119 $ac_func();
5120 #endif
5122 ; return 0; }
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 rm -rf conftest*
5126 eval "ac_cv_func_$ac_func=yes"
5127 else
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5130 rm -rf conftest*
5131 eval "ac_cv_func_$ac_func=no"
5133 rm -f conftest*
5136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5139 cat >> confdefs.h <<EOF
5140 #define $ac_tr_func 1
5143 else
5144 echo "$ac_t""no" 1>&6
5146 done
5150 for ac_hdr in \
5151 a.out.h \
5152 a_out.h \
5153 arpa/inet.h \
5154 arpa/nameser.h \
5155 curses.h \
5156 elf.h \
5157 float.h \
5158 libio.h \
5159 link.h \
5160 linux/cdrom.h \
5161 linux/joystick.h \
5162 linux/ucdrom.h \
5163 ncurses.h \
5164 net/if.h \
5165 netinet/in.h \
5166 netinet/tcp.h \
5167 pty.h \
5168 resolv.h \
5169 sched.h \
5170 socket.h \
5171 strings.h \
5172 sys/cdio.h \
5173 sys/errno.h \
5174 sys/file.h \
5175 sys/filio.h \
5176 sys/ipc.h \
5177 sys/lwp.h \
5178 sys/mman.h \
5179 sys/modem.h \
5180 sys/mount.h \
5181 sys/msg.h \
5182 sys/param.h \
5183 sys/reg.h \
5184 sys/signal.h \
5185 sys/shm.h \
5186 sys/socket.h \
5187 sys/sockio.h \
5188 sys/statfs.h \
5189 sys/strtio.h \
5190 sys/syscall.h \
5191 sys/wait.h \
5192 sys/v86.h \
5193 sys/v86intr.h \
5194 sys/vfs.h \
5195 sys/vm86.h \
5196 syscall.h \
5197 ucontext.h \
5198 wctype.h \
5201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_hdr" >&5
5204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5206 else
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 #include <$ac_hdr>
5212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5213 { (eval echo configure:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5215 if test -z "$ac_err"; then
5216 rm -rf conftest*
5217 eval "ac_cv_header_$ac_safe=yes"
5218 else
5219 echo "$ac_err" >&5
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 rm -rf conftest*
5223 eval "ac_cv_header_$ac_safe=no"
5225 rm -f conftest*
5227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5230 cat >> confdefs.h <<EOF
5231 #define $ac_tr_hdr 1
5234 else
5235 echo "$ac_t""no" 1>&6
5237 done
5239 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5240 echo "configure:5241: checking whether stat file-mode macros are broken" >&5
5241 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5243 else
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 #include <sys/types.h>
5248 #include <sys/stat.h>
5250 #if defined(S_ISBLK) && defined(S_IFDIR)
5251 # if S_ISBLK (S_IFDIR)
5252 You lose.
5253 # endif
5254 #endif
5256 #if defined(S_ISBLK) && defined(S_IFCHR)
5257 # if S_ISBLK (S_IFCHR)
5258 You lose.
5259 # endif
5260 #endif
5262 #if defined(S_ISLNK) && defined(S_IFREG)
5263 # if S_ISLNK (S_IFREG)
5264 You lose.
5265 # endif
5266 #endif
5268 #if defined(S_ISSOCK) && defined(S_IFREG)
5269 # if S_ISSOCK (S_IFREG)
5270 You lose.
5271 # endif
5272 #endif
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 egrep "You lose" >/dev/null 2>&1; then
5277 rm -rf conftest*
5278 ac_cv_header_stat_broken=yes
5279 else
5280 rm -rf conftest*
5281 ac_cv_header_stat_broken=no
5283 rm -f conftest*
5287 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5288 if test $ac_cv_header_stat_broken = yes; then
5289 cat >> confdefs.h <<\EOF
5290 #define STAT_MACROS_BROKEN 1
5297 echo $ac_n "checking for working const""... $ac_c" 1>&6
5298 echo "configure:5299: checking for working const" >&5
5299 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5301 else
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5306 int main() {
5308 /* Ultrix mips cc rejects this. */
5309 typedef int charset[2]; const charset x = {0,0};
5310 /* SunOS 4.1.1 cc rejects this. */
5311 char const *const *ccp;
5312 char **p;
5313 /* NEC SVR4.0.2 mips cc rejects this. */
5314 struct point {int x, y;};
5315 static struct point const zero = {0,0};
5316 /* AIX XL C 1.02.0.0 rejects this.
5317 It does not let you subtract one const X* pointer from another in an arm
5318 of an if-expression whose if-part is not a constant expression */
5319 const char *g = "string";
5320 ccp = &g + (g ? g-g : 0);
5321 /* HPUX 7.0 cc rejects these. */
5322 ++ccp;
5323 p = (char**) ccp;
5324 ccp = (char const *const *) p;
5325 { /* SCO 3.2v4 cc rejects this. */
5326 char *t;
5327 char const *s = 0 ? (char *) 0 : (char const *) 0;
5329 *t++ = 0;
5331 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5332 int x[] = {25, 17};
5333 const int *foo = &x[0];
5334 ++foo;
5336 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5337 typedef const int *iptr;
5338 iptr p = 0;
5339 ++p;
5341 { /* AIX XL C 1.02.0.0 rejects this saying
5342 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5343 struct s { int j; const int *ap[3]; };
5344 struct s *b; b->j = 5;
5346 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5347 const int foo = 10;
5350 ; return 0; }
5352 if { (eval echo configure:5353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5353 rm -rf conftest*
5354 ac_cv_c_const=yes
5355 else
5356 echo "configure: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 rm -rf conftest*
5359 ac_cv_c_const=no
5361 rm -f conftest*
5364 echo "$ac_t""$ac_cv_c_const" 1>&6
5365 if test $ac_cv_c_const = no; then
5366 cat >> confdefs.h <<\EOF
5367 #define const
5372 echo $ac_n "checking for inline""... $ac_c" 1>&6
5373 echo "configure:5374: checking for inline" >&5
5374 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5376 else
5377 ac_cv_c_inline=no
5378 for ac_kw in inline __inline__ __inline; do
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5383 int main() {
5384 } int $ac_kw foo() {
5385 ; return 0; }
5387 if { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5388 rm -rf conftest*
5389 ac_cv_c_inline=$ac_kw; break
5390 else
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 rm -f conftest*
5395 done
5399 echo "$ac_t""$ac_cv_c_inline" 1>&6
5400 case "$ac_cv_c_inline" in
5401 inline | yes) ;;
5402 no) cat >> confdefs.h <<\EOF
5403 #define inline
5406 *) cat >> confdefs.h <<EOF
5407 #define inline $ac_cv_c_inline
5410 esac
5412 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5413 echo "configure:5414: checking for ANSI C header files" >&5
5414 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5416 else
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 #include <stdlib.h>
5421 #include <stdarg.h>
5422 #include <string.h>
5423 #include <float.h>
5425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5426 { (eval echo configure:5427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5428 if test -z "$ac_err"; then
5429 rm -rf conftest*
5430 ac_cv_header_stdc=yes
5431 else
5432 echo "$ac_err" >&5
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 rm -rf conftest*
5436 ac_cv_header_stdc=no
5438 rm -f conftest*
5440 if test $ac_cv_header_stdc = yes; then
5441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5442 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5445 #include <string.h>
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 egrep "memchr" >/dev/null 2>&1; then
5450 else
5451 rm -rf conftest*
5452 ac_cv_header_stdc=no
5454 rm -f conftest*
5458 if test $ac_cv_header_stdc = yes; then
5459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 #include <stdlib.h>
5465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5466 egrep "free" >/dev/null 2>&1; then
5468 else
5469 rm -rf conftest*
5470 ac_cv_header_stdc=no
5472 rm -f conftest*
5476 if test $ac_cv_header_stdc = yes; then
5477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5478 if test "$cross_compiling" = yes; then
5480 else
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 #include <ctype.h>
5485 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5486 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5488 int main () { int i; for (i = 0; i < 256; i++)
5489 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5490 exit (0); }
5493 if { (eval echo configure:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5494 then
5496 else
5497 echo "configure: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 rm -fr conftest*
5500 ac_cv_header_stdc=no
5502 rm -fr conftest*
5508 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5509 if test $ac_cv_header_stdc = yes; then
5510 cat >> confdefs.h <<\EOF
5511 #define STDC_HEADERS 1
5516 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5517 echo "configure:5518: checking for size_t" >&5
5518 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5520 else
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 #include <sys/types.h>
5525 #if STDC_HEADERS
5526 #include <stdlib.h>
5527 #include <stddef.h>
5528 #endif
5530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5531 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5532 rm -rf conftest*
5533 ac_cv_type_size_t=yes
5534 else
5535 rm -rf conftest*
5536 ac_cv_type_size_t=no
5538 rm -f conftest*
5541 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5542 if test $ac_cv_type_size_t = no; then
5543 cat >> confdefs.h <<\EOF
5544 #define size_t unsigned
5549 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5550 echo "configure:5551: checking size of long long" >&5
5551 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5553 else
5554 if test "$cross_compiling" = yes; then
5555 ac_cv_sizeof_long_long=0
5556 else
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 #include <stdio.h>
5561 main()
5563 FILE *f=fopen("conftestval", "w");
5564 if (!f) exit(1);
5565 fprintf(f, "%d\n", sizeof(long long));
5566 exit(0);
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5570 then
5571 ac_cv_sizeof_long_long=`cat conftestval`
5572 else
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 rm -fr conftest*
5576 ac_cv_sizeof_long_long=0
5578 rm -fr conftest*
5582 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5583 cat >> confdefs.h <<EOF
5584 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5589 if test "$ac_cv_header_linux_joystick_h" = "yes"
5590 then
5591 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5592 echo "configure:5593: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5593 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5595 else
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5600 #include <sys/ioctl.h>
5601 #include <linux/joystick.h>
5603 struct js_event blub;
5604 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5605 #error "no 2.2 header"
5606 #endif
5608 int main() {
5609 /*empty*/
5610 ; return 0; }
5612 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5613 rm -rf conftest*
5614 wine_cv_linux_joystick_22_api=yes
5615 else
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5618 rm -rf conftest*
5619 wine_cv_linux_joystick_22_api=no
5621 rm -f conftest*
5625 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5626 if test "$wine_cv_linux_joystick_22_api"
5627 then
5628 cat >> confdefs.h <<\EOF
5629 #define HAVE_LINUX_22_JOYSTICK_API 1
5636 if test "$ac_cv_header_sys_vfs_h" = "yes"
5637 then
5638 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5639 echo "configure:5640: checking "whether sys/vfs.h defines statfs"" >&5
5640 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5642 else
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5647 #include <sys/types.h>
5648 #ifdef HAVE_SYS_PARAM_H
5649 # include <sys/param.h>
5650 #endif
5651 #include <sys/vfs.h>
5653 int main() {
5655 struct statfs stfs;
5657 memset(&stfs,0,sizeof(stfs));
5659 ; return 0; }
5661 if { (eval echo configure:5662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5662 rm -rf conftest*
5663 wine_cv_sys_vfs_has_statfs=yes
5664 else
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5667 rm -rf conftest*
5668 wine_cv_sys_vfs_has_statfs=no
5671 rm -f conftest*
5675 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5676 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5677 then
5678 cat >> confdefs.h <<\EOF
5679 #define STATFS_DEFINED_BY_SYS_VFS 1
5685 if test "$ac_cv_header_sys_statfs_h" = "yes"
5686 then
5687 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5688 echo "configure:5689: checking "whether sys/statfs.h defines statfs"" >&5
5689 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5691 else
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5696 #include <sys/types.h>
5697 #ifdef HAVE_SYS_PARAM_H
5698 # include <sys/param.h>
5699 #endif
5700 #include <sys/statfs.h>
5702 int main() {
5704 struct statfs stfs;
5706 ; return 0; }
5708 if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5709 rm -rf conftest*
5710 wine_cv_sys_statfs_has_statfs=yes
5711 else
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 rm -rf conftest*
5715 wine_cv_sys_statfs_has_statfs=no
5718 rm -f conftest*
5722 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5723 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5724 then
5725 cat >> confdefs.h <<\EOF
5726 #define STATFS_DEFINED_BY_SYS_STATFS 1
5732 if test "$ac_cv_header_sys_mount_h" = "yes"
5733 then
5734 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5735 echo "configure:5736: checking "whether sys/mount.h defines statfs"" >&5
5736 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5738 else
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5743 #include <sys/types.h>
5744 #ifdef HAVE_SYS_PARAM_H
5745 # include <sys/param.h>
5746 #endif
5747 #include <sys/mount.h>
5749 int main() {
5751 struct statfs stfs;
5753 ; return 0; }
5755 if { (eval echo configure:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5756 rm -rf conftest*
5757 wine_cv_sys_mount_has_statfs=yes
5758 else
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5761 rm -rf conftest*
5762 wine_cv_sys_mount_has_statfs=no
5765 rm -f conftest*
5769 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5770 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5771 then
5772 cat >> confdefs.h <<\EOF
5773 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5780 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5781 echo "configure:5782: checking "for statfs.f_bfree"" >&5
5782 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5784 else
5785 if test "x$statfs_bfree" = "xno"
5786 then
5787 wine_cv_statfs_bfree=no
5788 else
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5793 #include <sys/types.h>
5794 #ifdef HAVE_SYS_PARAM_H
5795 # include <sys/param.h>
5796 #endif
5797 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5798 # include <sys/mount.h>
5799 #else
5800 # ifdef STATFS_DEFINED_BY_SYS_VFS
5801 # include <sys/vfs.h>
5802 # else
5803 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5804 # include <sys/statfs.h>
5805 # endif
5806 # endif
5807 #endif
5809 int main() {
5811 struct statfs stfs;
5813 stfs.f_bfree++;
5815 ; return 0; }
5817 if { (eval echo configure:5818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5818 rm -rf conftest*
5819 wine_cv_statfs_bfree=yes
5820 else
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5823 rm -rf conftest*
5824 wine_cv_statfs_bfree=no
5827 rm -f conftest*
5831 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5832 if test "$wine_cv_statfs_bfree" = "yes"
5833 then
5834 cat >> confdefs.h <<\EOF
5835 #define STATFS_HAS_BFREE 1
5840 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5841 echo "configure:5842: checking "for statfs.f_bavail"" >&5
5842 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5844 else
5845 if test "x$statfs_bavail" = "xno"
5846 then
5847 wine_cv_statfs_bavail=no
5848 else
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5853 #include <sys/types.h>
5854 #ifdef HAVE_SYS_PARAM_H
5855 # include <sys/param.h>
5856 #endif
5857 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5858 # include <sys/mount.h>
5859 #else
5860 # ifdef STATFS_DEFINED_BY_SYS_VFS
5861 # include <sys/vfs.h>
5862 # else
5863 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5864 # include <sys/statfs.h>
5865 # endif
5866 # endif
5867 #endif
5869 int main() {
5871 struct statfs stfs;
5873 stfs.f_bavail++;
5875 ; return 0; }
5877 if { (eval echo configure:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5878 rm -rf conftest*
5879 wine_cv_statfs_bavail=yes
5880 else
5881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5883 rm -rf conftest*
5884 wine_cv_statfs_bavail=no
5887 rm -f conftest*
5891 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5892 if test "$wine_cv_statfs_bavail" = "yes"
5893 then
5894 cat >> confdefs.h <<\EOF
5895 #define STATFS_HAS_BAVAIL 1
5901 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5902 echo "configure:5903: checking "for working sigaltstack"" >&5
5903 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5905 else
5906 if test "$cross_compiling" = yes; then
5907 ac_cv_c_working_sigaltstack="no"
5909 else
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5914 #include <stdio.h>
5915 #include <time.h> /* <sys/time.h> ? bad magic without end */
5916 #include <sys/types.h>
5917 #include <sys/signal.h>
5918 #ifdef HAVE_SYS_PARAM_H
5919 # include <sys/param.h>
5920 #endif
5921 #ifdef HAVE_SYSCALL_H
5922 # include <syscall.h>
5923 #else
5924 # ifdef HAVE_SYS_SYSCALL_H
5925 # include <sys/syscall.h>
5926 # endif
5927 #endif
5929 unsigned char *xaltstack;
5932 main(int argc,char **argv) {
5933 struct sigaltstack ss;
5935 xaltstack = malloc(16384);
5936 ss.ss_sp = xaltstack;
5937 ss.ss_size = 16384;
5938 ss.ss_flags = 0;
5939 if (sigaltstack(&ss, NULL) < 0) {
5940 /* this catches the glibc case */
5941 perror("sigaltstack");
5942 return (1); /* aka exit(1) aka fail */
5944 /* assume it works. */
5945 return 0; /* OK */
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5950 then
5951 ac_cv_c_working_sigaltstack="yes"
5952 else
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 rm -fr conftest*
5956 ac_cv_c_working_sigaltstack="no"
5958 rm -fr conftest*
5963 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5965 if test "$ac_cv_c_working_sigaltstack" = "yes"
5966 then
5967 cat >> confdefs.h <<\EOF
5968 #define HAVE_WORKING_SIGALTSTACK 1
5975 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5976 echo "configure:5977: checking "for msg_accrights in struct msghdr"" >&5
5977 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5979 else
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 #include <sys/types.h>
5984 #include <sys/socket.h>
5985 int main() {
5986 struct msghdr hdr; hdr.msg_accrights=0
5987 ; return 0; }
5989 if { (eval echo configure:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5990 rm -rf conftest*
5991 ac_cv_c_msg_accrights="yes"
5992 else
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5995 rm -rf conftest*
5996 ac_cv_c_msg_accrights="no"
5998 rm -f conftest*
6001 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6002 if test "$ac_cv_c_msg_accrights" = "yes"
6003 then
6004 cat >> confdefs.h <<\EOF
6005 #define HAVE_MSGHDR_ACCRIGHTS 1
6011 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6012 echo "configure:6013: checking "whether we need to define __i386__"" >&5
6013 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6015 else
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6021 #endif
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 egrep "yes" >/dev/null 2>&1; then
6025 rm -rf conftest*
6026 ac_cv_cpp_def_i386="yes"
6027 else
6028 rm -rf conftest*
6029 ac_cv_cpp_def_i386="no"
6031 rm -f conftest*
6035 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6036 if test "$ac_cv_cpp_def_i386" = "yes"
6037 then
6038 CFLAGS="$CFLAGS -D__i386__"
6039 LINTFLAGS="$LINTFLAGS -D__i386__"
6042 GCC_NO_BUILTIN=""
6043 if test "$GCC" = "yes"
6044 then
6045 GCC_NO_BUILTIN="-fno-builtin"
6050 MAKE_RULES=Make.rules
6053 trap '' 1 2 15
6054 cat > confcache <<\EOF
6055 # This file is a shell script that caches the results of configure
6056 # tests run on this system so they can be shared between configure
6057 # scripts and configure runs. It is not useful on other systems.
6058 # If it contains results you don't want to keep, you may remove or edit it.
6060 # By default, configure uses ./config.cache as the cache file,
6061 # creating it if it does not exist already. You can give configure
6062 # the --cache-file=FILE option to use a different cache file; that is
6063 # what configure does when it calls configure scripts in
6064 # subdirectories, so they share the cache.
6065 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6066 # config.status only pays attention to the cache file if you give it the
6067 # --recheck option to rerun configure.
6070 # The following way of writing the cache mishandles newlines in values,
6071 # but we know of no workaround that is simple, portable, and efficient.
6072 # So, don't put newlines in cache variables' values.
6073 # Ultrix sh set writes to stderr and can't be redirected directly,
6074 # and sets the high bit in the cache file unless we assign to the vars.
6075 (set) 2>&1 |
6076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6077 *ac_space=\ *)
6078 # `set' does not quote correctly, so add quotes (double-quote substitution
6079 # turns \\\\ into \\, and sed turns \\ into \).
6080 sed -n \
6081 -e "s/'/'\\\\''/g" \
6082 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6085 # `set' quotes correctly as required by POSIX, so do not add quotes.
6086 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6088 esac >> confcache
6089 if cmp -s $cache_file confcache; then
6091 else
6092 if test -w $cache_file; then
6093 echo "updating cache $cache_file"
6094 cat confcache > $cache_file
6095 else
6096 echo "not updating unwritable cache $cache_file"
6099 rm -f confcache
6101 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6103 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6104 # Let make expand exec_prefix.
6105 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6107 # Any assignment to VPATH causes Sun make to only execute
6108 # the first set of double-colon rules, so remove it if not needed.
6109 # If there is a colon in the path, we need to keep it.
6110 if test "x$srcdir" = x.; then
6111 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6114 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6116 DEFS=-DHAVE_CONFIG_H
6118 # Without the "./", some shells look in PATH for config.status.
6119 : ${CONFIG_STATUS=./config.status}
6121 echo creating $CONFIG_STATUS
6122 rm -f $CONFIG_STATUS
6123 cat > $CONFIG_STATUS <<EOF
6124 #! /bin/sh
6125 # Generated automatically by configure.
6126 # Run this file to recreate the current configuration.
6127 # This directory was configured as follows,
6128 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6130 # $0 $ac_configure_args
6132 # Compiler output produced by configure, useful for debugging
6133 # configure, is in ./config.log if it exists.
6135 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6136 for ac_option
6138 case "\$ac_option" in
6139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6140 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6141 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6142 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6143 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6144 exit 0 ;;
6145 -help | --help | --hel | --he | --h)
6146 echo "\$ac_cs_usage"; exit 0 ;;
6147 *) echo "\$ac_cs_usage"; exit 1 ;;
6148 esac
6149 done
6151 ac_given_srcdir=$srcdir
6152 ac_given_INSTALL="$INSTALL"
6154 trap 'rm -fr `echo "
6155 Make.rules
6156 Makefile
6157 console/Makefile
6158 controls/Makefile
6159 debugger/Makefile
6160 dlls/Makefile
6161 dlls/advapi32/Makefile
6162 dlls/avifil32/Makefile
6163 dlls/comctl32/Makefile
6164 dlls/commdlg/Makefile
6165 dlls/crtdll/Makefile
6166 dlls/dciman32/Makefile
6167 dlls/display/Makefile
6168 dlls/dplayx/Makefile
6169 dlls/dsound/Makefile
6170 dlls/icmp/Makefile
6171 dlls/imagehlp/Makefile
6172 dlls/imm32/Makefile
6173 dlls/lzexpand/Makefile
6174 dlls/mouse/Makefile
6175 dlls/mpr/Makefile
6176 dlls/msacm/Makefile
6177 dlls/msacm32/Makefile
6178 dlls/msnet32/Makefile
6179 dlls/msvideo/Makefile
6180 dlls/ntdll/Makefile
6181 dlls/odbc32/Makefile
6182 dlls/ole32/Makefile
6183 dlls/oleaut32/Makefile
6184 dlls/olecli/Makefile
6185 dlls/oledlg/Makefile
6186 dlls/olesvr/Makefile
6187 dlls/psapi/Makefile
6188 dlls/rasapi32/Makefile
6189 dlls/setupx/Makefile
6190 dlls/shell32/Makefile
6191 dlls/sound/Makefile
6192 dlls/stress/Makefile
6193 dlls/tapi32/Makefile
6194 dlls/version/Makefile
6195 dlls/win32s/Makefile
6196 dlls/win87em/Makefile
6197 dlls/winaspi/Makefile
6198 dlls/windebug/Makefile
6199 dlls/wing/Makefile
6200 dlls/winmm/Makefile
6201 dlls/winmm/mcianim/Makefile
6202 dlls/winmm/mciavi/Makefile
6203 dlls/winmm/mcicda/Makefile
6204 dlls/winmm/mciseq/Makefile
6205 dlls/winmm/mciwave/Makefile
6206 dlls/winmm/midimap/Makefile
6207 dlls/winmm/wavemap/Makefile
6208 dlls/winmm/wineoss/Makefile
6209 dlls/winsock/Makefile
6210 dlls/winspool/Makefile
6211 dlls/wnaspi32/Makefile
6212 documentation/Makefile
6213 documentation/wine.conf.man
6214 documentation/wine.man
6215 files/Makefile
6216 graphics/Makefile
6217 graphics/enhmetafiledrv/Makefile
6218 graphics/metafiledrv/Makefile
6219 graphics/psdrv/Makefile
6220 graphics/ttydrv/Makefile
6221 graphics/win16drv/Makefile
6222 graphics/x11drv/Makefile
6223 if1632/Makefile
6224 include/Makefile
6225 library/Makefile
6226 libtest/Makefile
6227 loader/Makefile
6228 loader/ne/Makefile
6229 loader/dos/Makefile
6230 memory/Makefile
6231 misc/Makefile
6232 miscemu/Makefile
6233 msdos/Makefile
6234 objects/Makefile
6235 ole/Makefile
6236 programs/Makefile
6237 programs/clock/Makefile
6238 programs/cmdlgtst/Makefile
6239 programs/control/Makefile
6240 programs/avitools/Makefile
6241 programs/osversioncheck/Makefile
6242 programs/notepad/Makefile
6243 programs/progman/Makefile
6244 programs/regtest/Makefile
6245 programs/regapi/Makefile
6246 programs/view/Makefile
6247 programs/wcmd/Makefile
6248 programs/winhelp/Makefile
6249 programs/winver/Makefile
6250 rc/Makefile
6251 relay32/Makefile
6252 resources/Makefile
6253 scheduler/Makefile
6254 server/Makefile
6255 tools/Makefile
6256 tools/wrc/Makefile
6257 tsx11/Makefile
6258 win32/Makefile
6259 windows/Makefile
6260 windows/ttydrv/Makefile
6261 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6263 cat >> $CONFIG_STATUS <<EOF
6265 # Protect against being on the right side of a sed subst in config.status.
6266 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6267 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6268 $ac_vpsub
6269 $extrasub
6270 s%@SHELL@%$SHELL%g
6271 s%@CFLAGS@%$CFLAGS%g
6272 s%@CPPFLAGS@%$CPPFLAGS%g
6273 s%@CXXFLAGS@%$CXXFLAGS%g
6274 s%@FFLAGS@%$FFLAGS%g
6275 s%@DEFS@%$DEFS%g
6276 s%@LDFLAGS@%$LDFLAGS%g
6277 s%@LIBS@%$LIBS%g
6278 s%@exec_prefix@%$exec_prefix%g
6279 s%@prefix@%$prefix%g
6280 s%@program_transform_name@%$program_transform_name%g
6281 s%@bindir@%$bindir%g
6282 s%@sbindir@%$sbindir%g
6283 s%@libexecdir@%$libexecdir%g
6284 s%@datadir@%$datadir%g
6285 s%@sysconfdir@%$sysconfdir%g
6286 s%@sharedstatedir@%$sharedstatedir%g
6287 s%@localstatedir@%$localstatedir%g
6288 s%@libdir@%$libdir%g
6289 s%@includedir@%$includedir%g
6290 s%@oldincludedir@%$oldincludedir%g
6291 s%@infodir@%$infodir%g
6292 s%@mandir@%$mandir%g
6293 s%@PROGEXT@%$PROGEXT%g
6294 s%@MAIN_TARGET@%$MAIN_TARGET%g
6295 s%@OPTIONS@%$OPTIONS%g
6296 s%@SET_MAKE@%$SET_MAKE%g
6297 s%@CC@%$CC%g
6298 s%@CPP@%$CPP%g
6299 s%@X_CFLAGS@%$X_CFLAGS%g
6300 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6301 s%@X_LIBS@%$X_LIBS%g
6302 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6303 s%@YACC@%$YACC%g
6304 s%@LEX@%$LEX%g
6305 s%@LEXLIB@%$LEXLIB%g
6306 s%@RANLIB@%$RANLIB%g
6307 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6308 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6309 s%@INSTALL_DATA@%$INSTALL_DATA%g
6310 s%@LN_S@%$LN_S%g
6311 s%@C2MAN@%$C2MAN%g
6312 s%@LDCONFIG@%$LDCONFIG%g
6313 s%@LINT@%$LINT%g
6314 s%@LINTFLAGS@%$LINTFLAGS%g
6315 s%@XLIB@%$XLIB%g
6316 s%@LIB_TARGET@%$LIB_TARGET%g
6317 s%@LIB_TYPE@%$LIB_TYPE%g
6318 s%@ALT_LINK@%$ALT_LINK%g
6319 s%@BUILDFLAGS@%$BUILDFLAGS%g
6320 s%@DLLFLAGS@%$DLLFLAGS%g
6321 s%@LDSHARED@%$LDSHARED%g
6322 s%@LIBEXT@%$LIBEXT%g
6323 s%@ALLOCA@%$ALLOCA%g
6324 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6325 /@MAKE_RULES@/r $MAKE_RULES
6326 s%@MAKE_RULES@%%g
6328 CEOF
6331 cat >> $CONFIG_STATUS <<\EOF
6333 # Split the substitutions into bite-sized pieces for seds with
6334 # small command number limits, like on Digital OSF/1 and HP-UX.
6335 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6336 ac_file=1 # Number of current file.
6337 ac_beg=1 # First line for current file.
6338 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6339 ac_more_lines=:
6340 ac_sed_cmds=""
6341 while $ac_more_lines; do
6342 if test $ac_beg -gt 1; then
6343 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6344 else
6345 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6347 if test ! -s conftest.s$ac_file; then
6348 ac_more_lines=false
6349 rm -f conftest.s$ac_file
6350 else
6351 if test -z "$ac_sed_cmds"; then
6352 ac_sed_cmds="sed -f conftest.s$ac_file"
6353 else
6354 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6356 ac_file=`expr $ac_file + 1`
6357 ac_beg=$ac_end
6358 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6360 done
6361 if test -z "$ac_sed_cmds"; then
6362 ac_sed_cmds=cat
6366 cat >> $CONFIG_STATUS <<EOF
6368 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6369 Makefile
6370 console/Makefile
6371 controls/Makefile
6372 debugger/Makefile
6373 dlls/Makefile
6374 dlls/advapi32/Makefile
6375 dlls/avifil32/Makefile
6376 dlls/comctl32/Makefile
6377 dlls/commdlg/Makefile
6378 dlls/crtdll/Makefile
6379 dlls/dciman32/Makefile
6380 dlls/display/Makefile
6381 dlls/dplayx/Makefile
6382 dlls/dsound/Makefile
6383 dlls/icmp/Makefile
6384 dlls/imagehlp/Makefile
6385 dlls/imm32/Makefile
6386 dlls/lzexpand/Makefile
6387 dlls/mouse/Makefile
6388 dlls/mpr/Makefile
6389 dlls/msacm/Makefile
6390 dlls/msacm32/Makefile
6391 dlls/msnet32/Makefile
6392 dlls/msvideo/Makefile
6393 dlls/ntdll/Makefile
6394 dlls/odbc32/Makefile
6395 dlls/ole32/Makefile
6396 dlls/oleaut32/Makefile
6397 dlls/olecli/Makefile
6398 dlls/oledlg/Makefile
6399 dlls/olesvr/Makefile
6400 dlls/psapi/Makefile
6401 dlls/rasapi32/Makefile
6402 dlls/setupx/Makefile
6403 dlls/shell32/Makefile
6404 dlls/sound/Makefile
6405 dlls/stress/Makefile
6406 dlls/tapi32/Makefile
6407 dlls/version/Makefile
6408 dlls/win32s/Makefile
6409 dlls/win87em/Makefile
6410 dlls/winaspi/Makefile
6411 dlls/windebug/Makefile
6412 dlls/wing/Makefile
6413 dlls/winmm/Makefile
6414 dlls/winmm/mcianim/Makefile
6415 dlls/winmm/mciavi/Makefile
6416 dlls/winmm/mcicda/Makefile
6417 dlls/winmm/mciseq/Makefile
6418 dlls/winmm/mciwave/Makefile
6419 dlls/winmm/midimap/Makefile
6420 dlls/winmm/wavemap/Makefile
6421 dlls/winmm/wineoss/Makefile
6422 dlls/winsock/Makefile
6423 dlls/winspool/Makefile
6424 dlls/wnaspi32/Makefile
6425 documentation/Makefile
6426 documentation/wine.conf.man
6427 documentation/wine.man
6428 files/Makefile
6429 graphics/Makefile
6430 graphics/enhmetafiledrv/Makefile
6431 graphics/metafiledrv/Makefile
6432 graphics/psdrv/Makefile
6433 graphics/ttydrv/Makefile
6434 graphics/win16drv/Makefile
6435 graphics/x11drv/Makefile
6436 if1632/Makefile
6437 include/Makefile
6438 library/Makefile
6439 libtest/Makefile
6440 loader/Makefile
6441 loader/ne/Makefile
6442 loader/dos/Makefile
6443 memory/Makefile
6444 misc/Makefile
6445 miscemu/Makefile
6446 msdos/Makefile
6447 objects/Makefile
6448 ole/Makefile
6449 programs/Makefile
6450 programs/clock/Makefile
6451 programs/cmdlgtst/Makefile
6452 programs/control/Makefile
6453 programs/avitools/Makefile
6454 programs/osversioncheck/Makefile
6455 programs/notepad/Makefile
6456 programs/progman/Makefile
6457 programs/regtest/Makefile
6458 programs/regapi/Makefile
6459 programs/view/Makefile
6460 programs/wcmd/Makefile
6461 programs/winhelp/Makefile
6462 programs/winver/Makefile
6463 rc/Makefile
6464 relay32/Makefile
6465 resources/Makefile
6466 scheduler/Makefile
6467 server/Makefile
6468 tools/Makefile
6469 tools/wrc/Makefile
6470 tsx11/Makefile
6471 win32/Makefile
6472 windows/Makefile
6473 windows/ttydrv/Makefile
6474 windows/x11drv/Makefile "}
6476 cat >> $CONFIG_STATUS <<\EOF
6477 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6479 case "$ac_file" in
6480 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6481 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6482 *) ac_file_in="${ac_file}.in" ;;
6483 esac
6485 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6487 # Remove last slash and all that follows it. Not all systems have dirname.
6488 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6489 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6490 # The file is in a subdirectory.
6491 test ! -d "$ac_dir" && mkdir "$ac_dir"
6492 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6493 # A "../" for each directory in $ac_dir_suffix.
6494 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6495 else
6496 ac_dir_suffix= ac_dots=
6499 case "$ac_given_srcdir" in
6500 .) srcdir=.
6501 if test -z "$ac_dots"; then top_srcdir=.
6502 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6503 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6504 *) # Relative path.
6505 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6506 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6507 esac
6509 case "$ac_given_INSTALL" in
6510 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6511 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6512 esac
6514 echo creating "$ac_file"
6515 rm -f "$ac_file"
6516 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6517 case "$ac_file" in
6518 *Makefile*) ac_comsub="1i\\
6519 # $configure_input" ;;
6520 *) ac_comsub= ;;
6521 esac
6523 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6524 sed -e "$ac_comsub
6525 s%@configure_input@%$configure_input%g
6526 s%@srcdir@%$srcdir%g
6527 s%@top_srcdir@%$top_srcdir%g
6528 s%@INSTALL@%$INSTALL%g
6529 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6530 fi; done
6531 rm -f conftest.s*
6533 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6534 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6536 # ac_d sets the value in "#define NAME VALUE" lines.
6537 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6538 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6539 ac_dC='\3'
6540 ac_dD='%g'
6541 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6542 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6543 ac_uB='\([ ]\)%\1#\2define\3'
6544 ac_uC=' '
6545 ac_uD='\4%g'
6546 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6547 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6548 ac_eB='$%\1#\2define\3'
6549 ac_eC=' '
6550 ac_eD='%g'
6552 if test "${CONFIG_HEADERS+set}" != set; then
6554 cat >> $CONFIG_STATUS <<EOF
6555 CONFIG_HEADERS="include/config.h"
6557 cat >> $CONFIG_STATUS <<\EOF
6559 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6561 case "$ac_file" in
6562 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6563 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6564 *) ac_file_in="${ac_file}.in" ;;
6565 esac
6567 echo creating $ac_file
6569 rm -f conftest.frag conftest.in conftest.out
6570 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6571 cat $ac_file_inputs > conftest.in
6575 # Transform confdefs.h into a sed script conftest.vals that substitutes
6576 # the proper values into config.h.in to produce config.h. And first:
6577 # Protect against being on the right side of a sed subst in config.status.
6578 # Protect against being in an unquoted here document in config.status.
6579 rm -f conftest.vals
6580 cat > conftest.hdr <<\EOF
6581 s/[\\&%]/\\&/g
6582 s%[\\$`]%\\&%g
6583 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6584 s%ac_d%ac_u%gp
6585 s%ac_u%ac_e%gp
6587 sed -n -f conftest.hdr confdefs.h > conftest.vals
6588 rm -f conftest.hdr
6590 # This sed command replaces #undef with comments. This is necessary, for
6591 # example, in the case of _POSIX_SOURCE, which is predefined and required
6592 # on some systems where configure will not decide to define it.
6593 cat >> conftest.vals <<\EOF
6594 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6597 # Break up conftest.vals because some shells have a limit on
6598 # the size of here documents, and old seds have small limits too.
6600 rm -f conftest.tail
6601 while :
6603 ac_lines=`grep -c . conftest.vals`
6604 # grep -c gives empty output for an empty file on some AIX systems.
6605 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6606 # Write a limited-size here document to conftest.frag.
6607 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6608 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6609 echo 'CEOF
6610 sed -f conftest.frag conftest.in > conftest.out
6611 rm -f conftest.in
6612 mv conftest.out conftest.in
6613 ' >> $CONFIG_STATUS
6614 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6615 rm -f conftest.vals
6616 mv conftest.tail conftest.vals
6617 done
6618 rm -f conftest.vals
6620 cat >> $CONFIG_STATUS <<\EOF
6621 rm -f conftest.frag conftest.h
6622 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6623 cat conftest.in >> conftest.h
6624 rm -f conftest.in
6625 if cmp -s $ac_file conftest.h 2>/dev/null; then
6626 echo "$ac_file is unchanged"
6627 rm -f conftest.h
6628 else
6629 # Remove last slash and all that follows it. Not all systems have dirname.
6630 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6631 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6632 # The file is in a subdirectory.
6633 test ! -d "$ac_dir" && mkdir "$ac_dir"
6635 rm -f $ac_file
6636 mv conftest.h $ac_file
6638 fi; done
6641 cat >> $CONFIG_STATUS <<EOF
6644 cat >> $CONFIG_STATUS <<\EOF
6646 exit 0
6648 chmod +x $CONFIG_STATUS
6649 rm -fr confdefs* $ac_clean_files
6650 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6653 if test "$have_x" = "no"
6654 then
6655 echo
6656 echo "*** Warning: X development files not found. Wine will be built without"
6657 echo "*** X support, which currently does not work, and would probably not be"
6658 echo "*** what you want anyway. You will need to install devel packages of"
6659 echo "*** Xlib/Xfree86 and Xpm at the very least."
6660 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6661 then
6662 echo
6663 echo "*** Warning: Xpm development files not found. Wine will be built without"
6664 echo "*** Xpm support, which currently does not work. You will need to install"
6665 echo "*** devel packages of Xpm."
6668 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6669 then
6670 echo
6671 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6672 echo "*** terminal resize support. Consider upgrading ncurses."
6675 if test "$wine_cv_libc_reentrant" = "no"
6676 then
6677 echo
6678 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6679 echo "*** thread support. Consider upgrading libc to a more recent"
6680 echo "*** reentrant version of libc."
6683 if test "$wine_cv_mesa_version_OK" = "no"
6684 then
6685 echo
6686 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6687 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6690 echo
6691 echo "Configure finished. Do 'make depend && make' to compile Wine."
6692 echo