Several bug fixes and additions.
[wine.git] / configure
blob595cb47e080512bb34a54c0cc020bd2740b7ee43
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 # Extract the first word of "ranlib", so it can be a program name with args.
1941 set dummy ranlib; ac_word=$2
1942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_word" >&5
1944 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 if test -n "$RANLIB"; then
1948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1949 else
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 ac_dummy="$PATH"
1952 for ac_dir in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_prog_RANLIB="ranlib"
1956 break
1958 done
1959 IFS="$ac_save_ifs"
1960 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1963 RANLIB="$ac_cv_prog_RANLIB"
1964 if test -n "$RANLIB"; then
1965 echo "$ac_t""$RANLIB" 1>&6
1966 else
1967 echo "$ac_t""no" 1>&6
1970 # Find a good install program. We prefer a C program (faster),
1971 # so one script is as good as another. But avoid the broken or
1972 # incompatible versions:
1973 # SysV /etc/install, /usr/sbin/install
1974 # SunOS /usr/etc/install
1975 # IRIX /sbin/install
1976 # AIX /bin/install
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # ./install, which can be erroneously created by make from ./install.sh.
1981 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1982 echo "configure:1983: checking for a BSD compatible install" >&5
1983 if test -z "$INSTALL"; then
1984 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1988 for ac_dir in $PATH; do
1989 # Account for people who put trailing slashes in PATH elements.
1990 case "$ac_dir/" in
1991 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1995 # by default.
1996 for ac_prog in ginstall scoinst install; do
1997 if test -f $ac_dir/$ac_prog; then
1998 if test $ac_prog = install &&
1999 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2000 # AIX install. It has an incompatible calling convention.
2002 else
2003 ac_cv_path_install="$ac_dir/$ac_prog -c"
2004 break 2
2007 done
2009 esac
2010 done
2011 IFS="$ac_save_IFS"
2014 if test "${ac_cv_path_install+set}" = set; then
2015 INSTALL="$ac_cv_path_install"
2016 else
2017 # As a last resort, use the slow shell script. We don't cache a
2018 # path for INSTALL within a source directory, because that will
2019 # break other packages using the cache if that directory is
2020 # removed, or if the path is relative.
2021 INSTALL="$ac_install_sh"
2024 echo "$ac_t""$INSTALL" 1>&6
2026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2027 # It thinks the first close brace ends the variable substitution.
2028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2034 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether ln -s works" >&5
2036 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 rm -f conftestdata
2040 if ln -s X conftestdata 2>/dev/null
2041 then
2042 rm -f conftestdata
2043 ac_cv_prog_LN_S="ln -s"
2044 else
2045 ac_cv_prog_LN_S=ln
2048 LN_S="$ac_cv_prog_LN_S"
2049 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2050 echo "$ac_t""yes" 1>&6
2051 else
2052 echo "$ac_t""no" 1>&6
2055 # Extract the first word of "c2man", so it can be a program name with args.
2056 set dummy c2man; ac_word=$2
2057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2058 echo "configure:2059: checking for $ac_word" >&5
2059 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 if test -n "$C2MAN"; then
2063 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2064 else
2065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2066 ac_dummy="$PATH"
2067 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 if test -f $ac_dir/$ac_word; then
2070 ac_cv_prog_C2MAN="c2man"
2071 break
2073 done
2074 IFS="$ac_save_ifs"
2075 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2078 C2MAN="$ac_cv_prog_C2MAN"
2079 if test -n "$C2MAN"; then
2080 echo "$ac_t""$C2MAN" 1>&6
2081 else
2082 echo "$ac_t""no" 1>&6
2085 # Extract the first word of "ldconfig", so it can be a program name with args.
2086 set dummy ldconfig; ac_word=$2
2087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_word" >&5
2089 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2091 else
2092 case "$LDCONFIG" in
2094 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2096 ?:/*)
2097 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2101 ac_dummy="/sbin:/usr/sbin:$PATH"
2102 for ac_dir in $ac_dummy; do
2103 test -z "$ac_dir" && ac_dir=.
2104 if test -f $ac_dir/$ac_word; then
2105 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2106 break
2108 done
2109 IFS="$ac_save_ifs"
2110 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2112 esac
2114 LDCONFIG="$ac_cv_path_LDCONFIG"
2115 if test -n "$LDCONFIG"; then
2116 echo "$ac_t""$LDCONFIG" 1>&6
2117 else
2118 echo "$ac_t""no" 1>&6
2121 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2122 echo "configure:2123: checking for Cygwin environment" >&5
2123 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2125 else
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2130 int main() {
2132 #ifndef __CYGWIN__
2133 #define __CYGWIN__ __CYGWIN32__
2134 #endif
2135 return __CYGWIN__;
2136 ; return 0; }
2138 if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2139 rm -rf conftest*
2140 ac_cv_cygwin=yes
2141 else
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2144 rm -rf conftest*
2145 ac_cv_cygwin=no
2147 rm -f conftest*
2148 rm -f conftest*
2151 echo "$ac_t""$ac_cv_cygwin" 1>&6
2152 CYGWIN=
2153 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2154 # Extract the first word of "dllwrap", so it can be a program name with args.
2155 set dummy dllwrap; ac_word=$2
2156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2157 echo "configure:2158: checking for $ac_word" >&5
2158 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 if test -n "$DLLWRAP"; then
2162 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2163 else
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/$ac_word; then
2169 ac_cv_prog_DLLWRAP="dllwrap"
2170 break
2172 done
2173 IFS="$ac_save_ifs"
2174 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2177 DLLWRAP="$ac_cv_prog_DLLWRAP"
2178 if test -n "$DLLWRAP"; then
2179 echo "$ac_t""$DLLWRAP" 1>&6
2180 else
2181 echo "$ac_t""no" 1>&6
2185 for ac_prog in lclint lint
2187 # Extract the first word of "$ac_prog", so it can be a program name with args.
2188 set dummy $ac_prog; ac_word=$2
2189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2190 echo "configure:2191: checking for $ac_word" >&5
2191 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2193 else
2194 if test -n "$LINT"; then
2195 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2196 else
2197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2198 ac_dummy="$PATH"
2199 for ac_dir in $ac_dummy; do
2200 test -z "$ac_dir" && ac_dir=.
2201 if test -f $ac_dir/$ac_word; then
2202 ac_cv_prog_LINT="$ac_prog"
2203 break
2205 done
2206 IFS="$ac_save_ifs"
2209 LINT="$ac_cv_prog_LINT"
2210 if test -n "$LINT"; then
2211 echo "$ac_t""$LINT" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2216 test -n "$LINT" && break
2217 done
2219 if test "$LINT" = "lint"
2220 then
2221 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2226 if test "$CYGWIN" = "yes"
2227 then
2228 LDCOMBINE="ld -r --enable-stdcall-fixup"
2229 else
2230 LDCOMBINE="ld -r"
2235 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2236 echo "configure:2237: checking for sqrt in -lm" >&5
2237 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2240 else
2241 ac_save_LIBS="$LIBS"
2242 LIBS="-lm $LIBS"
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* Override any gcc2 internal prototype to avoid an error. */
2247 /* We use char because int might match the return type of a gcc2
2248 builtin and then its argument prototype would still apply. */
2249 char sqrt();
2251 int main() {
2252 sqrt()
2253 ; return 0; }
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2256 rm -rf conftest*
2257 eval "ac_cv_lib_$ac_lib_var=yes"
2258 else
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 rm -rf conftest*
2262 eval "ac_cv_lib_$ac_lib_var=no"
2264 rm -f conftest*
2265 LIBS="$ac_save_LIBS"
2268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2272 cat >> confdefs.h <<EOF
2273 #define $ac_tr_lib 1
2276 LIBS="-lm $LIBS"
2278 else
2279 echo "$ac_t""no" 1>&6
2282 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2283 echo "configure:2284: checking for i386_set_ldt in -li386" >&5
2284 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2287 else
2288 ac_save_LIBS="$LIBS"
2289 LIBS="-li386 $LIBS"
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2296 char i386_set_ldt();
2298 int main() {
2299 i386_set_ldt()
2300 ; return 0; }
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 rm -rf conftest*
2304 eval "ac_cv_lib_$ac_lib_var=yes"
2305 else
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 rm -rf conftest*
2309 eval "ac_cv_lib_$ac_lib_var=no"
2311 rm -f conftest*
2312 LIBS="$ac_save_LIBS"
2315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2319 cat >> confdefs.h <<EOF
2320 #define $ac_tr_lib 1
2323 LIBS="-li386 $LIBS"
2325 else
2326 echo "$ac_t""no" 1>&6
2329 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2330 echo "configure:2331: checking for _oss_ioctl in -lossaudio" >&5
2331 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335 ac_save_LIBS="$LIBS"
2336 LIBS="-lossaudio $LIBS"
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2343 char _oss_ioctl();
2345 int main() {
2346 _oss_ioctl()
2347 ; return 0; }
2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2350 rm -rf conftest*
2351 eval "ac_cv_lib_$ac_lib_var=yes"
2352 else
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 rm -rf conftest*
2356 eval "ac_cv_lib_$ac_lib_var=no"
2358 rm -f conftest*
2359 LIBS="$ac_save_LIBS"
2362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2366 cat >> confdefs.h <<EOF
2367 #define $ac_tr_lib 1
2370 LIBS="-lossaudio $LIBS"
2372 else
2373 echo "$ac_t""no" 1>&6
2376 for ac_func in iswalnum
2378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_func" >&5
2380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 /* System header to define __stub macros and hopefully few prototypes,
2387 which can conflict with char $ac_func(); below. */
2388 #include <assert.h>
2389 /* Override any gcc2 internal prototype to avoid an error. */
2390 /* We use char because int might match the return type of a gcc2
2391 builtin and then its argument prototype would still apply. */
2392 char $ac_func();
2394 int main() {
2396 /* The GNU C library defines this for functions which it implements
2397 to always fail with ENOSYS. Some functions are actually named
2398 something starting with __ and the normal name is an alias. */
2399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2400 choke me
2401 #else
2402 $ac_func();
2403 #endif
2405 ; return 0; }
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 rm -rf conftest*
2409 eval "ac_cv_func_$ac_func=yes"
2410 else
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 rm -rf conftest*
2414 eval "ac_cv_func_$ac_func=no"
2416 rm -f conftest*
2419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2422 cat >> confdefs.h <<EOF
2423 #define $ac_tr_func 1
2426 else
2427 echo "$ac_t""no" 1>&6
2428 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2429 echo "configure:2430: checking for iswalnum in -lw" >&5
2430 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2433 else
2434 ac_save_LIBS="$LIBS"
2435 LIBS="-lw $LIBS"
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 /* Override any gcc2 internal prototype to avoid an error. */
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442 char iswalnum();
2444 int main() {
2445 iswalnum()
2446 ; return 0; }
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2449 rm -rf conftest*
2450 eval "ac_cv_lib_$ac_lib_var=yes"
2451 else
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 rm -rf conftest*
2455 eval "ac_cv_lib_$ac_lib_var=no"
2457 rm -f conftest*
2458 LIBS="$ac_save_LIBS"
2461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2462 echo "$ac_t""yes" 1>&6
2463 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2465 cat >> confdefs.h <<EOF
2466 #define $ac_tr_lib 1
2469 LIBS="-lw $LIBS"
2471 else
2472 echo "$ac_t""no" 1>&6
2476 done
2478 for ac_func in gethostbyname
2480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2481 echo "configure:2482: checking for $ac_func" >&5
2482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2484 else
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 /* System header to define __stub macros and hopefully few prototypes,
2489 which can conflict with char $ac_func(); below. */
2490 #include <assert.h>
2491 /* Override any gcc2 internal prototype to avoid an error. */
2492 /* We use char because int might match the return type of a gcc2
2493 builtin and then its argument prototype would still apply. */
2494 char $ac_func();
2496 int main() {
2498 /* The GNU C library defines this for functions which it implements
2499 to always fail with ENOSYS. Some functions are actually named
2500 something starting with __ and the normal name is an alias. */
2501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2502 choke me
2503 #else
2504 $ac_func();
2505 #endif
2507 ; return 0; }
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2510 rm -rf conftest*
2511 eval "ac_cv_func_$ac_func=yes"
2512 else
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2515 rm -rf conftest*
2516 eval "ac_cv_func_$ac_func=no"
2518 rm -f conftest*
2521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2522 echo "$ac_t""yes" 1>&6
2523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2524 cat >> confdefs.h <<EOF
2525 #define $ac_tr_func 1
2528 else
2529 echo "$ac_t""no" 1>&6
2530 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2531 echo "configure:2532: checking for gethostbyname in -lnsl" >&5
2532 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2536 ac_save_LIBS="$LIBS"
2537 LIBS="-lnsl $LIBS"
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 /* Override any gcc2 internal prototype to avoid an error. */
2542 /* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2544 char gethostbyname();
2546 int main() {
2547 gethostbyname()
2548 ; return 0; }
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2551 rm -rf conftest*
2552 eval "ac_cv_lib_$ac_lib_var=yes"
2553 else
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 rm -rf conftest*
2557 eval "ac_cv_lib_$ac_lib_var=no"
2559 rm -f conftest*
2560 LIBS="$ac_save_LIBS"
2563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_lib 1
2571 LIBS="-lnsl $LIBS"
2573 else
2574 echo "$ac_t""no" 1>&6
2578 done
2580 for ac_func in connect
2582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_func" >&5
2584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char $ac_func(); below. */
2592 #include <assert.h>
2593 /* Override any gcc2 internal prototype to avoid an error. */
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2596 char $ac_func();
2598 int main() {
2600 /* The GNU C library defines this for functions which it implements
2601 to always fail with ENOSYS. Some functions are actually named
2602 something starting with __ and the normal name is an alias. */
2603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2604 choke me
2605 #else
2606 $ac_func();
2607 #endif
2609 ; return 0; }
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2612 rm -rf conftest*
2613 eval "ac_cv_func_$ac_func=yes"
2614 else
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -rf conftest*
2618 eval "ac_cv_func_$ac_func=no"
2620 rm -f conftest*
2623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2626 cat >> confdefs.h <<EOF
2627 #define $ac_tr_func 1
2630 else
2631 echo "$ac_t""no" 1>&6
2632 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2633 echo "configure:2634: checking for connect in -lsocket" >&5
2634 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2637 else
2638 ac_save_LIBS="$LIBS"
2639 LIBS="-lsocket $LIBS"
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 /* Override any gcc2 internal prototype to avoid an error. */
2644 /* We use char because int might match the return type of a gcc2
2645 builtin and then its argument prototype would still apply. */
2646 char connect();
2648 int main() {
2649 connect()
2650 ; return 0; }
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2653 rm -rf conftest*
2654 eval "ac_cv_lib_$ac_lib_var=yes"
2655 else
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2658 rm -rf conftest*
2659 eval "ac_cv_lib_$ac_lib_var=no"
2661 rm -f conftest*
2662 LIBS="$ac_save_LIBS"
2665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2667 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2669 cat >> confdefs.h <<EOF
2670 #define $ac_tr_lib 1
2673 LIBS="-lsocket $LIBS"
2675 else
2676 echo "$ac_t""no" 1>&6
2680 done
2682 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2683 echo "configure:2684: checking for _xpg4_setrunelocale in -lxpg4" >&5
2684 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2687 else
2688 ac_save_LIBS="$LIBS"
2689 LIBS="-lxpg4 $LIBS"
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 /* Override any gcc2 internal prototype to avoid an error. */
2694 /* We use char because int might match the return type of a gcc2
2695 builtin and then its argument prototype would still apply. */
2696 char _xpg4_setrunelocale();
2698 int main() {
2699 _xpg4_setrunelocale()
2700 ; return 0; }
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2703 rm -rf conftest*
2704 eval "ac_cv_lib_$ac_lib_var=yes"
2705 else
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2708 rm -rf conftest*
2709 eval "ac_cv_lib_$ac_lib_var=no"
2711 rm -f conftest*
2712 LIBS="$ac_save_LIBS"
2715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2719 cat >> confdefs.h <<EOF
2720 #define $ac_tr_lib 1
2723 LIBS="-lxpg4 $LIBS"
2725 else
2726 echo "$ac_t""no" 1>&6
2729 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2730 echo "configure:2731: checking for mmap in -lmmap" >&5
2731 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2734 else
2735 ac_save_LIBS="$LIBS"
2736 LIBS="-lmmap $LIBS"
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 /* Override any gcc2 internal prototype to avoid an error. */
2741 /* We use char because int might match the return type of a gcc2
2742 builtin and then its argument prototype would still apply. */
2743 char mmap();
2745 int main() {
2746 mmap()
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2750 rm -rf conftest*
2751 eval "ac_cv_lib_$ac_lib_var=yes"
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 eval "ac_cv_lib_$ac_lib_var=no"
2758 rm -f conftest*
2759 LIBS="$ac_save_LIBS"
2762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2766 cat >> confdefs.h <<EOF
2767 #define $ac_tr_lib 1
2770 LIBS="-lmmap $LIBS"
2772 else
2773 echo "$ac_t""no" 1>&6
2776 for ac_func in openpty
2778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_func" >&5
2780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2782 else
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 /* System header to define __stub macros and hopefully few prototypes,
2787 which can conflict with char $ac_func(); below. */
2788 #include <assert.h>
2789 /* Override any gcc2 internal prototype to avoid an error. */
2790 /* We use char because int might match the return type of a gcc2
2791 builtin and then its argument prototype would still apply. */
2792 char $ac_func();
2794 int main() {
2796 /* The GNU C library defines this for functions which it implements
2797 to always fail with ENOSYS. Some functions are actually named
2798 something starting with __ and the normal name is an alias. */
2799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2800 choke me
2801 #else
2802 $ac_func();
2803 #endif
2805 ; return 0; }
2807 if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2808 rm -rf conftest*
2809 eval "ac_cv_func_$ac_func=yes"
2810 else
2811 echo "configure: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2813 rm -rf conftest*
2814 eval "ac_cv_func_$ac_func=no"
2816 rm -f conftest*
2819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2820 echo "$ac_t""yes" 1>&6
2821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2822 cat >> confdefs.h <<EOF
2823 #define $ac_tr_func 1
2826 else
2827 echo "$ac_t""no" 1>&6
2828 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2829 echo "configure:2830: checking for openpty in -lutil" >&5
2830 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2833 else
2834 ac_save_LIBS="$LIBS"
2835 LIBS="-lutil $LIBS"
2836 cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839 /* Override any gcc2 internal prototype to avoid an error. */
2840 /* We use char because int might match the return type of a gcc2
2841 builtin and then its argument prototype would still apply. */
2842 char openpty();
2844 int main() {
2845 openpty()
2846 ; return 0; }
2848 if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2849 rm -rf conftest*
2850 eval "ac_cv_lib_$ac_lib_var=yes"
2851 else
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 rm -rf conftest*
2855 eval "ac_cv_lib_$ac_lib_var=no"
2857 rm -f conftest*
2858 LIBS="$ac_save_LIBS"
2861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 cat >> confdefs.h <<\EOF
2864 #define HAVE_OPENPTY 1
2867 LIBS="$LIBS -lutil"
2869 else
2870 echo "$ac_t""no" 1>&6
2874 done
2877 for ac_hdr in dlfcn.h
2879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2881 echo "configure:2882: checking for $ac_hdr" >&5
2882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2884 else
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2888 #include <$ac_hdr>
2890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2891 { (eval echo configure:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2893 if test -z "$ac_err"; then
2894 rm -rf conftest*
2895 eval "ac_cv_header_$ac_safe=yes"
2896 else
2897 echo "$ac_err" >&5
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2900 rm -rf conftest*
2901 eval "ac_cv_header_$ac_safe=no"
2903 rm -f conftest*
2905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2908 cat >> confdefs.h <<EOF
2909 #define $ac_tr_hdr 1
2911 for ac_func in dlopen
2913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_func" >&5
2915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 /* System header to define __stub macros and hopefully few prototypes,
2922 which can conflict with char $ac_func(); below. */
2923 #include <assert.h>
2924 /* Override any gcc2 internal prototype to avoid an error. */
2925 /* We use char because int might match the return type of a gcc2
2926 builtin and then its argument prototype would still apply. */
2927 char $ac_func();
2929 int main() {
2931 /* The GNU C library defines this for functions which it implements
2932 to always fail with ENOSYS. Some functions are actually named
2933 something starting with __ and the normal name is an alias. */
2934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2935 choke me
2936 #else
2937 $ac_func();
2938 #endif
2940 ; return 0; }
2942 if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2943 rm -rf conftest*
2944 eval "ac_cv_func_$ac_func=yes"
2945 else
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 rm -rf conftest*
2949 eval "ac_cv_func_$ac_func=no"
2951 rm -f conftest*
2954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2957 cat >> confdefs.h <<EOF
2958 #define $ac_tr_func 1
2960 cat >> confdefs.h <<\EOF
2961 #define HAVE_DL_API 1
2964 else
2965 echo "$ac_t""no" 1>&6
2966 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2967 echo "configure:2968: checking for dlopen in -ldl" >&5
2968 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2971 else
2972 ac_save_LIBS="$LIBS"
2973 LIBS="-ldl $LIBS"
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 /* Override any gcc2 internal prototype to avoid an error. */
2978 /* We use char because int might match the return type of a gcc2
2979 builtin and then its argument prototype would still apply. */
2980 char dlopen();
2982 int main() {
2983 dlopen()
2984 ; return 0; }
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2987 rm -rf conftest*
2988 eval "ac_cv_lib_$ac_lib_var=yes"
2989 else
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 rm -rf conftest*
2993 eval "ac_cv_lib_$ac_lib_var=no"
2995 rm -f conftest*
2996 LIBS="$ac_save_LIBS"
2999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3000 echo "$ac_t""yes" 1>&6
3001 cat >> confdefs.h <<\EOF
3002 #define HAVE_DL_API 1
3005 LIBS="$LIBS -ldl"
3006 else
3007 echo "$ac_t""no" 1>&6
3008 LIBEXT="a"
3014 done
3016 else
3017 echo "$ac_t""no" 1>&6
3018 LIBEXT="a"
3021 done
3025 X_DLLS=""
3027 XFILES=""
3029 OPENGLFILES=""
3031 OPENGL32_DLL=""
3032 GLU32FILES=""
3034 GLU32_DLL=""
3036 if test "$have_x" = "yes"
3037 then
3038 XLIB="-lXext -lX11"
3039 ac_save_CPPFLAGS="$CPPFLAGS"
3040 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3042 for ac_hdr in X11/xpm.h
3044 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3045 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_hdr" >&5
3047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3049 else
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <$ac_hdr>
3055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3056 { (eval echo configure:3057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3058 if test -z "$ac_err"; then
3059 rm -rf conftest*
3060 eval "ac_cv_header_$ac_safe=yes"
3061 else
3062 echo "$ac_err" >&5
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 rm -rf conftest*
3066 eval "ac_cv_header_$ac_safe=no"
3068 rm -f conftest*
3070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3073 cat >> confdefs.h <<EOF
3074 #define $ac_tr_hdr 1
3076 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3077 echo "configure:3078: checking for XpmCreatePixmapFromData in -lXpm" >&5
3078 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082 ac_save_LIBS="$LIBS"
3083 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3084 $LIBS"
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 /* Override any gcc2 internal prototype to avoid an error. */
3089 /* We use char because int might match the return type of a gcc2
3090 builtin and then its argument prototype would still apply. */
3091 char XpmCreatePixmapFromData();
3093 int main() {
3094 XpmCreatePixmapFromData()
3095 ; return 0; }
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3098 rm -rf conftest*
3099 eval "ac_cv_lib_$ac_lib_var=yes"
3100 else
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3103 rm -rf conftest*
3104 eval "ac_cv_lib_$ac_lib_var=no"
3106 rm -f conftest*
3107 LIBS="$ac_save_LIBS"
3110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3111 echo "$ac_t""yes" 1>&6
3112 cat >> confdefs.h <<\EOF
3113 #define HAVE_LIBXXPM 1
3115 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3116 else
3117 echo "$ac_t""no" 1>&6
3121 else
3122 echo "$ac_t""no" 1>&6
3123 echo "Redhat : xpm xpm-devel"
3124 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3125 echo "SuSE : xpm"
3126 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3127 echo
3128 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3129 echo "the directory /contrib/libraries."
3130 echo
3131 exit 1
3135 done
3138 for ac_hdr in X11/Xlib.h
3140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3142 echo "configure:3143: checking for $ac_hdr" >&5
3143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3145 else
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <$ac_hdr>
3151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3152 { (eval echo configure:3153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3154 if test -z "$ac_err"; then
3155 rm -rf conftest*
3156 eval "ac_cv_header_$ac_safe=yes"
3157 else
3158 echo "$ac_err" >&5
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 eval "ac_cv_header_$ac_safe=no"
3164 rm -f conftest*
3166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3169 cat >> confdefs.h <<EOF
3170 #define $ac_tr_hdr 1
3173 for ac_hdr in X11/XKBlib.h
3175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3177 echo "configure:3178: checking for $ac_hdr" >&5
3178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3180 else
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 #include <$ac_hdr>
3186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3187 { (eval echo configure:3188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3189 if test -z "$ac_err"; then
3190 rm -rf conftest*
3191 eval "ac_cv_header_$ac_safe=yes"
3192 else
3193 echo "$ac_err" >&5
3194 echo "configure: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 rm -rf conftest*
3197 eval "ac_cv_header_$ac_safe=no"
3199 rm -f conftest*
3201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3202 echo "$ac_t""yes" 1>&6
3203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3204 cat >> confdefs.h <<EOF
3205 #define $ac_tr_hdr 1
3207 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3208 echo "configure:3209: checking for XkbQueryExtension in -lX11" >&5
3209 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3212 else
3213 ac_save_LIBS="$LIBS"
3214 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 /* Override any gcc2 internal prototype to avoid an error. */
3219 /* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3221 char XkbQueryExtension();
3223 int main() {
3224 XkbQueryExtension()
3225 ; return 0; }
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 rm -rf conftest*
3229 eval "ac_cv_lib_$ac_lib_var=yes"
3230 else
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 rm -rf conftest*
3234 eval "ac_cv_lib_$ac_lib_var=no"
3236 rm -f conftest*
3237 LIBS="$ac_save_LIBS"
3240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 cat >> confdefs.h <<\EOF
3243 #define HAVE_XKB 1
3246 else
3247 echo "$ac_t""no" 1>&6
3251 else
3252 echo "$ac_t""no" 1>&6
3253 echo "configure: warning: XKB extension not found!!" 1>&2
3256 done
3259 for ac_hdr in X11/extensions/XShm.h
3261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_hdr" >&5
3264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3266 else
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <$ac_hdr>
3272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3273 { (eval echo configure:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3275 if test -z "$ac_err"; then
3276 rm -rf conftest*
3277 eval "ac_cv_header_$ac_safe=yes"
3278 else
3279 echo "$ac_err" >&5
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 rm -rf conftest*
3283 eval "ac_cv_header_$ac_safe=no"
3285 rm -f conftest*
3287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3290 cat >> confdefs.h <<EOF
3291 #define $ac_tr_hdr 1
3293 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3294 echo "configure:3295: checking for XShmQueryExtension in -lXext" >&5
3295 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298 else
3299 ac_save_LIBS="$LIBS"
3300 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3307 char XShmQueryExtension();
3309 int main() {
3310 XShmQueryExtension()
3311 ; return 0; }
3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3314 rm -rf conftest*
3315 eval "ac_cv_lib_$ac_lib_var=yes"
3316 else
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3319 rm -rf conftest*
3320 eval "ac_cv_lib_$ac_lib_var=no"
3322 rm -f conftest*
3323 LIBS="$ac_save_LIBS"
3326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3327 echo "$ac_t""yes" 1>&6
3328 cat >> confdefs.h <<\EOF
3329 #define HAVE_LIBXXSHM 1
3332 else
3333 echo "$ac_t""no" 1>&6
3337 else
3338 echo "$ac_t""no" 1>&6
3339 echo "configure: warning: Xshm extension not found!!" 1>&2
3342 done
3345 for ac_hdr in X11/extensions/shape.h
3347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_hdr" >&5
3350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3352 else
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <$ac_hdr>
3358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3359 { (eval echo configure:3360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3361 if test -z "$ac_err"; then
3362 rm -rf conftest*
3363 eval "ac_cv_header_$ac_safe=yes"
3364 else
3365 echo "$ac_err" >&5
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 rm -rf conftest*
3369 eval "ac_cv_header_$ac_safe=no"
3371 rm -f conftest*
3373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3376 cat >> confdefs.h <<EOF
3377 #define $ac_tr_hdr 1
3379 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3380 echo "configure:3381: checking for XShapeQueryExtension in -lXext" >&5
3381 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3384 else
3385 ac_save_LIBS="$LIBS"
3386 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 /* Override any gcc2 internal prototype to avoid an error. */
3391 /* We use char because int might match the return type of a gcc2
3392 builtin and then its argument prototype would still apply. */
3393 char XShapeQueryExtension();
3395 int main() {
3396 XShapeQueryExtension()
3397 ; return 0; }
3399 if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3400 rm -rf conftest*
3401 eval "ac_cv_lib_$ac_lib_var=yes"
3402 else
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3405 rm -rf conftest*
3406 eval "ac_cv_lib_$ac_lib_var=no"
3408 rm -f conftest*
3409 LIBS="$ac_save_LIBS"
3412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3413 echo "$ac_t""yes" 1>&6
3414 cat >> confdefs.h <<\EOF
3415 #define HAVE_LIBXSHAPE 1
3418 else
3419 echo "$ac_t""no" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 echo "configure: warning: XShape extension not found!!" 1>&2
3428 done
3431 for ac_hdr in X11/extensions/xf86dga.h
3433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3435 echo "configure:3436: checking for $ac_hdr" >&5
3436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3438 else
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <$ac_hdr>
3444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3445 { (eval echo configure:3446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3447 if test -z "$ac_err"; then
3448 rm -rf conftest*
3449 eval "ac_cv_header_$ac_safe=yes"
3450 else
3451 echo "$ac_err" >&5
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 rm -rf conftest*
3455 eval "ac_cv_header_$ac_safe=no"
3457 rm -f conftest*
3459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3462 cat >> confdefs.h <<EOF
3463 #define $ac_tr_hdr 1
3465 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3466 echo "configure:3467: checking for XDGAQueryExtension in -lXxf86dga" >&5
3467 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470 else
3471 ac_save_LIBS="$LIBS"
3472 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3473 $LIBS"
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3480 char XDGAQueryExtension();
3482 int main() {
3483 XDGAQueryExtension()
3484 ; return 0; }
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3487 rm -rf conftest*
3488 eval "ac_cv_lib_$ac_lib_var=yes"
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 eval "ac_cv_lib_$ac_lib_var=no"
3495 rm -f conftest*
3496 LIBS="$ac_save_LIBS"
3499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 cat >> confdefs.h <<\EOF
3502 #define HAVE_LIBXXF86DGA2 1
3505 cat >> confdefs.h <<\EOF
3506 #define HAVE_LIBXXF86DGA 1
3509 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3511 else
3512 echo "$ac_t""no" 1>&6
3513 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3514 echo "configure:3515: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3515 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518 else
3519 ac_save_LIBS="$LIBS"
3520 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3521 $LIBS"
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3528 char XF86DGAQueryExtension();
3530 int main() {
3531 XF86DGAQueryExtension()
3532 ; return 0; }
3534 if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3535 rm -rf conftest*
3536 eval "ac_cv_lib_$ac_lib_var=yes"
3537 else
3538 echo "configure: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3540 rm -rf conftest*
3541 eval "ac_cv_lib_$ac_lib_var=no"
3543 rm -f conftest*
3544 LIBS="$ac_save_LIBS"
3547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 cat >> confdefs.h <<\EOF
3550 #define HAVE_LIBXXF86DGA 1
3553 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3555 else
3556 echo "$ac_t""no" 1>&6
3563 else
3564 echo "$ac_t""no" 1>&6
3565 echo "configure: warning: DGA extension not found!!" 1>&2
3568 done
3571 for ac_hdr in X11/extensions/xf86vmode.h
3573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3575 echo "configure:3576: checking for $ac_hdr" >&5
3576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3578 else
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <$ac_hdr>
3584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3585 { (eval echo configure:3586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3587 if test -z "$ac_err"; then
3588 rm -rf conftest*
3589 eval "ac_cv_header_$ac_safe=yes"
3590 else
3591 echo "$ac_err" >&5
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 rm -rf conftest*
3595 eval "ac_cv_header_$ac_safe=no"
3597 rm -f conftest*
3599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3602 cat >> confdefs.h <<EOF
3603 #define $ac_tr_hdr 1
3605 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3606 echo "configure:3607: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3607 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3611 ac_save_LIBS="$LIBS"
3612 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3613 $LIBS"
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 /* Override any gcc2 internal prototype to avoid an error. */
3618 /* We use char because int might match the return type of a gcc2
3619 builtin and then its argument prototype would still apply. */
3620 char XF86VidModeQueryExtension();
3622 int main() {
3623 XF86VidModeQueryExtension()
3624 ; return 0; }
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3627 rm -rf conftest*
3628 eval "ac_cv_lib_$ac_lib_var=yes"
3629 else
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 rm -rf conftest*
3633 eval "ac_cv_lib_$ac_lib_var=no"
3635 rm -f conftest*
3636 LIBS="$ac_save_LIBS"
3639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3640 echo "$ac_t""yes" 1>&6
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_LIBXXF86VM 1
3645 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3647 else
3648 echo "$ac_t""no" 1>&6
3652 else
3653 echo "$ac_t""no" 1>&6
3654 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3657 done
3660 for ac_hdr in X11/extensions/Xvlib.h
3662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3664 echo "configure:3665: checking for $ac_hdr" >&5
3665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667 else
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 #include <$ac_hdr>
3673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3674 { (eval echo configure:3675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3676 if test -z "$ac_err"; then
3677 rm -rf conftest*
3678 eval "ac_cv_header_$ac_safe=yes"
3679 else
3680 echo "$ac_err" >&5
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 eval "ac_cv_header_$ac_safe=no"
3686 rm -f conftest*
3688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3691 cat >> confdefs.h <<EOF
3692 #define $ac_tr_hdr 1
3694 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3695 echo "configure:3696: checking for XvShmCreateImage in -lXv" >&5
3696 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3699 else
3700 ac_save_LIBS="$LIBS"
3701 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3702 $LIBS"
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 /* Override any gcc2 internal prototype to avoid an error. */
3707 /* We use char because int might match the return type of a gcc2
3708 builtin and then its argument prototype would still apply. */
3709 char XvShmCreateImage();
3711 int main() {
3712 XvShmCreateImage()
3713 ; return 0; }
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 rm -rf conftest*
3717 eval "ac_cv_lib_$ac_lib_var=yes"
3718 else
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 rm -rf conftest*
3722 eval "ac_cv_lib_$ac_lib_var=no"
3724 rm -f conftest*
3725 LIBS="$ac_save_LIBS"
3728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3729 echo "$ac_t""yes" 1>&6
3730 cat >> confdefs.h <<\EOF
3731 #define HAVE_XVIDEO 1
3734 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3736 else
3737 echo "$ac_t""no" 1>&6
3741 else
3742 echo "$ac_t""no" 1>&6
3743 echo "configure: warning: XVideo extension not found !!" 1>&2
3746 done
3751 else
3752 echo "$ac_t""no" 1>&6
3754 done
3756 if test $OPENGL = "yes" -o $OPENGL = "normal"
3757 then
3758 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3762 echo "configure:3763: checking for $ac_hdr" >&5
3763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <$ac_hdr>
3771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3772 { (eval echo configure:3773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3774 if test -z "$ac_err"; then
3775 rm -rf conftest*
3776 eval "ac_cv_header_$ac_safe=yes"
3777 else
3778 echo "$ac_err" >&5
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3781 rm -rf conftest*
3782 eval "ac_cv_header_$ac_safe=no"
3784 rm -f conftest*
3786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3789 cat >> confdefs.h <<EOF
3790 #define $ac_tr_hdr 1
3793 else
3794 echo "$ac_t""no" 1>&6
3796 done
3798 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3799 then
3800 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3801 echo "configure:3802: checking "for up-to-date OpenGL version"" >&5
3802 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3804 else
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 #include <GL/gl.h>
3809 int main() {
3810 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3811 ; return 0; }
3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 rm -rf conftest*
3815 wine_cv_opengl_version_OK="yes"
3816 else
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 rm -rf conftest*
3820 wine_cv_opengl_version_OK="no"
3823 rm -f conftest*
3827 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3829 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3830 echo "configure:3831: checking "for thread-safe OpenGL version"" >&5
3831 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3833 else
3834 saved_libs=$LIBS
3835 LIBS="$X_LIBS -lGL"
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3840 int main() {
3841 pthread_getspecific();
3842 ; return 0; }
3844 if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3845 rm -rf conftest*
3846 wine_cv_opengl_version_threadsafe="yes"
3847 else
3848 echo "configure: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 rm -rf conftest*
3851 wine_cv_opengl_version_threadsafe="no"
3853 rm -f conftest*
3854 LIBS=$saved_libs
3858 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3860 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3861 then
3862 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3863 echo "configure:3864: checking for glXCreateContext in -lGL" >&5
3864 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867 else
3868 ac_save_LIBS="$LIBS"
3869 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char glXCreateContext();
3878 int main() {
3879 glXCreateContext()
3880 ; return 0; }
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3885 else
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3888 rm -rf conftest*
3889 eval "ac_cv_lib_$ac_lib_var=no"
3891 rm -f conftest*
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3899 else
3900 echo "$ac_t""no" 1>&6
3904 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3905 then
3907 OPENGLFILES='$(OPENGLFILES)'
3908 cat >> confdefs.h <<\EOF
3909 #define HAVE_OPENGL 1
3913 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3914 echo "configure:3915: checking for glXGetProcAddressARB in -lGL" >&5
3915 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3918 else
3919 ac_save_LIBS="$LIBS"
3920 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 /* Override any gcc2 internal prototype to avoid an error. */
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3927 char glXGetProcAddressARB();
3929 int main() {
3930 glXGetProcAddressARB()
3931 ; return 0; }
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934 rm -rf conftest*
3935 eval "ac_cv_lib_$ac_lib_var=yes"
3936 else
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 rm -rf conftest*
3940 eval "ac_cv_lib_$ac_lib_var=no"
3942 rm -f conftest*
3943 LIBS="$ac_save_LIBS"
3946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 cat >> confdefs.h <<\EOF
3949 #define HAVE_GLX_GETPROCADDRESS 1
3952 else
3953 echo "$ac_t""no" 1>&6
3957 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3958 then
3959 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
3960 echo "configure:3961: checking "for OpenGL extension functions prototypes"" >&5
3961 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3963 else
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967 #include <GL/gl.h>
3968 #ifdef HAVE_GL_GLEXT_H
3969 # include <GL/glext.h>
3970 #endif
3972 int main() {
3973 PFNGLCOLORTABLEEXTPROC test_proc;
3974 ; return 0; }
3976 if { (eval echo configure:3977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3977 rm -rf conftest*
3978 wine_cv_extension_prototypes="yes"
3979 else
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3982 rm -rf conftest*
3983 wine_cv_extension_prototypes="no"
3986 rm -f conftest*
3990 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
3991 if test $wine_cv_extension_prototypes = "yes"
3992 then
3993 cat >> confdefs.h <<\EOF
3994 #define HAVE_GLEXT_PROTOTYPES 1
3999 OPENGL32_DLL=opengl32
4002 for ac_hdr in GL/osmesa.h
4004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4006 echo "configure:4007: checking for $ac_hdr" >&5
4007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009 else
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <$ac_hdr>
4015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4016 { (eval echo configure:4017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4018 if test -z "$ac_err"; then
4019 rm -rf conftest*
4020 eval "ac_cv_header_$ac_safe=yes"
4021 else
4022 echo "$ac_err" >&5
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4025 rm -rf conftest*
4026 eval "ac_cv_header_$ac_safe=no"
4028 rm -f conftest*
4030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4033 cat >> confdefs.h <<EOF
4034 #define $ac_tr_hdr 1
4036 echo $ac_n "checking for OSMesaCreateContext in -lGL""... $ac_c" 1>&6
4037 echo "configure:4038: checking for OSMesaCreateContext in -lGL" >&5
4038 ac_lib_var=`echo GL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4041 else
4042 ac_save_LIBS="$LIBS"
4043 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4044 $LIBS"
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 /* Override any gcc2 internal prototype to avoid an error. */
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4051 char OSMesaCreateContext();
4053 int main() {
4054 OSMesaCreateContext()
4055 ; return 0; }
4057 if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4058 rm -rf conftest*
4059 eval "ac_cv_lib_$ac_lib_var=yes"
4060 else
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4063 rm -rf conftest*
4064 eval "ac_cv_lib_$ac_lib_var=no"
4066 rm -f conftest*
4067 LIBS="$ac_save_LIBS"
4070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4071 echo "$ac_t""yes" 1>&6
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_OSMESA 1
4076 else
4077 echo "$ac_t""no" 1>&6
4078 echo $ac_n "checking for OSMesaCreateContext in -lOSMesa""... $ac_c" 1>&6
4079 echo "configure:4080: checking for OSMesaCreateContext in -lOSMesa" >&5
4080 ac_lib_var=`echo OSMesa'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
4081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4083 else
4084 ac_save_LIBS="$LIBS"
4085 LIBS="-lOSMesa -lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4092 char OSMesaCreateContext();
4094 int main() {
4095 OSMesaCreateContext()
4096 ; return 0; }
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4099 rm -rf conftest*
4100 eval "ac_cv_lib_$ac_lib_var=yes"
4101 else
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 rm -rf conftest*
4105 eval "ac_cv_lib_$ac_lib_var=no"
4107 rm -f conftest*
4108 LIBS="$ac_save_LIBS"
4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4112 echo "$ac_t""yes" 1>&6
4113 cat >> confdefs.h <<\EOF
4114 #define HAVE_OSMESA 1
4117 X_PRE_LIBS="$X_PRE_LIBS -lOSMesa"
4119 else
4120 echo "$ac_t""no" 1>&6
4127 else
4128 echo "$ac_t""no" 1>&6
4130 done
4133 echo $ac_n "checking for glBegin in -lGLU""... $ac_c" 1>&6
4134 echo "configure:4135: checking for glBegin in -lGLU" >&5
4135 ac_lib_var=`echo GLU'_'glBegin | sed 'y%./+-%__p_%'`
4136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 ac_save_LIBS="$LIBS"
4140 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4141 $LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char glBegin();
4150 int main() {
4151 glBegin()
4152 ; return 0; }
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4155 rm -rf conftest*
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4157 else
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4160 rm -rf conftest*
4161 eval "ac_cv_lib_$ac_lib_var=no"
4163 rm -f conftest*
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4169 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4170 GLU32FILES='$(GLU32FILES)'
4171 GLU32_DLL=glu32
4173 else
4174 echo "$ac_t""no" 1>&6
4181 CPPFLAGS="$ac_save_CPPFLAGS"
4182 X_DLLS='$(X_DLLS)'
4183 XFILES='$(XFILES)'
4184 else
4185 XLIB=""
4186 X_CFLAGS=""
4187 X_LIBS=""
4190 if test "$CURSES" = "yes"
4191 then
4192 for ac_hdr in ncurses.h
4194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4196 echo "configure:4197: checking for $ac_hdr" >&5
4197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4199 else
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <$ac_hdr>
4205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4206 { (eval echo configure:4207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4208 if test -z "$ac_err"; then
4209 rm -rf conftest*
4210 eval "ac_cv_header_$ac_safe=yes"
4211 else
4212 echo "$ac_err" >&5
4213 echo "configure: failed program was:" >&5
4214 cat conftest.$ac_ext >&5
4215 rm -rf conftest*
4216 eval "ac_cv_header_$ac_safe=no"
4218 rm -f conftest*
4220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4221 echo "$ac_t""yes" 1>&6
4222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4223 cat >> confdefs.h <<EOF
4224 #define $ac_tr_hdr 1
4227 else
4228 echo "$ac_t""no" 1>&6
4230 done
4232 if test "$ac_cv_header_ncurses_h" = "yes"
4233 then
4234 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4235 echo "configure:4236: checking for waddch in -lncurses" >&5
4236 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4239 else
4240 ac_save_LIBS="$LIBS"
4241 LIBS="-lncurses $LIBS"
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4248 char waddch();
4250 int main() {
4251 waddch()
4252 ; return 0; }
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4255 rm -rf conftest*
4256 eval "ac_cv_lib_$ac_lib_var=yes"
4257 else
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4260 rm -rf conftest*
4261 eval "ac_cv_lib_$ac_lib_var=no"
4263 rm -f conftest*
4264 LIBS="$ac_save_LIBS"
4267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4271 cat >> confdefs.h <<EOF
4272 #define $ac_tr_lib 1
4275 LIBS="-lncurses $LIBS"
4277 else
4278 echo "$ac_t""no" 1>&6
4282 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4283 then
4284 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
4285 echo "configure:4286: checking for resizeterm in -lncurses" >&5
4286 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4289 else
4290 ac_save_LIBS="$LIBS"
4291 LIBS="-lncurses $LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4298 char resizeterm();
4300 int main() {
4301 resizeterm()
4302 ; return 0; }
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4305 rm -rf conftest*
4306 eval "ac_cv_lib_$ac_lib_var=yes"
4307 else
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 rm -rf conftest*
4311 eval "ac_cv_lib_$ac_lib_var=no"
4313 rm -f conftest*
4314 LIBS="$ac_save_LIBS"
4317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4318 echo "$ac_t""yes" 1>&6
4319 cat >> confdefs.h <<\EOF
4320 #define HAVE_RESIZETERM 1
4323 else
4324 echo "$ac_t""no" 1>&6
4327 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
4328 echo "configure:4329: checking for getbkgd in -lncurses" >&5
4329 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 ac_save_LIBS="$LIBS"
4334 LIBS="-lncurses $LIBS"
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 /* Override any gcc2 internal prototype to avoid an error. */
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char getbkgd();
4343 int main() {
4344 getbkgd()
4345 ; return 0; }
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4348 rm -rf conftest*
4349 eval "ac_cv_lib_$ac_lib_var=yes"
4350 else
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4353 rm -rf conftest*
4354 eval "ac_cv_lib_$ac_lib_var=no"
4356 rm -f conftest*
4357 LIBS="$ac_save_LIBS"
4360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4361 echo "$ac_t""yes" 1>&6
4362 cat >> confdefs.h <<\EOF
4363 #define HAVE_GETBKGD 1
4366 else
4367 echo "$ac_t""no" 1>&6
4370 else
4371 for ac_hdr in curses.h
4373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_hdr" >&5
4376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4378 else
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4382 #include <$ac_hdr>
4384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4385 { (eval echo configure:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4387 if test -z "$ac_err"; then
4388 rm -rf conftest*
4389 eval "ac_cv_header_$ac_safe=yes"
4390 else
4391 echo "$ac_err" >&5
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 rm -rf conftest*
4395 eval "ac_cv_header_$ac_safe=no"
4397 rm -f conftest*
4399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4402 cat >> confdefs.h <<EOF
4403 #define $ac_tr_hdr 1
4406 else
4407 echo "$ac_t""no" 1>&6
4409 done
4411 if test "$ac_cv_header_curses_h" = "yes"
4412 then
4413 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4414 echo "configure:4415: checking for waddch in -lcurses" >&5
4415 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 ac_save_LIBS="$LIBS"
4420 LIBS="-lcurses $LIBS"
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 /* Override any gcc2 internal prototype to avoid an error. */
4425 /* We use char because int might match the return type of a gcc2
4426 builtin and then its argument prototype would still apply. */
4427 char waddch();
4429 int main() {
4430 waddch()
4431 ; return 0; }
4433 if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4434 rm -rf conftest*
4435 eval "ac_cv_lib_$ac_lib_var=yes"
4436 else
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 rm -rf conftest*
4440 eval "ac_cv_lib_$ac_lib_var=no"
4442 rm -f conftest*
4443 LIBS="$ac_save_LIBS"
4446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_lib 1
4454 LIBS="-lcurses $LIBS"
4456 else
4457 echo "$ac_t""no" 1>&6
4460 if test "$ac_cv_lib_curses_waddch" = "yes"
4461 then
4462 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4463 echo "configure:4464: checking for resizeterm in -lcurses" >&5
4464 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4467 else
4468 ac_save_LIBS="$LIBS"
4469 LIBS="-lcurses $LIBS"
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* Override any gcc2 internal prototype to avoid an error. */
4474 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476 char resizeterm();
4478 int main() {
4479 resizeterm()
4480 ; return 0; }
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 rm -rf conftest*
4484 eval "ac_cv_lib_$ac_lib_var=yes"
4485 else
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 rm -rf conftest*
4489 eval "ac_cv_lib_$ac_lib_var=no"
4491 rm -f conftest*
4492 LIBS="$ac_save_LIBS"
4495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 cat >> confdefs.h <<\EOF
4498 #define HAVE_RESIZETERM 1
4501 else
4502 echo "$ac_t""no" 1>&6
4505 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4506 echo "configure:4507: checking for getbkgd in -lcurses" >&5
4507 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4510 else
4511 ac_save_LIBS="$LIBS"
4512 LIBS="-lcurses $LIBS"
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519 char getbkgd();
4521 int main() {
4522 getbkgd()
4523 ; return 0; }
4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4526 rm -rf conftest*
4527 eval "ac_cv_lib_$ac_lib_var=yes"
4528 else
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 eval "ac_cv_lib_$ac_lib_var=no"
4534 rm -f conftest*
4535 LIBS="$ac_save_LIBS"
4538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4539 echo "$ac_t""yes" 1>&6
4540 cat >> confdefs.h <<\EOF
4541 #define HAVE_GETBKGD 1
4544 else
4545 echo "$ac_t""no" 1>&6
4553 CUPSLIBS=""
4554 wine_cv_warn_cups_h=no
4555 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4556 echo "configure:4557: checking for cupsGetPPD in -lcups" >&5
4557 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560 else
4561 ac_save_LIBS="$LIBS"
4562 LIBS="-lcups $LIBS"
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 /* Override any gcc2 internal prototype to avoid an error. */
4567 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */
4569 char cupsGetPPD();
4571 int main() {
4572 cupsGetPPD()
4573 ; return 0; }
4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 rm -rf conftest*
4577 eval "ac_cv_lib_$ac_lib_var=yes"
4578 else
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4581 rm -rf conftest*
4582 eval "ac_cv_lib_$ac_lib_var=no"
4584 rm -f conftest*
4585 LIBS="$ac_save_LIBS"
4588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4591 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4592 echo "configure:4593: checking for cups/cups.h" >&5
4593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 #include <cups/cups.h>
4601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4602 { (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4604 if test -z "$ac_err"; then
4605 rm -rf conftest*
4606 eval "ac_cv_header_$ac_safe=yes"
4607 else
4608 echo "$ac_err" >&5
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 rm -rf conftest*
4612 eval "ac_cv_header_$ac_safe=no"
4614 rm -f conftest*
4616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4618 cat >> confdefs.h <<\EOF
4619 #define HAVE_CUPS 1
4622 CUPSLIBS="-lcups"
4623 else
4624 echo "$ac_t""no" 1>&6
4625 wine_cv_warn_cups_h=yes
4629 else
4630 echo "$ac_t""no" 1>&6
4635 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4636 echo "configure:4637: checking for FT_Init_FreeType in -lfreetype" >&5
4637 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4640 else
4641 ac_save_LIBS="$LIBS"
4642 LIBS="-lfreetype $LIBS"
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4649 char FT_Init_FreeType();
4651 int main() {
4652 FT_Init_FreeType()
4653 ; return 0; }
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4656 rm -rf conftest*
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4658 else
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 rm -rf conftest*
4662 eval "ac_cv_lib_$ac_lib_var=no"
4664 rm -f conftest*
4665 LIBS="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 ft_lib=yes
4671 else
4672 echo "$ac_t""no" 1>&6
4673 ft_lib=no
4676 if test "$ft_lib" = "no"
4677 then
4678 FREETYPELIBS=""
4679 FREETYPEINCL=""
4680 wine_cv_msg_freetype=no
4681 else
4682 # Extract the first word of "freetype-config", so it can be a program name with args.
4683 set dummy freetype-config; ac_word=$2
4684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4685 echo "configure:4686: checking for $ac_word" >&5
4686 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4688 else
4689 if test -n "$ft_devel"; then
4690 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4691 else
4692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4693 ac_dummy="$PATH"
4694 for ac_dir in $ac_dummy; do
4695 test -z "$ac_dir" && ac_dir=.
4696 if test -f $ac_dir/$ac_word; then
4697 ac_cv_prog_ft_devel="freetype-config"
4698 break
4700 done
4701 IFS="$ac_save_ifs"
4702 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4705 ft_devel="$ac_cv_prog_ft_devel"
4706 if test -n "$ft_devel"; then
4707 echo "$ac_t""$ft_devel" 1>&6
4708 else
4709 echo "$ac_t""no" 1>&6
4712 if test "$ft_devel" = "no"
4713 then
4714 # Extract the first word of "freetype2-config", so it can be a program name with args.
4715 set dummy freetype2-config; ac_word=$2
4716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_word" >&5
4718 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4720 else
4721 if test -n "$ft_devel2"; then
4722 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4723 else
4724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4725 ac_dummy="$PATH"
4726 for ac_dir in $ac_dummy; do
4727 test -z "$ac_dir" && ac_dir=.
4728 if test -f $ac_dir/$ac_word; then
4729 ac_cv_prog_ft_devel2="freetype2-config"
4730 break
4732 done
4733 IFS="$ac_save_ifs"
4734 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4737 ft_devel2="$ac_cv_prog_ft_devel2"
4738 if test -n "$ft_devel2"; then
4739 echo "$ac_t""$ft_devel2" 1>&6
4740 else
4741 echo "$ac_t""no" 1>&6
4744 if test "$ft_devel2" = "freetype2-config"
4745 then
4746 ft_devel=$ft_devel2
4749 if test "$ft_devel" = "no"
4750 then
4751 FREETYPELIBS=""
4752 FREETYPEINCL=""
4753 wine_cv_msg_freetype=yes
4754 else
4755 cat >> confdefs.h <<\EOF
4756 #define HAVE_FREETYPE 1
4759 FREETYPELIBS=`$ft_devel --libs`
4760 FREETYPEINCL=`$ft_devel --cflags`
4761 ac_save_CPPFLAGS="$CPPFLAGS"
4762 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4763 for ac_hdr in freetype/freetype.h \
4764 freetype/ftglyph.h \
4765 freetype/tttables.h \
4766 freetype/ftnames.h \
4767 freetype/ftsnames.h \
4768 freetype/ttnameid.h
4770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4772 echo "configure:4773: checking for $ac_hdr" >&5
4773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <$ac_hdr>
4781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4782 { (eval echo configure:4783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4784 if test -z "$ac_err"; then
4785 rm -rf conftest*
4786 eval "ac_cv_header_$ac_safe=yes"
4787 else
4788 echo "$ac_err" >&5
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 rm -rf conftest*
4792 eval "ac_cv_header_$ac_safe=no"
4794 rm -f conftest*
4796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4799 cat >> confdefs.h <<EOF
4800 #define $ac_tr_hdr 1
4803 else
4804 echo "$ac_t""no" 1>&6
4806 done
4808 CPPFLAGS="$ac_save_CPPFLAGS"
4809 wine_cv_msg_freetype=no
4815 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4816 echo "configure:4817: checking "for GNU style IPX support"" >&5
4817 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4819 else
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 #include <sys/socket.h>
4824 #include <netipx/ipx.h>
4825 int main() {
4826 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4827 ; return 0; }
4829 if { (eval echo configure:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4830 rm -rf conftest*
4831 ac_cv_c_ipx_gnu="yes"
4832 else
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4835 rm -rf conftest*
4836 ac_cv_c_ipx_gnu="no"
4838 rm -f conftest*
4842 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4843 if test "$ac_cv_c_ipx_gnu" = "yes"
4844 then
4845 cat >> confdefs.h <<\EOF
4846 #define HAVE_IPX_GNU 1
4851 if test "$ac_cv_c_ipx_gnu" = "no"
4852 then
4853 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4854 echo "configure:4855: checking "for linux style IPX support"" >&5
4855 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4857 else
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 #include <sys/socket.h>
4862 #include <asm/types.h>
4863 #include <linux/ipx.h>
4864 int main() {
4865 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4866 ; return 0; }
4868 if { (eval echo configure:4869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4869 rm -rf conftest*
4870 ac_cv_c_ipx_linux="yes"
4871 else
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 rm -rf conftest*
4875 ac_cv_c_ipx_linux="no"
4877 rm -f conftest*
4881 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4882 if test "$ac_cv_c_ipx_linux" = "yes"
4883 then
4884 cat >> confdefs.h <<\EOF
4885 #define HAVE_IPX_LINUX 1
4891 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4895 echo "configure:4896: checking for $ac_hdr" >&5
4896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4898 else
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4902 #include <$ac_hdr>
4904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4905 { (eval echo configure:4906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4907 if test -z "$ac_err"; then
4908 rm -rf conftest*
4909 eval "ac_cv_header_$ac_safe=yes"
4910 else
4911 echo "$ac_err" >&5
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 rm -rf conftest*
4915 eval "ac_cv_header_$ac_safe=no"
4917 rm -f conftest*
4919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4920 echo "$ac_t""yes" 1>&6
4921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4922 cat >> confdefs.h <<EOF
4923 #define $ac_tr_hdr 1
4925 break
4926 else
4927 echo "$ac_t""no" 1>&6
4929 done
4932 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4933 echo "configure:4934: checking "for Open Sound System"" >&5
4934 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4936 else
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4941 #if defined(HAVE_SYS_SOUNDCARD_H)
4942 #include <sys/soundcard.h>
4943 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4944 #include <machine/soundcard.h>
4945 #elif defined(HAVE_SOUNDCARD_H)
4946 #include <soundcard.h>
4947 #endif
4949 int main() {
4952 /* check for one of the Open Sound System specific SNDCTL_ defines */
4953 #if !defined(SNDCTL_DSP_STEREO)
4954 #error No open sound system
4955 #endif
4957 ; return 0; }
4959 if { (eval echo configure:4960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4960 rm -rf conftest*
4961 ac_cv_c_opensoundsystem="yes"
4962 else
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 rm -rf conftest*
4966 ac_cv_c_opensoundsystem="no"
4968 rm -f conftest*
4971 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4973 if test "$ac_cv_c_opensoundsystem" = "yes"
4974 then
4975 cat >> confdefs.h <<\EOF
4976 #define HAVE_OSS 1
4981 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4982 echo "configure:4983: checking "for Open Sound System/MIDI interface"" >&5
4983 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4985 else
4986 cat > conftest.$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4990 #if defined(HAVE_SYS_SOUNDCARD_H)
4991 #include <sys/soundcard.h>
4992 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4993 #include <machine/soundcard.h>
4994 #elif defined(HAVE_SOUNDCARD_H)
4995 #include <soundcard.h>
4996 #endif
4998 int main() {
5001 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
5002 #if !defined(SNDCTL_SEQ_SYNC)
5003 #error No open sound system MIDI interface
5004 #endif
5006 ; return 0; }
5008 if { (eval echo configure:5009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 rm -rf conftest*
5010 ac_cv_c_opensoundsystem_midi="yes"
5011 else
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5014 rm -rf conftest*
5015 ac_cv_c_opensoundsystem_midi="no"
5017 rm -f conftest*
5020 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
5022 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
5023 then
5024 cat >> confdefs.h <<\EOF
5025 #define HAVE_OSS_MIDI 1
5030 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
5033 echo $ac_n "checking "whether mmap64 works defined as mmap"""... $ac_c" 1>&6
5034 echo "configure:5035: checking "whether mmap64 works defined as mmap"" >&5
5035 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037 else
5038 if test "$cross_compiling" = yes; then
5039 ac_cv_mmap64_works="no"
5040 else
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5045 #define _FILE_OFFSET_BITS 64
5046 #include <stdio.h>
5047 #include <unistd.h>
5048 #include <fcntl.h>
5049 #include <sys/mman.h>
5050 #include <errno.h>
5052 int main(int argc,char **argv) {
5053 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
5054 if (fd == -1) exit(1);
5056 unlink("conftest.map");
5058 write(fd,"test",4);
5060 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
5061 (errno == EINVAL)
5063 exit(1);
5065 close(fd);
5066 fprintf(stderr,"success!\n");
5067 exit(0);
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5073 then
5074 ac_cv_mmap64_works="yes"
5075 else
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 rm -fr conftest*
5079 ac_cv_mmap64_works="no"
5081 rm -fr conftest*
5086 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5088 if test "$ac_cv_mmap64_works" = "yes"
5089 then
5090 cat >> confdefs.h <<\EOF
5091 #define _FILE_OFFSET_BITS 64
5097 if test "x${GCC}" = "xyes"
5098 then
5099 CFLAGS="$CFLAGS -Wall"
5100 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
5101 echo "configure:5102: checking "for gcc strength-reduce bug"" >&5
5102 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5104 else
5105 if test "$cross_compiling" = yes; then
5106 ac_cv_c_gcc_strength_bug="yes"
5107 else
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5112 int L[4] = {0,1,2,3};
5113 int main(void) {
5114 static int Array[3];
5115 unsigned int B = 3;
5116 int i;
5117 for(i=0; i<B; i++) Array[i] = i - 3;
5118 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5119 L[i] = 4;
5121 exit( Array[1] != -2 || L[2] != 3);
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5125 then
5126 ac_cv_c_gcc_strength_bug="no"
5127 else
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5130 rm -fr conftest*
5131 ac_cv_c_gcc_strength_bug="yes"
5133 rm -fr conftest*
5138 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5139 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5140 then
5141 CFLAGS="$CFLAGS -fno-strength-reduce"
5144 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
5145 echo "configure:5146: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
5146 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5148 else
5149 saved_cflags=$CFLAGS
5150 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5155 int main() {
5156 return 0
5157 ; return 0; }
5159 if { (eval echo configure:5160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5160 rm -rf conftest*
5161 ac_cv_c_gcc_stack_boundary="yes"
5162 else
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5165 rm -rf conftest*
5166 ac_cv_c_gcc_stack_boundary="no"
5168 rm -f conftest*
5169 CFLAGS=$saved_cflags
5173 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5174 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5175 then
5176 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5181 echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
5182 echo "configure:5183: checking "whether .type must sit inside a .def directive"" >&5
5183 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5185 else
5186 saved_libs=$LIBS
5187 LIBS="conftest_asm.s $LIBS"
5188 cat > conftest_asm.s <<EOF
5189 .globl _ac_test
5190 .def _ac_test; .scl 2; .type 32; .endef
5191 _ac_test:
5192 .long 0
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5198 int main() {
5200 ; return 0; }
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 rm -rf conftest*
5204 ac_cv_c_type_in_def="yes"
5205 else
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 rm -rf conftest*
5209 ac_cv_c_type_in_def="no"
5211 rm -f conftest*
5212 LIBS=$saved_libs
5215 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5216 if test "$ac_cv_c_type_in_def" = "yes"
5217 then
5218 cat >> confdefs.h <<\EOF
5219 #define NEED_TYPE_IN_DEF 1
5225 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
5226 echo "configure:5227: checking "whether external symbols need an underscore prefix"" >&5
5227 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5229 else
5230 saved_libs=$LIBS
5231 LIBS="conftest_asm.s $LIBS"
5232 cat > conftest_asm.s <<EOF
5233 .globl _ac_test
5234 _ac_test:
5235 .long 0
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 extern int ac_test;
5241 int main() {
5242 if (ac_test) return 1
5243 ; return 0; }
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5246 rm -rf conftest*
5247 ac_cv_c_extern_prefix="yes"
5248 else
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5251 rm -rf conftest*
5252 ac_cv_c_extern_prefix="no"
5254 rm -f conftest*
5255 LIBS=$saved_libs
5258 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5259 if test "$ac_cv_c_extern_prefix" = "yes"
5260 then
5261 cat >> confdefs.h <<\EOF
5262 #define NEED_UNDERSCORE_PREFIX 1
5268 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
5269 echo "configure:5270: checking "whether assembler accepts .string"" >&5
5270 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5272 else
5273 saved_libs=$LIBS
5274 LIBS="conftest_asm.s $LIBS"
5275 cat > conftest_asm.s <<EOF
5276 .string "test"
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5282 int main() {
5284 ; return 0; }
5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 rm -rf conftest*
5288 ac_cv_c_asm_string="yes"
5289 else
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 rm -rf conftest*
5293 ac_cv_c_asm_string="no"
5295 rm -f conftest*
5296 LIBS=$saved_libs
5299 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5300 if test "$ac_cv_c_asm_string" = "yes"
5301 then
5302 cat >> confdefs.h <<\EOF
5303 #define HAVE_ASM_STRING 1
5309 LDSHARED=""
5310 LDDLLFLAGS=""
5311 if test "$LIBEXT" = "so"
5312 then
5313 echo $ac_n "checking "whether we can build a GNU style ELF dll"""... $ac_c" 1>&6
5314 echo "configure:5315: checking "whether we can build a GNU style ELF dll"" >&5
5315 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5317 else
5318 saved_cflags=$CFLAGS
5319 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5320 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5324 int main() {
5325 return 1
5326 ; return 0; }
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5329 rm -rf conftest*
5330 ac_cv_c_dll_gnuelf="yes"
5331 else
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5334 rm -rf conftest*
5335 ac_cv_c_dll_gnuelf="no"
5337 rm -f conftest*
5338 CFLAGS=$saved_cflags
5342 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5343 if test "$ac_cv_c_dll_gnuelf" = "yes"
5344 then
5345 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
5346 LDDLLFLAGS="-Wl,-Bsymbolic"
5347 else
5348 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5349 echo "configure:5350: checking whether we can build a UnixWare (Solaris) dll" >&5
5350 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5352 else
5353 saved_cflags=$CFLAGS
5354 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5359 int main() {
5360 return 1
5361 ; return 0; }
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 rm -rf conftest*
5365 ac_cv_c_dll_unixware="yes"
5366 else
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5369 rm -rf conftest*
5370 ac_cv_c_dll_unixware="no"
5372 rm -f conftest*
5373 CFLAGS=$saved_cflags
5377 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5378 if test "$ac_cv_c_dll_unixware" = "yes"
5379 then
5380 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
5381 LDDLLFLAGS="-Wl,-B,symbolic"
5384 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5385 then
5386 LIBEXT="a"
5387 if test "$DLLWRAP" = "dllwrap"; then
5388 if test "$CYGWIN" = "yes"; then
5389 echo "*** use dllwrap for building shared library."
5390 LIBEXT="dll"
5396 if test "$LIBEXT" = "a"; then
5397 echo "*** It is currently not possible to build WINE without shared"
5398 echo "*** library (.so) support to allow transparent switch between .so"
5399 echo "*** and .dll files."
5400 echo "*** If you are using Linux, you will need a newer binutils."
5401 exit 1
5404 DLLFLAGS=""
5405 LDPATH=""
5407 if test "$LIBEXT" = "so"; then
5408 DLLFLAGS="-fPIC"
5409 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5410 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5411 elif test "$LIBEXT" = "dll"; then
5412 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5413 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5414 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5415 else
5416 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
5417 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
5418 echo "configure:5419: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
5419 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5421 else
5422 saved_cflags=$CFLAGS
5423 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5428 int main() {
5429 return 1
5430 ; return 0; }
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433 rm -rf conftest*
5434 ac_cv_c_whole_archive="yes"
5435 else
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 rm -rf conftest*
5439 ac_cv_c_whole_archive="no"
5441 rm -f conftest*
5442 CFLAGS=$saved_cflags
5446 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
5447 if test "$ac_cv_c_whole_archive" = "yes"
5448 then
5449 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
5450 else
5451 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
5452 echo "configure:5453: checking whether the linker supports -z {all,default}extract (Linux)" >&5
5453 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5455 else
5456 saved_cflags=$CFLAGS
5457 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5462 int main() {
5463 return 1
5464 ; return 0; }
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5467 rm -rf conftest*
5468 ac_cv_c_allextract="yes"
5469 else
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 rm -rf conftest*
5473 ac_cv_c_allextract="no"
5475 rm -f conftest*
5476 CFLAGS=$saved_cflags
5480 echo "$ac_t""$ac_cv_c_allextract" 1>&6
5481 if test "$ac_cv_c_allextract" = "yes"
5482 then
5483 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
5498 wine_cv_libc_reentrant=no
5500 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5501 echo "configure:5502: checking for reentrant libc: __errno_location" >&5
5502 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5504 else
5505 if test "$cross_compiling" = yes; then
5506 wine_cv_libc_r___errno_location=yes
5507 else
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5511 int myerrno = 0;
5512 char buf[256];
5513 int *__errno_location(){return &myerrno;}
5514 main(){connect(0,buf,255); exit(!myerrno);}
5516 if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5517 then
5518 wine_cv_libc_r___errno_location=yes
5519 else
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 rm -fr conftest*
5523 wine_cv_libc_r___errno_location=no
5525 rm -fr conftest*
5531 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5532 if test "$wine_cv_libc_r___errno_location" = "yes"
5533 then
5534 wine_cv_libc_reentrant=__errno_location
5538 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5539 echo "configure:5540: checking for reentrant libc: __error" >&5
5540 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5542 else
5543 if test "$cross_compiling" = yes; then
5544 wine_cv_libc_r___error=yes
5545 else
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5549 int myerrno = 0;
5550 char buf[256];
5551 int *__error(){return &myerrno;}
5552 main(){connect(0,buf,255); exit(!myerrno);}
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5555 then
5556 wine_cv_libc_r___error=yes
5557 else
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 rm -fr conftest*
5561 wine_cv_libc_r___error=no
5563 rm -fr conftest*
5569 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5570 if test "$wine_cv_libc_r___error" = "yes"
5571 then
5572 wine_cv_libc_reentrant=__error
5576 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5577 echo "configure:5578: checking for reentrant libc: ___errno" >&5
5578 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5580 else
5581 if test "$cross_compiling" = yes; then
5582 wine_cv_libc_r____errno=yes
5583 else
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5587 int myerrno = 0;
5588 char buf[256];
5589 int *___errno(){return &myerrno;}
5590 main(){connect(0,buf,255); exit(!myerrno);}
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5593 then
5594 wine_cv_libc_r____errno=yes
5595 else
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 rm -fr conftest*
5599 wine_cv_libc_r____errno=no
5601 rm -fr conftest*
5607 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5608 if test "$wine_cv_libc_r____errno" = "yes"
5609 then
5610 wine_cv_libc_reentrant=___errno
5614 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5615 echo "configure:5616: checking for reentrant libc: __thr_errno" >&5
5616 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5618 else
5619 if test "$cross_compiling" = yes; then
5620 wine_cv_libc_r___thr_errno=yes
5621 else
5622 cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5625 int myerrno = 0;
5626 char buf[256];
5627 int *__thr_errno(){return &myerrno;}
5628 main(){connect(0,buf,255); exit(!myerrno);}
5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5631 then
5632 wine_cv_libc_r___thr_errno=yes
5633 else
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 rm -fr conftest*
5637 wine_cv_libc_r___thr_errno=no
5639 rm -fr conftest*
5645 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5646 if test "$wine_cv_libc_r___thr_errno" = "yes"
5647 then
5648 wine_cv_libc_reentrant=__thr_errno
5652 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5653 echo "configure:5654: checking for reentrant libc: __errno" >&5
5654 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5655 echo $ac_n "(cached) $ac_c" 1>&6
5656 else
5657 if test "$cross_compiling" = yes; then
5658 wine_cv_libc_r___errno=yes
5659 else
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 int myerrno = 0;
5664 char buf[256];
5665 int *__errno(){return &myerrno;}
5666 main(){connect(0,buf,255); exit(!myerrno);}
5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5669 then
5670 wine_cv_libc_r___errno=yes
5671 else
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5674 rm -fr conftest*
5675 wine_cv_libc_r___errno=no
5677 rm -fr conftest*
5683 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5684 if test "$wine_cv_libc_r___errno" = "yes"
5685 then
5686 wine_cv_libc_reentrant=__errno
5690 if test "$wine_cv_libc_reentrant" != "no"
5691 then
5692 cat >> confdefs.h <<EOF
5693 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5699 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5700 then
5701 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
5702 echo "configure:5703: checking "for reentrant X libraries"" >&5
5703 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5705 else
5706 if test "x$with_reentrant_x" = "xno"
5707 then
5708 wine_cv_x_reentrant=no
5709 else
5710 libX11_check=none
5711 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5712 if test -r $dir/libX11.so; then
5713 libX11_check="-D $dir/libX11.so"
5714 break 1
5716 if test -r $dir/libX11.a; then
5717 libX11_check="$dir/libX11.a"
5718 break 1
5720 done
5721 if test "$libX11_check" != "none"; then
5722 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5723 then
5724 wine_cv_x_reentrant=yes
5725 else
5726 wine_cv_x_reentrant=no
5728 else
5729 wine_cv_x_reentrant=unknown
5734 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5735 else
5736 wine_cv_x_reentrant=no
5738 if test "$wine_cv_x_reentrant" = "no"
5739 then
5740 cat >> confdefs.h <<\EOF
5741 #define NO_REENTRANT_X11 1
5748 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5749 # for constant arguments. Useless!
5750 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5751 echo "configure:5752: checking for working alloca.h" >&5
5752 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5754 else
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 #include <alloca.h>
5759 int main() {
5760 char *p = alloca(2 * sizeof(int));
5761 ; return 0; }
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5764 rm -rf conftest*
5765 ac_cv_header_alloca_h=yes
5766 else
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5769 rm -rf conftest*
5770 ac_cv_header_alloca_h=no
5772 rm -f conftest*
5775 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5776 if test $ac_cv_header_alloca_h = yes; then
5777 cat >> confdefs.h <<\EOF
5778 #define HAVE_ALLOCA_H 1
5783 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5784 echo "configure:5785: checking for alloca" >&5
5785 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5787 else
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5792 #ifdef __GNUC__
5793 # define alloca __builtin_alloca
5794 #else
5795 # ifdef _MSC_VER
5796 # include <malloc.h>
5797 # define alloca _alloca
5798 # else
5799 # if HAVE_ALLOCA_H
5800 # include <alloca.h>
5801 # else
5802 # ifdef _AIX
5803 #pragma alloca
5804 # else
5805 # ifndef alloca /* predefined by HP cc +Olibcalls */
5806 char *alloca ();
5807 # endif
5808 # endif
5809 # endif
5810 # endif
5811 #endif
5813 int main() {
5814 char *p = (char *) alloca(1);
5815 ; return 0; }
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818 rm -rf conftest*
5819 ac_cv_func_alloca_works=yes
5820 else
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5823 rm -rf conftest*
5824 ac_cv_func_alloca_works=no
5826 rm -f conftest*
5829 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5830 if test $ac_cv_func_alloca_works = yes; then
5831 cat >> confdefs.h <<\EOF
5832 #define HAVE_ALLOCA 1
5837 if test $ac_cv_func_alloca_works = no; then
5838 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5839 # that cause trouble. Some versions do not even contain alloca or
5840 # contain a buggy version. If you still want to use their alloca,
5841 # use ar to extract alloca.o from them instead of compiling alloca.c.
5842 ALLOCA=alloca.${ac_objext}
5843 cat >> confdefs.h <<\EOF
5844 #define C_ALLOCA 1
5848 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5849 echo "configure:5850: checking whether alloca needs Cray hooks" >&5
5850 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5852 else
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 #if defined(CRAY) && ! defined(CRAY2)
5857 webecray
5858 #else
5859 wenotbecray
5860 #endif
5863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864 egrep "webecray" >/dev/null 2>&1; then
5865 rm -rf conftest*
5866 ac_cv_os_cray=yes
5867 else
5868 rm -rf conftest*
5869 ac_cv_os_cray=no
5871 rm -f conftest*
5875 echo "$ac_t""$ac_cv_os_cray" 1>&6
5876 if test $ac_cv_os_cray = yes; then
5877 for ac_func in _getb67 GETB67 getb67; do
5878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5879 echo "configure:5880: checking for $ac_func" >&5
5880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882 else
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 /* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char $ac_func(); below. */
5888 #include <assert.h>
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5892 char $ac_func();
5894 int main() {
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5900 choke me
5901 #else
5902 $ac_func();
5903 #endif
5905 ; return 0; }
5907 if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5908 rm -rf conftest*
5909 eval "ac_cv_func_$ac_func=yes"
5910 else
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5913 rm -rf conftest*
5914 eval "ac_cv_func_$ac_func=no"
5916 rm -f conftest*
5919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5921 cat >> confdefs.h <<EOF
5922 #define CRAY_STACKSEG_END $ac_func
5925 break
5926 else
5927 echo "$ac_t""no" 1>&6
5930 done
5933 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5934 echo "configure:5935: checking stack direction for C alloca" >&5
5935 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5938 if test "$cross_compiling" = yes; then
5939 ac_cv_c_stack_direction=0
5940 else
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 find_stack_direction ()
5946 static char *addr = 0;
5947 auto char dummy;
5948 if (addr == 0)
5950 addr = &dummy;
5951 return find_stack_direction ();
5953 else
5954 return (&dummy > addr) ? 1 : -1;
5956 main ()
5958 exit (find_stack_direction() < 0);
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5962 then
5963 ac_cv_c_stack_direction=1
5964 else
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 rm -fr conftest*
5968 ac_cv_c_stack_direction=-1
5970 rm -fr conftest*
5975 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5976 cat >> confdefs.h <<EOF
5977 #define STACK_DIRECTION $ac_cv_c_stack_direction
5982 for ac_func in \
5983 __libc_fork \
5984 _lwp_create \
5985 clone \
5986 ecvt \
5987 finite \
5988 fpclass \
5989 ftruncate64 \
5990 getnetbyaddr \
5991 getnetbyname \
5992 getpagesize \
5993 getprotobyname \
5994 getprotobynumber \
5995 getrlimit \
5996 getservbyport \
5997 getsockopt \
5998 inet_network \
5999 lseek64 \
6000 lstat \
6001 memmove \
6002 mmap \
6003 rfork \
6004 select \
6005 sendmsg \
6006 settimeofday \
6007 sigaltstack \
6008 statfs \
6009 strcasecmp \
6010 strerror \
6011 strncasecmp \
6012 tcgetattr \
6013 timegm \
6014 usleep \
6015 vfscanf \
6016 wait4 \
6017 waitpid \
6020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6021 echo "configure:6022: checking for $ac_func" >&5
6022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6024 else
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char $ac_func(); below. */
6030 #include <assert.h>
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6034 char $ac_func();
6036 int main() {
6038 /* The GNU C library defines this for functions which it implements
6039 to always fail with ENOSYS. Some functions are actually named
6040 something starting with __ and the normal name is an alias. */
6041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6042 choke me
6043 #else
6044 $ac_func();
6045 #endif
6047 ; return 0; }
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050 rm -rf conftest*
6051 eval "ac_cv_func_$ac_func=yes"
6052 else
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 rm -rf conftest*
6056 eval "ac_cv_func_$ac_func=no"
6058 rm -f conftest*
6061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_func 1
6068 else
6069 echo "$ac_t""no" 1>&6
6071 done
6075 for ac_hdr in \
6076 arpa/inet.h \
6077 arpa/nameser.h \
6078 elf.h \
6079 float.h \
6080 ieeefp.h \
6081 libio.h \
6082 libutil.h \
6083 link.h \
6084 linux/cdrom.h \
6085 linux/input.h \
6086 linux/joystick.h \
6087 linux/ucdrom.h \
6088 net/if.h \
6089 netdb.h \
6090 netinet/in.h \
6091 netinet/in_systm.h \
6092 netinet/ip.h \
6093 netinet/tcp.h \
6094 pty.h \
6095 resolv.h \
6096 sched.h \
6097 socket.h \
6098 strings.h \
6099 sys/cdio.h \
6100 sys/errno.h \
6101 sys/file.h \
6102 sys/filio.h \
6103 sys/ipc.h \
6104 sys/lwp.h \
6105 sys/mman.h \
6106 sys/modem.h \
6107 sys/mount.h \
6108 sys/msg.h \
6109 sys/param.h \
6110 sys/ptrace.h \
6111 sys/reg.h \
6112 sys/signal.h \
6113 sys/shm.h \
6114 sys/socket.h \
6115 sys/sockio.h \
6116 sys/statfs.h \
6117 sys/strtio.h \
6118 sys/syscall.h \
6119 sys/user.h \
6120 sys/wait.h \
6121 sys/v86.h \
6122 sys/v86intr.h \
6123 sys/vfs.h \
6124 sys/vm86.h \
6125 syscall.h \
6126 ucontext.h \
6129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6131 echo "configure:6132: checking for $ac_hdr" >&5
6132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6134 else
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 #include <$ac_hdr>
6140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6141 { (eval echo configure:6142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6143 if test -z "$ac_err"; then
6144 rm -rf conftest*
6145 eval "ac_cv_header_$ac_safe=yes"
6146 else
6147 echo "$ac_err" >&5
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6150 rm -rf conftest*
6151 eval "ac_cv_header_$ac_safe=no"
6153 rm -f conftest*
6155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6156 echo "$ac_t""yes" 1>&6
6157 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6158 cat >> confdefs.h <<EOF
6159 #define $ac_tr_hdr 1
6162 else
6163 echo "$ac_t""no" 1>&6
6165 done
6167 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6168 echo "configure:6169: checking whether stat file-mode macros are broken" >&5
6169 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6171 else
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 #include <sys/types.h>
6176 #include <sys/stat.h>
6178 #if defined(S_ISBLK) && defined(S_IFDIR)
6179 # if S_ISBLK (S_IFDIR)
6180 You lose.
6181 # endif
6182 #endif
6184 #if defined(S_ISBLK) && defined(S_IFCHR)
6185 # if S_ISBLK (S_IFCHR)
6186 You lose.
6187 # endif
6188 #endif
6190 #if defined(S_ISLNK) && defined(S_IFREG)
6191 # if S_ISLNK (S_IFREG)
6192 You lose.
6193 # endif
6194 #endif
6196 #if defined(S_ISSOCK) && defined(S_IFREG)
6197 # if S_ISSOCK (S_IFREG)
6198 You lose.
6199 # endif
6200 #endif
6203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6204 egrep "You lose" >/dev/null 2>&1; then
6205 rm -rf conftest*
6206 ac_cv_header_stat_broken=yes
6207 else
6208 rm -rf conftest*
6209 ac_cv_header_stat_broken=no
6211 rm -f conftest*
6215 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6216 if test $ac_cv_header_stat_broken = yes; then
6217 cat >> confdefs.h <<\EOF
6218 #define STAT_MACROS_BROKEN 1
6225 echo $ac_n "checking for working const""... $ac_c" 1>&6
6226 echo "configure:6227: checking for working const" >&5
6227 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6229 else
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6234 int main() {
6236 /* Ultrix mips cc rejects this. */
6237 typedef int charset[2]; const charset x;
6238 /* SunOS 4.1.1 cc rejects this. */
6239 char const *const *ccp;
6240 char **p;
6241 /* NEC SVR4.0.2 mips cc rejects this. */
6242 struct point {int x, y;};
6243 static struct point const zero = {0,0};
6244 /* AIX XL C 1.02.0.0 rejects this.
6245 It does not let you subtract one const X* pointer from another in an arm
6246 of an if-expression whose if-part is not a constant expression */
6247 const char *g = "string";
6248 ccp = &g + (g ? g-g : 0);
6249 /* HPUX 7.0 cc rejects these. */
6250 ++ccp;
6251 p = (char**) ccp;
6252 ccp = (char const *const *) p;
6253 { /* SCO 3.2v4 cc rejects this. */
6254 char *t;
6255 char const *s = 0 ? (char *) 0 : (char const *) 0;
6257 *t++ = 0;
6259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6260 int x[] = {25, 17};
6261 const int *foo = &x[0];
6262 ++foo;
6264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6265 typedef const int *iptr;
6266 iptr p = 0;
6267 ++p;
6269 { /* AIX XL C 1.02.0.0 rejects this saying
6270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6271 struct s { int j; const int *ap[3]; };
6272 struct s *b; b->j = 5;
6274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6275 const int foo = 10;
6278 ; return 0; }
6280 if { (eval echo configure:6281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6281 rm -rf conftest*
6282 ac_cv_c_const=yes
6283 else
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6286 rm -rf conftest*
6287 ac_cv_c_const=no
6289 rm -f conftest*
6292 echo "$ac_t""$ac_cv_c_const" 1>&6
6293 if test $ac_cv_c_const = no; then
6294 cat >> confdefs.h <<\EOF
6295 #define const
6300 echo $ac_n "checking for inline""... $ac_c" 1>&6
6301 echo "configure:6302: checking for inline" >&5
6302 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6305 ac_cv_c_inline=no
6306 for ac_kw in inline __inline__ __inline; do
6307 cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6311 int main() {
6312 } $ac_kw foo() {
6313 ; return 0; }
6315 if { (eval echo configure:6316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6316 rm -rf conftest*
6317 ac_cv_c_inline=$ac_kw; break
6318 else
6319 echo "configure: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6322 rm -f conftest*
6323 done
6327 echo "$ac_t""$ac_cv_c_inline" 1>&6
6328 case "$ac_cv_c_inline" in
6329 inline | yes) ;;
6330 no) cat >> confdefs.h <<\EOF
6331 #define inline
6334 *) cat >> confdefs.h <<EOF
6335 #define inline $ac_cv_c_inline
6338 esac
6340 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6341 echo "configure:6342: checking for ANSI C header files" >&5
6342 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6344 else
6345 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6348 #include <stdlib.h>
6349 #include <stdarg.h>
6350 #include <string.h>
6351 #include <float.h>
6353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6354 { (eval echo configure:6355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6356 if test -z "$ac_err"; then
6357 rm -rf conftest*
6358 ac_cv_header_stdc=yes
6359 else
6360 echo "$ac_err" >&5
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 rm -rf conftest*
6364 ac_cv_header_stdc=no
6366 rm -f conftest*
6368 if test $ac_cv_header_stdc = yes; then
6369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 #include <string.h>
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 egrep "memchr" >/dev/null 2>&1; then
6378 else
6379 rm -rf conftest*
6380 ac_cv_header_stdc=no
6382 rm -f conftest*
6386 if test $ac_cv_header_stdc = yes; then
6387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6391 #include <stdlib.h>
6393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394 egrep "free" >/dev/null 2>&1; then
6396 else
6397 rm -rf conftest*
6398 ac_cv_header_stdc=no
6400 rm -f conftest*
6404 if test $ac_cv_header_stdc = yes; then
6405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6406 if test "$cross_compiling" = yes; then
6408 else
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 #include <ctype.h>
6413 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6414 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6416 int main () { int i; for (i = 0; i < 256; i++)
6417 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6418 exit (0); }
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6422 then
6424 else
6425 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 rm -fr conftest*
6428 ac_cv_header_stdc=no
6430 rm -fr conftest*
6436 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6437 if test $ac_cv_header_stdc = yes; then
6438 cat >> confdefs.h <<\EOF
6439 #define STDC_HEADERS 1
6444 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6445 echo "configure:6446: checking for size_t" >&5
6446 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6448 else
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6452 #include <sys/types.h>
6453 #if STDC_HEADERS
6454 #include <stdlib.h>
6455 #include <stddef.h>
6456 #endif
6458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6460 rm -rf conftest*
6461 ac_cv_type_size_t=yes
6462 else
6463 rm -rf conftest*
6464 ac_cv_type_size_t=no
6466 rm -f conftest*
6469 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6470 if test $ac_cv_type_size_t = no; then
6471 cat >> confdefs.h <<\EOF
6472 #define size_t unsigned
6477 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6478 echo "configure:6479: checking size of long long" >&5
6479 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6481 else
6482 if test "$cross_compiling" = yes; then
6483 ac_cv_sizeof_long_long=0
6484 else
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6488 #include <stdio.h>
6489 #include <sys/types.h>
6490 main()
6492 FILE *f=fopen("conftestval", "w");
6493 if (!f) exit(1);
6494 fprintf(f, "%d\n", sizeof(long long));
6495 exit(0);
6498 if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6499 then
6500 ac_cv_sizeof_long_long=`cat conftestval`
6501 else
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 rm -fr conftest*
6505 ac_cv_sizeof_long_long=0
6507 rm -fr conftest*
6511 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6512 cat >> confdefs.h <<EOF
6513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6518 echo $ac_n "checking "whether linux/input.h is for real"""... $ac_c" 1>&6
6519 echo "configure:6520: checking "whether linux/input.h is for real"" >&5
6520 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6522 else
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6527 #include <linux/input.h>
6529 int main() {
6531 int foo = EVIOCGBIT(EV_ABS,42);
6532 int bar = BTN_PINKIE;
6533 int fortytwo = 42;
6535 ; return 0; }
6537 if { (eval echo configure:6538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6538 rm -rf conftest*
6539 wine_cv_linux_input_h=yes
6540 else
6541 echo "configure: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6543 rm -rf conftest*
6544 wine_cv_linux_input_h=no
6546 rm -f conftest*
6550 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6551 if test "$wine_cv_linux_input_h" = "yes"
6552 then
6553 cat >> confdefs.h <<\EOF
6554 #define HAVE_CORRECT_LINUXINPUT_H 1
6560 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
6561 echo "configure:6562: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
6562 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6564 else
6565 cat > conftest.$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6569 #include <netdb.h>
6571 int main() {
6573 char *name=NULL;
6574 struct hostent he;
6575 struct hostent *result;
6576 char *buf=NULL;
6577 int bufsize=0;
6578 int res,errnr;
6579 char *addr=NULL;
6580 int addrlen=0;
6581 int addrtype=0;
6582 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6583 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6585 ; return 0; }
6587 if { (eval echo configure:6588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6588 rm -rf conftest*
6589 wine_cv_linux_gethostbyname_r_6=yes
6590 else
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6593 rm -rf conftest*
6594 wine_cv_linux_gethostbyname_r_6=no
6597 rm -f conftest*
6601 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6602 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6603 then
6604 cat >> confdefs.h <<\EOF
6605 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6610 if test "$ac_cv_header_linux_joystick_h" = "yes"
6611 then
6612 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
6613 echo "configure:6614: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
6614 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6616 else
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6621 #include <sys/ioctl.h>
6622 #include <linux/joystick.h>
6624 struct js_event blub;
6625 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6626 #error "no 2.2 header"
6627 #endif
6629 int main() {
6630 /*empty*/
6631 ; return 0; }
6633 if { (eval echo configure:6634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6634 rm -rf conftest*
6635 wine_cv_linux_joystick_22_api=yes
6636 else
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 rm -rf conftest*
6640 wine_cv_linux_joystick_22_api=no
6642 rm -f conftest*
6646 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6647 if test "$wine_cv_linux_joystick_22_api" = "yes"
6648 then
6649 cat >> confdefs.h <<\EOF
6650 #define HAVE_LINUX_22_JOYSTICK_API 1
6657 if test "$ac_cv_header_sys_vfs_h" = "yes"
6658 then
6659 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
6660 echo "configure:6661: checking "whether sys/vfs.h defines statfs"" >&5
6661 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6663 else
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6668 #include <sys/types.h>
6669 #ifdef HAVE_SYS_PARAM_H
6670 # include <sys/param.h>
6671 #endif
6672 #include <sys/vfs.h>
6674 int main() {
6676 struct statfs stfs;
6678 memset(&stfs,0,sizeof(stfs));
6680 ; return 0; }
6682 if { (eval echo configure:6683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6683 rm -rf conftest*
6684 wine_cv_sys_vfs_has_statfs=yes
6685 else
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6688 rm -rf conftest*
6689 wine_cv_sys_vfs_has_statfs=no
6692 rm -f conftest*
6696 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6697 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6698 then
6699 cat >> confdefs.h <<\EOF
6700 #define STATFS_DEFINED_BY_SYS_VFS 1
6706 if test "$ac_cv_header_sys_statfs_h" = "yes"
6707 then
6708 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
6709 echo "configure:6710: checking "whether sys/statfs.h defines statfs"" >&5
6710 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6712 else
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6717 #include <sys/types.h>
6718 #ifdef HAVE_SYS_PARAM_H
6719 # include <sys/param.h>
6720 #endif
6721 #include <sys/statfs.h>
6723 int main() {
6725 struct statfs stfs;
6727 ; return 0; }
6729 if { (eval echo configure:6730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6730 rm -rf conftest*
6731 wine_cv_sys_statfs_has_statfs=yes
6732 else
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6735 rm -rf conftest*
6736 wine_cv_sys_statfs_has_statfs=no
6739 rm -f conftest*
6743 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6744 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6745 then
6746 cat >> confdefs.h <<\EOF
6747 #define STATFS_DEFINED_BY_SYS_STATFS 1
6753 if test "$ac_cv_header_sys_mount_h" = "yes"
6754 then
6755 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
6756 echo "configure:6757: checking "whether sys/mount.h defines statfs"" >&5
6757 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6758 echo $ac_n "(cached) $ac_c" 1>&6
6759 else
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6764 #include <sys/types.h>
6765 #ifdef HAVE_SYS_PARAM_H
6766 # include <sys/param.h>
6767 #endif
6768 #include <sys/mount.h>
6770 int main() {
6772 struct statfs stfs;
6774 ; return 0; }
6776 if { (eval echo configure:6777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6777 rm -rf conftest*
6778 wine_cv_sys_mount_has_statfs=yes
6779 else
6780 echo "configure: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 rm -rf conftest*
6783 wine_cv_sys_mount_has_statfs=no
6786 rm -f conftest*
6790 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6791 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6792 then
6793 cat >> confdefs.h <<\EOF
6794 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6801 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
6802 echo "configure:6803: checking "for statfs.f_bfree"" >&5
6803 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6805 else
6806 if test "x$statfs_bfree" = "xno"
6807 then
6808 wine_cv_statfs_bfree=no
6809 else
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6814 #include <sys/types.h>
6815 #ifdef HAVE_SYS_PARAM_H
6816 # include <sys/param.h>
6817 #endif
6818 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6819 # include <sys/mount.h>
6820 #else
6821 # ifdef STATFS_DEFINED_BY_SYS_VFS
6822 # include <sys/vfs.h>
6823 # else
6824 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6825 # include <sys/statfs.h>
6826 # endif
6827 # endif
6828 #endif
6830 int main() {
6832 struct statfs stfs;
6834 stfs.f_bfree++;
6836 ; return 0; }
6838 if { (eval echo configure:6839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6839 rm -rf conftest*
6840 wine_cv_statfs_bfree=yes
6841 else
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6844 rm -rf conftest*
6845 wine_cv_statfs_bfree=no
6848 rm -f conftest*
6852 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6853 if test "$wine_cv_statfs_bfree" = "yes"
6854 then
6855 cat >> confdefs.h <<\EOF
6856 #define STATFS_HAS_BFREE 1
6861 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
6862 echo "configure:6863: checking "for statfs.f_bavail"" >&5
6863 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866 if test "x$statfs_bavail" = "xno"
6867 then
6868 wine_cv_statfs_bavail=no
6869 else
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6874 #include <sys/types.h>
6875 #ifdef HAVE_SYS_PARAM_H
6876 # include <sys/param.h>
6877 #endif
6878 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6879 # include <sys/mount.h>
6880 #else
6881 # ifdef STATFS_DEFINED_BY_SYS_VFS
6882 # include <sys/vfs.h>
6883 # else
6884 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6885 # include <sys/statfs.h>
6886 # endif
6887 # endif
6888 #endif
6890 int main() {
6892 struct statfs stfs;
6894 stfs.f_bavail++;
6896 ; return 0; }
6898 if { (eval echo configure:6899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6899 rm -rf conftest*
6900 wine_cv_statfs_bavail=yes
6901 else
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6904 rm -rf conftest*
6905 wine_cv_statfs_bavail=no
6908 rm -f conftest*
6912 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6913 if test "$wine_cv_statfs_bavail" = "yes"
6914 then
6915 cat >> confdefs.h <<\EOF
6916 #define STATFS_HAS_BAVAIL 1
6922 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
6923 echo "configure:6924: checking "for msg_accrights in struct msghdr"" >&5
6924 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6926 else
6927 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6930 #include <sys/types.h>
6931 #include <sys/socket.h>
6932 int main() {
6933 struct msghdr hdr; hdr.msg_accrights=0
6934 ; return 0; }
6936 if { (eval echo configure:6937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6937 rm -rf conftest*
6938 ac_cv_c_msg_accrights="yes"
6939 else
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6942 rm -rf conftest*
6943 ac_cv_c_msg_accrights="no"
6945 rm -f conftest*
6948 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6949 if test "$ac_cv_c_msg_accrights" = "yes"
6950 then
6951 cat >> confdefs.h <<\EOF
6952 #define HAVE_MSGHDR_ACCRIGHTS 1
6958 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6959 echo "configure:6960: checking "for sun_len in struct sockaddr_un"" >&5
6960 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6962 else
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 #include <sys/types.h>
6967 #include <sys/socket.h>
6968 #include <sys/un.h>
6969 int main() {
6970 static struct sockaddr_un addr; addr.sun_len = 1
6971 ; return 0; }
6973 if { (eval echo configure:6974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6974 rm -rf conftest*
6975 ac_cv_c_sun_len="yes"
6976 else
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 rm -rf conftest*
6980 ac_cv_c_sun_len="no"
6982 rm -f conftest*
6985 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6986 if test "$ac_cv_c_sun_len" = "yes"
6987 then
6988 cat >> confdefs.h <<\EOF
6989 #define HAVE_SOCKADDR_SUN_LEN 1
6995 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6996 echo "configure:6997: checking "whether we need to define __i386__"" >&5
6997 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
6999 else
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7003 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
7005 #endif
7007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7008 egrep "yes" >/dev/null 2>&1; then
7009 rm -rf conftest*
7010 ac_cv_cpp_def_i386="yes"
7011 else
7012 rm -rf conftest*
7013 ac_cv_cpp_def_i386="no"
7015 rm -f conftest*
7019 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
7020 if test "$ac_cv_cpp_def_i386" = "yes"
7021 then
7022 CFLAGS="$CFLAGS -D__i386__"
7023 LINTFLAGS="$LINTFLAGS -D__i386__"
7026 GCC_NO_BUILTIN=""
7027 if test "$GCC" = "yes"
7028 then
7029 GCC_NO_BUILTIN="-fno-builtin"
7036 MAKE_RULES=Make.rules
7039 MAKE_DLL_RULES=dlls/Makedll.rules
7042 MAKE_PROG_RULES=programs/Makeprog.rules
7045 trap '' 1 2 15
7046 cat > confcache <<\EOF
7047 # This file is a shell script that caches the results of configure
7048 # tests run on this system so they can be shared between configure
7049 # scripts and configure runs. It is not useful on other systems.
7050 # If it contains results you don't want to keep, you may remove or edit it.
7052 # By default, configure uses ./config.cache as the cache file,
7053 # creating it if it does not exist already. You can give configure
7054 # the --cache-file=FILE option to use a different cache file; that is
7055 # what configure does when it calls configure scripts in
7056 # subdirectories, so they share the cache.
7057 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7058 # config.status only pays attention to the cache file if you give it the
7059 # --recheck option to rerun configure.
7062 # The following way of writing the cache mishandles newlines in values,
7063 # but we know of no workaround that is simple, portable, and efficient.
7064 # So, don't put newlines in cache variables' values.
7065 # Ultrix sh set writes to stderr and can't be redirected directly,
7066 # and sets the high bit in the cache file unless we assign to the vars.
7067 (set) 2>&1 |
7068 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7069 *ac_space=\ *)
7070 # `set' does not quote correctly, so add quotes (double-quote substitution
7071 # turns \\\\ into \\, and sed turns \\ into \).
7072 sed -n \
7073 -e "s/'/'\\\\''/g" \
7074 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7077 # `set' quotes correctly as required by POSIX, so do not add quotes.
7078 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7080 esac >> confcache
7081 if cmp -s $cache_file confcache; then
7083 else
7084 if test -w $cache_file; then
7085 echo "updating cache $cache_file"
7086 cat confcache > $cache_file
7087 else
7088 echo "not updating unwritable cache $cache_file"
7091 rm -f confcache
7093 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7096 # Let make expand exec_prefix.
7097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7099 # Any assignment to VPATH causes Sun make to only execute
7100 # the first set of double-colon rules, so remove it if not needed.
7101 # If there is a colon in the path, we need to keep it.
7102 if test "x$srcdir" = x.; then
7103 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7106 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7108 DEFS=-DHAVE_CONFIG_H
7110 # Without the "./", some shells look in PATH for config.status.
7111 : ${CONFIG_STATUS=./config.status}
7113 echo creating $CONFIG_STATUS
7114 rm -f $CONFIG_STATUS
7115 cat > $CONFIG_STATUS <<EOF
7116 #! /bin/sh
7117 # Generated automatically by configure.
7118 # Run this file to recreate the current configuration.
7119 # This directory was configured as follows,
7120 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7122 # $0 $ac_configure_args
7124 # Compiler output produced by configure, useful for debugging
7125 # configure, is in ./config.log if it exists.
7127 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7128 for ac_option
7130 case "\$ac_option" in
7131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7132 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7133 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7134 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7135 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7136 exit 0 ;;
7137 -help | --help | --hel | --he | --h)
7138 echo "\$ac_cs_usage"; exit 0 ;;
7139 *) echo "\$ac_cs_usage"; exit 1 ;;
7140 esac
7141 done
7143 ac_given_srcdir=$srcdir
7144 ac_given_INSTALL="$INSTALL"
7146 trap 'rm -fr `echo "
7147 Make.rules
7148 dlls/Makedll.rules
7149 programs/Makeprog.rules
7150 Makefile
7151 console/Makefile
7152 controls/Makefile
7153 debugger/Makefile
7154 dlls/Makefile
7155 dlls/advapi32/Makefile
7156 dlls/avifil32/Makefile
7157 dlls/comctl32/Makefile
7158 dlls/commdlg/Makefile
7159 dlls/crtdll/Makefile
7160 dlls/dciman32/Makefile
7161 dlls/ddraw/Makefile
7162 dlls/dinput/Makefile
7163 dlls/dplay/Makefile
7164 dlls/dplayx/Makefile
7165 dlls/dsound/Makefile
7166 dlls/gdi/Makefile
7167 dlls/glu32/Makefile
7168 dlls/icmp/Makefile
7169 dlls/imagehlp/Makefile
7170 dlls/imm32/Makefile
7171 dlls/kernel/Makefile
7172 dlls/lzexpand/Makefile
7173 dlls/mpr/Makefile
7174 dlls/msacm/Makefile
7175 dlls/msnet32/Makefile
7176 dlls/msvcrt/Makefile
7177 dlls/msvideo/Makefile
7178 dlls/ntdll/Makefile
7179 dlls/odbc32/Makefile
7180 dlls/ole32/Makefile
7181 dlls/oleaut32/Makefile
7182 dlls/olecli/Makefile
7183 dlls/oledlg/Makefile
7184 dlls/olepro32/Makefile
7185 dlls/olesvr/Makefile
7186 dlls/opengl32/Makefile
7187 dlls/psapi/Makefile
7188 dlls/rasapi32/Makefile
7189 dlls/richedit/Makefile
7190 dlls/rpcrt4/Makefile
7191 dlls/serialui/Makefile
7192 dlls/setupapi/Makefile
7193 dlls/shdocvw/Makefile
7194 dlls/shell32/Makefile
7195 dlls/shfolder/Makefile
7196 dlls/shlwapi/Makefile
7197 dlls/tapi32/Makefile
7198 dlls/ttydrv/Makefile
7199 dlls/urlmon/Makefile
7200 dlls/user/Makefile
7201 dlls/version/Makefile
7202 dlls/win32s/Makefile
7203 dlls/winaspi/Makefile
7204 dlls/winedos/Makefile
7205 dlls/wineps/Makefile
7206 dlls/wininet/Makefile
7207 dlls/winmm/Makefile
7208 dlls/winmm/joystick/Makefile
7209 dlls/winmm/mcianim/Makefile
7210 dlls/winmm/mciavi/Makefile
7211 dlls/winmm/mcicda/Makefile
7212 dlls/winmm/mciseq/Makefile
7213 dlls/winmm/mciwave/Makefile
7214 dlls/winmm/midimap/Makefile
7215 dlls/winmm/wavemap/Makefile
7216 dlls/winmm/wineoss/Makefile
7217 dlls/winnls/Makefile
7218 dlls/winsock/Makefile
7219 dlls/winspool/Makefile
7220 dlls/wintrust/Makefile
7221 dlls/wow32/Makefile
7222 dlls/wsock32/Makefile
7223 dlls/x11drv/Makefile
7224 documentation/Makefile
7225 documentation/wine.conf.man
7226 documentation/wine.man
7227 files/Makefile
7228 graphics/Makefile
7229 graphics/enhmetafiledrv/Makefile
7230 graphics/metafiledrv/Makefile
7231 graphics/win16drv/Makefile
7232 graphics/x11drv/Makefile
7233 if1632/Makefile
7234 include/Makefile
7235 library/Makefile
7236 libtest/Makefile
7237 loader/Makefile
7238 loader/dos/Makefile
7239 loader/ne/Makefile
7240 memory/Makefile
7241 misc/Makefile
7242 miscemu/Makefile
7243 msdos/Makefile
7244 objects/Makefile
7245 ole/Makefile
7246 programs/Makefile
7247 programs/avitools/Makefile
7248 programs/clock/Makefile
7249 programs/cmdlgtst/Makefile
7250 programs/control/Makefile
7251 programs/notepad/Makefile
7252 programs/osversioncheck/Makefile
7253 programs/progman/Makefile
7254 programs/regapi/Makefile
7255 programs/regtest/Makefile
7256 programs/uninstaller/Makefile
7257 programs/view/Makefile
7258 programs/wcmd/Makefile
7259 programs/winemine/Makefile
7260 programs/winetest/Makefile
7261 programs/winhelp/Makefile
7262 programs/winver/Makefile
7263 relay32/Makefile
7264 scheduler/Makefile
7265 server/Makefile
7266 tools/Makefile
7267 tools/cvdump/Makefile
7268 tools/specmaker/Makefile
7269 tools/winebuild/Makefile
7270 tools/winelauncher
7271 tools/wmc/Makefile
7272 tools/wrc/Makefile
7273 tsx11/Makefile
7274 unicode/Makefile
7275 win32/Makefile
7276 windows/Makefile
7277 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7279 cat >> $CONFIG_STATUS <<EOF
7281 # Protect against being on the right side of a sed subst in config.status.
7282 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7283 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7284 $ac_vpsub
7285 $extrasub
7286 s%@SHELL@%$SHELL%g
7287 s%@CFLAGS@%$CFLAGS%g
7288 s%@CPPFLAGS@%$CPPFLAGS%g
7289 s%@CXXFLAGS@%$CXXFLAGS%g
7290 s%@FFLAGS@%$FFLAGS%g
7291 s%@DEFS@%$DEFS%g
7292 s%@LDFLAGS@%$LDFLAGS%g
7293 s%@LIBS@%$LIBS%g
7294 s%@exec_prefix@%$exec_prefix%g
7295 s%@prefix@%$prefix%g
7296 s%@program_transform_name@%$program_transform_name%g
7297 s%@bindir@%$bindir%g
7298 s%@sbindir@%$sbindir%g
7299 s%@libexecdir@%$libexecdir%g
7300 s%@datadir@%$datadir%g
7301 s%@sysconfdir@%$sysconfdir%g
7302 s%@sharedstatedir@%$sharedstatedir%g
7303 s%@localstatedir@%$localstatedir%g
7304 s%@libdir@%$libdir%g
7305 s%@includedir@%$includedir%g
7306 s%@oldincludedir@%$oldincludedir%g
7307 s%@infodir@%$infodir%g
7308 s%@mandir@%$mandir%g
7309 s%@OPTIONS@%$OPTIONS%g
7310 s%@SET_MAKE@%$SET_MAKE%g
7311 s%@CC@%$CC%g
7312 s%@CPP@%$CPP%g
7313 s%@X_CFLAGS@%$X_CFLAGS%g
7314 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7315 s%@X_LIBS@%$X_LIBS%g
7316 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7317 s%@YACC@%$YACC%g
7318 s%@LEX@%$LEX%g
7319 s%@LEXLIB@%$LEXLIB%g
7320 s%@XLEX@%$XLEX%g
7321 s%@RANLIB@%$RANLIB%g
7322 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7323 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7324 s%@INSTALL_DATA@%$INSTALL_DATA%g
7325 s%@LN_S@%$LN_S%g
7326 s%@C2MAN@%$C2MAN%g
7327 s%@LDCONFIG@%$LDCONFIG%g
7328 s%@DLLWRAP@%$DLLWRAP%g
7329 s%@LINT@%$LINT%g
7330 s%@LINTFLAGS@%$LINTFLAGS%g
7331 s%@LDCOMBINE@%$LDCOMBINE%g
7332 s%@XLIB@%$XLIB%g
7333 s%@X_DLLS@%$X_DLLS%g
7334 s%@XFILES@%$XFILES%g
7335 s%@OPENGLFILES@%$OPENGLFILES%g
7336 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
7337 s%@GLU32FILES@%$GLU32FILES%g
7338 s%@GLU32_DLL@%$GLU32_DLL%g
7339 s%@CUPSLIBS@%$CUPSLIBS%g
7340 s%@ft_devel@%$ft_devel%g
7341 s%@ft_devel2@%$ft_devel2%g
7342 s%@FREETYPELIBS@%$FREETYPELIBS%g
7343 s%@FREETYPEINCL@%$FREETYPEINCL%g
7344 s%@DLL_LINK@%$DLL_LINK%g
7345 s%@DLLFLAGS@%$DLLFLAGS%g
7346 s%@LDSHARED@%$LDSHARED%g
7347 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7348 s%@LIBEXT@%$LIBEXT%g
7349 s%@LDPATH@%$LDPATH%g
7350 s%@ALLOCA@%$ALLOCA%g
7351 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7352 /@MAKE_RULES@/r $MAKE_RULES
7353 s%@MAKE_RULES@%%g
7354 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7355 s%@MAKE_DLL_RULES@%%g
7356 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7357 s%@MAKE_PROG_RULES@%%g
7359 CEOF
7362 cat >> $CONFIG_STATUS <<\EOF
7364 # Split the substitutions into bite-sized pieces for seds with
7365 # small command number limits, like on Digital OSF/1 and HP-UX.
7366 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7367 ac_file=1 # Number of current file.
7368 ac_beg=1 # First line for current file.
7369 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7370 ac_more_lines=:
7371 ac_sed_cmds=""
7372 while $ac_more_lines; do
7373 if test $ac_beg -gt 1; then
7374 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7375 else
7376 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7378 if test ! -s conftest.s$ac_file; then
7379 ac_more_lines=false
7380 rm -f conftest.s$ac_file
7381 else
7382 if test -z "$ac_sed_cmds"; then
7383 ac_sed_cmds="sed -f conftest.s$ac_file"
7384 else
7385 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7387 ac_file=`expr $ac_file + 1`
7388 ac_beg=$ac_end
7389 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7391 done
7392 if test -z "$ac_sed_cmds"; then
7393 ac_sed_cmds=cat
7397 cat >> $CONFIG_STATUS <<EOF
7399 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7400 dlls/Makedll.rules
7401 programs/Makeprog.rules
7402 Makefile
7403 console/Makefile
7404 controls/Makefile
7405 debugger/Makefile
7406 dlls/Makefile
7407 dlls/advapi32/Makefile
7408 dlls/avifil32/Makefile
7409 dlls/comctl32/Makefile
7410 dlls/commdlg/Makefile
7411 dlls/crtdll/Makefile
7412 dlls/dciman32/Makefile
7413 dlls/ddraw/Makefile
7414 dlls/dinput/Makefile
7415 dlls/dplay/Makefile
7416 dlls/dplayx/Makefile
7417 dlls/dsound/Makefile
7418 dlls/gdi/Makefile
7419 dlls/glu32/Makefile
7420 dlls/icmp/Makefile
7421 dlls/imagehlp/Makefile
7422 dlls/imm32/Makefile
7423 dlls/kernel/Makefile
7424 dlls/lzexpand/Makefile
7425 dlls/mpr/Makefile
7426 dlls/msacm/Makefile
7427 dlls/msnet32/Makefile
7428 dlls/msvcrt/Makefile
7429 dlls/msvideo/Makefile
7430 dlls/ntdll/Makefile
7431 dlls/odbc32/Makefile
7432 dlls/ole32/Makefile
7433 dlls/oleaut32/Makefile
7434 dlls/olecli/Makefile
7435 dlls/oledlg/Makefile
7436 dlls/olepro32/Makefile
7437 dlls/olesvr/Makefile
7438 dlls/opengl32/Makefile
7439 dlls/psapi/Makefile
7440 dlls/rasapi32/Makefile
7441 dlls/richedit/Makefile
7442 dlls/rpcrt4/Makefile
7443 dlls/serialui/Makefile
7444 dlls/setupapi/Makefile
7445 dlls/shdocvw/Makefile
7446 dlls/shell32/Makefile
7447 dlls/shfolder/Makefile
7448 dlls/shlwapi/Makefile
7449 dlls/tapi32/Makefile
7450 dlls/ttydrv/Makefile
7451 dlls/urlmon/Makefile
7452 dlls/user/Makefile
7453 dlls/version/Makefile
7454 dlls/win32s/Makefile
7455 dlls/winaspi/Makefile
7456 dlls/winedos/Makefile
7457 dlls/wineps/Makefile
7458 dlls/wininet/Makefile
7459 dlls/winmm/Makefile
7460 dlls/winmm/joystick/Makefile
7461 dlls/winmm/mcianim/Makefile
7462 dlls/winmm/mciavi/Makefile
7463 dlls/winmm/mcicda/Makefile
7464 dlls/winmm/mciseq/Makefile
7465 dlls/winmm/mciwave/Makefile
7466 dlls/winmm/midimap/Makefile
7467 dlls/winmm/wavemap/Makefile
7468 dlls/winmm/wineoss/Makefile
7469 dlls/winnls/Makefile
7470 dlls/winsock/Makefile
7471 dlls/winspool/Makefile
7472 dlls/wintrust/Makefile
7473 dlls/wow32/Makefile
7474 dlls/wsock32/Makefile
7475 dlls/x11drv/Makefile
7476 documentation/Makefile
7477 documentation/wine.conf.man
7478 documentation/wine.man
7479 files/Makefile
7480 graphics/Makefile
7481 graphics/enhmetafiledrv/Makefile
7482 graphics/metafiledrv/Makefile
7483 graphics/win16drv/Makefile
7484 graphics/x11drv/Makefile
7485 if1632/Makefile
7486 include/Makefile
7487 library/Makefile
7488 libtest/Makefile
7489 loader/Makefile
7490 loader/dos/Makefile
7491 loader/ne/Makefile
7492 memory/Makefile
7493 misc/Makefile
7494 miscemu/Makefile
7495 msdos/Makefile
7496 objects/Makefile
7497 ole/Makefile
7498 programs/Makefile
7499 programs/avitools/Makefile
7500 programs/clock/Makefile
7501 programs/cmdlgtst/Makefile
7502 programs/control/Makefile
7503 programs/notepad/Makefile
7504 programs/osversioncheck/Makefile
7505 programs/progman/Makefile
7506 programs/regapi/Makefile
7507 programs/regtest/Makefile
7508 programs/uninstaller/Makefile
7509 programs/view/Makefile
7510 programs/wcmd/Makefile
7511 programs/winemine/Makefile
7512 programs/winetest/Makefile
7513 programs/winhelp/Makefile
7514 programs/winver/Makefile
7515 relay32/Makefile
7516 scheduler/Makefile
7517 server/Makefile
7518 tools/Makefile
7519 tools/cvdump/Makefile
7520 tools/specmaker/Makefile
7521 tools/winebuild/Makefile
7522 tools/winelauncher
7523 tools/wmc/Makefile
7524 tools/wrc/Makefile
7525 tsx11/Makefile
7526 unicode/Makefile
7527 win32/Makefile
7528 windows/Makefile
7529 windows/x11drv/Makefile "}
7531 cat >> $CONFIG_STATUS <<\EOF
7532 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7533 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7534 case "$ac_file" in
7535 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7536 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7537 *) ac_file_in="${ac_file}.in" ;;
7538 esac
7540 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7542 # Remove last slash and all that follows it. Not all systems have dirname.
7543 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7544 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7545 # The file is in a subdirectory.
7546 test ! -d "$ac_dir" && mkdir "$ac_dir"
7547 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7548 # A "../" for each directory in $ac_dir_suffix.
7549 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7550 else
7551 ac_dir_suffix= ac_dots=
7554 case "$ac_given_srcdir" in
7555 .) srcdir=.
7556 if test -z "$ac_dots"; then top_srcdir=.
7557 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7558 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7559 *) # Relative path.
7560 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7561 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7562 esac
7564 case "$ac_given_INSTALL" in
7565 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7566 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7567 esac
7569 echo creating "$ac_file"
7570 rm -f "$ac_file"
7571 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7572 case "$ac_file" in
7573 *Makefile*) ac_comsub="1i\\
7574 # $configure_input" ;;
7575 *) ac_comsub= ;;
7576 esac
7578 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7579 sed -e "$ac_comsub
7580 s%@configure_input@%$configure_input%g
7581 s%@srcdir@%$srcdir%g
7582 s%@top_srcdir@%$top_srcdir%g
7583 s%@INSTALL@%$INSTALL%g
7584 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7585 fi; done
7586 rm -f conftest.s*
7588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7591 # ac_d sets the value in "#define NAME VALUE" lines.
7592 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7593 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7594 ac_dC='\3'
7595 ac_dD='%g'
7596 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7597 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7598 ac_uB='\([ ]\)%\1#\2define\3'
7599 ac_uC=' '
7600 ac_uD='\4%g'
7601 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7602 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7603 ac_eB='$%\1#\2define\3'
7604 ac_eC=' '
7605 ac_eD='%g'
7607 if test "${CONFIG_HEADERS+set}" != set; then
7609 cat >> $CONFIG_STATUS <<EOF
7610 CONFIG_HEADERS="include/config.h"
7612 cat >> $CONFIG_STATUS <<\EOF
7614 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7615 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7616 case "$ac_file" in
7617 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7618 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7619 *) ac_file_in="${ac_file}.in" ;;
7620 esac
7622 echo creating $ac_file
7624 rm -f conftest.frag conftest.in conftest.out
7625 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7626 cat $ac_file_inputs > conftest.in
7630 # Transform confdefs.h into a sed script conftest.vals that substitutes
7631 # the proper values into config.h.in to produce config.h. And first:
7632 # Protect against being on the right side of a sed subst in config.status.
7633 # Protect against being in an unquoted here document in config.status.
7634 rm -f conftest.vals
7635 cat > conftest.hdr <<\EOF
7636 s/[\\&%]/\\&/g
7637 s%[\\$`]%\\&%g
7638 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7639 s%ac_d%ac_u%gp
7640 s%ac_u%ac_e%gp
7642 sed -n -f conftest.hdr confdefs.h > conftest.vals
7643 rm -f conftest.hdr
7645 # This sed command replaces #undef with comments. This is necessary, for
7646 # example, in the case of _POSIX_SOURCE, which is predefined and required
7647 # on some systems where configure will not decide to define it.
7648 cat >> conftest.vals <<\EOF
7649 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7652 # Break up conftest.vals because some shells have a limit on
7653 # the size of here documents, and old seds have small limits too.
7655 rm -f conftest.tail
7656 while :
7658 ac_lines=`grep -c . conftest.vals`
7659 # grep -c gives empty output for an empty file on some AIX systems.
7660 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7661 # Write a limited-size here document to conftest.frag.
7662 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7663 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7664 echo 'CEOF
7665 sed -f conftest.frag conftest.in > conftest.out
7666 rm -f conftest.in
7667 mv conftest.out conftest.in
7668 ' >> $CONFIG_STATUS
7669 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7670 rm -f conftest.vals
7671 mv conftest.tail conftest.vals
7672 done
7673 rm -f conftest.vals
7675 cat >> $CONFIG_STATUS <<\EOF
7676 rm -f conftest.frag conftest.h
7677 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7678 cat conftest.in >> conftest.h
7679 rm -f conftest.in
7680 if cmp -s $ac_file conftest.h 2>/dev/null; then
7681 echo "$ac_file is unchanged"
7682 rm -f conftest.h
7683 else
7684 # Remove last slash and all that follows it. Not all systems have dirname.
7685 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7686 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7687 # The file is in a subdirectory.
7688 test ! -d "$ac_dir" && mkdir "$ac_dir"
7690 rm -f $ac_file
7691 mv conftest.h $ac_file
7693 fi; done
7696 cat >> $CONFIG_STATUS <<EOF
7700 cat >> $CONFIG_STATUS <<\EOF
7702 extra_subdirs="\
7703 dlls/ddraw/d3ddevice \
7704 dlls/ddraw/dclipper \
7705 dlls/ddraw/ddraw \
7706 dlls/ddraw/direct3d \
7707 dlls/ddraw/dpalette \
7708 dlls/ddraw/dsurface \
7709 dlls/dinput/joystick \
7710 dlls/dinput/keyboard \
7711 dlls/dinput/mouse \
7712 dlls/kernel/messages \
7713 dlls/user/resources \
7714 dlls/wineps/data \
7716 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7718 exit 0
7720 chmod +x $CONFIG_STATUS
7721 rm -fr confdefs* $ac_clean_files
7722 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7725 if test "$have_x" = "no"
7726 then
7727 echo
7728 echo "*** Warning: X development files not found. Wine will be built without"
7729 echo "*** X support, which currently does not work, and would probably not be"
7730 echo "*** what you want anyway. You will need to install devel packages of"
7731 echo "*** Xlib/Xfree86 and Xpm at the very least."
7732 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7733 then
7734 echo
7735 echo "*** Warning: Xpm development files not found. Wine will be built without"
7736 echo "*** Xpm support, which currently does not work. You will need to install"
7737 echo "*** devel packages of Xpm."
7740 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7741 then
7742 echo
7743 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7744 echo "*** terminal resize support. Consider upgrading ncurses."
7747 if test "$wine_cv_libc_reentrant" = "no"
7748 then
7749 echo
7750 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7751 echo "*** thread support. Consider upgrading libc to a more recent"
7752 echo "*** reentrant version of libc."
7755 if test "$wine_cv_opengl_version_OK" = "no"
7756 then
7757 echo
7758 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7759 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7762 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7763 then
7764 echo
7765 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7766 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7767 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7768 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7771 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7772 then
7773 echo
7774 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7775 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7776 echo "*** support before reporting bugs."
7779 if test "$wine_cv_warn_cups_h" = "yes"
7780 then
7781 echo
7782 echo "*** Note: You have cups runtime libraries, but no development"
7783 echo "*** libraries. Install the cups-devel package or whichever package"
7784 echo "*** contains cups.h to enable CUPS support in WINE."
7787 if test "$wine_cv_msg_freetype" = "yes"
7788 then
7789 echo
7790 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7791 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7792 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7793 echo "*** enable Wine to use TrueType fonts."
7796 echo
7797 echo "Configure finished. Do 'make depend && make' to compile Wine."
7798 echo