- Minor API files update.
[wine.git] / configure
blob440957d8295e905307ea548cd0b799fe36e1c74b
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-debug compile out all debugging messages"
17 ac_help="$ac_help
18 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
19 ac_help="$ac_help
20 --disable-trace compile out TRACE messages"
21 ac_help="$ac_help
22 --without-curses do not use curses"
23 ac_help="$ac_help
24 --without-reentrant-x compile for use with non-reentrant X libraries"
25 ac_help="$ac_help
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
69 ac_prev=
70 for ac_option
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
85 # Accept the important Cygnus configure options, so we can diagnose typos.
87 case "$ac_option" in
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
95 ac_prev=build ;;
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 build="$ac_optarg" ;;
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 [same as prefix]
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
184 cat << EOF
185 Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
200 exit 0 ;;
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
350 exit 0 ;;
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 nonopt="$ac_option"
405 esac
406 done
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
415 # 0 standard input
416 # 1 file creation
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
423 exec 6>/dev/null
424 else
425 exec 6>&1
427 exec 5>./config.log
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448 done
450 # NLS nuisances.
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > confdefs.h
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=controls/edit.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
480 else
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
505 done
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510 else
511 echo "creating cache $cache_file"
512 > $cache_file
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
522 ac_exeext=
523 ac_objext=o
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='
528 ' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
532 else
533 ac_n= ac_c='\c' ac_t=
538 ac_aux_dir=
539 for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
542 ac_install_sh="$ac_aux_dir/install-sh -c"
543 break
544 elif test -f $ac_dir/install.sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install.sh -c"
547 break
549 done
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
553 ac_config_guess=$ac_aux_dir/config.guess
554 ac_config_sub=$ac_aux_dir/config.sub
555 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 LIBEXT=so # library type .so or .a
560 TRACE_MSGS=yes # the TRACE() macro
561 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
562 CURSES=yes
563 OPENGL=normal
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if test "${enable_opengl+set}" = set; then
574 enableval="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
603 then
604 cat >> confdefs.h <<\EOF
605 #define NO_DEBUG_MSGS 1
608 cat >> confdefs.h <<\EOF
609 #define NO_TRACE_MSGS 1
612 else
613 if test "$TRACE_MSGS" = "no"
614 then
615 cat >> confdefs.h <<\EOF
616 #define NO_TRACE_MSGS 1
623 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
624 echo "configure:625: checking whether ${MAKE-make} sets \${MAKE}" >&5
625 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
626 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628 else
629 cat > conftestmake <<\EOF
630 all:
631 @echo 'ac_maketemp="${MAKE}"'
633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
634 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
635 if test -n "$ac_maketemp"; then
636 eval ac_cv_prog_make_${ac_make}_set=yes
637 else
638 eval ac_cv_prog_make_${ac_make}_set=no
640 rm -f conftestmake
642 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
643 echo "$ac_t""yes" 1>&6
644 SET_MAKE=
645 else
646 echo "$ac_t""no" 1>&6
647 SET_MAKE="MAKE=${MAKE-make}"
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656 else
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
659 else
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 ac_dummy="$PATH"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
665 ac_cv_prog_CC="gcc"
666 break
668 done
669 IFS="$ac_save_ifs"
672 CC="$ac_cv_prog_CC"
673 if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
675 else
676 echo "$ac_t""no" 1>&6
679 if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681 set dummy cc; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686 else
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
689 else
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
691 ac_prog_rejected=no
692 ac_dummy="$PATH"
693 for ac_dir in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 ac_prog_rejected=yes
698 continue
700 ac_cv_prog_CC="cc"
701 break
703 done
704 IFS="$ac_save_ifs"
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy $ac_cv_prog_CC
708 shift
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
713 shift
714 set dummy "$ac_dir/$ac_word" "$@"
715 shift
716 ac_cv_prog_CC="$@"
721 CC="$ac_cv_prog_CC"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
724 else
725 echo "$ac_t""no" 1>&6
728 if test -z "$CC"; then
729 case "`uname -s`" in
730 *win32* | *WIN32*)
731 # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737 else
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
740 else
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
742 ac_dummy="$PATH"
743 for ac_dir in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 ac_cv_prog_CC="cl"
747 break
749 done
750 IFS="$ac_save_ifs"
753 CC="$ac_cv_prog_CC"
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
756 else
757 echo "$ac_t""no" 1>&6
760 esac
762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
768 ac_ext=c
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp='$CPP $CPPFLAGS'
771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling=$ac_cv_prog_cc_cross
775 cat > conftest.$ac_ext << EOF
777 #line 778 "configure"
778 #include "confdefs.h"
780 main(){return(0);}
782 if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
783 ac_cv_prog_cc_works=yes
784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (./conftest; exit) 2>/dev/null; then
786 ac_cv_prog_cc_cross=no
787 else
788 ac_cv_prog_cc_cross=yes
790 else
791 echo "configure: failed program was:" >&5
792 cat conftest.$ac_ext >&5
793 ac_cv_prog_cc_works=no
795 rm -fr conftest*
796 ac_ext=c
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp='$CPP $CPPFLAGS'
799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling=$ac_cv_prog_cc_cross
803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804 if test $ac_cv_prog_cc_works = no; then
805 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
813 echo "configure:814: checking whether we are using GNU C" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 cat > conftest.c <<EOF
818 #ifdef __GNUC__
819 yes;
820 #endif
822 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
823 ac_cv_prog_gcc=yes
824 else
825 ac_cv_prog_gcc=no
829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831 if test $ac_cv_prog_gcc = yes; then
832 GCC=yes
833 else
834 GCC=
837 ac_test_CFLAGS="${CFLAGS+set}"
838 ac_save_CFLAGS="$CFLAGS"
839 CFLAGS=
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844 else
845 echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847 ac_cv_prog_cc_g=yes
848 else
849 ac_cv_prog_cc_g=no
851 rm -f conftest*
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857 CFLAGS="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
859 if test "$GCC" = yes; then
860 CFLAGS="-g -O2"
861 else
862 CFLAGS="-g"
864 else
865 if test "$GCC" = yes; then
866 CFLAGS="-O2"
867 else
868 CFLAGS=
872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
873 echo "configure:874: checking how to run the C preprocessor" >&5
874 # On Suns, sometimes $CPP names a directory.
875 if test -n "$CPP" && test -d "$CPP"; then
876 CPP=
878 if test -z "$CPP"; then
879 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 # This must be in double quotes, not single quotes, because CPP may get
883 # substituted into the Makefile and "${CC-cc}" will confuse make.
884 CPP="${CC-cc} -E"
885 # On the NeXT, cc -E runs the code through the compiler's parser,
886 # not just through cpp.
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
890 #include <assert.h>
891 Syntax Error
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
898 else
899 echo "$ac_err" >&5
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
902 rm -rf conftest*
903 CPP="${CC-cc} -E -traditional-cpp"
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
907 #include <assert.h>
908 Syntax Error
910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
915 else
916 echo "$ac_err" >&5
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
919 rm -rf conftest*
920 CPP="${CC-cc} -nologo -E"
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
924 #include <assert.h>
925 Syntax Error
927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930 if test -z "$ac_err"; then
932 else
933 echo "$ac_err" >&5
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
936 rm -rf conftest*
937 CPP=/lib/cpp
939 rm -f conftest*
941 rm -f conftest*
943 rm -f conftest*
944 ac_cv_prog_CPP="$CPP"
946 CPP="$ac_cv_prog_CPP"
947 else
948 ac_cv_prog_CPP="$CPP"
950 echo "$ac_t""$CPP" 1>&6
952 # If we find X, set shell vars x_includes and x_libraries to the
953 # paths, otherwise set no_x=yes.
954 # Uses ac_ vars as temps to allow command line to override cache and checks.
955 # --without-x overrides everything else, but does not touch the cache.
956 echo $ac_n "checking for X""... $ac_c" 1>&6
957 echo "configure:958: checking for X" >&5
959 # Check whether --with-x or --without-x was given.
960 if test "${with_x+set}" = set; then
961 withval="$with_x"
965 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
966 if test "x$with_x" = xno; then
967 # The user explicitly disabled X.
968 have_x=disabled
969 else
970 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
971 # Both variables are already set.
972 have_x=yes
973 else
974 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 # One or both of the vars are not set, and there is no cached value.
978 ac_x_includes=NO ac_x_libraries=NO
979 rm -fr conftestdir
980 if mkdir conftestdir; then
981 cd conftestdir
982 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
983 cat > Imakefile <<'EOF'
984 acfindx:
985 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
987 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
989 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
990 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
991 for ac_extension in a so sl; do
992 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
993 test -f $ac_im_libdir/libX11.$ac_extension; then
994 ac_im_usrlibdir=$ac_im_libdir; break
996 done
997 # Screen out bogus values from the imake configuration. They are
998 # bogus both because they are the default anyway, and because
999 # using them would break gcc on systems where it needs fixed includes.
1000 case "$ac_im_incroot" in
1001 /usr/include) ;;
1002 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1003 esac
1004 case "$ac_im_usrlibdir" in
1005 /usr/lib | /lib) ;;
1006 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1007 esac
1009 cd ..
1010 rm -fr conftestdir
1013 if test "$ac_x_includes" = NO; then
1014 # Guess where to find include files, by looking for this one X11 .h file.
1015 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1017 # First, try using that file with no special directory specified.
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <$x_direct_test_include>
1023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1026 if test -z "$ac_err"; then
1027 rm -rf conftest*
1028 # We can compile using X headers with no special include directory.
1029 ac_x_includes=
1030 else
1031 echo "$ac_err" >&5
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
1034 rm -rf conftest*
1035 # Look for the header file in a standard set of common directories.
1036 # Check X11 before X11Rn because it is often a symlink to the current release.
1037 for ac_dir in \
1038 /usr/X11/include \
1039 /usr/X11R6/include \
1040 /usr/X11R5/include \
1041 /usr/X11R4/include \
1043 /usr/include/X11 \
1044 /usr/include/X11R6 \
1045 /usr/include/X11R5 \
1046 /usr/include/X11R4 \
1048 /usr/local/X11/include \
1049 /usr/local/X11R6/include \
1050 /usr/local/X11R5/include \
1051 /usr/local/X11R4/include \
1053 /usr/local/include/X11 \
1054 /usr/local/include/X11R6 \
1055 /usr/local/include/X11R5 \
1056 /usr/local/include/X11R4 \
1058 /usr/X386/include \
1059 /usr/x386/include \
1060 /usr/XFree86/include/X11 \
1062 /usr/include \
1063 /usr/local/include \
1064 /usr/unsupported/include \
1065 /usr/athena/include \
1066 /usr/local/x11r5/include \
1067 /usr/lpp/Xamples/include \
1069 /usr/openwin/include \
1070 /usr/openwin/share/include \
1073 if test -r "$ac_dir/$x_direct_test_include"; then
1074 ac_x_includes=$ac_dir
1075 break
1077 done
1079 rm -f conftest*
1080 fi # $ac_x_includes = NO
1082 if test "$ac_x_libraries" = NO; then
1083 # Check for the libraries.
1085 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1086 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1088 # See if we find them without any special options.
1089 # Don't add to $LIBS permanently.
1090 ac_save_LIBS="$LIBS"
1091 LIBS="-l$x_direct_test_library $LIBS"
1092 cat > conftest.$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1096 int main() {
1097 ${x_direct_test_function}()
1098 ; return 0; }
1100 if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1101 rm -rf conftest*
1102 LIBS="$ac_save_LIBS"
1103 # We can link X programs with no special library path.
1104 ac_x_libraries=
1105 else
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1108 rm -rf conftest*
1109 LIBS="$ac_save_LIBS"
1110 # First see if replacing the include by lib works.
1111 # Check X11 before X11Rn because it is often a symlink to the current release.
1112 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1113 /usr/X11/lib \
1114 /usr/X11R6/lib \
1115 /usr/X11R5/lib \
1116 /usr/X11R4/lib \
1118 /usr/lib/X11 \
1119 /usr/lib/X11R6 \
1120 /usr/lib/X11R5 \
1121 /usr/lib/X11R4 \
1123 /usr/local/X11/lib \
1124 /usr/local/X11R6/lib \
1125 /usr/local/X11R5/lib \
1126 /usr/local/X11R4/lib \
1128 /usr/local/lib/X11 \
1129 /usr/local/lib/X11R6 \
1130 /usr/local/lib/X11R5 \
1131 /usr/local/lib/X11R4 \
1133 /usr/X386/lib \
1134 /usr/x386/lib \
1135 /usr/XFree86/lib/X11 \
1137 /usr/lib \
1138 /usr/local/lib \
1139 /usr/unsupported/lib \
1140 /usr/athena/lib \
1141 /usr/local/x11r5/lib \
1142 /usr/lpp/Xamples/lib \
1143 /lib/usr/lib/X11 \
1145 /usr/openwin/lib \
1146 /usr/openwin/share/lib \
1149 for ac_extension in a so sl; do
1150 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1151 ac_x_libraries=$ac_dir
1152 break 2
1154 done
1155 done
1157 rm -f conftest*
1158 fi # $ac_x_libraries = NO
1160 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1161 # Didn't find X anywhere. Cache the known absence of X.
1162 ac_cv_have_x="have_x=no"
1163 else
1164 # Record where we found X for the cache.
1165 ac_cv_have_x="have_x=yes \
1166 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1170 eval "$ac_cv_have_x"
1171 fi # $with_x != no
1173 if test "$have_x" != yes; then
1174 echo "$ac_t""$have_x" 1>&6
1175 no_x=yes
1176 else
1177 # If each of the values was on the command line, it overrides each guess.
1178 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1179 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1180 # Update the cache value to reflect the command line values.
1181 ac_cv_have_x="have_x=yes \
1182 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1183 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1186 if test "$no_x" = yes; then
1187 # Not all programs may use this symbol, but it does not hurt to define it.
1188 cat >> confdefs.h <<\EOF
1189 #define X_DISPLAY_MISSING 1
1192 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1193 else
1194 if test -n "$x_includes"; then
1195 X_CFLAGS="$X_CFLAGS -I$x_includes"
1198 # It would also be nice to do this for all -L options, not just this one.
1199 if test -n "$x_libraries"; then
1200 X_LIBS="$X_LIBS -L$x_libraries"
1201 # For Solaris; some versions of Sun CC require a space after -R and
1202 # others require no space. Words are not sufficient . . . .
1203 case "`(uname -sr) 2>/dev/null`" in
1204 "SunOS 5"*)
1205 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether -R must be followed by a space" >&5
1207 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1212 int main() {
1214 ; return 0; }
1216 if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1217 rm -rf conftest*
1218 ac_R_nospace=yes
1219 else
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1222 rm -rf conftest*
1223 ac_R_nospace=no
1225 rm -f conftest*
1226 if test $ac_R_nospace = yes; then
1227 echo "$ac_t""no" 1>&6
1228 X_LIBS="$X_LIBS -R$x_libraries"
1229 else
1230 LIBS="$ac_xsave_LIBS -R $x_libraries"
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1235 int main() {
1237 ; return 0; }
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1240 rm -rf conftest*
1241 ac_R_space=yes
1242 else
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1245 rm -rf conftest*
1246 ac_R_space=no
1248 rm -f conftest*
1249 if test $ac_R_space = yes; then
1250 echo "$ac_t""yes" 1>&6
1251 X_LIBS="$X_LIBS -R $x_libraries"
1252 else
1253 echo "$ac_t""neither works" 1>&6
1256 LIBS="$ac_xsave_LIBS"
1257 esac
1260 # Check for system-dependent libraries X programs must link with.
1261 # Do this before checking for the system-independent R6 libraries
1262 # (-lICE), since we may need -lsocket or whatever for X linking.
1264 if test "$ISC" = yes; then
1265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1266 else
1267 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1268 # libraries were built with DECnet support. And karl@cs.umb.edu says
1269 # the Alpha needs dnet_stub (dnet does not exist).
1270 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1271 echo "configure:1272: checking for dnet_ntoa in -ldnet" >&5
1272 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 ac_save_LIBS="$LIBS"
1277 LIBS="-ldnet $LIBS"
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 /* Override any gcc2 internal prototype to avoid an error. */
1282 /* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
1284 char dnet_ntoa();
1286 int main() {
1287 dnet_ntoa()
1288 ; return 0; }
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1291 rm -rf conftest*
1292 eval "ac_cv_lib_$ac_lib_var=yes"
1293 else
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1296 rm -rf conftest*
1297 eval "ac_cv_lib_$ac_lib_var=no"
1299 rm -f conftest*
1300 LIBS="$ac_save_LIBS"
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1306 else
1307 echo "$ac_t""no" 1>&6
1310 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1311 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1312 echo "configure:1313: checking for dnet_ntoa in -ldnet_stub" >&5
1313 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1316 else
1317 ac_save_LIBS="$LIBS"
1318 LIBS="-ldnet_stub $LIBS"
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* Override any gcc2 internal prototype to avoid an error. */
1323 /* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
1325 char dnet_ntoa();
1327 int main() {
1328 dnet_ntoa()
1329 ; return 0; }
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1332 rm -rf conftest*
1333 eval "ac_cv_lib_$ac_lib_var=yes"
1334 else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -rf conftest*
1338 eval "ac_cv_lib_$ac_lib_var=no"
1340 rm -f conftest*
1341 LIBS="$ac_save_LIBS"
1344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1346 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1347 else
1348 echo "$ac_t""no" 1>&6
1353 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1354 # to get the SysV transport functions.
1355 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1356 # needs -lnsl.
1357 # The nsl library prevents programs from opening the X display
1358 # on Irix 5.2, according to dickey@clark.net.
1359 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1360 echo "configure:1361: checking for gethostbyname" >&5
1361 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* System header to define __stub macros and hopefully few prototypes,
1368 which can conflict with char gethostbyname(); below. */
1369 #include <assert.h>
1370 /* Override any gcc2 internal prototype to avoid an error. */
1371 /* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1373 char gethostbyname();
1375 int main() {
1377 /* The GNU C library defines this for functions which it implements
1378 to always fail with ENOSYS. Some functions are actually named
1379 something starting with __ and the normal name is an alias. */
1380 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1381 choke me
1382 #else
1383 gethostbyname();
1384 #endif
1386 ; return 0; }
1388 if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1389 rm -rf conftest*
1390 eval "ac_cv_func_gethostbyname=yes"
1391 else
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1394 rm -rf conftest*
1395 eval "ac_cv_func_gethostbyname=no"
1397 rm -f conftest*
1400 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1401 echo "$ac_t""yes" 1>&6
1403 else
1404 echo "$ac_t""no" 1>&6
1407 if test $ac_cv_func_gethostbyname = no; then
1408 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1409 echo "configure:1410: checking for gethostbyname in -lnsl" >&5
1410 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 ac_save_LIBS="$LIBS"
1415 LIBS="-lnsl $LIBS"
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 /* Override any gcc2 internal prototype to avoid an error. */
1420 /* We use char because int might match the return type of a gcc2
1421 builtin and then its argument prototype would still apply. */
1422 char gethostbyname();
1424 int main() {
1425 gethostbyname()
1426 ; return 0; }
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1429 rm -rf conftest*
1430 eval "ac_cv_lib_$ac_lib_var=yes"
1431 else
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1434 rm -rf conftest*
1435 eval "ac_cv_lib_$ac_lib_var=no"
1437 rm -f conftest*
1438 LIBS="$ac_save_LIBS"
1441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1444 else
1445 echo "$ac_t""no" 1>&6
1450 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1451 # socket/setsockopt and other routines are undefined under SCO ODT
1452 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1453 # on later versions), says simon@lia.di.epfl.ch: it contains
1454 # gethostby* variants that don't use the nameserver (or something).
1455 # -lsocket must be given before -lnsl if both are needed.
1456 # We assume that if connect needs -lnsl, so does gethostbyname.
1457 echo $ac_n "checking for connect""... $ac_c" 1>&6
1458 echo "configure:1459: checking for connect" >&5
1459 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1465 /* System header to define __stub macros and hopefully few prototypes,
1466 which can conflict with char connect(); below. */
1467 #include <assert.h>
1468 /* Override any gcc2 internal prototype to avoid an error. */
1469 /* We use char because int might match the return type of a gcc2
1470 builtin and then its argument prototype would still apply. */
1471 char connect();
1473 int main() {
1475 /* The GNU C library defines this for functions which it implements
1476 to always fail with ENOSYS. Some functions are actually named
1477 something starting with __ and the normal name is an alias. */
1478 #if defined (__stub_connect) || defined (__stub___connect)
1479 choke me
1480 #else
1481 connect();
1482 #endif
1484 ; return 0; }
1486 if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1487 rm -rf conftest*
1488 eval "ac_cv_func_connect=yes"
1489 else
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 rm -rf conftest*
1493 eval "ac_cv_func_connect=no"
1495 rm -f conftest*
1498 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1501 else
1502 echo "$ac_t""no" 1>&6
1505 if test $ac_cv_func_connect = no; then
1506 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1507 echo "configure:1508: checking for connect in -lsocket" >&5
1508 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1511 else
1512 ac_save_LIBS="$LIBS"
1513 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517 /* Override any gcc2 internal prototype to avoid an error. */
1518 /* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1520 char connect();
1522 int main() {
1523 connect()
1524 ; return 0; }
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1527 rm -rf conftest*
1528 eval "ac_cv_lib_$ac_lib_var=yes"
1529 else
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1532 rm -rf conftest*
1533 eval "ac_cv_lib_$ac_lib_var=no"
1535 rm -f conftest*
1536 LIBS="$ac_save_LIBS"
1539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1540 echo "$ac_t""yes" 1>&6
1541 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1542 else
1543 echo "$ac_t""no" 1>&6
1548 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1549 echo $ac_n "checking for remove""... $ac_c" 1>&6
1550 echo "configure:1551: checking for remove" >&5
1551 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* System header to define __stub macros and hopefully few prototypes,
1558 which can conflict with char remove(); below. */
1559 #include <assert.h>
1560 /* Override any gcc2 internal prototype to avoid an error. */
1561 /* We use char because int might match the return type of a gcc2
1562 builtin and then its argument prototype would still apply. */
1563 char remove();
1565 int main() {
1567 /* The GNU C library defines this for functions which it implements
1568 to always fail with ENOSYS. Some functions are actually named
1569 something starting with __ and the normal name is an alias. */
1570 #if defined (__stub_remove) || defined (__stub___remove)
1571 choke me
1572 #else
1573 remove();
1574 #endif
1576 ; return 0; }
1578 if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1579 rm -rf conftest*
1580 eval "ac_cv_func_remove=yes"
1581 else
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -rf conftest*
1585 eval "ac_cv_func_remove=no"
1587 rm -f conftest*
1590 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1593 else
1594 echo "$ac_t""no" 1>&6
1597 if test $ac_cv_func_remove = no; then
1598 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1599 echo "configure:1600: checking for remove in -lposix" >&5
1600 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604 ac_save_LIBS="$LIBS"
1605 LIBS="-lposix $LIBS"
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1612 char remove();
1614 int main() {
1615 remove()
1616 ; return 0; }
1618 if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1619 rm -rf conftest*
1620 eval "ac_cv_lib_$ac_lib_var=yes"
1621 else
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1624 rm -rf conftest*
1625 eval "ac_cv_lib_$ac_lib_var=no"
1627 rm -f conftest*
1628 LIBS="$ac_save_LIBS"
1631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1634 else
1635 echo "$ac_t""no" 1>&6
1640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1642 echo "configure:1643: checking for shmat" >&5
1643 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 /* System header to define __stub macros and hopefully few prototypes,
1650 which can conflict with char shmat(); below. */
1651 #include <assert.h>
1652 /* Override any gcc2 internal prototype to avoid an error. */
1653 /* We use char because int might match the return type of a gcc2
1654 builtin and then its argument prototype would still apply. */
1655 char shmat();
1657 int main() {
1659 /* The GNU C library defines this for functions which it implements
1660 to always fail with ENOSYS. Some functions are actually named
1661 something starting with __ and the normal name is an alias. */
1662 #if defined (__stub_shmat) || defined (__stub___shmat)
1663 choke me
1664 #else
1665 shmat();
1666 #endif
1668 ; return 0; }
1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1671 rm -rf conftest*
1672 eval "ac_cv_func_shmat=yes"
1673 else
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1676 rm -rf conftest*
1677 eval "ac_cv_func_shmat=no"
1679 rm -f conftest*
1682 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1685 else
1686 echo "$ac_t""no" 1>&6
1689 if test $ac_cv_func_shmat = no; then
1690 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1691 echo "configure:1692: checking for shmat in -lipc" >&5
1692 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696 ac_save_LIBS="$LIBS"
1697 LIBS="-lipc $LIBS"
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 /* Override any gcc2 internal prototype to avoid an error. */
1702 /* We use char because int might match the return type of a gcc2
1703 builtin and then its argument prototype would still apply. */
1704 char shmat();
1706 int main() {
1707 shmat()
1708 ; return 0; }
1710 if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=yes"
1713 else
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 rm -rf conftest*
1717 eval "ac_cv_lib_$ac_lib_var=no"
1719 rm -f conftest*
1720 LIBS="$ac_save_LIBS"
1723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1726 else
1727 echo "$ac_t""no" 1>&6
1733 # Check for libraries that X11R6 Xt/Xaw programs need.
1734 ac_save_LDFLAGS="$LDFLAGS"
1735 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1736 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1737 # check for ICE first), but we must link in the order -lSM -lICE or
1738 # we get undefined symbols. So assume we have SM if we have ICE.
1739 # These have to be linked with before -lX11, unlike the other
1740 # libraries we check for below, so use a different variable.
1741 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1742 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1743 echo "configure:1744: checking for IceConnectionNumber in -lICE" >&5
1744 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 ac_save_LIBS="$LIBS"
1749 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* Override any gcc2 internal prototype to avoid an error. */
1754 /* We use char because int might match the return type of a gcc2
1755 builtin and then its argument prototype would still apply. */
1756 char IceConnectionNumber();
1758 int main() {
1759 IceConnectionNumber()
1760 ; return 0; }
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 rm -rf conftest*
1764 eval "ac_cv_lib_$ac_lib_var=yes"
1765 else
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 rm -rf conftest*
1769 eval "ac_cv_lib_$ac_lib_var=no"
1771 rm -f conftest*
1772 LIBS="$ac_save_LIBS"
1775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1778 else
1779 echo "$ac_t""no" 1>&6
1782 LDFLAGS="$ac_save_LDFLAGS"
1786 for ac_prog in 'bison -y' byacc
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 if test -n "$YACC"; then
1796 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1797 else
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1799 ac_dummy="$PATH"
1800 for ac_dir in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_YACC="$ac_prog"
1804 break
1806 done
1807 IFS="$ac_save_ifs"
1810 YACC="$ac_cv_prog_YACC"
1811 if test -n "$YACC"; then
1812 echo "$ac_t""$YACC" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1817 test -n "$YACC" && break
1818 done
1819 test -n "$YACC" || YACC="yacc"
1821 # Extract the first word of "flex", so it can be a program name with args.
1822 set dummy flex; ac_word=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828 if test -n "$LEX"; then
1829 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1830 else
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="$PATH"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_LEX="flex"
1837 break
1839 done
1840 IFS="$ac_save_ifs"
1841 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1844 LEX="$ac_cv_prog_LEX"
1845 if test -n "$LEX"; then
1846 echo "$ac_t""$LEX" 1>&6
1847 else
1848 echo "$ac_t""no" 1>&6
1851 if test -z "$LEXLIB"
1852 then
1853 case "$LEX" in
1854 flex*) ac_lib=fl ;;
1855 *) ac_lib=l ;;
1856 esac
1857 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1858 echo "configure:1859: checking for yywrap in -l$ac_lib" >&5
1859 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 ac_save_LIBS="$LIBS"
1864 LIBS="-l$ac_lib $LIBS"
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 /* Override any gcc2 internal prototype to avoid an error. */
1869 /* We use char because int might match the return type of a gcc2
1870 builtin and then its argument prototype would still apply. */
1871 char yywrap();
1873 int main() {
1874 yywrap()
1875 ; return 0; }
1877 if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1878 rm -rf conftest*
1879 eval "ac_cv_lib_$ac_lib_var=yes"
1880 else
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 rm -rf conftest*
1884 eval "ac_cv_lib_$ac_lib_var=no"
1886 rm -f conftest*
1887 LIBS="$ac_save_LIBS"
1890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1892 LEXLIB="-l$ac_lib"
1893 else
1894 echo "$ac_t""no" 1>&6
1899 for ac_prog in $LEX flex lex
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902 set dummy $ac_prog; ac_word=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1907 else
1908 if test -n "$XLEX"; then
1909 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1910 else
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 ac_dummy="$PATH"
1913 for ac_dir in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir=.
1915 if test -f $ac_dir/$ac_word; then
1916 ac_cv_prog_XLEX="$ac_prog"
1917 break
1919 done
1920 IFS="$ac_save_ifs"
1923 XLEX="$ac_cv_prog_XLEX"
1924 if test -n "$XLEX"; then
1925 echo "$ac_t""$XLEX" 1>&6
1926 else
1927 echo "$ac_t""no" 1>&6
1930 test -n "$XLEX" && break
1931 done
1932 test -n "$XLEX" || XLEX="none"
1934 if test "$XLEX" = "none"
1935 then
1936 echo "*** Error: No suitable lex found. ***"
1937 echo " Please install the 'flex' package."
1938 exit 1
1940 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1941 echo "configure:1942: checking lex output file root" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945 # The minimal lex program is just a single line: %%. But some broken lexes
1946 # (Solaris, I think it was) want two %% lines, so accommodate them.
1947 echo '%%
1948 %%' | $LEX
1949 if test -f lex.yy.c; then
1950 ac_cv_prog_lex_root=lex.yy
1951 elif test -f lexyy.c; then
1952 ac_cv_prog_lex_root=lexyy
1953 else
1954 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1958 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1959 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1961 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether yytext is a pointer" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966 # POSIX says lex can declare yytext either as a pointer or an array; the
1967 # default is implementation-dependent. Figure out which it is, since
1968 # not all implementations provide the %pointer and %array declarations.
1969 ac_cv_prog_lex_yytext_pointer=no
1970 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1971 ac_save_LIBS="$LIBS"
1972 LIBS="$LIBS $LEXLIB"
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 `cat $LEX_OUTPUT_ROOT.c`
1977 int main() {
1979 ; return 0; }
1981 if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1982 rm -rf conftest*
1983 ac_cv_prog_lex_yytext_pointer=yes
1984 else
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 rm -f conftest*
1989 LIBS="$ac_save_LIBS"
1990 rm -f "${LEX_OUTPUT_ROOT}.c"
1994 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1995 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1996 cat >> confdefs.h <<\EOF
1997 #define YYTEXT_POINTER 1
2002 # Extract the first word of "ranlib", so it can be a program name with args.
2003 set dummy ranlib; ac_word=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2008 else
2009 if test -n "$RANLIB"; then
2010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2011 else
2012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2013 ac_dummy="$PATH"
2014 for ac_dir in $ac_dummy; do
2015 test -z "$ac_dir" && ac_dir=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_RANLIB="ranlib"
2018 break
2020 done
2021 IFS="$ac_save_ifs"
2022 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2025 RANLIB="$ac_cv_prog_RANLIB"
2026 if test -n "$RANLIB"; then
2027 echo "$ac_t""$RANLIB" 1>&6
2028 else
2029 echo "$ac_t""no" 1>&6
2032 # Find a good install program. We prefer a C program (faster),
2033 # so one script is as good as another. But avoid the broken or
2034 # incompatible versions:
2035 # SysV /etc/install, /usr/sbin/install
2036 # SunOS /usr/etc/install
2037 # IRIX /sbin/install
2038 # AIX /bin/install
2039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2042 # ./install, which can be erroneously created by make from ./install.sh.
2043 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2044 echo "configure:2045: checking for a BSD compatible install" >&5
2045 if test -z "$INSTALL"; then
2046 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2050 for ac_dir in $PATH; do
2051 # Account for people who put trailing slashes in PATH elements.
2052 case "$ac_dir/" in
2053 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2055 # OSF1 and SCO ODT 3.0 have their own names for install.
2056 # Don't use installbsd from OSF since it installs stuff as root
2057 # by default.
2058 for ac_prog in ginstall scoinst install; do
2059 if test -f $ac_dir/$ac_prog; then
2060 if test $ac_prog = install &&
2061 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2062 # AIX install. It has an incompatible calling convention.
2064 else
2065 ac_cv_path_install="$ac_dir/$ac_prog -c"
2066 break 2
2069 done
2071 esac
2072 done
2073 IFS="$ac_save_IFS"
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL="$ac_cv_path_install"
2078 else
2079 # As a last resort, use the slow shell script. We don't cache a
2080 # path for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the path is relative.
2083 INSTALL="$ac_install_sh"
2086 echo "$ac_t""$INSTALL" 1>&6
2088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2089 # It thinks the first close brace ends the variable substitution.
2090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2096 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether ln -s works" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 rm -f conftestdata
2102 if ln -s X conftestdata 2>/dev/null
2103 then
2104 rm -f conftestdata
2105 ac_cv_prog_LN_S="ln -s"
2106 else
2107 ac_cv_prog_LN_S=ln
2110 LN_S="$ac_cv_prog_LN_S"
2111 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2112 echo "$ac_t""yes" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2117 # Extract the first word of "c2man", so it can be a program name with args.
2118 set dummy c2man; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 if test -n "$C2MAN"; then
2125 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2126 else
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2128 ac_dummy="$PATH"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_C2MAN="c2man"
2133 break
2135 done
2136 IFS="$ac_save_ifs"
2137 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2140 C2MAN="$ac_cv_prog_C2MAN"
2141 if test -n "$C2MAN"; then
2142 echo "$ac_t""$C2MAN" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2147 # Extract the first word of "ldconfig", so it can be a program name with args.
2148 set dummy ldconfig; ac_word=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 case "$LDCONFIG" in
2156 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2158 ?:/*)
2159 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2163 ac_dummy="/sbin:/usr/sbin:$PATH"
2164 for ac_dir in $ac_dummy; do
2165 test -z "$ac_dir" && ac_dir=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2168 break
2170 done
2171 IFS="$ac_save_ifs"
2172 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2174 esac
2176 LDCONFIG="$ac_cv_path_LDCONFIG"
2177 if test -n "$LDCONFIG"; then
2178 echo "$ac_t""$LDCONFIG" 1>&6
2179 else
2180 echo "$ac_t""no" 1>&6
2183 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2184 echo "configure:2185: checking for Cygwin environment" >&5
2185 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2192 int main() {
2194 #ifndef __CYGWIN__
2195 #define __CYGWIN__ __CYGWIN32__
2196 #endif
2197 return __CYGWIN__;
2198 ; return 0; }
2200 if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 rm -rf conftest*
2202 ac_cv_cygwin=yes
2203 else
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -rf conftest*
2207 ac_cv_cygwin=no
2209 rm -f conftest*
2210 rm -f conftest*
2213 echo "$ac_t""$ac_cv_cygwin" 1>&6
2214 CYGWIN=
2215 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2216 # Extract the first word of "dllwrap", so it can be a program name with args.
2217 set dummy dllwrap; ac_word=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 if test -n "$DLLWRAP"; then
2224 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2225 else
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2227 ac_dummy="$PATH"
2228 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_prog_DLLWRAP="dllwrap"
2232 break
2234 done
2235 IFS="$ac_save_ifs"
2236 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2239 DLLWRAP="$ac_cv_prog_DLLWRAP"
2240 if test -n "$DLLWRAP"; then
2241 echo "$ac_t""$DLLWRAP" 1>&6
2242 else
2243 echo "$ac_t""no" 1>&6
2247 for ac_prog in lclint lint
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 if test -n "$LINT"; then
2257 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2258 else
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2260 ac_dummy="$PATH"
2261 for ac_dir in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_prog_LINT="$ac_prog"
2265 break
2267 done
2268 IFS="$ac_save_ifs"
2271 LINT="$ac_cv_prog_LINT"
2272 if test -n "$LINT"; then
2273 echo "$ac_t""$LINT" 1>&6
2274 else
2275 echo "$ac_t""no" 1>&6
2278 test -n "$LINT" && break
2279 done
2281 if test "$LINT" = "lint"
2282 then
2283 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2288 if test "$CYGWIN" = "yes"
2289 then
2290 LDCOMBINE="ld -r --enable-stdcall-fixup"
2291 else
2292 LDCOMBINE="ld -r"
2297 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2298 echo "configure:2299: checking for sqrt in -lm" >&5
2299 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 ac_save_LIBS="$LIBS"
2304 LIBS="-lm $LIBS"
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* Override any gcc2 internal prototype to avoid an error. */
2309 /* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2311 char sqrt();
2313 int main() {
2314 sqrt()
2315 ; return 0; }
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318 rm -rf conftest*
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2320 else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 eval "ac_cv_lib_$ac_lib_var=no"
2326 rm -f conftest*
2327 LIBS="$ac_save_LIBS"
2330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2334 cat >> confdefs.h <<EOF
2335 #define $ac_tr_lib 1
2338 LIBS="-lm $LIBS"
2340 else
2341 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2345 echo "configure:2346: checking for i386_set_ldt in -li386" >&5
2346 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350 ac_save_LIBS="$LIBS"
2351 LIBS="-li386 $LIBS"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2358 char i386_set_ldt();
2360 int main() {
2361 i386_set_ldt()
2362 ; return 0; }
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 rm -rf conftest*
2366 eval "ac_cv_lib_$ac_lib_var=yes"
2367 else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 eval "ac_cv_lib_$ac_lib_var=no"
2373 rm -f conftest*
2374 LIBS="$ac_save_LIBS"
2377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_lib 1
2385 LIBS="-li386 $LIBS"
2387 else
2388 echo "$ac_t""no" 1>&6
2391 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2392 echo "configure:2393: checking for _oss_ioctl in -lossaudio" >&5
2393 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2396 else
2397 ac_save_LIBS="$LIBS"
2398 LIBS="-lossaudio $LIBS"
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405 char _oss_ioctl();
2407 int main() {
2408 _oss_ioctl()
2409 ; return 0; }
2411 if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2412 rm -rf conftest*
2413 eval "ac_cv_lib_$ac_lib_var=yes"
2414 else
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 rm -rf conftest*
2418 eval "ac_cv_lib_$ac_lib_var=no"
2420 rm -f conftest*
2421 LIBS="$ac_save_LIBS"
2424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2428 cat >> confdefs.h <<EOF
2429 #define $ac_tr_lib 1
2432 LIBS="-lossaudio $LIBS"
2434 else
2435 echo "$ac_t""no" 1>&6
2438 for ac_func in iswalnum
2440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_func" >&5
2442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444 else
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 /* System header to define __stub macros and hopefully few prototypes,
2449 which can conflict with char $ac_func(); below. */
2450 #include <assert.h>
2451 /* Override any gcc2 internal prototype to avoid an error. */
2452 /* We use char because int might match the return type of a gcc2
2453 builtin and then its argument prototype would still apply. */
2454 char $ac_func();
2456 int main() {
2458 /* The GNU C library defines this for functions which it implements
2459 to always fail with ENOSYS. Some functions are actually named
2460 something starting with __ and the normal name is an alias. */
2461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2462 choke me
2463 #else
2464 $ac_func();
2465 #endif
2467 ; return 0; }
2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 rm -rf conftest*
2471 eval "ac_cv_func_$ac_func=yes"
2472 else
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -rf conftest*
2476 eval "ac_cv_func_$ac_func=no"
2478 rm -f conftest*
2481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2482 echo "$ac_t""yes" 1>&6
2483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2484 cat >> confdefs.h <<EOF
2485 #define $ac_tr_func 1
2488 else
2489 echo "$ac_t""no" 1>&6
2490 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2491 echo "configure:2492: checking for iswalnum in -lw" >&5
2492 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495 else
2496 ac_save_LIBS="$LIBS"
2497 LIBS="-lw $LIBS"
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 /* Override any gcc2 internal prototype to avoid an error. */
2502 /* We use char because int might match the return type of a gcc2
2503 builtin and then its argument prototype would still apply. */
2504 char iswalnum();
2506 int main() {
2507 iswalnum()
2508 ; return 0; }
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511 rm -rf conftest*
2512 eval "ac_cv_lib_$ac_lib_var=yes"
2513 else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 eval "ac_cv_lib_$ac_lib_var=no"
2519 rm -f conftest*
2520 LIBS="$ac_save_LIBS"
2523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2527 cat >> confdefs.h <<EOF
2528 #define $ac_tr_lib 1
2531 LIBS="-lw $LIBS"
2533 else
2534 echo "$ac_t""no" 1>&6
2538 done
2540 for ac_func in gethostbyname
2542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_func" >&5
2544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char $ac_func(); below. */
2552 #include <assert.h>
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2556 char $ac_func();
2558 int main() {
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2564 choke me
2565 #else
2566 $ac_func();
2567 #endif
2569 ; return 0; }
2571 if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2572 rm -rf conftest*
2573 eval "ac_cv_func_$ac_func=yes"
2574 else
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 rm -rf conftest*
2578 eval "ac_cv_func_$ac_func=no"
2580 rm -f conftest*
2583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2586 cat >> confdefs.h <<EOF
2587 #define $ac_tr_func 1
2590 else
2591 echo "$ac_t""no" 1>&6
2592 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2593 echo "configure:2594: checking for gethostbyname in -lnsl" >&5
2594 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598 ac_save_LIBS="$LIBS"
2599 LIBS="-lnsl $LIBS"
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606 char gethostbyname();
2608 int main() {
2609 gethostbyname()
2610 ; return 0; }
2612 if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2613 rm -rf conftest*
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2615 else
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 eval "ac_cv_lib_$ac_lib_var=no"
2621 rm -f conftest*
2622 LIBS="$ac_save_LIBS"
2625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2629 cat >> confdefs.h <<EOF
2630 #define $ac_tr_lib 1
2633 LIBS="-lnsl $LIBS"
2635 else
2636 echo "$ac_t""no" 1>&6
2640 done
2642 for ac_func in connect
2644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_func" >&5
2646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $ac_func(); below. */
2654 #include <assert.h>
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2658 char $ac_func();
2660 int main() {
2662 /* The GNU C library defines this for functions which it implements
2663 to always fail with ENOSYS. Some functions are actually named
2664 something starting with __ and the normal name is an alias. */
2665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2666 choke me
2667 #else
2668 $ac_func();
2669 #endif
2671 ; return 0; }
2673 if { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2674 rm -rf conftest*
2675 eval "ac_cv_func_$ac_func=yes"
2676 else
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 rm -rf conftest*
2680 eval "ac_cv_func_$ac_func=no"
2682 rm -f conftest*
2685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2688 cat >> confdefs.h <<EOF
2689 #define $ac_tr_func 1
2692 else
2693 echo "$ac_t""no" 1>&6
2694 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2695 echo "configure:2696: checking for connect in -lsocket" >&5
2696 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 ac_save_LIBS="$LIBS"
2701 LIBS="-lsocket $LIBS"
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2708 char connect();
2710 int main() {
2711 connect()
2712 ; return 0; }
2714 if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2715 rm -rf conftest*
2716 eval "ac_cv_lib_$ac_lib_var=yes"
2717 else
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 rm -rf conftest*
2721 eval "ac_cv_lib_$ac_lib_var=no"
2723 rm -f conftest*
2724 LIBS="$ac_save_LIBS"
2727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2731 cat >> confdefs.h <<EOF
2732 #define $ac_tr_lib 1
2735 LIBS="-lsocket $LIBS"
2737 else
2738 echo "$ac_t""no" 1>&6
2742 done
2744 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2745 echo "configure:2746: checking for _xpg4_setrunelocale in -lxpg4" >&5
2746 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750 ac_save_LIBS="$LIBS"
2751 LIBS="-lxpg4 $LIBS"
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 /* Override any gcc2 internal prototype to avoid an error. */
2756 /* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
2758 char _xpg4_setrunelocale();
2760 int main() {
2761 _xpg4_setrunelocale()
2762 ; return 0; }
2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2765 rm -rf conftest*
2766 eval "ac_cv_lib_$ac_lib_var=yes"
2767 else
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
2771 eval "ac_cv_lib_$ac_lib_var=no"
2773 rm -f conftest*
2774 LIBS="$ac_save_LIBS"
2777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2781 cat >> confdefs.h <<EOF
2782 #define $ac_tr_lib 1
2785 LIBS="-lxpg4 $LIBS"
2787 else
2788 echo "$ac_t""no" 1>&6
2791 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2792 echo "configure:2793: checking for mmap in -lmmap" >&5
2793 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797 ac_save_LIBS="$LIBS"
2798 LIBS="-lmmap $LIBS"
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805 char mmap();
2807 int main() {
2808 mmap()
2809 ; return 0; }
2811 if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812 rm -rf conftest*
2813 eval "ac_cv_lib_$ac_lib_var=yes"
2814 else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 rm -rf conftest*
2818 eval "ac_cv_lib_$ac_lib_var=no"
2820 rm -f conftest*
2821 LIBS="$ac_save_LIBS"
2824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2828 cat >> confdefs.h <<EOF
2829 #define $ac_tr_lib 1
2832 LIBS="-lmmap $LIBS"
2834 else
2835 echo "$ac_t""no" 1>&6
2838 for ac_func in openpty
2840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2841 echo "configure:2842: checking for $ac_func" >&5
2842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2844 else
2845 cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2848 /* System header to define __stub macros and hopefully few prototypes,
2849 which can conflict with char $ac_func(); below. */
2850 #include <assert.h>
2851 /* Override any gcc2 internal prototype to avoid an error. */
2852 /* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2854 char $ac_func();
2856 int main() {
2858 /* The GNU C library defines this for functions which it implements
2859 to always fail with ENOSYS. Some functions are actually named
2860 something starting with __ and the normal name is an alias. */
2861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2862 choke me
2863 #else
2864 $ac_func();
2865 #endif
2867 ; return 0; }
2869 if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2870 rm -rf conftest*
2871 eval "ac_cv_func_$ac_func=yes"
2872 else
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2875 rm -rf conftest*
2876 eval "ac_cv_func_$ac_func=no"
2878 rm -f conftest*
2881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2884 cat >> confdefs.h <<EOF
2885 #define $ac_tr_func 1
2888 else
2889 echo "$ac_t""no" 1>&6
2890 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2891 echo "configure:2892: checking for openpty in -lutil" >&5
2892 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2895 else
2896 ac_save_LIBS="$LIBS"
2897 LIBS="-lutil $LIBS"
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901 /* Override any gcc2 internal prototype to avoid an error. */
2902 /* We use char because int might match the return type of a gcc2
2903 builtin and then its argument prototype would still apply. */
2904 char openpty();
2906 int main() {
2907 openpty()
2908 ; return 0; }
2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911 rm -rf conftest*
2912 eval "ac_cv_lib_$ac_lib_var=yes"
2913 else
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 rm -rf conftest*
2917 eval "ac_cv_lib_$ac_lib_var=no"
2919 rm -f conftest*
2920 LIBS="$ac_save_LIBS"
2923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 cat >> confdefs.h <<\EOF
2926 #define HAVE_OPENPTY 1
2929 LIBS="$LIBS -lutil"
2931 else
2932 echo "$ac_t""no" 1>&6
2936 done
2939 for ac_hdr in dlfcn.h
2941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946 else
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <$ac_hdr>
2952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2956 rm -rf conftest*
2957 eval "ac_cv_header_$ac_safe=yes"
2958 else
2959 echo "$ac_err" >&5
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -rf conftest*
2963 eval "ac_cv_header_$ac_safe=no"
2965 rm -f conftest*
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h <<EOF
2971 #define $ac_tr_hdr 1
2973 for ac_func in dlopen
2975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_func" >&5
2977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979 else
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char $ac_func(); below. */
2985 #include <assert.h>
2986 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2989 char $ac_func();
2991 int main() {
2993 /* The GNU C library defines this for functions which it implements
2994 to always fail with ENOSYS. Some functions are actually named
2995 something starting with __ and the normal name is an alias. */
2996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2997 choke me
2998 #else
2999 $ac_func();
3000 #endif
3002 ; return 0; }
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3005 rm -rf conftest*
3006 eval "ac_cv_func_$ac_func=yes"
3007 else
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -rf conftest*
3011 eval "ac_cv_func_$ac_func=no"
3013 rm -f conftest*
3016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3019 cat >> confdefs.h <<EOF
3020 #define $ac_tr_func 1
3022 cat >> confdefs.h <<\EOF
3023 #define HAVE_DL_API 1
3026 else
3027 echo "$ac_t""no" 1>&6
3028 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3029 echo "configure:3030: checking for dlopen in -ldl" >&5
3030 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3033 else
3034 ac_save_LIBS="$LIBS"
3035 LIBS="-ldl $LIBS"
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 /* Override any gcc2 internal prototype to avoid an error. */
3040 /* We use char because int might match the return type of a gcc2
3041 builtin and then its argument prototype would still apply. */
3042 char dlopen();
3044 int main() {
3045 dlopen()
3046 ; return 0; }
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3049 rm -rf conftest*
3050 eval "ac_cv_lib_$ac_lib_var=yes"
3051 else
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 rm -rf conftest*
3055 eval "ac_cv_lib_$ac_lib_var=no"
3057 rm -f conftest*
3058 LIBS="$ac_save_LIBS"
3061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 cat >> confdefs.h <<\EOF
3064 #define HAVE_DL_API 1
3067 LIBS="$LIBS -ldl"
3068 else
3069 echo "$ac_t""no" 1>&6
3070 LIBEXT="a"
3076 done
3078 else
3079 echo "$ac_t""no" 1>&6
3080 LIBEXT="a"
3083 done
3087 X_DLLS=""
3089 XFILES=""
3091 OPENGLFILES=""
3093 OPENGL32_DLL=""
3094 GLU32FILES=""
3096 GLU32_DLL=""
3098 if test "$have_x" = "yes"
3099 then
3100 XLIB="-lXext -lX11"
3101 ac_save_CPPFLAGS="$CPPFLAGS"
3102 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3104 for ac_hdr in X11/xpm.h
3106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3108 echo "configure:3109: checking for $ac_hdr" >&5
3109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3111 else
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 #include <$ac_hdr>
3117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3118 { (eval echo configure:3119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3120 if test -z "$ac_err"; then
3121 rm -rf conftest*
3122 eval "ac_cv_header_$ac_safe=yes"
3123 else
3124 echo "$ac_err" >&5
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -rf conftest*
3128 eval "ac_cv_header_$ac_safe=no"
3130 rm -f conftest*
3132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3135 cat >> confdefs.h <<EOF
3136 #define $ac_tr_hdr 1
3138 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3139 echo "configure:3140: checking for XpmCreatePixmapFromData in -lXpm" >&5
3140 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144 ac_save_LIBS="$LIBS"
3145 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3146 $LIBS"
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150 /* Override any gcc2 internal prototype to avoid an error. */
3151 /* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */
3153 char XpmCreatePixmapFromData();
3155 int main() {
3156 XpmCreatePixmapFromData()
3157 ; return 0; }
3159 if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3160 rm -rf conftest*
3161 eval "ac_cv_lib_$ac_lib_var=yes"
3162 else
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3165 rm -rf conftest*
3166 eval "ac_cv_lib_$ac_lib_var=no"
3168 rm -f conftest*
3169 LIBS="$ac_save_LIBS"
3172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3173 echo "$ac_t""yes" 1>&6
3174 cat >> confdefs.h <<\EOF
3175 #define HAVE_LIBXXPM 1
3177 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3178 else
3179 echo "$ac_t""no" 1>&6
3183 else
3184 echo "$ac_t""no" 1>&6
3185 echo "Redhat : xpm xpm-devel"
3186 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3187 echo "SuSE : xpm"
3188 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3189 echo
3190 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3191 echo "the directory /contrib/libraries."
3192 echo
3193 exit 1
3197 done
3200 for ac_hdr in X11/Xlib.h
3202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3204 echo "configure:3205: checking for $ac_hdr" >&5
3205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3207 else
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <$ac_hdr>
3213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3214 { (eval echo configure:3215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3216 if test -z "$ac_err"; then
3217 rm -rf conftest*
3218 eval "ac_cv_header_$ac_safe=yes"
3219 else
3220 echo "$ac_err" >&5
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -rf conftest*
3224 eval "ac_cv_header_$ac_safe=no"
3226 rm -f conftest*
3228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3231 cat >> confdefs.h <<EOF
3232 #define $ac_tr_hdr 1
3235 for ac_hdr in X11/XKBlib.h
3237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_hdr" >&5
3240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3242 else
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 #include <$ac_hdr>
3248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3249 { (eval echo configure:3250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3251 if test -z "$ac_err"; then
3252 rm -rf conftest*
3253 eval "ac_cv_header_$ac_safe=yes"
3254 else
3255 echo "$ac_err" >&5
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3258 rm -rf conftest*
3259 eval "ac_cv_header_$ac_safe=no"
3261 rm -f conftest*
3263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3266 cat >> confdefs.h <<EOF
3267 #define $ac_tr_hdr 1
3269 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3270 echo "configure:3271: checking for XkbQueryExtension in -lX11" >&5
3271 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3274 else
3275 ac_save_LIBS="$LIBS"
3276 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3283 char XkbQueryExtension();
3285 int main() {
3286 XkbQueryExtension()
3287 ; return 0; }
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3290 rm -rf conftest*
3291 eval "ac_cv_lib_$ac_lib_var=yes"
3292 else
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 rm -rf conftest*
3296 eval "ac_cv_lib_$ac_lib_var=no"
3298 rm -f conftest*
3299 LIBS="$ac_save_LIBS"
3302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3303 echo "$ac_t""yes" 1>&6
3304 cat >> confdefs.h <<\EOF
3305 #define HAVE_XKB 1
3308 else
3309 echo "$ac_t""no" 1>&6
3313 else
3314 echo "$ac_t""no" 1>&6
3315 echo "configure: warning: XKB extension not found!!" 1>&2
3318 done
3321 for ac_hdr in X11/extensions/XShm.h
3323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_hdr" >&5
3326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3328 else
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <$ac_hdr>
3334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3335 { (eval echo configure:3336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3337 if test -z "$ac_err"; then
3338 rm -rf conftest*
3339 eval "ac_cv_header_$ac_safe=yes"
3340 else
3341 echo "$ac_err" >&5
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3344 rm -rf conftest*
3345 eval "ac_cv_header_$ac_safe=no"
3347 rm -f conftest*
3349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3350 echo "$ac_t""yes" 1>&6
3351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3352 cat >> confdefs.h <<EOF
3353 #define $ac_tr_hdr 1
3355 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3356 echo "configure:3357: checking for XShmQueryExtension in -lXext" >&5
3357 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3360 else
3361 ac_save_LIBS="$LIBS"
3362 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 /* We use char because int might match the return type of a gcc2
3368 builtin and then its argument prototype would still apply. */
3369 char XShmQueryExtension();
3371 int main() {
3372 XShmQueryExtension()
3373 ; return 0; }
3375 if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3376 rm -rf conftest*
3377 eval "ac_cv_lib_$ac_lib_var=yes"
3378 else
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 rm -rf conftest*
3382 eval "ac_cv_lib_$ac_lib_var=no"
3384 rm -f conftest*
3385 LIBS="$ac_save_LIBS"
3388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3389 echo "$ac_t""yes" 1>&6
3390 cat >> confdefs.h <<\EOF
3391 #define HAVE_LIBXXSHM 1
3394 else
3395 echo "$ac_t""no" 1>&6
3399 else
3400 echo "$ac_t""no" 1>&6
3401 echo "configure: warning: Xshm extension not found!!" 1>&2
3404 done
3407 for ac_hdr in X11/extensions/shape.h
3409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_hdr" >&5
3412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3414 else
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 #include <$ac_hdr>
3420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3421 { (eval echo configure:3422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3423 if test -z "$ac_err"; then
3424 rm -rf conftest*
3425 eval "ac_cv_header_$ac_safe=yes"
3426 else
3427 echo "$ac_err" >&5
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 rm -rf conftest*
3431 eval "ac_cv_header_$ac_safe=no"
3433 rm -f conftest*
3435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3436 echo "$ac_t""yes" 1>&6
3437 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3438 cat >> confdefs.h <<EOF
3439 #define $ac_tr_hdr 1
3441 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3442 echo "configure:3443: checking for XShapeQueryExtension in -lXext" >&5
3443 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3446 else
3447 ac_save_LIBS="$LIBS"
3448 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 /* Override any gcc2 internal prototype to avoid an error. */
3453 /* We use char because int might match the return type of a gcc2
3454 builtin and then its argument prototype would still apply. */
3455 char XShapeQueryExtension();
3457 int main() {
3458 XShapeQueryExtension()
3459 ; return 0; }
3461 if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3462 rm -rf conftest*
3463 eval "ac_cv_lib_$ac_lib_var=yes"
3464 else
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 rm -rf conftest*
3468 eval "ac_cv_lib_$ac_lib_var=no"
3470 rm -f conftest*
3471 LIBS="$ac_save_LIBS"
3474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3475 echo "$ac_t""yes" 1>&6
3476 cat >> confdefs.h <<\EOF
3477 #define HAVE_LIBXSHAPE 1
3480 else
3481 echo "$ac_t""no" 1>&6
3485 else
3486 echo "$ac_t""no" 1>&6
3487 echo "configure: warning: XShape extension not found!!" 1>&2
3490 done
3493 for ac_hdr in X11/extensions/xf86dga.h
3495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3497 echo "configure:3498: checking for $ac_hdr" >&5
3498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <$ac_hdr>
3506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3507 { (eval echo configure:3508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3509 if test -z "$ac_err"; then
3510 rm -rf conftest*
3511 eval "ac_cv_header_$ac_safe=yes"
3512 else
3513 echo "$ac_err" >&5
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 rm -rf conftest*
3517 eval "ac_cv_header_$ac_safe=no"
3519 rm -f conftest*
3521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3524 cat >> confdefs.h <<EOF
3525 #define $ac_tr_hdr 1
3527 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3528 echo "configure:3529: checking for XDGAQueryExtension in -lXxf86dga" >&5
3529 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3532 else
3533 ac_save_LIBS="$LIBS"
3534 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3535 $LIBS"
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char XDGAQueryExtension();
3544 int main() {
3545 XDGAQueryExtension()
3546 ; return 0; }
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3549 rm -rf conftest*
3550 eval "ac_cv_lib_$ac_lib_var=yes"
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 eval "ac_cv_lib_$ac_lib_var=no"
3557 rm -f conftest*
3558 LIBS="$ac_save_LIBS"
3561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 cat >> confdefs.h <<\EOF
3564 #define HAVE_LIBXXF86DGA2 1
3567 cat >> confdefs.h <<\EOF
3568 #define HAVE_LIBXXF86DGA 1
3571 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3573 else
3574 echo "$ac_t""no" 1>&6
3575 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3576 echo "configure:3577: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3577 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3580 else
3581 ac_save_LIBS="$LIBS"
3582 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3583 $LIBS"
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* Override any gcc2 internal prototype to avoid an error. */
3588 /* We use char because int might match the return type of a gcc2
3589 builtin and then its argument prototype would still apply. */
3590 char XF86DGAQueryExtension();
3592 int main() {
3593 XF86DGAQueryExtension()
3594 ; return 0; }
3596 if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3597 rm -rf conftest*
3598 eval "ac_cv_lib_$ac_lib_var=yes"
3599 else
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3602 rm -rf conftest*
3603 eval "ac_cv_lib_$ac_lib_var=no"
3605 rm -f conftest*
3606 LIBS="$ac_save_LIBS"
3609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3611 cat >> confdefs.h <<\EOF
3612 #define HAVE_LIBXXF86DGA 1
3615 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3617 else
3618 echo "$ac_t""no" 1>&6
3625 else
3626 echo "$ac_t""no" 1>&6
3627 echo "configure: warning: DGA extension not found!!" 1>&2
3630 done
3633 for ac_hdr in X11/extensions/xf86vmode.h
3635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3637 echo "configure:3638: checking for $ac_hdr" >&5
3638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3640 else
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <$ac_hdr>
3646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3647 { (eval echo configure:3648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3649 if test -z "$ac_err"; then
3650 rm -rf conftest*
3651 eval "ac_cv_header_$ac_safe=yes"
3652 else
3653 echo "$ac_err" >&5
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 rm -rf conftest*
3657 eval "ac_cv_header_$ac_safe=no"
3659 rm -f conftest*
3661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3662 echo "$ac_t""yes" 1>&6
3663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3664 cat >> confdefs.h <<EOF
3665 #define $ac_tr_hdr 1
3667 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3668 echo "configure:3669: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3669 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3672 else
3673 ac_save_LIBS="$LIBS"
3674 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3675 $LIBS"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* Override any gcc2 internal prototype to avoid an error. */
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3682 char XF86VidModeQueryExtension();
3684 int main() {
3685 XF86VidModeQueryExtension()
3686 ; return 0; }
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 rm -rf conftest*
3690 eval "ac_cv_lib_$ac_lib_var=yes"
3691 else
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 rm -rf conftest*
3695 eval "ac_cv_lib_$ac_lib_var=no"
3697 rm -f conftest*
3698 LIBS="$ac_save_LIBS"
3701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 cat >> confdefs.h <<\EOF
3704 #define HAVE_LIBXXF86VM 1
3707 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3709 else
3710 echo "$ac_t""no" 1>&6
3714 else
3715 echo "$ac_t""no" 1>&6
3716 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3719 done
3722 for ac_hdr in X11/extensions/Xvlib.h
3724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_hdr" >&5
3727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3729 else
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 #include <$ac_hdr>
3735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3736 { (eval echo configure:3737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3738 if test -z "$ac_err"; then
3739 rm -rf conftest*
3740 eval "ac_cv_header_$ac_safe=yes"
3741 else
3742 echo "$ac_err" >&5
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 rm -rf conftest*
3746 eval "ac_cv_header_$ac_safe=no"
3748 rm -f conftest*
3750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3753 cat >> confdefs.h <<EOF
3754 #define $ac_tr_hdr 1
3756 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3757 echo "configure:3758: checking for XvShmCreateImage in -lXv" >&5
3758 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3761 else
3762 ac_save_LIBS="$LIBS"
3763 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3764 $LIBS"
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3771 char XvShmCreateImage();
3773 int main() {
3774 XvShmCreateImage()
3775 ; return 0; }
3777 if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 rm -rf conftest*
3779 eval "ac_cv_lib_$ac_lib_var=yes"
3780 else
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 rm -rf conftest*
3784 eval "ac_cv_lib_$ac_lib_var=no"
3786 rm -f conftest*
3787 LIBS="$ac_save_LIBS"
3790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3791 echo "$ac_t""yes" 1>&6
3792 cat >> confdefs.h <<\EOF
3793 #define HAVE_XVIDEO 1
3796 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3798 else
3799 echo "$ac_t""no" 1>&6
3803 else
3804 echo "$ac_t""no" 1>&6
3805 echo "configure: warning: XVideo extension not found !!" 1>&2
3808 done
3813 else
3814 echo "$ac_t""no" 1>&6
3816 done
3818 if test $OPENGL = "yes" -o $OPENGL = "normal"
3819 then
3820 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_hdr" >&5
3825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <$ac_hdr>
3833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3834 { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3836 if test -z "$ac_err"; then
3837 rm -rf conftest*
3838 eval "ac_cv_header_$ac_safe=yes"
3839 else
3840 echo "$ac_err" >&5
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
3844 eval "ac_cv_header_$ac_safe=no"
3846 rm -f conftest*
3848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3851 cat >> confdefs.h <<EOF
3852 #define $ac_tr_hdr 1
3855 else
3856 echo "$ac_t""no" 1>&6
3858 done
3860 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3861 then
3862 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3863 echo "configure:3864: checking "for up-to-date OpenGL version"" >&5
3864 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3866 else
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 #include <GL/gl.h>
3871 int main() {
3872 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3873 ; return 0; }
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3876 rm -rf conftest*
3877 wine_cv_opengl_version_OK="yes"
3878 else
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 rm -rf conftest*
3882 wine_cv_opengl_version_OK="no"
3885 rm -f conftest*
3889 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3891 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3892 echo "configure:3893: checking "for thread-safe OpenGL version"" >&5
3893 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3895 else
3896 saved_libs=$LIBS
3897 LIBS="$X_LIBS -lGL"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3902 int main() {
3903 pthread_getspecific();
3904 ; return 0; }
3906 if { (eval echo configure:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3907 rm -rf conftest*
3908 wine_cv_opengl_version_threadsafe="yes"
3909 else
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3912 rm -rf conftest*
3913 wine_cv_opengl_version_threadsafe="no"
3915 rm -f conftest*
3916 LIBS=$saved_libs
3920 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3922 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3923 then
3924 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3925 echo "configure:3926: checking for glXCreateContext in -lGL" >&5
3926 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3928 echo $ac_n "(cached) $ac_c" 1>&6
3929 else
3930 ac_save_LIBS="$LIBS"
3931 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
3938 char glXCreateContext();
3940 int main() {
3941 glXCreateContext()
3942 ; return 0; }
3944 if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3945 rm -rf conftest*
3946 eval "ac_cv_lib_$ac_lib_var=yes"
3947 else
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3950 rm -rf conftest*
3951 eval "ac_cv_lib_$ac_lib_var=no"
3953 rm -f conftest*
3954 LIBS="$ac_save_LIBS"
3957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3958 echo "$ac_t""yes" 1>&6
3959 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3961 else
3962 echo "$ac_t""no" 1>&6
3966 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3967 then
3969 OPENGLFILES='$(OPENGLFILES)'
3970 cat >> confdefs.h <<\EOF
3971 #define HAVE_OPENGL 1
3975 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3976 echo "configure:3977: checking for glXGetProcAddressARB in -lGL" >&5
3977 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3980 else
3981 ac_save_LIBS="$LIBS"
3982 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 /* Override any gcc2 internal prototype to avoid an error. */
3987 /* We use char because int might match the return type of a gcc2
3988 builtin and then its argument prototype would still apply. */
3989 char glXGetProcAddressARB();
3991 int main() {
3992 glXGetProcAddressARB()
3993 ; return 0; }
3995 if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3996 rm -rf conftest*
3997 eval "ac_cv_lib_$ac_lib_var=yes"
3998 else
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4001 rm -rf conftest*
4002 eval "ac_cv_lib_$ac_lib_var=no"
4004 rm -f conftest*
4005 LIBS="$ac_save_LIBS"
4008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4009 echo "$ac_t""yes" 1>&6
4010 cat >> confdefs.h <<\EOF
4011 #define HAVE_GLX_GETPROCADDRESS 1
4014 else
4015 echo "$ac_t""no" 1>&6
4019 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4020 then
4021 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
4022 echo "configure:4023: checking "for OpenGL extension functions prototypes"" >&5
4023 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4025 else
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <GL/gl.h>
4030 #ifdef HAVE_GL_GLEXT_H
4031 # include <GL/glext.h>
4032 #endif
4034 int main() {
4035 PFNGLCOLORTABLEEXTPROC test_proc;
4036 ; return 0; }
4038 if { (eval echo configure:4039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4039 rm -rf conftest*
4040 wine_cv_extension_prototypes="yes"
4041 else
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4044 rm -rf conftest*
4045 wine_cv_extension_prototypes="no"
4048 rm -f conftest*
4052 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4053 if test $wine_cv_extension_prototypes = "yes"
4054 then
4055 cat >> confdefs.h <<\EOF
4056 #define HAVE_GLEXT_PROTOTYPES 1
4061 OPENGL32_DLL=opengl32
4064 for ac_hdr in GL/osmesa.h
4066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4068 echo "configure:4069: checking for $ac_hdr" >&5
4069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4071 else
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 #include <$ac_hdr>
4077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4078 { (eval echo configure:4079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4080 if test -z "$ac_err"; then
4081 rm -rf conftest*
4082 eval "ac_cv_header_$ac_safe=yes"
4083 else
4084 echo "$ac_err" >&5
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4087 rm -rf conftest*
4088 eval "ac_cv_header_$ac_safe=no"
4090 rm -f conftest*
4092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4093 echo "$ac_t""yes" 1>&6
4094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4095 cat >> confdefs.h <<EOF
4096 #define $ac_tr_hdr 1
4098 echo $ac_n "checking for OSMesaCreateContext in -lGL""... $ac_c" 1>&6
4099 echo "configure:4100: checking for OSMesaCreateContext in -lGL" >&5
4100 ac_lib_var=`echo GL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104 ac_save_LIBS="$LIBS"
4105 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4106 $LIBS"
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4113 char OSMesaCreateContext();
4115 int main() {
4116 OSMesaCreateContext()
4117 ; return 0; }
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4120 rm -rf conftest*
4121 eval "ac_cv_lib_$ac_lib_var=yes"
4122 else
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4125 rm -rf conftest*
4126 eval "ac_cv_lib_$ac_lib_var=no"
4128 rm -f conftest*
4129 LIBS="$ac_save_LIBS"
4132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4133 echo "$ac_t""yes" 1>&6
4134 cat >> confdefs.h <<\EOF
4135 #define HAVE_OSMESA 1
4138 else
4139 echo "$ac_t""no" 1>&6
4140 echo $ac_n "checking for OSMesaCreateContext in -lOSMesa""... $ac_c" 1>&6
4141 echo "configure:4142: checking for OSMesaCreateContext in -lOSMesa" >&5
4142 ac_lib_var=`echo OSMesa'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4145 else
4146 ac_save_LIBS="$LIBS"
4147 LIBS="-lOSMesa -lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 /* Override any gcc2 internal prototype to avoid an error. */
4152 /* We use char because int might match the return type of a gcc2
4153 builtin and then its argument prototype would still apply. */
4154 char OSMesaCreateContext();
4156 int main() {
4157 OSMesaCreateContext()
4158 ; return 0; }
4160 if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161 rm -rf conftest*
4162 eval "ac_cv_lib_$ac_lib_var=yes"
4163 else
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 rm -rf conftest*
4167 eval "ac_cv_lib_$ac_lib_var=no"
4169 rm -f conftest*
4170 LIBS="$ac_save_LIBS"
4173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4174 echo "$ac_t""yes" 1>&6
4175 cat >> confdefs.h <<\EOF
4176 #define HAVE_OSMESA 1
4179 X_PRE_LIBS="$X_PRE_LIBS -lOSMesa"
4181 else
4182 echo "$ac_t""no" 1>&6
4189 else
4190 echo "$ac_t""no" 1>&6
4192 done
4195 echo $ac_n "checking for glBegin in -lGLU""... $ac_c" 1>&6
4196 echo "configure:4197: checking for glBegin in -lGLU" >&5
4197 ac_lib_var=`echo GLU'_'glBegin | sed 'y%./+-%__p_%'`
4198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4200 else
4201 ac_save_LIBS="$LIBS"
4202 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4203 $LIBS"
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 /* Override any gcc2 internal prototype to avoid an error. */
4208 /* We use char because int might match the return type of a gcc2
4209 builtin and then its argument prototype would still apply. */
4210 char glBegin();
4212 int main() {
4213 glBegin()
4214 ; return 0; }
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4217 rm -rf conftest*
4218 eval "ac_cv_lib_$ac_lib_var=yes"
4219 else
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 rm -rf conftest*
4223 eval "ac_cv_lib_$ac_lib_var=no"
4225 rm -f conftest*
4226 LIBS="$ac_save_LIBS"
4229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4230 echo "$ac_t""yes" 1>&6
4231 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4232 GLU32FILES='$(GLU32FILES)'
4233 GLU32_DLL=glu32
4235 else
4236 echo "$ac_t""no" 1>&6
4243 CPPFLAGS="$ac_save_CPPFLAGS"
4244 X_DLLS='$(X_DLLS)'
4245 XFILES='$(XFILES)'
4246 else
4247 XLIB=""
4248 X_CFLAGS=""
4249 X_LIBS=""
4252 if test "$CURSES" = "yes"
4253 then
4254 for ac_hdr in ncurses.h
4256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4258 echo "configure:4259: checking for $ac_hdr" >&5
4259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 #include <$ac_hdr>
4267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4268 { (eval echo configure:4269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4270 if test -z "$ac_err"; then
4271 rm -rf conftest*
4272 eval "ac_cv_header_$ac_safe=yes"
4273 else
4274 echo "$ac_err" >&5
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 rm -rf conftest*
4278 eval "ac_cv_header_$ac_safe=no"
4280 rm -f conftest*
4282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4285 cat >> confdefs.h <<EOF
4286 #define $ac_tr_hdr 1
4289 else
4290 echo "$ac_t""no" 1>&6
4292 done
4294 if test "$ac_cv_header_ncurses_h" = "yes"
4295 then
4296 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4297 echo "configure:4298: checking for waddch in -lncurses" >&5
4298 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4302 ac_save_LIBS="$LIBS"
4303 LIBS="-lncurses $LIBS"
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 /* We use char because int might match the return type of a gcc2
4309 builtin and then its argument prototype would still apply. */
4310 char waddch();
4312 int main() {
4313 waddch()
4314 ; return 0; }
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4317 rm -rf conftest*
4318 eval "ac_cv_lib_$ac_lib_var=yes"
4319 else
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 rm -rf conftest*
4323 eval "ac_cv_lib_$ac_lib_var=no"
4325 rm -f conftest*
4326 LIBS="$ac_save_LIBS"
4329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4333 cat >> confdefs.h <<EOF
4334 #define $ac_tr_lib 1
4337 LIBS="-lncurses $LIBS"
4339 else
4340 echo "$ac_t""no" 1>&6
4344 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4345 then
4346 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
4347 echo "configure:4348: checking for resizeterm in -lncurses" >&5
4348 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352 ac_save_LIBS="$LIBS"
4353 LIBS="-lncurses $LIBS"
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* Override any gcc2 internal prototype to avoid an error. */
4358 /* We use char because int might match the return type of a gcc2
4359 builtin and then its argument prototype would still apply. */
4360 char resizeterm();
4362 int main() {
4363 resizeterm()
4364 ; return 0; }
4366 if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4367 rm -rf conftest*
4368 eval "ac_cv_lib_$ac_lib_var=yes"
4369 else
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 rm -rf conftest*
4373 eval "ac_cv_lib_$ac_lib_var=no"
4375 rm -f conftest*
4376 LIBS="$ac_save_LIBS"
4379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4381 cat >> confdefs.h <<\EOF
4382 #define HAVE_RESIZETERM 1
4385 else
4386 echo "$ac_t""no" 1>&6
4389 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
4390 echo "configure:4391: checking for getbkgd in -lncurses" >&5
4391 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4394 else
4395 ac_save_LIBS="$LIBS"
4396 LIBS="-lncurses $LIBS"
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4403 char getbkgd();
4405 int main() {
4406 getbkgd()
4407 ; return 0; }
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410 rm -rf conftest*
4411 eval "ac_cv_lib_$ac_lib_var=yes"
4412 else
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 rm -rf conftest*
4416 eval "ac_cv_lib_$ac_lib_var=no"
4418 rm -f conftest*
4419 LIBS="$ac_save_LIBS"
4422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 cat >> confdefs.h <<\EOF
4425 #define HAVE_GETBKGD 1
4428 else
4429 echo "$ac_t""no" 1>&6
4432 else
4433 for ac_hdr in curses.h
4435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4437 echo "configure:4438: checking for $ac_hdr" >&5
4438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4440 else
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 #include <$ac_hdr>
4446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4447 { (eval echo configure:4448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4449 if test -z "$ac_err"; then
4450 rm -rf conftest*
4451 eval "ac_cv_header_$ac_safe=yes"
4452 else
4453 echo "$ac_err" >&5
4454 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4456 rm -rf conftest*
4457 eval "ac_cv_header_$ac_safe=no"
4459 rm -f conftest*
4461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4464 cat >> confdefs.h <<EOF
4465 #define $ac_tr_hdr 1
4468 else
4469 echo "$ac_t""no" 1>&6
4471 done
4473 if test "$ac_cv_header_curses_h" = "yes"
4474 then
4475 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4476 echo "configure:4477: checking for waddch in -lcurses" >&5
4477 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4480 else
4481 ac_save_LIBS="$LIBS"
4482 LIBS="-lcurses $LIBS"
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */
4489 char waddch();
4491 int main() {
4492 waddch()
4493 ; return 0; }
4495 if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4496 rm -rf conftest*
4497 eval "ac_cv_lib_$ac_lib_var=yes"
4498 else
4499 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4501 rm -rf conftest*
4502 eval "ac_cv_lib_$ac_lib_var=no"
4504 rm -f conftest*
4505 LIBS="$ac_save_LIBS"
4508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4510 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4512 cat >> confdefs.h <<EOF
4513 #define $ac_tr_lib 1
4516 LIBS="-lcurses $LIBS"
4518 else
4519 echo "$ac_t""no" 1>&6
4522 if test "$ac_cv_lib_curses_waddch" = "yes"
4523 then
4524 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4525 echo "configure:4526: checking for resizeterm in -lcurses" >&5
4526 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4529 else
4530 ac_save_LIBS="$LIBS"
4531 LIBS="-lcurses $LIBS"
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 /* Override any gcc2 internal prototype to avoid an error. */
4536 /* We use char because int might match the return type of a gcc2
4537 builtin and then its argument prototype would still apply. */
4538 char resizeterm();
4540 int main() {
4541 resizeterm()
4542 ; return 0; }
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4545 rm -rf conftest*
4546 eval "ac_cv_lib_$ac_lib_var=yes"
4547 else
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -rf conftest*
4551 eval "ac_cv_lib_$ac_lib_var=no"
4553 rm -f conftest*
4554 LIBS="$ac_save_LIBS"
4557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4558 echo "$ac_t""yes" 1>&6
4559 cat >> confdefs.h <<\EOF
4560 #define HAVE_RESIZETERM 1
4563 else
4564 echo "$ac_t""no" 1>&6
4567 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4568 echo "configure:4569: checking for getbkgd in -lcurses" >&5
4569 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4572 else
4573 ac_save_LIBS="$LIBS"
4574 LIBS="-lcurses $LIBS"
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4581 char getbkgd();
4583 int main() {
4584 getbkgd()
4585 ; return 0; }
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4588 rm -rf conftest*
4589 eval "ac_cv_lib_$ac_lib_var=yes"
4590 else
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 rm -rf conftest*
4594 eval "ac_cv_lib_$ac_lib_var=no"
4596 rm -f conftest*
4597 LIBS="$ac_save_LIBS"
4600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4602 cat >> confdefs.h <<\EOF
4603 #define HAVE_GETBKGD 1
4606 else
4607 echo "$ac_t""no" 1>&6
4615 CUPSLIBS=""
4616 wine_cv_warn_cups_h=no
4617 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4618 echo "configure:4619: checking for cupsGetPPD in -lcups" >&5
4619 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4622 else
4623 ac_save_LIBS="$LIBS"
4624 LIBS="-lcups $LIBS"
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 /* Override any gcc2 internal prototype to avoid an error. */
4629 /* We use char because int might match the return type of a gcc2
4630 builtin and then its argument prototype would still apply. */
4631 char cupsGetPPD();
4633 int main() {
4634 cupsGetPPD()
4635 ; return 0; }
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 rm -rf conftest*
4639 eval "ac_cv_lib_$ac_lib_var=yes"
4640 else
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 rm -rf conftest*
4644 eval "ac_cv_lib_$ac_lib_var=no"
4646 rm -f conftest*
4647 LIBS="$ac_save_LIBS"
4650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4653 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4654 echo "configure:4655: checking for cups/cups.h" >&5
4655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4657 else
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 #include <cups/cups.h>
4663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure:4665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4666 if test -z "$ac_err"; then
4667 rm -rf conftest*
4668 eval "ac_cv_header_$ac_safe=yes"
4669 else
4670 echo "$ac_err" >&5
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4673 rm -rf conftest*
4674 eval "ac_cv_header_$ac_safe=no"
4676 rm -f conftest*
4678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 cat >> confdefs.h <<\EOF
4681 #define HAVE_CUPS 1
4684 CUPSLIBS="-lcups"
4685 else
4686 echo "$ac_t""no" 1>&6
4687 wine_cv_warn_cups_h=yes
4691 else
4692 echo "$ac_t""no" 1>&6
4697 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4698 echo "configure:4699: checking for FT_Init_FreeType in -lfreetype" >&5
4699 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4702 else
4703 ac_save_LIBS="$LIBS"
4704 LIBS="-lfreetype $LIBS"
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 /* Override any gcc2 internal prototype to avoid an error. */
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4711 char FT_Init_FreeType();
4713 int main() {
4714 FT_Init_FreeType()
4715 ; return 0; }
4717 if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4718 rm -rf conftest*
4719 eval "ac_cv_lib_$ac_lib_var=yes"
4720 else
4721 echo "configure: failed program was:" >&5
4722 cat conftest.$ac_ext >&5
4723 rm -rf conftest*
4724 eval "ac_cv_lib_$ac_lib_var=no"
4726 rm -f conftest*
4727 LIBS="$ac_save_LIBS"
4730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4731 echo "$ac_t""yes" 1>&6
4732 ft_lib=yes
4733 else
4734 echo "$ac_t""no" 1>&6
4735 ft_lib=no
4738 if test "$ft_lib" = "no"
4739 then
4740 FREETYPELIBS=""
4741 FREETYPEINCL=""
4742 wine_cv_msg_freetype=no
4743 else
4744 # Extract the first word of "freetype-config", so it can be a program name with args.
4745 set dummy freetype-config; ac_word=$2
4746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_word" >&5
4748 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751 if test -n "$ft_devel"; then
4752 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4753 else
4754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4755 ac_dummy="$PATH"
4756 for ac_dir in $ac_dummy; do
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f $ac_dir/$ac_word; then
4759 ac_cv_prog_ft_devel="freetype-config"
4760 break
4762 done
4763 IFS="$ac_save_ifs"
4764 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4767 ft_devel="$ac_cv_prog_ft_devel"
4768 if test -n "$ft_devel"; then
4769 echo "$ac_t""$ft_devel" 1>&6
4770 else
4771 echo "$ac_t""no" 1>&6
4774 if test "$ft_devel" = "no"
4775 then
4776 # Extract the first word of "freetype2-config", so it can be a program name with args.
4777 set dummy freetype2-config; ac_word=$2
4778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4779 echo "configure:4780: checking for $ac_word" >&5
4780 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4782 else
4783 if test -n "$ft_devel2"; then
4784 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4785 else
4786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4787 ac_dummy="$PATH"
4788 for ac_dir in $ac_dummy; do
4789 test -z "$ac_dir" && ac_dir=.
4790 if test -f $ac_dir/$ac_word; then
4791 ac_cv_prog_ft_devel2="freetype2-config"
4792 break
4794 done
4795 IFS="$ac_save_ifs"
4796 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4799 ft_devel2="$ac_cv_prog_ft_devel2"
4800 if test -n "$ft_devel2"; then
4801 echo "$ac_t""$ft_devel2" 1>&6
4802 else
4803 echo "$ac_t""no" 1>&6
4806 if test "$ft_devel2" = "freetype2-config"
4807 then
4808 ft_devel=$ft_devel2
4811 if test "$ft_devel" = "no"
4812 then
4813 FREETYPELIBS=""
4814 FREETYPEINCL=""
4815 wine_cv_msg_freetype=yes
4816 else
4817 cat >> confdefs.h <<\EOF
4818 #define HAVE_FREETYPE 1
4821 FREETYPELIBS=`$ft_devel --libs`
4822 FREETYPEINCL=`$ft_devel --cflags`
4823 ac_save_CPPFLAGS="$CPPFLAGS"
4824 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4825 for ac_hdr in freetype/freetype.h \
4826 freetype/ftglyph.h \
4827 freetype/tttables.h \
4828 freetype/ftnames.h \
4829 freetype/ftsnames.h \
4830 freetype/ttnameid.h
4832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4834 echo "configure:4835: checking for $ac_hdr" >&5
4835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4837 else
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 #include <$ac_hdr>
4843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4844 { (eval echo configure:4845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4846 if test -z "$ac_err"; then
4847 rm -rf conftest*
4848 eval "ac_cv_header_$ac_safe=yes"
4849 else
4850 echo "$ac_err" >&5
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 rm -rf conftest*
4854 eval "ac_cv_header_$ac_safe=no"
4856 rm -f conftest*
4858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4861 cat >> confdefs.h <<EOF
4862 #define $ac_tr_hdr 1
4865 else
4866 echo "$ac_t""no" 1>&6
4868 done
4870 CPPFLAGS="$ac_save_CPPFLAGS"
4871 wine_cv_msg_freetype=no
4877 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4878 echo "configure:4879: checking "for GNU style IPX support"" >&5
4879 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4881 else
4882 cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4885 #include <sys/socket.h>
4886 #include <netipx/ipx.h>
4887 int main() {
4888 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4889 ; return 0; }
4891 if { (eval echo configure:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4892 rm -rf conftest*
4893 ac_cv_c_ipx_gnu="yes"
4894 else
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 rm -rf conftest*
4898 ac_cv_c_ipx_gnu="no"
4900 rm -f conftest*
4904 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4905 if test "$ac_cv_c_ipx_gnu" = "yes"
4906 then
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_IPX_GNU 1
4913 if test "$ac_cv_c_ipx_gnu" = "no"
4914 then
4915 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4916 echo "configure:4917: checking "for linux style IPX support"" >&5
4917 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4923 #include <sys/socket.h>
4924 #include <asm/types.h>
4925 #include <linux/ipx.h>
4926 int main() {
4927 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4928 ; return 0; }
4930 if { (eval echo configure:4931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4931 rm -rf conftest*
4932 ac_cv_c_ipx_linux="yes"
4933 else
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4936 rm -rf conftest*
4937 ac_cv_c_ipx_linux="no"
4939 rm -f conftest*
4943 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4944 if test "$ac_cv_c_ipx_linux" = "yes"
4945 then
4946 cat >> confdefs.h <<\EOF
4947 #define HAVE_IPX_LINUX 1
4953 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4957 echo "configure:4958: checking for $ac_hdr" >&5
4958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4960 else
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4964 #include <$ac_hdr>
4966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4967 { (eval echo configure:4968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4969 if test -z "$ac_err"; then
4970 rm -rf conftest*
4971 eval "ac_cv_header_$ac_safe=yes"
4972 else
4973 echo "$ac_err" >&5
4974 echo "configure: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4976 rm -rf conftest*
4977 eval "ac_cv_header_$ac_safe=no"
4979 rm -f conftest*
4981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4982 echo "$ac_t""yes" 1>&6
4983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4984 cat >> confdefs.h <<EOF
4985 #define $ac_tr_hdr 1
4987 break
4988 else
4989 echo "$ac_t""no" 1>&6
4991 done
4994 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4995 echo "configure:4996: checking "for Open Sound System"" >&5
4996 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4998 else
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5003 #if defined(HAVE_SYS_SOUNDCARD_H)
5004 #include <sys/soundcard.h>
5005 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
5006 #include <machine/soundcard.h>
5007 #elif defined(HAVE_SOUNDCARD_H)
5008 #include <soundcard.h>
5009 #endif
5011 int main() {
5014 /* check for one of the Open Sound System specific SNDCTL_ defines */
5015 #if !defined(SNDCTL_DSP_STEREO)
5016 #error No open sound system
5017 #endif
5019 ; return 0; }
5021 if { (eval echo configure:5022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022 rm -rf conftest*
5023 ac_cv_c_opensoundsystem="yes"
5024 else
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5027 rm -rf conftest*
5028 ac_cv_c_opensoundsystem="no"
5030 rm -f conftest*
5033 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
5035 if test "$ac_cv_c_opensoundsystem" = "yes"
5036 then
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_OSS 1
5043 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
5044 echo "configure:5045: checking "for Open Sound System/MIDI interface"" >&5
5045 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5047 else
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5052 #if defined(HAVE_SYS_SOUNDCARD_H)
5053 #include <sys/soundcard.h>
5054 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
5055 #include <machine/soundcard.h>
5056 #elif defined(HAVE_SOUNDCARD_H)
5057 #include <soundcard.h>
5058 #endif
5060 int main() {
5063 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
5064 #if !defined(SNDCTL_SEQ_SYNC)
5065 #error No open sound system MIDI interface
5066 #endif
5068 ; return 0; }
5070 if { (eval echo configure:5071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5071 rm -rf conftest*
5072 ac_cv_c_opensoundsystem_midi="yes"
5073 else
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5076 rm -rf conftest*
5077 ac_cv_c_opensoundsystem_midi="no"
5079 rm -f conftest*
5082 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
5084 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
5085 then
5086 cat >> confdefs.h <<\EOF
5087 #define HAVE_OSS_MIDI 1
5092 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
5095 echo $ac_n "checking "whether mmap64 works defined as mmap"""... $ac_c" 1>&6
5096 echo "configure:5097: checking "whether mmap64 works defined as mmap"" >&5
5097 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 if test "$cross_compiling" = yes; then
5101 ac_cv_mmap64_works="no"
5102 else
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5107 #define _FILE_OFFSET_BITS 64
5108 #include <stdio.h>
5109 #include <unistd.h>
5110 #include <fcntl.h>
5111 #include <sys/mman.h>
5112 #include <errno.h>
5114 int main(int argc,char **argv) {
5115 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
5116 if (fd == -1) exit(1);
5118 unlink("conftest.map");
5120 write(fd,"test",4);
5122 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
5123 (errno == EINVAL)
5125 exit(1);
5127 close(fd);
5128 fprintf(stderr,"success!\n");
5129 exit(0);
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5135 then
5136 ac_cv_mmap64_works="yes"
5137 else
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 rm -fr conftest*
5141 ac_cv_mmap64_works="no"
5143 rm -fr conftest*
5148 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5150 if test "$ac_cv_mmap64_works" = "yes"
5151 then
5152 cat >> confdefs.h <<\EOF
5153 #define _FILE_OFFSET_BITS 64
5159 if test "x${GCC}" = "xyes"
5160 then
5161 CFLAGS="$CFLAGS -Wall"
5162 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
5163 echo "configure:5164: checking "for gcc strength-reduce bug"" >&5
5164 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5166 else
5167 if test "$cross_compiling" = yes; then
5168 ac_cv_c_gcc_strength_bug="yes"
5169 else
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5174 int L[4] = {0,1,2,3};
5175 int main(void) {
5176 static int Array[3];
5177 unsigned int B = 3;
5178 int i;
5179 for(i=0; i<B; i++) Array[i] = i - 3;
5180 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5181 L[i] = 4;
5183 exit( Array[1] != -2 || L[2] != 3);
5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5187 then
5188 ac_cv_c_gcc_strength_bug="no"
5189 else
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5192 rm -fr conftest*
5193 ac_cv_c_gcc_strength_bug="yes"
5195 rm -fr conftest*
5200 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5201 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5202 then
5203 CFLAGS="$CFLAGS -fno-strength-reduce"
5206 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
5207 echo "configure:5208: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
5208 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5210 else
5211 saved_cflags=$CFLAGS
5212 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5217 int main() {
5218 return 0
5219 ; return 0; }
5221 if { (eval echo configure:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222 rm -rf conftest*
5223 ac_cv_c_gcc_stack_boundary="yes"
5224 else
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 rm -rf conftest*
5228 ac_cv_c_gcc_stack_boundary="no"
5230 rm -f conftest*
5231 CFLAGS=$saved_cflags
5235 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5236 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5237 then
5238 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5243 echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
5244 echo "configure:5245: checking "whether .type must sit inside a .def directive"" >&5
5245 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5247 else
5248 saved_libs=$LIBS
5249 LIBS="conftest_asm.s $LIBS"
5250 cat > conftest_asm.s <<EOF
5251 .globl _ac_test
5252 .def _ac_test; .scl 2; .type 32; .endef
5253 _ac_test:
5254 .long 0
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5260 int main() {
5262 ; return 0; }
5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5265 rm -rf conftest*
5266 ac_cv_c_type_in_def="yes"
5267 else
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 rm -rf conftest*
5271 ac_cv_c_type_in_def="no"
5273 rm -f conftest*
5274 LIBS=$saved_libs
5277 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5278 if test "$ac_cv_c_type_in_def" = "yes"
5279 then
5280 cat >> confdefs.h <<\EOF
5281 #define NEED_TYPE_IN_DEF 1
5287 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
5288 echo "configure:5289: checking "whether external symbols need an underscore prefix"" >&5
5289 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5290 echo $ac_n "(cached) $ac_c" 1>&6
5291 else
5292 saved_libs=$LIBS
5293 LIBS="conftest_asm.s $LIBS"
5294 cat > conftest_asm.s <<EOF
5295 .globl _ac_test
5296 _ac_test:
5297 .long 0
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 extern int ac_test;
5303 int main() {
5304 if (ac_test) return 1
5305 ; return 0; }
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308 rm -rf conftest*
5309 ac_cv_c_extern_prefix="yes"
5310 else
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5313 rm -rf conftest*
5314 ac_cv_c_extern_prefix="no"
5316 rm -f conftest*
5317 LIBS=$saved_libs
5320 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5321 if test "$ac_cv_c_extern_prefix" = "yes"
5322 then
5323 cat >> confdefs.h <<\EOF
5324 #define NEED_UNDERSCORE_PREFIX 1
5330 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
5331 echo "configure:5332: checking "whether assembler accepts .string"" >&5
5332 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5334 else
5335 saved_libs=$LIBS
5336 LIBS="conftest_asm.s $LIBS"
5337 cat > conftest_asm.s <<EOF
5338 .string "test"
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5344 int main() {
5346 ; return 0; }
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 rm -rf conftest*
5350 ac_cv_c_asm_string="yes"
5351 else
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 rm -rf conftest*
5355 ac_cv_c_asm_string="no"
5357 rm -f conftest*
5358 LIBS=$saved_libs
5361 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5362 if test "$ac_cv_c_asm_string" = "yes"
5363 then
5364 cat >> confdefs.h <<\EOF
5365 #define HAVE_ASM_STRING 1
5371 LDSHARED=""
5372 LDDLLFLAGS=""
5373 if test "$LIBEXT" = "so"
5374 then
5375 echo $ac_n "checking "whether we can build a GNU style ELF dll"""... $ac_c" 1>&6
5376 echo "configure:5377: checking "whether we can build a GNU style ELF dll"" >&5
5377 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5379 else
5380 saved_cflags=$CFLAGS
5381 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5386 int main() {
5387 return 1
5388 ; return 0; }
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 rm -rf conftest*
5392 ac_cv_c_dll_gnuelf="yes"
5393 else
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 ac_cv_c_dll_gnuelf="no"
5399 rm -f conftest*
5400 CFLAGS=$saved_cflags
5404 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5405 if test "$ac_cv_c_dll_gnuelf" = "yes"
5406 then
5407 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
5408 LDDLLFLAGS="-Wl,-Bsymbolic"
5409 else
5410 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5411 echo "configure:5412: checking whether we can build a UnixWare (Solaris) dll" >&5
5412 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5414 else
5415 saved_cflags=$CFLAGS
5416 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5421 int main() {
5422 return 1
5423 ; return 0; }
5425 if { (eval echo configure:5426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5426 rm -rf conftest*
5427 ac_cv_c_dll_unixware="yes"
5428 else
5429 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5
5431 rm -rf conftest*
5432 ac_cv_c_dll_unixware="no"
5434 rm -f conftest*
5435 CFLAGS=$saved_cflags
5439 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5440 if test "$ac_cv_c_dll_unixware" = "yes"
5441 then
5442 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
5443 LDDLLFLAGS="-Wl,-B,symbolic"
5446 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5447 then
5448 LIBEXT="a"
5449 if test "$DLLWRAP" = "dllwrap"; then
5450 if test "$CYGWIN" = "yes"; then
5451 echo "*** use dllwrap for building shared library."
5452 LIBEXT="dll"
5458 if test "$LIBEXT" = "a"; then
5459 echo "*** It is currently not possible to build WINE without shared"
5460 echo "*** library (.so) support to allow transparent switch between .so"
5461 echo "*** and .dll files."
5462 echo "*** If you are using Linux, you will need a newer binutils."
5463 exit 1
5466 DLLFLAGS=""
5467 LDPATH=""
5469 if test "$LIBEXT" = "so"; then
5470 DLLFLAGS="-fPIC"
5471 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5472 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5473 elif test "$LIBEXT" = "dll"; then
5474 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5475 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5476 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5477 else
5478 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
5479 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
5480 echo "configure:5481: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
5481 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5483 else
5484 saved_cflags=$CFLAGS
5485 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5490 int main() {
5491 return 1
5492 ; return 0; }
5494 if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5495 rm -rf conftest*
5496 ac_cv_c_whole_archive="yes"
5497 else
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 rm -rf conftest*
5501 ac_cv_c_whole_archive="no"
5503 rm -f conftest*
5504 CFLAGS=$saved_cflags
5508 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
5509 if test "$ac_cv_c_whole_archive" = "yes"
5510 then
5511 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
5512 else
5513 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
5514 echo "configure:5515: checking whether the linker supports -z {all,default}extract (Linux)" >&5
5515 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5517 else
5518 saved_cflags=$CFLAGS
5519 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5524 int main() {
5525 return 1
5526 ; return 0; }
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5529 rm -rf conftest*
5530 ac_cv_c_allextract="yes"
5531 else
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5534 rm -rf conftest*
5535 ac_cv_c_allextract="no"
5537 rm -f conftest*
5538 CFLAGS=$saved_cflags
5542 echo "$ac_t""$ac_cv_c_allextract" 1>&6
5543 if test "$ac_cv_c_allextract" = "yes"
5544 then
5545 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
5560 wine_cv_libc_reentrant=no
5562 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5563 echo "configure:5564: checking for reentrant libc: __errno_location" >&5
5564 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5566 else
5567 if test "$cross_compiling" = yes; then
5568 wine_cv_libc_r___errno_location=yes
5569 else
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 int myerrno = 0;
5574 char buf[256];
5575 int *__errno_location(){return &myerrno;}
5576 main(){connect(0,buf,255); exit(!myerrno);}
5578 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5579 then
5580 wine_cv_libc_r___errno_location=yes
5581 else
5582 echo "configure: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5584 rm -fr conftest*
5585 wine_cv_libc_r___errno_location=no
5587 rm -fr conftest*
5593 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5594 if test "$wine_cv_libc_r___errno_location" = "yes"
5595 then
5596 wine_cv_libc_reentrant=__errno_location
5600 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5601 echo "configure:5602: checking for reentrant libc: __error" >&5
5602 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5603 echo $ac_n "(cached) $ac_c" 1>&6
5604 else
5605 if test "$cross_compiling" = yes; then
5606 wine_cv_libc_r___error=yes
5607 else
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 int myerrno = 0;
5612 char buf[256];
5613 int *__error(){return &myerrno;}
5614 main(){connect(0,buf,255); exit(!myerrno);}
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5617 then
5618 wine_cv_libc_r___error=yes
5619 else
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5622 rm -fr conftest*
5623 wine_cv_libc_r___error=no
5625 rm -fr conftest*
5631 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5632 if test "$wine_cv_libc_r___error" = "yes"
5633 then
5634 wine_cv_libc_reentrant=__error
5638 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5639 echo "configure:5640: checking for reentrant libc: ___errno" >&5
5640 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5642 else
5643 if test "$cross_compiling" = yes; then
5644 wine_cv_libc_r____errno=yes
5645 else
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5649 int myerrno = 0;
5650 char buf[256];
5651 int *___errno(){return &myerrno;}
5652 main(){connect(0,buf,255); exit(!myerrno);}
5654 if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5655 then
5656 wine_cv_libc_r____errno=yes
5657 else
5658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5660 rm -fr conftest*
5661 wine_cv_libc_r____errno=no
5663 rm -fr conftest*
5669 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5670 if test "$wine_cv_libc_r____errno" = "yes"
5671 then
5672 wine_cv_libc_reentrant=___errno
5676 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5677 echo "configure:5678: checking for reentrant libc: __thr_errno" >&5
5678 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5680 else
5681 if test "$cross_compiling" = yes; then
5682 wine_cv_libc_r___thr_errno=yes
5683 else
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 int myerrno = 0;
5688 char buf[256];
5689 int *__thr_errno(){return &myerrno;}
5690 main(){connect(0,buf,255); exit(!myerrno);}
5692 if { (eval echo configure:5693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5693 then
5694 wine_cv_libc_r___thr_errno=yes
5695 else
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5698 rm -fr conftest*
5699 wine_cv_libc_r___thr_errno=no
5701 rm -fr conftest*
5707 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5708 if test "$wine_cv_libc_r___thr_errno" = "yes"
5709 then
5710 wine_cv_libc_reentrant=__thr_errno
5714 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5715 echo "configure:5716: checking for reentrant libc: __errno" >&5
5716 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5718 else
5719 if test "$cross_compiling" = yes; then
5720 wine_cv_libc_r___errno=yes
5721 else
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 int myerrno = 0;
5726 char buf[256];
5727 int *__errno(){return &myerrno;}
5728 main(){connect(0,buf,255); exit(!myerrno);}
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5731 then
5732 wine_cv_libc_r___errno=yes
5733 else
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5736 rm -fr conftest*
5737 wine_cv_libc_r___errno=no
5739 rm -fr conftest*
5745 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5746 if test "$wine_cv_libc_r___errno" = "yes"
5747 then
5748 wine_cv_libc_reentrant=__errno
5752 if test "$wine_cv_libc_reentrant" != "no"
5753 then
5754 cat >> confdefs.h <<EOF
5755 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5761 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5762 then
5763 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
5764 echo "configure:5765: checking "for reentrant X libraries"" >&5
5765 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5767 else
5768 if test "x$with_reentrant_x" = "xno"
5769 then
5770 wine_cv_x_reentrant=no
5771 else
5772 libX11_check=none
5773 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5774 if test -r $dir/libX11.so; then
5775 libX11_check="-D $dir/libX11.so"
5776 break 1
5778 if test -r $dir/libX11.a; then
5779 libX11_check="$dir/libX11.a"
5780 break 1
5782 done
5783 if test "$libX11_check" != "none"; then
5784 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5785 then
5786 wine_cv_x_reentrant=yes
5787 else
5788 wine_cv_x_reentrant=no
5790 else
5791 wine_cv_x_reentrant=unknown
5796 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5797 else
5798 wine_cv_x_reentrant=no
5800 if test "$wine_cv_x_reentrant" = "no"
5801 then
5802 cat >> confdefs.h <<\EOF
5803 #define NO_REENTRANT_X11 1
5810 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5811 # for constant arguments. Useless!
5812 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5813 echo "configure:5814: checking for working alloca.h" >&5
5814 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5816 else
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 #include <alloca.h>
5821 int main() {
5822 void *p = alloca(2 * sizeof(int));
5823 ; return 0; }
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 rm -rf conftest*
5827 ac_cv_header_alloca_h=yes
5828 else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 rm -rf conftest*
5832 ac_cv_header_alloca_h=no
5834 rm -f conftest*
5837 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5838 if test $ac_cv_header_alloca_h = yes; then
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_ALLOCA_H 1
5845 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5846 echo "configure:5847: checking for alloca" >&5
5847 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5849 else
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5854 #ifdef __GNUC__
5855 # define alloca __builtin_alloca
5856 #else
5857 # ifdef _MSC_VER
5858 # include <malloc.h>
5859 # define alloca _alloca
5860 # else
5861 # if HAVE_ALLOCA_H
5862 # include <alloca.h>
5863 # else
5864 # ifdef _AIX
5865 #pragma alloca
5866 # else
5867 # ifndef alloca /* predefined by HP cc +Olibcalls */
5868 char *alloca ();
5869 # endif
5870 # endif
5871 # endif
5872 # endif
5873 #endif
5875 int main() {
5876 char *p = (char *) alloca(1);
5877 ; return 0; }
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 rm -rf conftest*
5881 ac_cv_func_alloca_works=yes
5882 else
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 rm -rf conftest*
5886 ac_cv_func_alloca_works=no
5888 rm -f conftest*
5891 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5892 if test $ac_cv_func_alloca_works = yes; then
5893 cat >> confdefs.h <<\EOF
5894 #define HAVE_ALLOCA 1
5899 if test $ac_cv_func_alloca_works = no; then
5900 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5901 # that cause trouble. Some versions do not even contain alloca or
5902 # contain a buggy version. If you still want to use their alloca,
5903 # use ar to extract alloca.o from them instead of compiling alloca.c.
5904 ALLOCA=alloca.${ac_objext}
5905 cat >> confdefs.h <<\EOF
5906 #define C_ALLOCA 1
5910 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5911 echo "configure:5912: checking whether alloca needs Cray hooks" >&5
5912 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5914 else
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 #if defined(CRAY) && ! defined(CRAY2)
5919 webecray
5920 #else
5921 wenotbecray
5922 #endif
5925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926 egrep "webecray" >/dev/null 2>&1; then
5927 rm -rf conftest*
5928 ac_cv_os_cray=yes
5929 else
5930 rm -rf conftest*
5931 ac_cv_os_cray=no
5933 rm -f conftest*
5937 echo "$ac_t""$ac_cv_os_cray" 1>&6
5938 if test $ac_cv_os_cray = yes; then
5939 for ac_func in _getb67 GETB67 getb67; do
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5944 else
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5950 #include <assert.h>
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954 char $ac_func();
5956 int main() {
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5962 choke me
5963 #else
5964 $ac_func();
5965 #endif
5967 ; return 0; }
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 rm -rf conftest*
5971 eval "ac_cv_func_$ac_func=yes"
5972 else
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 rm -rf conftest*
5976 eval "ac_cv_func_$ac_func=no"
5978 rm -f conftest*
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 cat >> confdefs.h <<EOF
5984 #define CRAY_STACKSEG_END $ac_func
5987 break
5988 else
5989 echo "$ac_t""no" 1>&6
5992 done
5995 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5996 echo "configure:5997: checking stack direction for C alloca" >&5
5997 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
5999 else
6000 if test "$cross_compiling" = yes; then
6001 ac_cv_c_stack_direction=0
6002 else
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 find_stack_direction ()
6008 static char *addr = 0;
6009 auto char dummy;
6010 if (addr == 0)
6012 addr = &dummy;
6013 return find_stack_direction ();
6015 else
6016 return (&dummy > addr) ? 1 : -1;
6018 main ()
6020 exit (find_stack_direction() < 0);
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6024 then
6025 ac_cv_c_stack_direction=1
6026 else
6027 echo "configure: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6029 rm -fr conftest*
6030 ac_cv_c_stack_direction=-1
6032 rm -fr conftest*
6037 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6038 cat >> confdefs.h <<EOF
6039 #define STACK_DIRECTION $ac_cv_c_stack_direction
6044 for ac_func in \
6045 __libc_fork \
6046 _lwp_create \
6047 clone \
6048 ecvt \
6049 finite \
6050 fpclass \
6051 ftruncate64 \
6052 getnetbyaddr \
6053 getnetbyname \
6054 getpagesize \
6055 getprotobyname \
6056 getprotobynumber \
6057 getrlimit \
6058 getservbyport \
6059 getsockopt \
6060 inet_network \
6061 lseek64 \
6062 lstat \
6063 memmove \
6064 mmap \
6065 rfork \
6066 select \
6067 sendmsg \
6068 settimeofday \
6069 sigaltstack \
6070 statfs \
6071 strcasecmp \
6072 strerror \
6073 strncasecmp \
6074 tcgetattr \
6075 timegm \
6076 usleep \
6077 vfscanf \
6078 wait4 \
6079 waitpid \
6082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_func" >&5
6084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6086 else
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* System header to define __stub macros and hopefully few prototypes,
6091 which can conflict with char $ac_func(); below. */
6092 #include <assert.h>
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6096 char $ac_func();
6098 int main() {
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6104 choke me
6105 #else
6106 $ac_func();
6107 #endif
6109 ; return 0; }
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6112 rm -rf conftest*
6113 eval "ac_cv_func_$ac_func=yes"
6114 else
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 rm -rf conftest*
6118 eval "ac_cv_func_$ac_func=no"
6120 rm -f conftest*
6123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6126 cat >> confdefs.h <<EOF
6127 #define $ac_tr_func 1
6130 else
6131 echo "$ac_t""no" 1>&6
6133 done
6137 for ac_hdr in \
6138 arpa/inet.h \
6139 arpa/nameser.h \
6140 elf.h \
6141 float.h \
6142 ieeefp.h \
6143 libio.h \
6144 libutil.h \
6145 link.h \
6146 linux/cdrom.h \
6147 linux/input.h \
6148 linux/joystick.h \
6149 linux/ucdrom.h \
6150 net/if.h \
6151 netdb.h \
6152 netinet/in.h \
6153 netinet/in_systm.h \
6154 netinet/ip.h \
6155 netinet/tcp.h \
6156 pty.h \
6157 resolv.h \
6158 sched.h \
6159 socket.h \
6160 strings.h \
6161 sys/cdio.h \
6162 sys/errno.h \
6163 sys/file.h \
6164 sys/filio.h \
6165 sys/ipc.h \
6166 sys/lwp.h \
6167 sys/mman.h \
6168 sys/modem.h \
6169 sys/mount.h \
6170 sys/msg.h \
6171 sys/param.h \
6172 sys/ptrace.h \
6173 sys/reg.h \
6174 sys/signal.h \
6175 sys/shm.h \
6176 sys/socket.h \
6177 sys/sockio.h \
6178 sys/statfs.h \
6179 sys/strtio.h \
6180 sys/syscall.h \
6181 sys/user.h \
6182 sys/wait.h \
6183 sys/v86.h \
6184 sys/v86intr.h \
6185 sys/vfs.h \
6186 sys/vm86.h \
6187 syscall.h \
6188 ucontext.h \
6191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_hdr" >&5
6194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196 else
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 #include <$ac_hdr>
6202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6203 { (eval echo configure:6204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6205 if test -z "$ac_err"; then
6206 rm -rf conftest*
6207 eval "ac_cv_header_$ac_safe=yes"
6208 else
6209 echo "$ac_err" >&5
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 rm -rf conftest*
6213 eval "ac_cv_header_$ac_safe=no"
6215 rm -f conftest*
6217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6218 echo "$ac_t""yes" 1>&6
6219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6220 cat >> confdefs.h <<EOF
6221 #define $ac_tr_hdr 1
6224 else
6225 echo "$ac_t""no" 1>&6
6227 done
6229 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6230 echo "configure:6231: checking whether stat file-mode macros are broken" >&5
6231 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233 else
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 #include <sys/types.h>
6238 #include <sys/stat.h>
6240 #if defined(S_ISBLK) && defined(S_IFDIR)
6241 # if S_ISBLK (S_IFDIR)
6242 You lose.
6243 # endif
6244 #endif
6246 #if defined(S_ISBLK) && defined(S_IFCHR)
6247 # if S_ISBLK (S_IFCHR)
6248 You lose.
6249 # endif
6250 #endif
6252 #if defined(S_ISLNK) && defined(S_IFREG)
6253 # if S_ISLNK (S_IFREG)
6254 You lose.
6255 # endif
6256 #endif
6258 #if defined(S_ISSOCK) && defined(S_IFREG)
6259 # if S_ISSOCK (S_IFREG)
6260 You lose.
6261 # endif
6262 #endif
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 egrep "You lose" >/dev/null 2>&1; then
6267 rm -rf conftest*
6268 ac_cv_header_stat_broken=yes
6269 else
6270 rm -rf conftest*
6271 ac_cv_header_stat_broken=no
6273 rm -f conftest*
6277 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6278 if test $ac_cv_header_stat_broken = yes; then
6279 cat >> confdefs.h <<\EOF
6280 #define STAT_MACROS_BROKEN 1
6287 echo $ac_n "checking for working const""... $ac_c" 1>&6
6288 echo "configure:6289: checking for working const" >&5
6289 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6291 else
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6296 int main() {
6298 /* Ultrix mips cc rejects this. */
6299 typedef int charset[2]; const charset x = {0,0};
6300 /* SunOS 4.1.1 cc rejects this. */
6301 char const *const *ccp;
6302 char **p;
6303 /* NEC SVR4.0.2 mips cc rejects this. */
6304 struct point {int x, y;};
6305 static struct point const zero = {0,0};
6306 /* AIX XL C 1.02.0.0 rejects this.
6307 It does not let you subtract one const X* pointer from another in an arm
6308 of an if-expression whose if-part is not a constant expression */
6309 const char *g = "string";
6310 ccp = &g + (g ? g-g : 0);
6311 /* HPUX 7.0 cc rejects these. */
6312 ++ccp;
6313 p = (char**) ccp;
6314 ccp = (char const *const *) p;
6315 { /* SCO 3.2v4 cc rejects this. */
6316 char *t;
6317 char const *s = 0 ? (char *) 0 : (char const *) 0;
6319 *t++ = 0;
6321 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6322 int x[] = {25, 17};
6323 const int *foo = &x[0];
6324 ++foo;
6326 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6327 typedef const int *iptr;
6328 iptr p = 0;
6329 ++p;
6331 { /* AIX XL C 1.02.0.0 rejects this saying
6332 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6333 struct s { int j; const int *ap[3]; };
6334 struct s *b; b->j = 5;
6336 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6337 const int foo = 10;
6340 ; return 0; }
6342 if { (eval echo configure:6343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6343 rm -rf conftest*
6344 ac_cv_c_const=yes
6345 else
6346 echo "configure: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 rm -rf conftest*
6349 ac_cv_c_const=no
6351 rm -f conftest*
6354 echo "$ac_t""$ac_cv_c_const" 1>&6
6355 if test $ac_cv_c_const = no; then
6356 cat >> confdefs.h <<\EOF
6357 #define const
6362 echo $ac_n "checking for inline""... $ac_c" 1>&6
6363 echo "configure:6364: checking for inline" >&5
6364 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6
6366 else
6367 ac_cv_c_inline=no
6368 for ac_kw in inline __inline__ __inline; do
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6373 int main() {
6374 } int $ac_kw foo() {
6375 ; return 0; }
6377 if { (eval echo configure:6378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6378 rm -rf conftest*
6379 ac_cv_c_inline=$ac_kw; break
6380 else
6381 echo "configure: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6384 rm -f conftest*
6385 done
6389 echo "$ac_t""$ac_cv_c_inline" 1>&6
6390 case "$ac_cv_c_inline" in
6391 inline | yes) ;;
6392 no) cat >> confdefs.h <<\EOF
6393 #define inline
6396 *) cat >> confdefs.h <<EOF
6397 #define inline $ac_cv_c_inline
6400 esac
6402 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6403 echo "configure:6404: checking for ANSI C header files" >&5
6404 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6406 else
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6410 #include <stdlib.h>
6411 #include <stdarg.h>
6412 #include <string.h>
6413 #include <float.h>
6415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6416 { (eval echo configure:6417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6418 if test -z "$ac_err"; then
6419 rm -rf conftest*
6420 ac_cv_header_stdc=yes
6421 else
6422 echo "$ac_err" >&5
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 rm -rf conftest*
6426 ac_cv_header_stdc=no
6428 rm -f conftest*
6430 if test $ac_cv_header_stdc = yes; then
6431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6432 cat > conftest.$ac_ext <<EOF
6433 #line 6434 "configure"
6434 #include "confdefs.h"
6435 #include <string.h>
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 egrep "memchr" >/dev/null 2>&1; then
6440 else
6441 rm -rf conftest*
6442 ac_cv_header_stdc=no
6444 rm -f conftest*
6448 if test $ac_cv_header_stdc = yes; then
6449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6453 #include <stdlib.h>
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 egrep "free" >/dev/null 2>&1; then
6458 else
6459 rm -rf conftest*
6460 ac_cv_header_stdc=no
6462 rm -f conftest*
6466 if test $ac_cv_header_stdc = yes; then
6467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6468 if test "$cross_compiling" = yes; then
6470 else
6471 cat > conftest.$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6474 #include <ctype.h>
6475 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6476 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6478 int main () { int i; for (i = 0; i < 256; i++)
6479 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6480 exit (0); }
6483 if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6484 then
6486 else
6487 echo "configure: failed program was:" >&5
6488 cat conftest.$ac_ext >&5
6489 rm -fr conftest*
6490 ac_cv_header_stdc=no
6492 rm -fr conftest*
6498 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6499 if test $ac_cv_header_stdc = yes; then
6500 cat >> confdefs.h <<\EOF
6501 #define STDC_HEADERS 1
6506 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6507 echo "configure:6508: checking for size_t" >&5
6508 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6510 else
6511 cat > conftest.$ac_ext <<EOF
6512 #line 6513 "configure"
6513 #include "confdefs.h"
6514 #include <sys/types.h>
6515 #if STDC_HEADERS
6516 #include <stdlib.h>
6517 #include <stddef.h>
6518 #endif
6520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6521 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6522 rm -rf conftest*
6523 ac_cv_type_size_t=yes
6524 else
6525 rm -rf conftest*
6526 ac_cv_type_size_t=no
6528 rm -f conftest*
6531 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6532 if test $ac_cv_type_size_t = no; then
6533 cat >> confdefs.h <<\EOF
6534 #define size_t unsigned
6539 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6540 echo "configure:6541: checking size of long long" >&5
6541 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6543 else
6544 if test "$cross_compiling" = yes; then
6545 ac_cv_sizeof_long_long=0
6546 else
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 #include <stdio.h>
6551 main()
6553 FILE *f=fopen("conftestval", "w");
6554 if (!f) exit(1);
6555 fprintf(f, "%d\n", sizeof(long long));
6556 exit(0);
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6560 then
6561 ac_cv_sizeof_long_long=`cat conftestval`
6562 else
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 rm -fr conftest*
6566 ac_cv_sizeof_long_long=0
6568 rm -fr conftest*
6572 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6573 cat >> confdefs.h <<EOF
6574 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6579 echo $ac_n "checking "whether linux/input.h is for real"""... $ac_c" 1>&6
6580 echo "configure:6581: checking "whether linux/input.h is for real"" >&5
6581 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6583 else
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6588 #include <linux/input.h>
6590 int main() {
6592 int foo = EVIOCGBIT(EV_ABS,42);
6593 int bar = BTN_PINKIE;
6594 int fortytwo = 42;
6596 ; return 0; }
6598 if { (eval echo configure:6599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6599 rm -rf conftest*
6600 wine_cv_linux_input_h=yes
6601 else
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 rm -rf conftest*
6605 wine_cv_linux_input_h=no
6607 rm -f conftest*
6611 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6612 if test "$wine_cv_linux_input_h" = "yes"
6613 then
6614 cat >> confdefs.h <<\EOF
6615 #define HAVE_CORRECT_LINUXINPUT_H 1
6621 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
6622 echo "configure:6623: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
6623 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6625 else
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6630 #include <netdb.h>
6632 int main() {
6634 char *name=NULL;
6635 struct hostent he;
6636 struct hostent *result;
6637 char *buf=NULL;
6638 int bufsize=0;
6639 int res,errnr;
6640 char *addr=NULL;
6641 int addrlen=0;
6642 int addrtype=0;
6643 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6644 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6646 ; return 0; }
6648 if { (eval echo configure:6649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6649 rm -rf conftest*
6650 wine_cv_linux_gethostbyname_r_6=yes
6651 else
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6654 rm -rf conftest*
6655 wine_cv_linux_gethostbyname_r_6=no
6658 rm -f conftest*
6662 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6663 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6664 then
6665 cat >> confdefs.h <<\EOF
6666 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6671 if test "$ac_cv_header_linux_joystick_h" = "yes"
6672 then
6673 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
6674 echo "configure:6675: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
6675 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6676 echo $ac_n "(cached) $ac_c" 1>&6
6677 else
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6682 #include <sys/ioctl.h>
6683 #include <linux/joystick.h>
6685 struct js_event blub;
6686 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6687 #error "no 2.2 header"
6688 #endif
6690 int main() {
6691 /*empty*/
6692 ; return 0; }
6694 if { (eval echo configure:6695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6695 rm -rf conftest*
6696 wine_cv_linux_joystick_22_api=yes
6697 else
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 rm -rf conftest*
6701 wine_cv_linux_joystick_22_api=no
6703 rm -f conftest*
6707 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6708 if test "$wine_cv_linux_joystick_22_api" = "yes"
6709 then
6710 cat >> confdefs.h <<\EOF
6711 #define HAVE_LINUX_22_JOYSTICK_API 1
6718 if test "$ac_cv_header_sys_vfs_h" = "yes"
6719 then
6720 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
6721 echo "configure:6722: checking "whether sys/vfs.h defines statfs"" >&5
6722 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6724 else
6725 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6729 #include <sys/types.h>
6730 #ifdef HAVE_SYS_PARAM_H
6731 # include <sys/param.h>
6732 #endif
6733 #include <sys/vfs.h>
6735 int main() {
6737 struct statfs stfs;
6739 memset(&stfs,0,sizeof(stfs));
6741 ; return 0; }
6743 if { (eval echo configure:6744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6744 rm -rf conftest*
6745 wine_cv_sys_vfs_has_statfs=yes
6746 else
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6749 rm -rf conftest*
6750 wine_cv_sys_vfs_has_statfs=no
6753 rm -f conftest*
6757 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6758 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6759 then
6760 cat >> confdefs.h <<\EOF
6761 #define STATFS_DEFINED_BY_SYS_VFS 1
6767 if test "$ac_cv_header_sys_statfs_h" = "yes"
6768 then
6769 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
6770 echo "configure:6771: checking "whether sys/statfs.h defines statfs"" >&5
6771 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6773 else
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6778 #include <sys/types.h>
6779 #ifdef HAVE_SYS_PARAM_H
6780 # include <sys/param.h>
6781 #endif
6782 #include <sys/statfs.h>
6784 int main() {
6786 struct statfs stfs;
6788 ; return 0; }
6790 if { (eval echo configure:6791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6791 rm -rf conftest*
6792 wine_cv_sys_statfs_has_statfs=yes
6793 else
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6796 rm -rf conftest*
6797 wine_cv_sys_statfs_has_statfs=no
6800 rm -f conftest*
6804 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6805 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6806 then
6807 cat >> confdefs.h <<\EOF
6808 #define STATFS_DEFINED_BY_SYS_STATFS 1
6814 if test "$ac_cv_header_sys_mount_h" = "yes"
6815 then
6816 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
6817 echo "configure:6818: checking "whether sys/mount.h defines statfs"" >&5
6818 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6820 else
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6825 #include <sys/types.h>
6826 #ifdef HAVE_SYS_PARAM_H
6827 # include <sys/param.h>
6828 #endif
6829 #include <sys/mount.h>
6831 int main() {
6833 struct statfs stfs;
6835 ; return 0; }
6837 if { (eval echo configure:6838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6838 rm -rf conftest*
6839 wine_cv_sys_mount_has_statfs=yes
6840 else
6841 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6843 rm -rf conftest*
6844 wine_cv_sys_mount_has_statfs=no
6847 rm -f conftest*
6851 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6852 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6853 then
6854 cat >> confdefs.h <<\EOF
6855 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6862 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
6863 echo "configure:6864: checking "for statfs.f_bfree"" >&5
6864 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6866 else
6867 if test "x$statfs_bfree" = "xno"
6868 then
6869 wine_cv_statfs_bfree=no
6870 else
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6875 #include <sys/types.h>
6876 #ifdef HAVE_SYS_PARAM_H
6877 # include <sys/param.h>
6878 #endif
6879 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6880 # include <sys/mount.h>
6881 #else
6882 # ifdef STATFS_DEFINED_BY_SYS_VFS
6883 # include <sys/vfs.h>
6884 # else
6885 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6886 # include <sys/statfs.h>
6887 # endif
6888 # endif
6889 #endif
6891 int main() {
6893 struct statfs stfs;
6895 stfs.f_bfree++;
6897 ; return 0; }
6899 if { (eval echo configure:6900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6900 rm -rf conftest*
6901 wine_cv_statfs_bfree=yes
6902 else
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6905 rm -rf conftest*
6906 wine_cv_statfs_bfree=no
6909 rm -f conftest*
6913 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6914 if test "$wine_cv_statfs_bfree" = "yes"
6915 then
6916 cat >> confdefs.h <<\EOF
6917 #define STATFS_HAS_BFREE 1
6922 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
6923 echo "configure:6924: checking "for statfs.f_bavail"" >&5
6924 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6926 else
6927 if test "x$statfs_bavail" = "xno"
6928 then
6929 wine_cv_statfs_bavail=no
6930 else
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6935 #include <sys/types.h>
6936 #ifdef HAVE_SYS_PARAM_H
6937 # include <sys/param.h>
6938 #endif
6939 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6940 # include <sys/mount.h>
6941 #else
6942 # ifdef STATFS_DEFINED_BY_SYS_VFS
6943 # include <sys/vfs.h>
6944 # else
6945 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6946 # include <sys/statfs.h>
6947 # endif
6948 # endif
6949 #endif
6951 int main() {
6953 struct statfs stfs;
6955 stfs.f_bavail++;
6957 ; return 0; }
6959 if { (eval echo configure:6960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6960 rm -rf conftest*
6961 wine_cv_statfs_bavail=yes
6962 else
6963 echo "configure: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6965 rm -rf conftest*
6966 wine_cv_statfs_bavail=no
6969 rm -f conftest*
6973 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6974 if test "$wine_cv_statfs_bavail" = "yes"
6975 then
6976 cat >> confdefs.h <<\EOF
6977 #define STATFS_HAS_BAVAIL 1
6983 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
6984 echo "configure:6985: checking "for msg_accrights in struct msghdr"" >&5
6985 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6987 else
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 #include <sys/types.h>
6992 #include <sys/socket.h>
6993 int main() {
6994 struct msghdr hdr; hdr.msg_accrights=0
6995 ; return 0; }
6997 if { (eval echo configure:6998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6998 rm -rf conftest*
6999 ac_cv_c_msg_accrights="yes"
7000 else
7001 echo "configure: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 rm -rf conftest*
7004 ac_cv_c_msg_accrights="no"
7006 rm -f conftest*
7009 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
7010 if test "$ac_cv_c_msg_accrights" = "yes"
7011 then
7012 cat >> confdefs.h <<\EOF
7013 #define HAVE_MSGHDR_ACCRIGHTS 1
7019 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
7020 echo "configure:7021: checking "for sun_len in struct sockaddr_un"" >&5
7021 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7023 else
7024 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 #include <sys/types.h>
7028 #include <sys/socket.h>
7029 #include <sys/un.h>
7030 int main() {
7031 static struct sockaddr_un addr; addr.sun_len = 1
7032 ; return 0; }
7034 if { (eval echo configure:7035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7035 rm -rf conftest*
7036 ac_cv_c_sun_len="yes"
7037 else
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7040 rm -rf conftest*
7041 ac_cv_c_sun_len="no"
7043 rm -f conftest*
7046 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
7047 if test "$ac_cv_c_sun_len" = "yes"
7048 then
7049 cat >> confdefs.h <<\EOF
7050 #define HAVE_SOCKADDR_SUN_LEN 1
7056 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
7057 echo "configure:7058: checking "whether we need to define __i386__"" >&5
7058 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7060 else
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
7066 #endif
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 egrep "yes" >/dev/null 2>&1; then
7070 rm -rf conftest*
7071 ac_cv_cpp_def_i386="yes"
7072 else
7073 rm -rf conftest*
7074 ac_cv_cpp_def_i386="no"
7076 rm -f conftest*
7080 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
7081 if test "$ac_cv_cpp_def_i386" = "yes"
7082 then
7083 CFLAGS="$CFLAGS -D__i386__"
7084 LINTFLAGS="$LINTFLAGS -D__i386__"
7087 GCC_NO_BUILTIN=""
7088 if test "$GCC" = "yes"
7089 then
7090 GCC_NO_BUILTIN="-fno-builtin"
7097 MAKE_RULES=Make.rules
7100 MAKE_DLL_RULES=dlls/Makedll.rules
7103 MAKE_PROG_RULES=programs/Makeprog.rules
7106 trap '' 1 2 15
7107 cat > confcache <<\EOF
7108 # This file is a shell script that caches the results of configure
7109 # tests run on this system so they can be shared between configure
7110 # scripts and configure runs. It is not useful on other systems.
7111 # If it contains results you don't want to keep, you may remove or edit it.
7113 # By default, configure uses ./config.cache as the cache file,
7114 # creating it if it does not exist already. You can give configure
7115 # the --cache-file=FILE option to use a different cache file; that is
7116 # what configure does when it calls configure scripts in
7117 # subdirectories, so they share the cache.
7118 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7119 # config.status only pays attention to the cache file if you give it the
7120 # --recheck option to rerun configure.
7123 # The following way of writing the cache mishandles newlines in values,
7124 # but we know of no workaround that is simple, portable, and efficient.
7125 # So, don't put newlines in cache variables' values.
7126 # Ultrix sh set writes to stderr and can't be redirected directly,
7127 # and sets the high bit in the cache file unless we assign to the vars.
7128 (set) 2>&1 |
7129 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7130 *ac_space=\ *)
7131 # `set' does not quote correctly, so add quotes (double-quote substitution
7132 # turns \\\\ into \\, and sed turns \\ into \).
7133 sed -n \
7134 -e "s/'/'\\\\''/g" \
7135 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7138 # `set' quotes correctly as required by POSIX, so do not add quotes.
7139 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7141 esac >> confcache
7142 if cmp -s $cache_file confcache; then
7144 else
7145 if test -w $cache_file; then
7146 echo "updating cache $cache_file"
7147 cat confcache > $cache_file
7148 else
7149 echo "not updating unwritable cache $cache_file"
7152 rm -f confcache
7154 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7157 # Let make expand exec_prefix.
7158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7160 # Any assignment to VPATH causes Sun make to only execute
7161 # the first set of double-colon rules, so remove it if not needed.
7162 # If there is a colon in the path, we need to keep it.
7163 if test "x$srcdir" = x.; then
7164 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7167 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7169 DEFS=-DHAVE_CONFIG_H
7171 # Without the "./", some shells look in PATH for config.status.
7172 : ${CONFIG_STATUS=./config.status}
7174 echo creating $CONFIG_STATUS
7175 rm -f $CONFIG_STATUS
7176 cat > $CONFIG_STATUS <<EOF
7177 #! /bin/sh
7178 # Generated automatically by configure.
7179 # Run this file to recreate the current configuration.
7180 # This directory was configured as follows,
7181 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7183 # $0 $ac_configure_args
7185 # Compiler output produced by configure, useful for debugging
7186 # configure, is in ./config.log if it exists.
7188 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7189 for ac_option
7191 case "\$ac_option" in
7192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7193 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7194 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7195 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7196 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7197 exit 0 ;;
7198 -help | --help | --hel | --he | --h)
7199 echo "\$ac_cs_usage"; exit 0 ;;
7200 *) echo "\$ac_cs_usage"; exit 1 ;;
7201 esac
7202 done
7204 ac_given_srcdir=$srcdir
7205 ac_given_INSTALL="$INSTALL"
7207 trap 'rm -fr `echo "
7208 Make.rules
7209 dlls/Makedll.rules
7210 programs/Makeprog.rules
7211 Makefile
7212 console/Makefile
7213 controls/Makefile
7214 debugger/Makefile
7215 dlls/Makefile
7216 dlls/advapi32/Makefile
7217 dlls/avifil32/Makefile
7218 dlls/comctl32/Makefile
7219 dlls/commdlg/Makefile
7220 dlls/crtdll/Makefile
7221 dlls/dciman32/Makefile
7222 dlls/ddraw/Makefile
7223 dlls/dinput/Makefile
7224 dlls/dplay/Makefile
7225 dlls/dplayx/Makefile
7226 dlls/dsound/Makefile
7227 dlls/gdi/Makefile
7228 dlls/glu32/Makefile
7229 dlls/icmp/Makefile
7230 dlls/imagehlp/Makefile
7231 dlls/imm32/Makefile
7232 dlls/kernel/Makefile
7233 dlls/lzexpand/Makefile
7234 dlls/mpr/Makefile
7235 dlls/msacm/Makefile
7236 dlls/msnet32/Makefile
7237 dlls/msvcrt/Makefile
7238 dlls/msvideo/Makefile
7239 dlls/ntdll/Makefile
7240 dlls/odbc32/Makefile
7241 dlls/ole32/Makefile
7242 dlls/oleaut32/Makefile
7243 dlls/olecli/Makefile
7244 dlls/oledlg/Makefile
7245 dlls/olepro32/Makefile
7246 dlls/olesvr/Makefile
7247 dlls/opengl32/Makefile
7248 dlls/psapi/Makefile
7249 dlls/rasapi32/Makefile
7250 dlls/richedit/Makefile
7251 dlls/rpcrt4/Makefile
7252 dlls/serialui/Makefile
7253 dlls/setupapi/Makefile
7254 dlls/shdocvw/Makefile
7255 dlls/shell32/Makefile
7256 dlls/shfolder/Makefile
7257 dlls/shlwapi/Makefile
7258 dlls/tapi32/Makefile
7259 dlls/ttydrv/Makefile
7260 dlls/urlmon/Makefile
7261 dlls/user/Makefile
7262 dlls/version/Makefile
7263 dlls/win32s/Makefile
7264 dlls/winaspi/Makefile
7265 dlls/winedos/Makefile
7266 dlls/wineps/Makefile
7267 dlls/wininet/Makefile
7268 dlls/winmm/Makefile
7269 dlls/winmm/joystick/Makefile
7270 dlls/winmm/mcianim/Makefile
7271 dlls/winmm/mciavi/Makefile
7272 dlls/winmm/mcicda/Makefile
7273 dlls/winmm/mciseq/Makefile
7274 dlls/winmm/mciwave/Makefile
7275 dlls/winmm/midimap/Makefile
7276 dlls/winmm/wavemap/Makefile
7277 dlls/winmm/wineoss/Makefile
7278 dlls/winnls/Makefile
7279 dlls/winsock/Makefile
7280 dlls/winspool/Makefile
7281 dlls/wintrust/Makefile
7282 dlls/wow32/Makefile
7283 dlls/wsock32/Makefile
7284 dlls/x11drv/Makefile
7285 documentation/Makefile
7286 documentation/wine.conf.man
7287 documentation/wine.man
7288 files/Makefile
7289 graphics/Makefile
7290 graphics/enhmetafiledrv/Makefile
7291 graphics/metafiledrv/Makefile
7292 graphics/win16drv/Makefile
7293 graphics/x11drv/Makefile
7294 if1632/Makefile
7295 include/Makefile
7296 library/Makefile
7297 libtest/Makefile
7298 loader/Makefile
7299 loader/dos/Makefile
7300 loader/ne/Makefile
7301 memory/Makefile
7302 misc/Makefile
7303 miscemu/Makefile
7304 msdos/Makefile
7305 objects/Makefile
7306 ole/Makefile
7307 programs/Makefile
7308 programs/avitools/Makefile
7309 programs/clock/Makefile
7310 programs/cmdlgtst/Makefile
7311 programs/control/Makefile
7312 programs/notepad/Makefile
7313 programs/osversioncheck/Makefile
7314 programs/progman/Makefile
7315 programs/regapi/Makefile
7316 programs/regtest/Makefile
7317 programs/uninstaller/Makefile
7318 programs/view/Makefile
7319 programs/wcmd/Makefile
7320 programs/winemine/Makefile
7321 programs/winetest/Makefile
7322 programs/winhelp/Makefile
7323 programs/winver/Makefile
7324 relay32/Makefile
7325 scheduler/Makefile
7326 server/Makefile
7327 tools/Makefile
7328 tools/cvdump/Makefile
7329 tools/specmaker/Makefile
7330 tools/winebuild/Makefile
7331 tools/winelauncher
7332 tools/wmc/Makefile
7333 tools/wrc/Makefile
7334 tsx11/Makefile
7335 unicode/Makefile
7336 win32/Makefile
7337 windows/Makefile
7338 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7340 cat >> $CONFIG_STATUS <<EOF
7342 # Protect against being on the right side of a sed subst in config.status.
7343 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7344 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7345 $ac_vpsub
7346 $extrasub
7347 s%@SHELL@%$SHELL%g
7348 s%@CFLAGS@%$CFLAGS%g
7349 s%@CPPFLAGS@%$CPPFLAGS%g
7350 s%@CXXFLAGS@%$CXXFLAGS%g
7351 s%@FFLAGS@%$FFLAGS%g
7352 s%@DEFS@%$DEFS%g
7353 s%@LDFLAGS@%$LDFLAGS%g
7354 s%@LIBS@%$LIBS%g
7355 s%@exec_prefix@%$exec_prefix%g
7356 s%@prefix@%$prefix%g
7357 s%@program_transform_name@%$program_transform_name%g
7358 s%@bindir@%$bindir%g
7359 s%@sbindir@%$sbindir%g
7360 s%@libexecdir@%$libexecdir%g
7361 s%@datadir@%$datadir%g
7362 s%@sysconfdir@%$sysconfdir%g
7363 s%@sharedstatedir@%$sharedstatedir%g
7364 s%@localstatedir@%$localstatedir%g
7365 s%@libdir@%$libdir%g
7366 s%@includedir@%$includedir%g
7367 s%@oldincludedir@%$oldincludedir%g
7368 s%@infodir@%$infodir%g
7369 s%@mandir@%$mandir%g
7370 s%@OPTIONS@%$OPTIONS%g
7371 s%@SET_MAKE@%$SET_MAKE%g
7372 s%@CC@%$CC%g
7373 s%@CPP@%$CPP%g
7374 s%@X_CFLAGS@%$X_CFLAGS%g
7375 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7376 s%@X_LIBS@%$X_LIBS%g
7377 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7378 s%@YACC@%$YACC%g
7379 s%@LEX@%$LEX%g
7380 s%@LEXLIB@%$LEXLIB%g
7381 s%@XLEX@%$XLEX%g
7382 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7383 s%@RANLIB@%$RANLIB%g
7384 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7385 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7386 s%@INSTALL_DATA@%$INSTALL_DATA%g
7387 s%@LN_S@%$LN_S%g
7388 s%@C2MAN@%$C2MAN%g
7389 s%@LDCONFIG@%$LDCONFIG%g
7390 s%@DLLWRAP@%$DLLWRAP%g
7391 s%@LINT@%$LINT%g
7392 s%@LINTFLAGS@%$LINTFLAGS%g
7393 s%@LDCOMBINE@%$LDCOMBINE%g
7394 s%@XLIB@%$XLIB%g
7395 s%@X_DLLS@%$X_DLLS%g
7396 s%@XFILES@%$XFILES%g
7397 s%@OPENGLFILES@%$OPENGLFILES%g
7398 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
7399 s%@GLU32FILES@%$GLU32FILES%g
7400 s%@GLU32_DLL@%$GLU32_DLL%g
7401 s%@CUPSLIBS@%$CUPSLIBS%g
7402 s%@ft_devel@%$ft_devel%g
7403 s%@ft_devel2@%$ft_devel2%g
7404 s%@FREETYPELIBS@%$FREETYPELIBS%g
7405 s%@FREETYPEINCL@%$FREETYPEINCL%g
7406 s%@DLL_LINK@%$DLL_LINK%g
7407 s%@DLLFLAGS@%$DLLFLAGS%g
7408 s%@LDSHARED@%$LDSHARED%g
7409 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7410 s%@LIBEXT@%$LIBEXT%g
7411 s%@LDPATH@%$LDPATH%g
7412 s%@ALLOCA@%$ALLOCA%g
7413 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7414 /@MAKE_RULES@/r $MAKE_RULES
7415 s%@MAKE_RULES@%%g
7416 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7417 s%@MAKE_DLL_RULES@%%g
7418 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7419 s%@MAKE_PROG_RULES@%%g
7421 CEOF
7424 cat >> $CONFIG_STATUS <<\EOF
7426 # Split the substitutions into bite-sized pieces for seds with
7427 # small command number limits, like on Digital OSF/1 and HP-UX.
7428 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7429 ac_file=1 # Number of current file.
7430 ac_beg=1 # First line for current file.
7431 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7432 ac_more_lines=:
7433 ac_sed_cmds=""
7434 while $ac_more_lines; do
7435 if test $ac_beg -gt 1; then
7436 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7437 else
7438 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7440 if test ! -s conftest.s$ac_file; then
7441 ac_more_lines=false
7442 rm -f conftest.s$ac_file
7443 else
7444 if test -z "$ac_sed_cmds"; then
7445 ac_sed_cmds="sed -f conftest.s$ac_file"
7446 else
7447 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7449 ac_file=`expr $ac_file + 1`
7450 ac_beg=$ac_end
7451 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7453 done
7454 if test -z "$ac_sed_cmds"; then
7455 ac_sed_cmds=cat
7459 cat >> $CONFIG_STATUS <<EOF
7461 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7462 dlls/Makedll.rules
7463 programs/Makeprog.rules
7464 Makefile
7465 console/Makefile
7466 controls/Makefile
7467 debugger/Makefile
7468 dlls/Makefile
7469 dlls/advapi32/Makefile
7470 dlls/avifil32/Makefile
7471 dlls/comctl32/Makefile
7472 dlls/commdlg/Makefile
7473 dlls/crtdll/Makefile
7474 dlls/dciman32/Makefile
7475 dlls/ddraw/Makefile
7476 dlls/dinput/Makefile
7477 dlls/dplay/Makefile
7478 dlls/dplayx/Makefile
7479 dlls/dsound/Makefile
7480 dlls/gdi/Makefile
7481 dlls/glu32/Makefile
7482 dlls/icmp/Makefile
7483 dlls/imagehlp/Makefile
7484 dlls/imm32/Makefile
7485 dlls/kernel/Makefile
7486 dlls/lzexpand/Makefile
7487 dlls/mpr/Makefile
7488 dlls/msacm/Makefile
7489 dlls/msnet32/Makefile
7490 dlls/msvcrt/Makefile
7491 dlls/msvideo/Makefile
7492 dlls/ntdll/Makefile
7493 dlls/odbc32/Makefile
7494 dlls/ole32/Makefile
7495 dlls/oleaut32/Makefile
7496 dlls/olecli/Makefile
7497 dlls/oledlg/Makefile
7498 dlls/olepro32/Makefile
7499 dlls/olesvr/Makefile
7500 dlls/opengl32/Makefile
7501 dlls/psapi/Makefile
7502 dlls/rasapi32/Makefile
7503 dlls/richedit/Makefile
7504 dlls/rpcrt4/Makefile
7505 dlls/serialui/Makefile
7506 dlls/setupapi/Makefile
7507 dlls/shdocvw/Makefile
7508 dlls/shell32/Makefile
7509 dlls/shfolder/Makefile
7510 dlls/shlwapi/Makefile
7511 dlls/tapi32/Makefile
7512 dlls/ttydrv/Makefile
7513 dlls/urlmon/Makefile
7514 dlls/user/Makefile
7515 dlls/version/Makefile
7516 dlls/win32s/Makefile
7517 dlls/winaspi/Makefile
7518 dlls/winedos/Makefile
7519 dlls/wineps/Makefile
7520 dlls/wininet/Makefile
7521 dlls/winmm/Makefile
7522 dlls/winmm/joystick/Makefile
7523 dlls/winmm/mcianim/Makefile
7524 dlls/winmm/mciavi/Makefile
7525 dlls/winmm/mcicda/Makefile
7526 dlls/winmm/mciseq/Makefile
7527 dlls/winmm/mciwave/Makefile
7528 dlls/winmm/midimap/Makefile
7529 dlls/winmm/wavemap/Makefile
7530 dlls/winmm/wineoss/Makefile
7531 dlls/winnls/Makefile
7532 dlls/winsock/Makefile
7533 dlls/winspool/Makefile
7534 dlls/wintrust/Makefile
7535 dlls/wow32/Makefile
7536 dlls/wsock32/Makefile
7537 dlls/x11drv/Makefile
7538 documentation/Makefile
7539 documentation/wine.conf.man
7540 documentation/wine.man
7541 files/Makefile
7542 graphics/Makefile
7543 graphics/enhmetafiledrv/Makefile
7544 graphics/metafiledrv/Makefile
7545 graphics/win16drv/Makefile
7546 graphics/x11drv/Makefile
7547 if1632/Makefile
7548 include/Makefile
7549 library/Makefile
7550 libtest/Makefile
7551 loader/Makefile
7552 loader/dos/Makefile
7553 loader/ne/Makefile
7554 memory/Makefile
7555 misc/Makefile
7556 miscemu/Makefile
7557 msdos/Makefile
7558 objects/Makefile
7559 ole/Makefile
7560 programs/Makefile
7561 programs/avitools/Makefile
7562 programs/clock/Makefile
7563 programs/cmdlgtst/Makefile
7564 programs/control/Makefile
7565 programs/notepad/Makefile
7566 programs/osversioncheck/Makefile
7567 programs/progman/Makefile
7568 programs/regapi/Makefile
7569 programs/regtest/Makefile
7570 programs/uninstaller/Makefile
7571 programs/view/Makefile
7572 programs/wcmd/Makefile
7573 programs/winemine/Makefile
7574 programs/winetest/Makefile
7575 programs/winhelp/Makefile
7576 programs/winver/Makefile
7577 relay32/Makefile
7578 scheduler/Makefile
7579 server/Makefile
7580 tools/Makefile
7581 tools/cvdump/Makefile
7582 tools/specmaker/Makefile
7583 tools/winebuild/Makefile
7584 tools/winelauncher
7585 tools/wmc/Makefile
7586 tools/wrc/Makefile
7587 tsx11/Makefile
7588 unicode/Makefile
7589 win32/Makefile
7590 windows/Makefile
7591 windows/x11drv/Makefile "}
7593 cat >> $CONFIG_STATUS <<\EOF
7594 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7596 case "$ac_file" in
7597 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7598 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7599 *) ac_file_in="${ac_file}.in" ;;
7600 esac
7602 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7604 # Remove last slash and all that follows it. Not all systems have dirname.
7605 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7606 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7607 # The file is in a subdirectory.
7608 test ! -d "$ac_dir" && mkdir "$ac_dir"
7609 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7610 # A "../" for each directory in $ac_dir_suffix.
7611 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7612 else
7613 ac_dir_suffix= ac_dots=
7616 case "$ac_given_srcdir" in
7617 .) srcdir=.
7618 if test -z "$ac_dots"; then top_srcdir=.
7619 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7620 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7621 *) # Relative path.
7622 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7623 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7624 esac
7626 case "$ac_given_INSTALL" in
7627 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7628 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7629 esac
7631 echo creating "$ac_file"
7632 rm -f "$ac_file"
7633 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7634 case "$ac_file" in
7635 *Makefile*) ac_comsub="1i\\
7636 # $configure_input" ;;
7637 *) ac_comsub= ;;
7638 esac
7640 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7641 sed -e "$ac_comsub
7642 s%@configure_input@%$configure_input%g
7643 s%@srcdir@%$srcdir%g
7644 s%@top_srcdir@%$top_srcdir%g
7645 s%@INSTALL@%$INSTALL%g
7646 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7647 fi; done
7648 rm -f conftest.s*
7650 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7651 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7653 # ac_d sets the value in "#define NAME VALUE" lines.
7654 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7655 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7656 ac_dC='\3'
7657 ac_dD='%g'
7658 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7659 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7660 ac_uB='\([ ]\)%\1#\2define\3'
7661 ac_uC=' '
7662 ac_uD='\4%g'
7663 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7664 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7665 ac_eB='$%\1#\2define\3'
7666 ac_eC=' '
7667 ac_eD='%g'
7669 if test "${CONFIG_HEADERS+set}" != set; then
7671 cat >> $CONFIG_STATUS <<EOF
7672 CONFIG_HEADERS="include/config.h"
7674 cat >> $CONFIG_STATUS <<\EOF
7676 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7678 case "$ac_file" in
7679 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7680 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7681 *) ac_file_in="${ac_file}.in" ;;
7682 esac
7684 echo creating $ac_file
7686 rm -f conftest.frag conftest.in conftest.out
7687 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7688 cat $ac_file_inputs > conftest.in
7692 # Transform confdefs.h into a sed script conftest.vals that substitutes
7693 # the proper values into config.h.in to produce config.h. And first:
7694 # Protect against being on the right side of a sed subst in config.status.
7695 # Protect against being in an unquoted here document in config.status.
7696 rm -f conftest.vals
7697 cat > conftest.hdr <<\EOF
7698 s/[\\&%]/\\&/g
7699 s%[\\$`]%\\&%g
7700 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7701 s%ac_d%ac_u%gp
7702 s%ac_u%ac_e%gp
7704 sed -n -f conftest.hdr confdefs.h > conftest.vals
7705 rm -f conftest.hdr
7707 # This sed command replaces #undef with comments. This is necessary, for
7708 # example, in the case of _POSIX_SOURCE, which is predefined and required
7709 # on some systems where configure will not decide to define it.
7710 cat >> conftest.vals <<\EOF
7711 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7714 # Break up conftest.vals because some shells have a limit on
7715 # the size of here documents, and old seds have small limits too.
7717 rm -f conftest.tail
7718 while :
7720 ac_lines=`grep -c . conftest.vals`
7721 # grep -c gives empty output for an empty file on some AIX systems.
7722 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7723 # Write a limited-size here document to conftest.frag.
7724 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7725 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7726 echo 'CEOF
7727 sed -f conftest.frag conftest.in > conftest.out
7728 rm -f conftest.in
7729 mv conftest.out conftest.in
7730 ' >> $CONFIG_STATUS
7731 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7732 rm -f conftest.vals
7733 mv conftest.tail conftest.vals
7734 done
7735 rm -f conftest.vals
7737 cat >> $CONFIG_STATUS <<\EOF
7738 rm -f conftest.frag conftest.h
7739 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7740 cat conftest.in >> conftest.h
7741 rm -f conftest.in
7742 if cmp -s $ac_file conftest.h 2>/dev/null; then
7743 echo "$ac_file is unchanged"
7744 rm -f conftest.h
7745 else
7746 # Remove last slash and all that follows it. Not all systems have dirname.
7747 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7748 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7749 # The file is in a subdirectory.
7750 test ! -d "$ac_dir" && mkdir "$ac_dir"
7752 rm -f $ac_file
7753 mv conftest.h $ac_file
7755 fi; done
7758 cat >> $CONFIG_STATUS <<EOF
7762 cat >> $CONFIG_STATUS <<\EOF
7764 extra_subdirs="\
7765 dlls/ddraw/d3ddevice \
7766 dlls/ddraw/dclipper \
7767 dlls/ddraw/ddraw \
7768 dlls/ddraw/direct3d \
7769 dlls/ddraw/dpalette \
7770 dlls/ddraw/dsurface \
7771 dlls/dinput/joystick \
7772 dlls/dinput/keyboard \
7773 dlls/dinput/mouse \
7774 dlls/kernel/messages \
7775 dlls/user/resources \
7776 dlls/wineps/data \
7778 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7780 exit 0
7782 chmod +x $CONFIG_STATUS
7783 rm -fr confdefs* $ac_clean_files
7784 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7787 if test "$have_x" = "no"
7788 then
7789 echo
7790 echo "*** Warning: X development files not found. Wine will be built without"
7791 echo "*** X support, which currently does not work, and would probably not be"
7792 echo "*** what you want anyway. You will need to install devel packages of"
7793 echo "*** Xlib/Xfree86 and Xpm at the very least."
7794 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7795 then
7796 echo
7797 echo "*** Warning: Xpm development files not found. Wine will be built without"
7798 echo "*** Xpm support, which currently does not work. You will need to install"
7799 echo "*** devel packages of Xpm."
7802 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7803 then
7804 echo
7805 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7806 echo "*** terminal resize support. Consider upgrading ncurses."
7809 if test "$wine_cv_libc_reentrant" = "no"
7810 then
7811 echo
7812 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7813 echo "*** thread support. Consider upgrading libc to a more recent"
7814 echo "*** reentrant version of libc."
7817 if test "$wine_cv_opengl_version_OK" = "no"
7818 then
7819 echo
7820 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7821 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7824 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7825 then
7826 echo
7827 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7828 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7829 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7830 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7833 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7834 then
7835 echo
7836 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7837 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7838 echo "*** support before reporting bugs."
7841 if test "$wine_cv_warn_cups_h" = "yes"
7842 then
7843 echo
7844 echo "*** Note: You have cups runtime libraries, but no development"
7845 echo "*** libraries. Install the cups-devel package or whichever package"
7846 echo "*** contains cups.h to enable CUPS support in WINE."
7849 if test "$wine_cv_msg_freetype" = "yes"
7850 then
7851 echo
7852 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7853 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7854 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7855 echo "*** enable Wine to use TrueType fonts."
7858 echo
7859 echo "Configure finished. Do 'make depend && make' to compile Wine."
7860 echo